conn

package
v0.0.0-...-160c400 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LotteryClient

type LotteryClient struct {
}

func NewLotteryClient

func NewLotteryClient() *LotteryClient

func (*LotteryClient) GetSupperLotto

func (c *LotteryClient) GetSupperLotto(ctx context.Context, period string) string

func (*LotteryClient) GetTwoToneSphere

func (c *LotteryClient) GetTwoToneSphere(ctx context.Context, period string) string

type NirvanaDB

type NirvanaDB *gorm.DB

func NewNirvanaDB

func NewNirvanaDB(conf *config.Config) (NirvanaDB, func())

type SSQResponse

type SSQResponse struct {
	State   int    `json:"state"`
	Message string `json:"message"`
	Result  []struct {
		Name        string `json:"name"`
		Code        string `json:"code"`
		Date        string `json:"date"`
		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"`
		DetailsLink string `json:"detailsLink"`
		VideoLink   string `json:"videoLink"`
		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"`
}

type SupperLottoReq

type SupperLottoReq struct {
	ClientSource int `json:"ClientSource"`
	Param        struct {
		GameCode     string `json:"GameCode"`
		IssuseNumber string `json:"IssuseNumber"`
	} `json:"Param"`
	Date  int64  `json:"Date"`
	Token string `json:"Token"`
	Sign  string `json:"Sign"`
}

type SupperLottoResponse

type SupperLottoResponse struct {
	Date     string `json:"Date"`
	Token    string `json:"Token"`
	Code     int    `json:"Code"`
	GoAction int    `json:"GoAction"`
	Message  string `json:"Message"`
	Value    struct {
		BonusPoolList []struct {
			BonusIndex     int    `json:"BonusIndex"`
			CurrentSales   int    `json:"CurrentSales"`
			IssuseNumber   string `json:"IssuseNumber"`
			PrizeName      string `json:"PrizeName"`
			SingleWinBonus int    `json:"SingleWinBonus"`
			TotalBonusPool int    `json:"TotalBonusPool"`
			WinCount       int    `json:"WinCount"`
			WinNumber      string `json:"WinNumber"`
			StrPrizeDate   string `json:"StrPrizeDate"`
			CreateTime     string `json:"CreateTime"`
			WinConditions  string `json:"WinConditions"`
		} `json:"BonusPoolList"`
		MasterArticleList []struct {
			ArticleID    string  `json:"ArticleId"`
			ArticleTitle string  `json:"ArticleTitle"`
			Price        float64 `json:"Price"`
		} `json:"MasterArticleList"`
		ProficientSchemeList []struct {
			KeepBonusCount     int     `json:"KeepBonusCount"`
			MaxBonusCount      int     `json:"MaxBonusCount"`
			New10HitCount      int     `json:"New10HitCount"`
			SupportCount       int     `json:"SupportCount"`
			UserHeadURL        string  `json:"UserHeadUrl"`
			UserID             string  `json:"UserId"`
			UserName           string  `json:"UserName"`
			OrderID            string  `json:"OrderId"`
			OrderIndex         int     `json:"OrderIndex"`
			SchemePrice        float64 `json:"SchemePrice"`
			SchemeTitle        string  `json:"SchemeTitle"`
			EndTime            string  `json:"EndTime"`
			NewPublishGameCode string  `json:"NewPublishGameCode"`
		} `json:"ProficientSchemeList"`
		GameIssuseList []struct {
			IssuseNumber string `json:"IssuseNumber"`
		} `json:"GameIssuseList"`
		NextIssuseInfo struct {
			IssuseNumber string `json:"IssuseNumber"`
			StopTime     string `json:"StopTime"`
		} `json:"NextIssuseInfo"`
		PreIssuseInfo struct {
			AwardTime      string `json:"AwardTime"`
			StrPrizeDate   string `json:"StrPrizeDate"`
			CurrentSales   int    `json:"CurrentSales"`
			TotalBonusPool int    `json:"TotalBonusPool"`
			IssuseNumber   string `json:"IssuseNumber"`
			WinNumber      string `json:"WinNumber"`
		} `json:"PreIssuseInfo"`
	} `json:"Value"`
}

Jump to

Keyboard shortcuts

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