|
@@ -24,8 +24,14 @@ export class FVO_chat {
|
|
|
'group': string = undefined;
|
|
|
@ApiProperty({ description: '医生' })
|
|
|
'doctor': string = undefined;
|
|
|
+ @ApiProperty({ description: '内容类型' })
|
|
|
+ 'type': string = undefined;
|
|
|
@ApiProperty({ description: '内容' })
|
|
|
'content': string = undefined;
|
|
|
+ @ApiProperty({ description: '音频' })
|
|
|
+ 'voice': number = undefined;
|
|
|
+ @ApiProperty({ description: '时间' })
|
|
|
+ 'time': number = undefined;
|
|
|
@ApiProperty({ description: '是否未读' })
|
|
|
'not_read': number = undefined;
|
|
|
}
|
|
@@ -33,7 +39,7 @@ export class FVO_chat {
|
|
|
export class QDTO_chat extends SearchBase {
|
|
|
constructor() {
|
|
|
const like_prop = [];
|
|
|
- const props = ['speaker', 'patient', 'group', 'doctor'];
|
|
|
+ const props = ['speaker', 'patient', 'group', 'doctor', 'type', 'time'];
|
|
|
const mapping = [];
|
|
|
super({ like_prop, props, mapping });
|
|
|
}
|
|
@@ -45,6 +51,10 @@ export class QDTO_chat extends SearchBase {
|
|
|
'group': string = undefined;
|
|
|
@ApiProperty({ description: '医生' })
|
|
|
'doctor': string = undefined;
|
|
|
+ @ApiProperty({ description: '内容类型' })
|
|
|
+ 'type': string = undefined;
|
|
|
+ @ApiProperty({ description: '时间' })
|
|
|
+ 'time': number = undefined;
|
|
|
}
|
|
|
|
|
|
export class QVO_chat extends FVO_chat {
|
|
@@ -70,9 +80,18 @@ export class CDTO_chat {
|
|
|
@ApiProperty({ description: '医生' })
|
|
|
@Rule(RuleType['string']().empty(''))
|
|
|
'doctor': string = undefined;
|
|
|
+ @ApiProperty({ description: '内容类型' })
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
+ 'type': string = undefined;
|
|
|
+ @ApiProperty({ description: '音频内容' })
|
|
|
+ @Rule(RuleType['number']().empty(''))
|
|
|
+ 'voice': number = undefined;
|
|
|
@ApiProperty({ description: '内容' })
|
|
|
@Rule(RuleType['string']().empty(''))
|
|
|
'content': string = undefined;
|
|
|
+ @ApiProperty({ description: '时间' })
|
|
|
+ @Rule(RuleType['number']().empty(''))
|
|
|
+ 'time': number = undefined;
|
|
|
@ApiProperty({ description: '是否未读' })
|
|
|
@Rule(RuleType['number']().empty(''))
|
|
|
'not_read': number = undefined;
|