|
@@ -23,7 +23,7 @@ export class FVO_achieveExpert {
|
|
|
@ApiProperty({ description: '专家姓名' })
|
|
|
'expert_name': string = undefined;
|
|
|
@ApiProperty({ description: '账号' })
|
|
|
- 'acount': string = undefined;
|
|
|
+ 'account': string = undefined;
|
|
|
@ApiProperty({ description: '密码' })
|
|
|
'password': string = undefined;
|
|
|
@ApiProperty({ description: '手机号' })
|
|
@@ -54,7 +54,7 @@ export class QDTO_achieveExpert extends SearchBase {
|
|
|
'role',
|
|
|
'expert_id',
|
|
|
'expert_name',
|
|
|
- 'acount',
|
|
|
+ 'account',
|
|
|
'phone',
|
|
|
'company',
|
|
|
'group_zw',
|
|
@@ -76,7 +76,7 @@ export class QDTO_achieveExpert extends SearchBase {
|
|
|
@ApiProperty({ description: '专家姓名' })
|
|
|
'expert_name': string = undefined;
|
|
|
@ApiProperty({ description: '账号' })
|
|
|
- 'acount': string = undefined;
|
|
|
+ 'account': string = undefined;
|
|
|
@ApiProperty({ description: '手机号' })
|
|
|
'phone': string = undefined;
|
|
|
@ApiProperty({ description: '工作单位' })
|
|
@@ -117,7 +117,7 @@ export class CDTO_achieveExpert {
|
|
|
'expert_name': string = undefined;
|
|
|
@ApiProperty({ description: '账号' })
|
|
|
@Rule(RuleType['string']().empty(''))
|
|
|
- 'acount': string = undefined;
|
|
|
+ 'account': string = undefined;
|
|
|
@ApiProperty({ description: '密码' })
|
|
|
@Rule(RuleType['string']().empty(''))
|
|
|
'password': string = undefined;
|
|
@@ -169,3 +169,54 @@ export class UVAO_achieveExpert extends FVO_achieveExpert {
|
|
|
dealVO(this, data);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+export class LoginVO {
|
|
|
+ constructor(data: object) {
|
|
|
+ for (const key of Object.keys(this)) {
|
|
|
+ this[key] = get(data, key);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @ApiProperty({ description: '数据id' })
|
|
|
+ _id: string = undefined;
|
|
|
+ @ApiProperty({ description: '用户类型' })
|
|
|
+ 'type': string = undefined;
|
|
|
+ @ApiProperty({ description: '角色' })
|
|
|
+ 'role': Array<any> = undefined;
|
|
|
+ @ApiProperty({ description: '专家id' })
|
|
|
+ 'expert_id': string = undefined;
|
|
|
+ @ApiProperty({ description: '专家姓名' })
|
|
|
+ 'expert_name': string = undefined;
|
|
|
+ @ApiProperty({ description: '账号' })
|
|
|
+ 'account': string = undefined;
|
|
|
+ @ApiProperty({ description: '手机号' })
|
|
|
+ 'phone': string = undefined;
|
|
|
+ @ApiProperty({ description: '工作单位' })
|
|
|
+ 'company': string = undefined;
|
|
|
+ @ApiProperty({ description: '评价专家组职务' })
|
|
|
+ 'group_zw': string = undefined;
|
|
|
+ @ApiProperty({ description: '所学专业' })
|
|
|
+ 'major': string = undefined;
|
|
|
+ @ApiProperty({ description: '现从事专业' })
|
|
|
+ 'on_major': string = undefined;
|
|
|
+ @ApiProperty({ description: '职务' })
|
|
|
+ 'zw': string = undefined;
|
|
|
+ @ApiProperty({ description: '职称' })
|
|
|
+ 'zc': string = undefined;
|
|
|
+ @ApiProperty({ description: '状态' })
|
|
|
+ 'status': string = undefined;
|
|
|
+}
|
|
|
+
|
|
|
+export class LoginDTO {
|
|
|
+ @ApiProperty({ description: '账号', example: 'test' })
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
+ 'account': string = undefined;
|
|
|
+ @ApiProperty({ description: '密码', example: '111111' })
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
+ 'password': string = undefined;
|
|
|
+}
|
|
|
+
|
|
|
+export class ResetPasswordDTO {
|
|
|
+ @ApiProperty({ description: '密码', example: '123456' })
|
|
|
+ @Rule(RuleType['string']().required())
|
|
|
+ 'password': string = undefined;
|
|
|
+}
|