|
@@ -124,7 +124,8 @@ export class UVAO_admin extends FVO_admin {
|
|
dealVO(this, data);
|
|
dealVO(this, data);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-export class FetchVO_admin {
|
|
|
|
|
|
+
|
|
|
|
+export class LoginVO {
|
|
constructor(data: object) {
|
|
constructor(data: object) {
|
|
for (const key of Object.keys(this)) {
|
|
for (const key of Object.keys(this)) {
|
|
this[key] = get(data, key);
|
|
this[key] = get(data, key);
|
|
@@ -132,22 +133,26 @@ export class FetchVO_admin {
|
|
}
|
|
}
|
|
@ApiProperty({ description: '数据id' })
|
|
@ApiProperty({ description: '数据id' })
|
|
_id: string = undefined;
|
|
_id: string = undefined;
|
|
|
|
+ @ApiProperty({ description: '所属上级' })
|
|
|
|
+ 'pid': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '用户类型' })
|
|
|
|
+ 'type': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '邀请码' })
|
|
|
|
+ 'code': string = undefined;
|
|
@ApiProperty({ description: '账号' })
|
|
@ApiProperty({ description: '账号' })
|
|
'account': string = undefined;
|
|
'account': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '密码' })
|
|
|
|
+ 'password': string = undefined;
|
|
@ApiProperty({ description: '名称' })
|
|
@ApiProperty({ description: '名称' })
|
|
'name': string = undefined;
|
|
'name': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '手机号' })
|
|
|
|
+ 'phone': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '机构名称' })
|
|
|
|
+ 'dept_name': string = undefined;
|
|
@ApiProperty({ description: '角色' })
|
|
@ApiProperty({ description: '角色' })
|
|
'role': Array<any> = undefined;
|
|
'role': Array<any> = undefined;
|
|
}
|
|
}
|
|
|
|
|
|
-export class LoginVO extends FetchVO_admin {
|
|
|
|
- constructor(data: object) {
|
|
|
|
- super(data);
|
|
|
|
- }
|
|
|
|
- @ApiProperty({ description: '用户类型' })
|
|
|
|
- 'type': string = undefined;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
export class LoginDTO {
|
|
export class LoginDTO {
|
|
@ApiProperty({ description: '账号', example: 'test' })
|
|
@ApiProperty({ description: '账号', example: 'test' })
|
|
@Rule(RuleType['string']().empty(''))
|
|
@Rule(RuleType['string']().empty(''))
|