返回 AiToEarn
assets-http.options.ts
根目录 / project / aitoearn-backend / libs / assets / src / http / assets-http.options.ts
1 import type { AssetsConfig } from '../assets.config'
2 import { UserType } from '@yikart/common'
3
4 export const ASSETS_HTTP_OPTIONS = Symbol('ASSETS_HTTP_OPTIONS')
5
6 export interface AssetsHttpModuleOptions {
7 assetsConfig: AssetsConfig
8 userType?: UserType
9 enableScheduler?: boolean
10 }
11
12 export class AssetsRedlockKey {
13 static AssetsPendingCheck = 'scheduler:assets-pending-check'
14 static AssetsExpiredCleanup = 'scheduler:assets-expired-cleanup'
15 static AssetsR2EventsProcess = 'scheduler:assets-r2-events-process'
16 }
17
17 lines TYPESCRIPT