game

package
v0.0.0-...-4bb85b7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OrderService = service.OrderService{}
View Source
var UserService = service.UserService{}

Functions

func Buy

func Buy(c *gin.Context)

func EditPwd

func EditPwd(c *gin.Context)

*

  • 更新密码

func GetOrderList

func GetOrderList(c *gin.Context)

func Index

func Index(c *gin.Context)

func Login

func Login(c *gin.Context)

*

  • 登陆

func Logout

func Logout(c *gin.Context)

func Register

func Register(c *gin.Context)

*

  • 注册

Types

type BuyData

type BuyData struct {
	Sq        string    `form:"sq" json:"sq"`
	OrderType int       `form:"order_type"  json:"order_type"`
	Pos       []int     `form:"pos" json:"pos"`
	Odds      []float32 `json:"odds" form:"odds"`
	Number    []string  `json:"number" form:"number"`
	Amount    float32   `json:"amount" form:"amount"`
}

type Editpwd

type Editpwd struct {
	OldPwd     string `json:"old_pwd" form:"old_pwd" binding:"required"`
	NewPwd     string `json:"new_pwd" form:"new_pwd" binding:"required"`
	ConfirmPwd string `json:"confirm_pwd" form:"confirm_pwd" binding:"required"`
}

type GameData

type GameData struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Content interface{} `json:"content"`
}

type LoginData

type LoginData struct {
	Id       int    `form:"id" json:"id"`
	Username string `form:"username" json:"username" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

Jump to

Keyboard shortcuts

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