Documentation
¶
Index ¶
- Constants
- Variables
- func SetLogger(lg *log.Logger)
- type ApiWs
- type BaseModel
- type Config
- type JSONTime
- func (p *JSONTime) GobDecode(data []byte) error
- func (p JSONTime) GobEncode() ([]byte, error)
- func (p JSONTime) MarshalJSON() ([]byte, error)
- func (p *JSONTime) Scan(v interface{}) error
- func (p JSONTime) String() string
- func (p *JSONTime) UnmarshalJSON(data []byte) error
- func (p JSONTime) Value() (driver.Value, error)
- type LtOpener
- type OpenData
Constants ¶
View Source
const (
Custom = "2006-01-02 15:04:05"
)
Variables ¶
View Source
var ( ErrOpenCode = errors.New("开奖号码有误") ErrExists = errors.New("号码已存在") )
Functions ¶
Types ¶
type ApiWs ¶
type ApiWs struct {
// contains filtered or unexported fields
}
func (*ApiWs) SetHandler ¶
func (w *ApiWs) SetHandler(key string, value wslt.ClientBusinessHandler)
type JSONTime ¶
JSONTime ...
func (*JSONTime) UnmarshalJSON ¶
UnmarshalJSON ...
type OpenData ¶
type OpenData struct {
BaseModel `xorm:"extends"`
OtherData interface{} `json:"other_data" xorm:"-"`
LotName string `json:"lot_name" xorm:"-"`
LotNameCN string `json:"lot_name_cn" xorm:"-"`
Gid int64 `json:"gid" xorm:"notnull index comment(彩种ID)"`
//开奖期号
Issue string `json:"issue" xorm:"varchar(20) notnull index comment(开奖期号)"`
//开奖号码
OpenCode string `json:"open_code" xorm:"varchar(200) notnull comment(开奖号码)"`
//开奖时间
OpenTime JSONTime `json:"open_time" xorm:"notnull comment(开奖时间)"`
//开奖时间戳
OpenTimestamp int64 `json:"open_timestamp" xorm:"notnull comment(开奖时间戳)"`
//下期开奖期号
NextIssue string `json:"next_issue" xorm:"varchar(20) notnull comment(下期开奖期号)"`
NextOpenTime JSONTime `json:"next_open_time" xorm:"notnull comment(下期开奖时间)"`
NextOpenTimestamp int64 `json:"next_open_timestamp" xorm:"notnull comment(下期开奖时间戳)"`
FromSourceID int `json:"from_source_id" xorm:"notnull comment(采集源类型ID)"`
}
Click to show internal directories.
Click to hide internal directories.