|
@@ -62,6 +62,8 @@ export class FVO_company {
|
|
|
'qualifications': string = undefined;
|
|
|
@ApiProperty({ description: '状态' })
|
|
|
'status': string = undefined;
|
|
|
+ @ApiProperty({ description: '角色' })
|
|
|
+ 'role': Array<any> = undefined;
|
|
|
}
|
|
|
|
|
|
export class QDTO_company extends SearchBase {
|
|
@@ -81,6 +83,7 @@ export class QDTO_company extends SearchBase {
|
|
|
'area',
|
|
|
'institution_code',
|
|
|
'status',
|
|
|
+ 'role',
|
|
|
];
|
|
|
const mapping = [];
|
|
|
super({ like_prop, props, mapping });
|
|
@@ -111,6 +114,8 @@ export class QDTO_company extends SearchBase {
|
|
|
'institution_code': string = undefined;
|
|
|
@ApiProperty({ description: '状态' })
|
|
|
'status': string = undefined;
|
|
|
+ @ApiProperty({ description: '角色' })
|
|
|
+ 'role': Array<any> = undefined;
|
|
|
}
|
|
|
|
|
|
export class QVO_company extends FVO_company {
|
|
@@ -193,20 +198,8 @@ export class CDTO_company {
|
|
|
@ApiProperty({ description: '状态' })
|
|
|
@Rule(RuleType['string']().empty(''))
|
|
|
'status': string = undefined;
|
|
|
-}
|
|
|
-export class FetchVO_company {
|
|
|
- constructor(data: object) {
|
|
|
- for (const key of Object.keys(this)) {
|
|
|
- this[key] = get(data, key);
|
|
|
- }
|
|
|
- }
|
|
|
- @ApiProperty({ description: '数据id' })
|
|
|
- _id: string = undefined;
|
|
|
- @ApiProperty({ description: '账号' })
|
|
|
- 'account': string = undefined;
|
|
|
- @ApiProperty({ description: '名称' })
|
|
|
- 'name': string = undefined;
|
|
|
@ApiProperty({ description: '角色' })
|
|
|
+ @Rule(RuleType['array']().empty(''))
|
|
|
'role': Array<any> = undefined;
|
|
|
}
|
|
|
|
|
@@ -286,6 +279,8 @@ export class LoginVO {
|
|
|
'qualifications': string = undefined;
|
|
|
@ApiProperty({ description: '状态' })
|
|
|
'status': string = undefined;
|
|
|
+ @ApiProperty({ description: '角色' })
|
|
|
+ 'role': Array<any> = undefined;
|
|
|
}
|
|
|
|
|
|
export class LoginDTO {
|