返回 AiToEarn
ai-image-data.interface.ts
根目录 / project / aitoearn-backend / libs / aitoearn-queue / src / interfaces / ai-image-data.interface.ts
1 import type { UserType } from '@yikart/common'
2 import type { AiLogChannel, AiLogType } from '@yikart/mongodb'
3
4 /**
5 * AI图片异步生成任务数据
6 */
7 export interface AiImageData {
8 /** 日志ID */
9 logId: string
10 /** 用户ID */
11 userId: string
12 /** 用户类型 */
13 userType: UserType
14 /** 模型名称 */
15 model: string
16 /** 渠道 */
17 channel?: AiLogChannel
18 /** 日志类型 */
19 type: AiLogType
20 /** 失败后的额外重试次数 */
21 retry?: number
22 /** 请求参数 */
23 request: unknown
24 /** 任务类型 */
25 taskType: 'generation' | 'edit'
26 }
27
27 lines TYPESCRIPT