model

package
v0.0.0-...-593c55d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LtTypePk10
	LtTypeSsc
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	ID      int64          `json:"id,omitempty"`
	Created utils.JSONTime `json:"created,omitempty"`
	Updated utils.JSONTime `json:"updated,omitempty"`
	Version int64          `json:"version,omitempty"`
}

type CaptchaObj

type CaptchaObj struct {
	CapKey  string `json:"cap_key,omitempty"`
	Captcha string `json:"captcha,omitempty"`
}

type FlyRecords

type FlyRecords struct {
	BaseModel `xorm:"extends"`
	OrderID   string `json:"order_id"`
	Result    bool   `json:"result" xorm:"notnull index"`
}

飞单记录表

type FlyRoomAccount

type FlyRoomAccount struct {
	UserName    string   `json:"user_name" xorm:"notnull varchar(20) index"`
	Password    string   `json:"password"`
	Balance     float64  `json:"balance"`
	UriHostList []string `json:"uri_host_list" xorm:"notnull text json"`
}

type FlyRoomSetting

type FlyRoomSetting struct {
	BaseModel      `xorm:"extends"`
	FlyRoomAccount `xorm:"extends"`
	RoomID         int64   `json:"room_id" xorm:"notnull unique"`
	TypeID         int64   `json:"type_id" xorm:"notnull index"`
	FlyGidList     []int64 `json:"fly_gid_list" xorm:"notnull"`
}

type FlySplitRecords

type FlySplitRecords struct {
	BaseModel `xorm:"extends"`
	Gid       int64  `json:"gid" xorm:"notnull index"`
	RoomID    int64  `json:"room_id" xorm:"notnull index"`
	Issue     string `json:"issue" xorm:"varchar(20) notnull index"`
	BetMoney  int64  `json:"bet_money" xorm:"notnull"`
	PlayName  string `json:"play_name" xorm:"varchar(20) notnull index"`
	Content   string `json:"content" xorm:"varchar(300) notnull"`
	//-1=>待飞单,1=>成功,2=>失败
	StatusCode int `json:"status_code" xorm:"notnull index"`
}

func (*FlySplitRecords) GetBetContents

func (m *FlySplitRecords) GetBetContents() string

func (*FlySplitRecords) GetBetMoney

func (m *FlySplitRecords) GetBetMoney() int64

func (*FlySplitRecords) GetGid

func (m *FlySplitRecords) GetGid() int64

func (*FlySplitRecords) GetIssue

func (m *FlySplitRecords) GetIssue() string

func (*FlySplitRecords) GetPlayName

func (m *FlySplitRecords) GetPlayName() string

type FlySysTypes

type FlySysTypes struct {
	BaseModel `xorm:"extends"`
	Type      string `json:"type" xorm:"varchar(20) notnull unique"`
	Enable    bool   `json:"enable" xorm:"notnull index"`
}

type GameLotteries

type GameLotteries struct {
	BaseModel
	Gid                int64  `json:"gid"`
	TypeID             int    `json:"type_id"`
	TypeName           string `json:"type_name"`
	Name               string `json:"name"`
	NameCN             string `json:"name_cn"`
	Enable             bool   `json:"enable"`
	IsSys              bool   `json:"is_sys"`
	NormalRemainSecond int64  `json:"normal_remain_second"`
	NormalBetBeforeMt  int64  `json:"normal_bet_before_mt"`
	Icon               string `json:"icon"`
	VideoURL           string `json:"video_url"`
	IssueAddOne        bool   `json:"issue_add_one"`
}

func (*GameLotteries) GetTypeIDByGid

func (m *GameLotteries) GetTypeIDByGid(gid int64) (tp int, err error)

type LoginInstanceProcessor

type LoginInstanceProcessor interface {
	OrderAction(orderBean *FlySplitRecords) (err error)
	LoginPost() (err error)
	KeepAlive()
	GetBalance() (bl float64, err error)
	SetWebSocket(process WsProcess)
}

type Users

type Users struct {
	BaseModel
	UserName string `json:"user_name"`
	Nick     string `json:"nick"`
	RCode    string `json:"r_code"`
	Password string `json:"password,omitempty"`
	RoleID   int    `json:"role_id"`
	RoleName string `json:"role_name,omitempty"`
	RoomID   int64  `json:"room_id,omitempty"`
	Wx       string `json:"wx"`
	Phone    string `json:"phone,omitempty"`
	Ico      string `json:"ico,omitempty"`
	Enable   bool   `json:"enable"`
	Comment  string `json:"comment,omitempty"`
	UpID     int64  `json:"up_id,omitempty"`
	Ups      string `json:"ups,omitempty"`
	PathID   string `json:"path_id"`
	IsDy     bool   `json:"is_dy"`
	NoTalk   bool   `json:"no_talk"`
	CaptchaObj
}

type VFlyRoomSetting

type VFlyRoomSetting struct {
	FlyRoomSetting `xorm:"extends"`
	RoomName       string                 `json:"room_name"`
	RoomOwnerID    int64                  `json:"room_owner_id"`
	Type           string                 `json:"type"`
	LoginInstance  LoginInstanceProcessor `json:"-"`
	WsProcess      `json:"-"`
}

func (*VFlyRoomSetting) GetPassword

func (m *VFlyRoomSetting) GetPassword() string

func (*VFlyRoomSetting) GetUriList

func (m *VFlyRoomSetting) GetUriList() []string

func (*VFlyRoomSetting) GetUserName

func (m *VFlyRoomSetting) GetUserName() string

func (*VFlyRoomSetting) SetAccount

func (m *VFlyRoomSetting) SetAccount(balance float64)

type WsProcess

type WsProcess interface {
	SendMsg(typeName string, msg interface{})
	IsClosed() bool
}

type WsSendJSON

type WsSendJSON struct {
	Type         string      `json:"type,omitempty"`
	Code         int         `json:"code,omitempty"`
	CodeText     string      `json:"code_text,omitempty"`
	FromUser     *Users      `json:"from_user,omitempty"`
	FromUserName string      `json:"-"`
	ToUserName   string      `json:"to_user_name,omitempty"`
	RoomID       int64       `json:"room_id,omitempty"`
	Gid          int64       `json:"gid,omitempty"`
	Message      interface{} `json:"message"`
}

func NewWsSend

func NewWsSend(typeStr string, code int, msg interface{}) *WsSendJSON

Jump to

Keyboard shortcuts

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