This commit is contained in:
苏尹岚
2020-10-14 18:29:36 +08:00
parent 0ff054afed
commit 54438022ff
15 changed files with 223 additions and 113 deletions

View File

@@ -34,18 +34,23 @@ func (v *BillExpend) TableIndex() [][]string {
//用户账单表
type UserBill struct {
ModelIDCUL
ModelIDCULD
BillID int64 `orm:"column(bill_id)" json:"billID"` //账单ID
UserID string `orm:"column(user_id)" json:"userID"` //用户ID
AccountBalance int `json:"accountBalance"` //账户余额
DepositBalance int `json:"DepositBalance"` //保证金余额
DepositBalance int `json:"depositBalance"` //保证金余额
}
func (v *UserBill) TableUnique() [][]string {
return [][]string{
[]string{"UserID"},
}
}
func (v *UserBill) TableIndex() [][]string {
return [][]string{
[]string{"BillID"},
[]string{"UserID"},
[]string{"CreatedAt"},
[]string{"AccountBalance"},
}