Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountService *accountServiceProvide
View Source
var AdminService *adminServiceProvide
View Source
var BillService *billServiceProvide
View Source
var GymService *gymServiceProvide
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Phone string `bson:"_id"` Name string `bson:"Name"` Balance int `bson:"Balance"` // 余额 Recorded int `bson:"Recorded"` // 充值总金额 Active bool `bson:"Active"` // 用户是否在场 State bool `bson:"State"` // 身份:0.不可用 1.正常使用 Created time.Time `bson:"Created"` }
Account represents the account information.
type Bill ¶
type Bill struct { Id bson.ObjectId `bson:"_id"` Phone string `bson:"Phone"` // 用户 id Gid int `bson:"Gid"` // 场地 id State bool `bson:"State"` // true:完成 false:未完成 InAt time.Time `bson:"InAt"` // 入场时间 OutAt time.Time `bson:"OutAt"` // 出场时间 Duration int `bson:"Duration"` // 使用时长: min Price int `bson:"Price"` // 单价: ¥/h Consume int `bson:"Consume"` // 消费: ¥ }
Click to show internal directories.
Click to hide internal directories.