Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • App
    • EnrollLottery

Index

Constructors

constructor

Properties

Protected _eventEmitter

_eventEmitter: EventEmitter

app 事件总线

Protected name

name: string = 'App'

互动功能名称。 用于公共方法中区分不同的互动功能。

sign

sign: string

socketIOEvents

socketIOEvents: typeof SocketIOEvents = ...

socket.io 原生事件名称

Accessors

Protected channelInfo

Protected chatInfo

  • 聊天室实例和数据。

    Returns ChatInfo

Protected isTransmitChannel

  • get isTransmitChannel(): boolean
  • 是否为转播主频道

    Returns boolean

Protected socketIOEventsHandlers

Methods

bindSocketIOEvents

  • bindSocketIOEvents(): void
  • 绑定 socket.io 原生事件,

    Returns void

cancelLottery

  • cancelLottery(cancelLotteryParams: { lottery: string }): Promise<unknown>
  • 取消抽奖

    Parameters

    • cancelLotteryParams: { lottery: string }

      取消抽奖参数

      • lottery: string

    Returns Promise<unknown>

deleteRecord

  • deleteRecord(deleteRecordParams: { lotteryId: string }): Promise<unknown>
  • 删除抽奖记录

    Parameters

    • deleteRecordParams: { lotteryId: string }

      删除抽奖记录参数

      • lotteryId: string

    Returns Promise<unknown>

downNameListDownload

  • downNameListDownload(lotteryId: string, currentNameListType: string): Promise<void>
  • 下载报名名单/本地名单 Url lotteryId 抽奖id currentNameListType 名单类型

    Parameters

    • lotteryId: string
    • currentNameListType: string

    Returns Promise<void>

Protected download

  • 下载文件。

    Parameters

    Returns Promise<void>

downloadTemplate

  • downloadTemplate(): Promise<void>
  • 下载本地名单模板

    Returns Promise<void>

downloadWinnerList

  • downloadWinnerList(lotteryId: string): Promise<void>
  • 下载中奖名单 lotteryId 抽奖id

    Parameters

    • lotteryId: string

    Returns Promise<void>

Protected formatApiUrl

  • formatApiUrl(path: string): string
  • 返回完整的 url 地址(api 域名相关)

    Parameters

    • path: string

      以 / 开头的相对路径

    Returns string

Protected formatChatUrl

  • formatChatUrl(path: string): string
  • 返回完整的 url 地址(chat 域名相关)

    Parameters

    • path: string

      以 / 开头的相对路径

    Returns string

Protected formatLiveUrl

  • formatLiveUrl(url: string): string
  • 返回完整的 url 地址(live 域名相关)

    Parameters

    • url: string

      以 / 开头的相对路径

    Returns string

getLotteryList

  • getLotteryList(params: { pageNumberNumber: number; type: string }): Promise<unknown>
  • 获取抽奖记录

    Parameters

    • params: { pageNumberNumber: number; type: string }

      获取抽奖记录参数

      • pageNumberNumber: number
      • type: string

    Returns Promise<unknown>

getRecordList

  • getRecordList(getRecordListParams: recordListParams): Promise<unknown>
  • 报名名单

    Parameters

    • getRecordListParams: recordListParams

    Returns Promise<unknown>

getWinnerList

  • getWinnerList(winnerParams: winnerParams): Promise<unknown>
  • 获取中奖名单

    Parameters

    • winnerParams: winnerParams

      获取中奖列表参数

    Returns Promise<unknown>

Protected handleChatSingnaling

  • handleChatSingnaling(msg: { EVENT: string }): void
  • 处理聊天室事件。 监听到聊天室事件后将消息内容传入该方法。

    Parameters

    • msg: { EVENT: string }

      聊天室消息内容。

      • EVENT: string

    Returns void

handleEndLotteryForSignUp

  • handleEndLotteryForSignUp(msg: EnrollLotteryStatus): void
  • 抽奖结束

    Parameters

    • msg: EnrollLotteryStatus

    Returns void

handleStartLotteryForSignUp

  • handleStartLotteryForSignUp(msg: EnrollLotteryStatus): void
  • 抽奖开始

    Parameters

    • msg: EnrollLotteryStatus

    Returns void

handleUpdateLotteryDetail

  • handleUpdateLotteryDetail(msg: { EVENT: string; lotteryId?: string }): void
  • 更新抽奖信息

    Parameters

    • msg: { EVENT: string; lotteryId?: string }
      • EVENT: string
      • Optional lotteryId?: string

    Returns void

off

on

saveInfo

  • saveInfo(createEnrollLotteryParams: createEnrollLotteryParams): Promise<unknown>
  • 保存抽奖信息

    Parameters

    • createEnrollLotteryParams: createEnrollLotteryParams

    Returns Promise<unknown>

Protected sendSocket

  • 发送聊天室消息。

    Parameters

    Returns Promise<SocketCallbackParams>

startLottery

  • startLottery(startLotteryParams: { lotteryId: string }): Promise<unknown>
  • 立即开奖

    Parameters

    • startLotteryParams: { lotteryId: string }
      • lotteryId: string

        抽奖id

    Returns Promise<unknown>

Protected trigger

uploadLocalList

  • uploadLocalList(): Promise<unknown>
  • 上传本地名单

    Returns Promise<unknown>

Generated using TypeDoc