| 1 | import { createZodDto, PaginationDtoSchema, UserType } from '@yikart/common' |
| 2 | import { z } from 'zod' |
| 3 | |
| 4 | // Internal log list query DTO (used by ai-client) |
| 5 | const internalLogListQuerySchema = z.object({ |
| 6 | userId: z.string().optional().describe('用户 ID'), |
| 7 | userType: z.enum(UserType).optional().describe('用户类型'), |
| 8 | ...PaginationDtoSchema.shape, |
| 9 | }) |
| 10 | |
| 11 | export class InternalLogListQueryDto extends createZodDto(internalLogListQuerySchema, 'InternalLogListQueryDto') {} |
| 12 | |
| 13 | // Internal log detail query DTO (used by ai-client) |
| 14 | const internalLogDetailQuerySchema = z.object({ |
| 15 | id: z.string().describe('日志 ID'), |
| 16 | userId: z.string().optional().describe('用户 ID'), |
| 17 | userType: z.enum(UserType).optional().describe('用户类型'), |
| 18 | }) |
| 19 | |
| 20 | export class InternalLogDetailQueryDto extends createZodDto(internalLogDetailQuerySchema, 'InternalLogDetailQueryDto') {} |
| 21 |