Options
All
  • Public
  • Public/Protected
  • All
Menu

Module service/lottery

Index

Type aliases

LotteryBSPlayer

LotteryBSPlayer: { headimgurl: string; nickname: string; openid: string }

Type declaration

  • headimgurl: string
  • nickname: string
  • openid: string

LotteryBSRecords

LotteryBSRecords: { id: string; userInfo: LotteryBSPlayer }[]

抽奖结果

Functions

BatchBingo

  • BatchBingo(id: string, prizeId: string, count: number): Promise<{ code: number; records: LotteryBSRecords }>
  • 大屏抽奖 进行抽奖

    Parameters

    • id: string
    • prizeId: string
    • count: number

    Returns Promise<{ code: number; records: LotteryBSRecords }>

BatchConsume

  • BatchConsume(id: string, consumed: string[], expired?: string[]): Promise<{ code: ReturnCode }>
  • 大屏抽奖核销

    Parameters

    • id: string
    • consumed: string[]
    • Optional expired: string[]

    Returns Promise<{ code: ReturnCode }>

GetBigScreenLotteryChance

  • GetBigScreenLotteryChance(id: string): Promise<{ code: number; token?: string }>
  • 大屏抽奖 抽奖机会查询

    Parameters

    • id: string

    Returns Promise<{ code: number; token?: string }>

GetLotteryTargets

  • GetLotteryTargets(id: string, prizeId: string): Promise<{ code: number; records: LotteryBSPlayer[] }>
  • 获取大屏抽奖对象

    Parameters

    • id: string
    • prizeId: string

    Returns Promise<{ code: number; records: LotteryBSPlayer[] }>

JoinLottery

  • JoinLottery(id: string): Promise<{ code: number }>
  • 大屏抽奖 加入抽奖

    Parameters

    • id: string

    Returns Promise<{ code: number }>

Generated using TypeDoc