service

package
v0.0.0-...-6310200 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BingoCheck

func BingoCheck(prizeInfo model.Prize, dataList []model.NumSaveData) (result []model.NumSaveData, err error)

BingoCheck 中奖计算

func GenLastHtml

func GenLastHtml(lastNum model.Prize) string

func GenNumberHtml

func GenNumberHtml(numModel []model.GenNum) string

GenNumberHtml 生成随机号码

func GetNewPrize

func GetNewPrize() (model.Prize, error)

GetNewPrize 获取本期开奖号码

func GetNextNum

func GetNextNum() int

GetNextNum 获取下一期期号

func GetPage

func GetPage(count int, uid string) string

GetPage 获取页面

func GetPrizeInformation

func GetPrizeInformation() []model.PrizeInformation

GetPrizeInformation 获取开奖信息

func Notice2User

func Notice2User()

Notice2User 通知用户

func NoticePage

func NoticePage(data model.NumSaveData) string

NoticePage 制作中奖通知页面

func NoticeUserList

func NoticeUserList(num string) (saveData []model.NumSaveData)

NoticeUserList 获取需要通知的用户列表

Types

type SSQHistoryResult

type SSQHistoryResult struct {
	State     int    `json:"state"`
	Message   string `json:"message"`
	PageCount int    `json:"pageCount"`
	CountNum  int    `json:"countNum"`
	Tflag     int    `json:"Tflag"`
	Result    []struct {
		Name        string `json:"name"`
		Code        string `json:"code"`
		DetailsLink string `json:"detailsLink"`
		VideoLink   string `json:"videoLink"`
		Date        string `json:"date"`
		Week        string `json:"week"`
		Red         string `json:"red"`
		Blue        string `json:"blue"`
		Blue2       string `json:"blue2"`
		Sales       string `json:"sales"`
		Poolmoney   string `json:"poolmoney"`
		Content     string `json:"content"`
		Addmoney    string `json:"addmoney"`
		Addmoney2   string `json:"addmoney2"`
		Msg         string `json:"msg"`
		Z2Add       string `json:"z2add"`
		M2Add       string `json:"m2add"`
		Prizegrades []struct {
			Type      int    `json:"type"`
			Typenum   string `json:"typenum"`
			Typemoney string `json:"typemoney"`
		} `json:"prizegrades"`
	} `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL