|
@@ -158,3 +158,56 @@ export class UVAO_train extends FVO_train {
|
|
|
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: '房间号' })
|
|
|
+ 'room_id': string = undefined;
|
|
|
+ @ApiProperty({ description: '用户类型' })
|
|
|
+ 'type': string = undefined;
|
|
|
+ @ApiProperty({ description: '密码' })
|
|
|
+ 'password': string = undefined;
|
|
|
+ @ApiProperty({ description: '标题' })
|
|
|
+ 'title': string = undefined;
|
|
|
+ @ApiProperty({ description: '开始时间' })
|
|
|
+ 'start_time': string = undefined;
|
|
|
+ @ApiProperty({ description: '结束时间' })
|
|
|
+ 'end_time': string = undefined;
|
|
|
+ @ApiProperty({ description: '省份' })
|
|
|
+ 'province': string = undefined;
|
|
|
+ @ApiProperty({ description: '市区' })
|
|
|
+ 'city': string = undefined;
|
|
|
+ @ApiProperty({ description: '负责人' })
|
|
|
+ 'contact': string = undefined;
|
|
|
+ @ApiProperty({ description: '手机号' })
|
|
|
+ 'phone': string = undefined;
|
|
|
+ @ApiProperty({ description: '主办方' })
|
|
|
+ 'sponsor': string = undefined;
|
|
|
+ @ApiProperty({ description: '承办方' })
|
|
|
+ 'organizer': string = undefined;
|
|
|
+ @ApiProperty({ description: '信息简介' })
|
|
|
+ 'brief': string = undefined;
|
|
|
+ @ApiProperty({ description: '状态' })
|
|
|
+ 'status': string = undefined;
|
|
|
+}
|
|
|
+
|
|
|
+export class LoginDTO {
|
|
|
+ @ApiProperty({ description: '房间号', example: '3001' })
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
+ 'room_id': 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;
|
|
|
+}
|