Skip to content

类型: LotteryLog ​

属性 ​

created_at ​

• created_at: number

创建时间

act-hooks/types.ts


created_by ​

• created_by: number

抽奖记录的所有者,创建时先分配一个默认用户,发奖完毕再更新为对应的用户

act-hooks/types.ts


id ​

• id: string

抽奖记录 ID

act-hooks/types.ts


is_lucky ​

• is_lucky: boolean

是否中奖

act-hooks/types.ts


lottery_chance_id ​

• lottery_chance_id: string

表示该抽奖记录的“来处”,并起到唯一索引的作用

act-hooks/types.ts


notification_sent ​

• notification_sent: boolean

是否已发送订阅消息

act-hooks/types.ts


preset_created_by ​

• preset_created_by: number

未执行发奖前标记该抽奖记录的所有者,防止用户提前查询到抽奖记录,发奖完毕再写入 created_by

act-hooks/types.ts


prize_bundle ​

• Optional prize_bundle: Prize

奖品组合快照

act-hooks/types.ts


prize_bundle_id ​

• Optional prize_bundle_id: string

奖品组合 ID

act-hooks/types.ts


prize_log_ids ​

• Optional prize_log_ids: string[]

奖品记录 ID,兼容一次抽奖多个奖品的情况

act-hooks/types.ts


prize_logs ​

• Optional prize_logs: PrizeLog[]

奖品记录快照,与 prize_log_ids 顺序一一对应

act-hooks/types.ts


stage_id ​

• stage_id: string

该场次的 id

act-hooks/types.ts


updated_at ​

• updated_at: number

更新时间

act-hooks/types.ts


userinfo_snapshot ​

• Optional userinfo_snapshot: object

抽奖时用户的工会会员信息快照

act-hooks/types.ts