瀏覽代碼

fix

master
Daniel 1 年之前
父節點
當前提交
3496a87d5d
共有 45 個文件被更改,包括 206 次插入26 次删除
  1. +1
    -1
      angular/openapi.json
  2. +124
    -24
      angular/openapi.yaml
  3. +20
    -0
      angular/src/app/_forms/apiForms.ts
  4. +1
    -0
      angular/src/app/core/api/v1/.openapi-generator/FILES
  5. +1
    -0
      angular/src/app/core/api/v1/model/location.ts
  6. +1
    -0
      angular/src/app/core/api/v1/model/locationJsonld.ts
  7. +1
    -0
      angular/src/app/core/api/v1/model/shippingCompany.ts
  8. +1
    -0
      angular/src/app/core/api/v1/model/shippingCompanyJsonld.ts
  9. +1
    -0
      angular/src/app/core/api/v1/model/trip.ts
  10. +1
    -0
      angular/src/app/core/api/v1/model/tripJsonld.ts
  11. +1
    -0
      angular/src/app/core/api/v1/model/tripLocation.ts
  12. +1
    -0
      angular/src/app/core/api/v1/model/tripLocationJsonld.ts
  13. +1
    -0
      angular/src/app/core/api/v1/model/user.ts
  14. +1
    -0
      angular/src/app/core/api/v1/model/userJsonld.ts
  15. +1
    -0
      angular/src/app/core/api/v1/model/userTrip.ts
  16. +1
    -0
      angular/src/app/core/api/v1/model/userTripJsonld.ts
  17. +1
    -0
      angular/src/app/core/api/v1/model/userTripLocation.ts
  18. +1
    -0
      angular/src/app/core/api/v1/model/userTripLocationJsonld.ts
  19. +1
    -0
      angular/src/app/core/api/v1/model/userTripWorkLog.ts
  20. +1
    -0
      angular/src/app/core/api/v1/model/userTripWorkLogJsonld.ts
  21. +1
    -0
      angular/src/app/core/api/v1/model/vessel.ts
  22. +1
    -0
      angular/src/app/core/api/v1/model/vesselJsonld.ts
  23. +1
    -0
      angular/src/app/core/api/v1/model/zone.ts
  24. +1
    -0
      angular/src/app/core/api/v1/model/zoneJsonld.ts
  25. +0
    -1
      httpdocs/config/packages/api_platform.yaml
  26. +3
    -0
      httpdocs/src/ApiResource/LocationApi.php
  27. +3
    -0
      httpdocs/src/ApiResource/ShippingCompanyApi.php
  28. +3
    -0
      httpdocs/src/ApiResource/TripApi.php
  29. +3
    -0
      httpdocs/src/ApiResource/TripLocationApi.php
  30. +3
    -0
      httpdocs/src/ApiResource/UserApi.php
  31. +3
    -0
      httpdocs/src/ApiResource/UserTripApi.php
  32. +3
    -0
      httpdocs/src/ApiResource/UserTripLocationApi.php
  33. +3
    -0
      httpdocs/src/ApiResource/UserTripWorkLogApi.php
  34. +3
    -0
      httpdocs/src/ApiResource/VesselApi.php
  35. +3
    -0
      httpdocs/src/ApiResource/ZoneApi.php
  36. +1
    -0
      httpdocs/src/Mapper/LocationEntityToApiMapper.php
  37. +1
    -0
      httpdocs/src/Mapper/ShippingCompanyEntityToApiMapper.php
  38. +1
    -0
      httpdocs/src/Mapper/TripEntityToApiMapper.php
  39. +1
    -0
      httpdocs/src/Mapper/TripLocationEntityToApiMapper.php
  40. +1
    -0
      httpdocs/src/Mapper/UserEntityToApiMapper.php
  41. +1
    -0
      httpdocs/src/Mapper/UserTripEntityToApiMapper.php
  42. +1
    -0
      httpdocs/src/Mapper/UserTripLocationEntityToApiMapper.php
  43. +1
    -0
      httpdocs/src/Mapper/UserTripWorkLogEntityToApiMapper.php
  44. +1
    -0
      httpdocs/src/Mapper/VesselEntityToApiMapper.php
  45. +1
    -0
      httpdocs/src/Mapper/ZoneEntityToApiMapper.php

+ 1
- 1
angular/openapi.json
文件差異過大導致無法顯示
查看文件


+ 124
- 24
angular/openapi.yaml 查看文件

@@ -1994,6 +1994,11 @@ components:
description: ''
deprecated: false
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
zone:
$ref: '#/components/schemas/Zone'
name:
@@ -2037,6 +2042,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
zone:
$ref: '#/components/schemas/Zone.jsonld'
name:
@@ -2092,10 +2102,12 @@ components:
type: object
description: ''
deprecated: false
required:
- name
- code
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
name:
type: string
code:
@@ -2106,13 +2118,13 @@ components:
- string
- 'null'
format: date-time
required:
- name
- code
ShippingCompany.jsonld:
type: object
description: ''
deprecated: false
required:
- name
- code
properties:
'@context':
readOnly: true
@@ -2137,6 +2149,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
name:
type: string
code:
@@ -2147,11 +2164,19 @@ components:
- string
- 'null'
format: date-time
required:
- name
- code
Trip:
type: object
description: ''
deprecated: false
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
vessel:
readOnly: true
type: string
@@ -2221,6 +2246,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
vessel:
readOnly: true
$ref: '#/components/schemas/Vessel.jsonld'
@@ -2261,6 +2291,11 @@ components:
description: ''
deprecated: false
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
trip:
readOnly: true
type: string
@@ -2312,6 +2347,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
trip:
readOnly: true
$ref: '#/components/schemas/Trip.jsonld'
@@ -2335,11 +2375,12 @@ components:
type: object
description: ''
deprecated: false
required:
- email
- firstName
- lastName
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
email:
format: email
externalDocs:
@@ -2385,14 +2426,14 @@ components:
- string
- 'null'
format: date-time
User.jsonld:
type: object
description: ''
deprecated: false
required:
- email
- firstName
- lastName
User.jsonld:
type: object
description: ''
deprecated: false
properties:
'@context':
readOnly: true
@@ -2417,6 +2458,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
email:
format: email
externalDocs:
@@ -2462,11 +2508,20 @@ components:
- string
- 'null'
format: date-time
required:
- email
- firstName
- lastName
UserTrip:
type: object
description: ''
deprecated: false
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
trip:
readOnly: true
type: string
@@ -2527,6 +2582,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
trip:
readOnly: true
$ref: '#/components/schemas/Trip.jsonld'
@@ -2560,6 +2620,11 @@ components:
description: ''
deprecated: false
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
userTrip:
readOnly: true
type: string
@@ -2611,6 +2676,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
userTrip:
readOnly: true
$ref: '#/components/schemas/UserTrip.jsonld'
@@ -2635,6 +2705,11 @@ components:
description: ''
deprecated: false
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
userTrip:
readOnly: true
type: string
@@ -2697,6 +2772,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
userTrip:
readOnly: true
$ref: '#/components/schemas/UserTrip.jsonld'
@@ -2729,10 +2809,12 @@ components:
type: object
description: ''
deprecated: false
required:
- name
- code
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
name:
type: string
code:
@@ -2745,13 +2827,13 @@ components:
- string
- 'null'
format: date-time
required:
- name
- code
Vessel.jsonld:
type: object
description: ''
deprecated: false
required:
- name
- code
properties:
'@context':
readOnly: true
@@ -2776,6 +2858,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
name:
type: string
code:
@@ -2788,13 +2875,19 @@ components:
- string
- 'null'
format: date-time
required:
- name
- code
Zone:
type: object
description: ''
deprecated: false
required:
- name
properties:
dbId:
readOnly: true
type:
- integer
- 'null'
name:
type: string
createdAt:
@@ -2803,12 +2896,12 @@ components:
- string
- 'null'
format: date-time
required:
- name
Zone.jsonld:
type: object
description: ''
deprecated: false
required:
- name
properties:
'@context':
readOnly: true
@@ -2833,6 +2926,11 @@ components:
'@type':
readOnly: true
type: string
dbId:
readOnly: true
type:
- integer
- 'null'
name:
type: string
createdAt:
@@ -2841,6 +2939,8 @@ components:
- string
- 'null'
format: date-time
required:
- name
responses: { }
parameters: { }
examples: { }


+ 20
- 0
angular/src/app/_forms/apiForms.ts 查看文件

@@ -1,6 +1,7 @@
import { FormGroup, FormControl, Validators } from '@angular/forms';

export const locationForm = new FormGroup({
dbId: new FormControl(null, []),
zone: new FormControl(null, []),
name: new FormControl(null, [Validators.required]),
code: new FormControl(null, [Validators.required]),
@@ -8,6 +9,7 @@ export const locationForm = new FormGroup({
});

export const locationJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
zone: new FormControl(null, []),
name: new FormControl(null, [Validators.required]),
code: new FormControl(null, [Validators.required]),
@@ -19,18 +21,21 @@ export const mediaObjectJsonldMediaObjectReadForm = new FormGroup({
});

export const shippingCompanyForm = new FormGroup({
dbId: new FormControl(null, []),
name: new FormControl(null, [Validators.required]),
code: new FormControl(null, [Validators.required]),
createdAt: new FormControl(null, [])
});

export const shippingCompanyJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
name: new FormControl(null, [Validators.required]),
code: new FormControl(null, [Validators.required]),
createdAt: new FormControl(null, [])
});

export const tripForm = new FormGroup({
dbId: new FormControl(null, []),
vessel: new FormControl(null, []),
pilotReference: new FormControl(null, [Validators.required]),
captainName: new FormControl(null, []),
@@ -42,6 +47,7 @@ export const tripForm = new FormGroup({
});

export const tripJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
vessel: new FormControl(null, []),
pilotReference: new FormControl(null, [Validators.required]),
captainName: new FormControl(null, []),
@@ -53,6 +59,7 @@ export const tripJsonldForm = new FormGroup({
});

export const tripLocationForm = new FormGroup({
dbId: new FormControl(null, []),
trip: new FormControl(null, []),
location: new FormControl(null, []),
date: new FormControl(null, [Validators.required]),
@@ -60,6 +67,7 @@ export const tripLocationForm = new FormGroup({
});

export const tripLocationJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
trip: new FormControl(null, []),
location: new FormControl(null, []),
date: new FormControl(null, [Validators.required]),
@@ -67,6 +75,7 @@ export const tripLocationJsonldForm = new FormGroup({
});

export const userForm = new FormGroup({
dbId: new FormControl(null, []),
email: new FormControl(null, [Validators.required, Validators.email]),
firstName: new FormControl(null, [Validators.required]),
lastName: new FormControl(null, [Validators.required]),
@@ -79,6 +88,7 @@ export const userForm = new FormGroup({
});

export const userJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
email: new FormControl(null, [Validators.required, Validators.email]),
firstName: new FormControl(null, [Validators.required]),
lastName: new FormControl(null, [Validators.required]),
@@ -91,6 +101,7 @@ export const userJsonldForm = new FormGroup({
});

export const userTripForm = new FormGroup({
dbId: new FormControl(null, []),
trip: new FormControl(null, []),
user: new FormControl(null, []),
captainName: new FormControl(null, [Validators.required]),
@@ -100,6 +111,7 @@ export const userTripForm = new FormGroup({
});

export const userTripJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
trip: new FormControl(null, []),
user: new FormControl(null, []),
captainName: new FormControl(null, [Validators.required]),
@@ -109,6 +121,7 @@ export const userTripJsonldForm = new FormGroup({
});

export const userTripLocationForm = new FormGroup({
dbId: new FormControl(null, []),
userTrip: new FormControl(null, []),
location: new FormControl(null, []),
plannedDate: new FormControl(null, [Validators.required]),
@@ -116,6 +129,7 @@ export const userTripLocationForm = new FormGroup({
});

export const userTripLocationJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
userTrip: new FormControl(null, []),
location: new FormControl(null, []),
plannedDate: new FormControl(null, [Validators.required]),
@@ -123,6 +137,7 @@ export const userTripLocationJsonldForm = new FormGroup({
});

export const userTripWorkLogForm = new FormGroup({
dbId: new FormControl(null, []),
userTrip: new FormControl(null, []),
startLocation: new FormControl(null, []),
endLocation: new FormControl(null, []),
@@ -132,6 +147,7 @@ export const userTripWorkLogForm = new FormGroup({
});

export const userTripWorkLogJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
userTrip: new FormControl(null, []),
startLocation: new FormControl(null, []),
endLocation: new FormControl(null, []),
@@ -141,6 +157,7 @@ export const userTripWorkLogJsonldForm = new FormGroup({
});

export const vesselForm = new FormGroup({
dbId: new FormControl(null, []),
name: new FormControl(null, [Validators.required]),
code: new FormControl(null, [Validators.required]),
company: new FormControl(null, []),
@@ -148,6 +165,7 @@ export const vesselForm = new FormGroup({
});

export const vesselJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
name: new FormControl(null, [Validators.required]),
code: new FormControl(null, [Validators.required]),
company: new FormControl(null, []),
@@ -155,11 +173,13 @@ export const vesselJsonldForm = new FormGroup({
});

export const zoneForm = new FormGroup({
dbId: new FormControl(null, []),
name: new FormControl(null, [Validators.required]),
createdAt: new FormControl(null, [])
});

export const zoneJsonldForm = new FormGroup({
dbId: new FormControl(null, []),
name: new FormControl(null, [Validators.required]),
createdAt: new FormControl(null, [])
});

+ 1
- 0
angular/src/app/core/api/v1/.openapi-generator/FILES 查看文件

@@ -1,4 +1,5 @@
.gitignore
.openapi-generator-ignore
README.md
api.module.ts
api/api.ts


+ 1
- 0
angular/src/app/core/api/v1/model/location.ts 查看文件

@@ -16,6 +16,7 @@ import { Zone } from './zone';
*
*/
export interface Location {
readonly dbId?: number | null;
zone?: Zone;
name: string;
code: string;


+ 1
- 0
angular/src/app/core/api/v1/model/locationJsonld.ts 查看文件

@@ -20,6 +20,7 @@ export interface LocationJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
zone?: ZoneJsonld;
name: string;
code: string;


+ 1
- 0
angular/src/app/core/api/v1/model/shippingCompany.ts 查看文件

@@ -15,6 +15,7 @@
*
*/
export interface ShippingCompany {
readonly dbId?: number | null;
name: string;
code: string;
readonly createdAt?: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/shippingCompanyJsonld.ts 查看文件

@@ -19,6 +19,7 @@ export interface ShippingCompanyJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
name: string;
code: string;
readonly createdAt?: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/trip.ts 查看文件

@@ -15,6 +15,7 @@
*
*/
export interface Trip {
readonly dbId?: number | null;
readonly vessel?: string;
pilotReference: string;
captainName?: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/tripJsonld.ts 查看文件

@@ -21,6 +21,7 @@ export interface TripJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
readonly vessel?: VesselJsonld;
pilotReference: string;
captainName?: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/tripLocation.ts 查看文件

@@ -15,6 +15,7 @@
*
*/
export interface TripLocation {
readonly dbId?: number | null;
readonly trip?: string;
readonly location?: string;
date: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/tripLocationJsonld.ts 查看文件

@@ -21,6 +21,7 @@ export interface TripLocationJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
readonly trip?: TripJsonld;
readonly location?: LocationJsonld;
date: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/user.ts 查看文件

@@ -15,6 +15,7 @@
*
*/
export interface User {
readonly dbId?: number | null;
email: string | null;
firstName: string | null;
lastName: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/userJsonld.ts 查看文件

@@ -19,6 +19,7 @@ export interface UserJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
email: string | null;
firstName: string | null;
lastName: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/userTrip.ts 查看文件

@@ -15,6 +15,7 @@
*
*/
export interface UserTrip {
readonly dbId?: number | null;
readonly trip?: string;
readonly user?: string;
captainName: string;


+ 1
- 0
angular/src/app/core/api/v1/model/userTripJsonld.ts 查看文件

@@ -21,6 +21,7 @@ export interface UserTripJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
readonly trip?: TripJsonld;
readonly user?: UserJsonld;
captainName: string;


+ 1
- 0
angular/src/app/core/api/v1/model/userTripLocation.ts 查看文件

@@ -15,6 +15,7 @@
*
*/
export interface UserTripLocation {
readonly dbId?: number | null;
readonly userTrip?: string;
readonly location?: string;
plannedDate: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/userTripLocationJsonld.ts 查看文件

@@ -21,6 +21,7 @@ export interface UserTripLocationJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
readonly userTrip?: UserTripJsonld;
readonly location?: LocationJsonld;
plannedDate: string | null;


+ 1
- 0
angular/src/app/core/api/v1/model/userTripWorkLog.ts 查看文件

@@ -15,6 +15,7 @@
*
*/
export interface UserTripWorkLog {
readonly dbId?: number | null;
readonly userTrip?: string;
readonly startLocation?: string;
readonly endLocation?: string;


+ 1
- 0
angular/src/app/core/api/v1/model/userTripWorkLogJsonld.ts 查看文件

@@ -21,6 +21,7 @@ export interface UserTripWorkLogJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
readonly userTrip?: UserTripJsonld;
readonly startLocation?: LocationJsonld;
readonly endLocation?: LocationJsonld;


+ 1
- 0
angular/src/app/core/api/v1/model/vessel.ts 查看文件

@@ -16,6 +16,7 @@ import { ShippingCompany } from './shippingCompany';
*
*/
export interface Vessel {
readonly dbId?: number | null;
name: string;
code: string;
company?: ShippingCompany;


+ 1
- 0
angular/src/app/core/api/v1/model/vesselJsonld.ts 查看文件

@@ -20,6 +20,7 @@ export interface VesselJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
name: string;
code: string;
company?: ShippingCompanyJsonld;


+ 1
- 0
angular/src/app/core/api/v1/model/zone.ts 查看文件

@@ -15,6 +15,7 @@
*
*/
export interface Zone {
readonly dbId?: number | null;
name: string;
readonly createdAt?: string | null;
}


+ 1
- 0
angular/src/app/core/api/v1/model/zoneJsonld.ts 查看文件

@@ -19,6 +19,7 @@ export interface ZoneJsonld {
context?: LocationJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
name: string;
readonly createdAt?: string | null;
}


+ 0
- 1
httpdocs/config/packages/api_platform.yaml 查看文件

@@ -2,7 +2,6 @@ api_platform:
title: Imaq Platform
version: 1.0.0
formats:
json: [ 'application/json' ]
jsonld: ['application/ld+json']
docs_formats:
jsonld: ['application/ld+json']


+ 3
- 0
httpdocs/src/ApiResource/LocationApi.php 查看文件

@@ -54,6 +54,9 @@ class LocationApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

/**
* @var ZoneApi
*/


+ 3
- 0
httpdocs/src/ApiResource/ShippingCompanyApi.php 查看文件

@@ -53,6 +53,9 @@ class ShippingCompanyApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

#[Assert\NotBlank]
public string $name;



+ 3
- 0
httpdocs/src/ApiResource/TripApi.php 查看文件

@@ -41,6 +41,9 @@ class TripApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

/**
* @var VesselApi
*/


+ 3
- 0
httpdocs/src/ApiResource/TripLocationApi.php 查看文件

@@ -41,6 +41,9 @@ class TripLocationApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

/**
* @var TripApi
*/


+ 3
- 0
httpdocs/src/ApiResource/UserApi.php 查看文件

@@ -59,6 +59,9 @@ class UserApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

#[Assert\NotBlank]
#[Assert\Email]
public ?string $email = null;


+ 3
- 0
httpdocs/src/ApiResource/UserTripApi.php 查看文件

@@ -41,6 +41,9 @@ class UserTripApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

/**
* @var TripApi
*/


+ 3
- 0
httpdocs/src/ApiResource/UserTripLocationApi.php 查看文件

@@ -41,6 +41,9 @@ class UserTripLocationApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

/**
* @var UserTripApi
*/


+ 3
- 0
httpdocs/src/ApiResource/UserTripWorkLogApi.php 查看文件

@@ -41,6 +41,9 @@ class UserTripWorkLogApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

/**
* @var UserTripApi
*/


+ 3
- 0
httpdocs/src/ApiResource/VesselApi.php 查看文件

@@ -54,6 +54,9 @@ class VesselApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

#[Assert\NotBlank]
public string $name;



+ 3
- 0
httpdocs/src/ApiResource/ZoneApi.php 查看文件

@@ -53,6 +53,9 @@ class ZoneApi
#[ApiProperty(readable: false, writable: false, identifier: true)]
public ?int $id = null;

#[ApiProperty(writable: false)]
public ?int $dbId = null;

#[Assert\NotBlank]
public string $name;



+ 1
- 0
httpdocs/src/Mapper/LocationEntityToApiMapper.php 查看文件

@@ -35,6 +35,7 @@ class LocationEntityToApiMapper implements MapperInterface
assert($entity instanceof Location);
assert($dto instanceof LocationApi);

$dto->dbId = $entity->getId();
$dto->name = $entity->getName();
$dto->code = $entity->getCode();
$dto->createdAt = $entity->getCreatedAt();


+ 1
- 0
httpdocs/src/Mapper/ShippingCompanyEntityToApiMapper.php 查看文件

@@ -34,6 +34,7 @@ class ShippingCompanyEntityToApiMapper implements MapperInterface
assert($entity instanceof ShippingCompany);
assert($dto instanceof ShippingCompanyApi);

$dto->dbId = $entity->getId();
$dto->name = $entity->getName();
$dto->code = $entity->getCode();
$dto->createdAt = $entity->getCreatedAt();


+ 1
- 0
httpdocs/src/Mapper/TripEntityToApiMapper.php 查看文件

@@ -36,6 +36,7 @@ class TripEntityToApiMapper implements MapperInterface
assert($entity instanceof Trip);
assert($dto instanceof TripApi);

$dto->dbId = $entity->getId();
$dto->pilotReference = $entity->getPilotReference();
$dto->captainName = $entity->getCaptainName();
$dto->startDate = $entity->getStartDate();


+ 1
- 0
httpdocs/src/Mapper/TripLocationEntityToApiMapper.php 查看文件

@@ -36,6 +36,7 @@ class TripLocationEntityToApiMapper implements MapperInterface
assert($entity instanceof TripLocation);
assert($dto instanceof TripLocationApi);

$dto->dbId = $entity->getId();
$dto->date = $entity->getDate();
$dto->createdAt = $entity->getCreatedAt();



+ 1
- 0
httpdocs/src/Mapper/UserEntityToApiMapper.php 查看文件

@@ -37,6 +37,7 @@ class UserEntityToApiMapper implements MapperInterface
assert($entity instanceof User);
assert($dto instanceof UserApi);

$dto->dbId = $entity->getId();
$dto->email = $entity->getEmail();
$dto->firstName = $entity->getFirstName();
$dto->lastName = $entity->getLastName();


+ 1
- 0
httpdocs/src/Mapper/UserTripEntityToApiMapper.php 查看文件

@@ -36,6 +36,7 @@ class UserTripEntityToApiMapper implements MapperInterface
assert($entity instanceof UserTrip);
assert($dto instanceof UserTripApi);

$dto->dbId = $entity->getId();
$dto->captainName = $entity->getCaptainName();
$dto->startDate = $entity->getStartDate();
$dto->endDate = $entity->getEndDate();


+ 1
- 0
httpdocs/src/Mapper/UserTripLocationEntityToApiMapper.php 查看文件

@@ -36,6 +36,7 @@ class UserTripLocationEntityToApiMapper implements MapperInterface
assert($entity instanceof UserTripLocation);
assert($dto instanceof UserTripLocationApi);

$dto->dbId = $entity->getId();
$dto->plannedDate = $entity->getPlannedDate();
$dto->createdAt = $entity->getCreatedAt();



+ 1
- 0
httpdocs/src/Mapper/UserTripWorkLogEntityToApiMapper.php 查看文件

@@ -36,6 +36,7 @@ class UserTripWorkLogEntityToApiMapper implements MapperInterface
assert($entity instanceof UserTripWorkLog);
assert($dto instanceof UserTripWorkLogApi);

$dto->dbId = $entity->getId();
$dto->startDate = $entity->getStartDate();
$dto->endDate = $entity->getEndDate();
$dto->createdAt = $entity->getCreatedAt();


+ 1
- 0
httpdocs/src/Mapper/VesselEntityToApiMapper.php 查看文件

@@ -35,6 +35,7 @@ class VesselEntityToApiMapper implements MapperInterface
assert($entity instanceof Vessel);
assert($dto instanceof VesselApi);

$dto->dbId = $entity->getId();
$dto->name = $entity->getName();
$dto->code = $entity->getCode();
$dto->createdAt = $entity->getCreatedAt();


+ 1
- 0
httpdocs/src/Mapper/ZoneEntityToApiMapper.php 查看文件

@@ -28,6 +28,7 @@ class ZoneEntityToApiMapper implements MapperInterface
assert($entity instanceof Zone);
assert($dto instanceof ZoneApi);

$dto->dbId = $entity->getId();
$dto->name = $entity->getName();
$dto->createdAt = $entity->getCreatedAt();



Loading…
取消
儲存