|
@@ -15,11 +15,17 @@ export class FVO_opinion {
|
|
@ApiProperty({ description: '数据id' })
|
|
@ApiProperty({ description: '数据id' })
|
|
_id: string = undefined;
|
|
_id: string = undefined;
|
|
@ApiProperty({ description: '用户id' })
|
|
@ApiProperty({ description: '用户id' })
|
|
- 'student': string = undefined;
|
|
|
|
|
|
+ 'user': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '用户类型' })
|
|
|
|
+ 'userType': string = undefined;
|
|
@ApiProperty({ description: '问题类型' })
|
|
@ApiProperty({ description: '问题类型' })
|
|
'type': string = undefined;
|
|
'type': string = undefined;
|
|
@ApiProperty({ description: '问题描述' })
|
|
@ApiProperty({ description: '问题描述' })
|
|
'brief': string = undefined;
|
|
'brief': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '时间' })
|
|
|
|
+ 'time': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '状态' })
|
|
|
|
+ 'status': string = undefined;
|
|
@ApiProperty({ description: '图片' })
|
|
@ApiProperty({ description: '图片' })
|
|
'file': Array<any> = undefined;
|
|
'file': Array<any> = undefined;
|
|
}
|
|
}
|
|
@@ -27,10 +33,12 @@ export class FVO_opinion {
|
|
export class QDTO_opinion extends SearchBase {
|
|
export class QDTO_opinion extends SearchBase {
|
|
constructor() {
|
|
constructor() {
|
|
const like_prop = [];
|
|
const like_prop = [];
|
|
- const props = [];
|
|
|
|
|
|
+ const props = ['userType'];
|
|
const mapping = [];
|
|
const mapping = [];
|
|
super({ like_prop, props, mapping });
|
|
super({ like_prop, props, mapping });
|
|
}
|
|
}
|
|
|
|
+ @ApiProperty({ description: '用户类型' })
|
|
|
|
+ 'userType': string = undefined;
|
|
}
|
|
}
|
|
|
|
|
|
export class QVO_opinion extends FVO_opinion {
|
|
export class QVO_opinion extends FVO_opinion {
|
|
@@ -43,13 +51,22 @@ export class QVO_opinion extends FVO_opinion {
|
|
export class CDTO_opinion {
|
|
export class CDTO_opinion {
|
|
@ApiProperty({ description: '用户id' })
|
|
@ApiProperty({ description: '用户id' })
|
|
@Rule(RuleType['string']().empty(''))
|
|
@Rule(RuleType['string']().empty(''))
|
|
- 'student': string = undefined;
|
|
|
|
|
|
+ 'user': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '用户类型' })
|
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
|
+ 'userType': string = undefined;
|
|
@ApiProperty({ description: '问题类型' })
|
|
@ApiProperty({ description: '问题类型' })
|
|
@Rule(RuleType['string']().empty(''))
|
|
@Rule(RuleType['string']().empty(''))
|
|
'type': string = undefined;
|
|
'type': string = undefined;
|
|
@ApiProperty({ description: '问题描述' })
|
|
@ApiProperty({ description: '问题描述' })
|
|
@Rule(RuleType['string']().empty(''))
|
|
@Rule(RuleType['string']().empty(''))
|
|
'brief': string = undefined;
|
|
'brief': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '时间' })
|
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
|
+ 'time': string = undefined;
|
|
|
|
+ @ApiProperty({ description: '状态' })
|
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
|
+ 'status': string = undefined;
|
|
@ApiProperty({ description: '图片' })
|
|
@ApiProperty({ description: '图片' })
|
|
@Rule(RuleType['array']().empty(''))
|
|
@Rule(RuleType['array']().empty(''))
|
|
'file': Array<any> = undefined;
|
|
'file': Array<any> = undefined;
|