mirror of
https://github.com/vastxie/99AI.git
synced 2026-04-24 11:14:29 +08:00
v4.3.0
This commit is contained in:
35
service/src/modules/chatLog/dto/queryAllChatLog.dto.ts
Normal file
35
service/src/modules/chatLog/dto/queryAllChatLog.dto.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsOptional } from 'class-validator';
|
||||
|
||||
export class QuerAllChatLogDto {
|
||||
@ApiProperty({ example: 1, description: '查询页数', required: false })
|
||||
@IsOptional()
|
||||
page: number;
|
||||
|
||||
@ApiProperty({ example: 10, description: '每页数量', required: false })
|
||||
@IsOptional()
|
||||
size: number;
|
||||
|
||||
@ApiProperty({ example: 99, description: '对话的用户id', required: false })
|
||||
@IsOptional()
|
||||
userId: number;
|
||||
|
||||
@ApiProperty({
|
||||
example: '您好',
|
||||
description: '用户询问的问题',
|
||||
required: false,
|
||||
})
|
||||
@IsOptional()
|
||||
prompt: string;
|
||||
|
||||
@ApiProperty({ example: 'user', description: '身份', required: false })
|
||||
role: string;
|
||||
|
||||
@ApiProperty({ example: '1', description: '类型', required: false })
|
||||
@IsOptional()
|
||||
type: string;
|
||||
|
||||
@ApiProperty({ example: 'gpt-4o-mini', description: '模型', required: false })
|
||||
@IsOptional()
|
||||
model: string;
|
||||
}
|
||||
Reference in New Issue
Block a user