order
This commit is contained in:
@@ -4,21 +4,48 @@ package model
|
||||
type BillIncome struct {
|
||||
ModelIDCUL
|
||||
|
||||
BillID int64 `orm:"bill_id" json:"billID"` //账单ID
|
||||
BillID int64 `orm:"bill_id" json:"billID"` //账单ID
|
||||
Type int `json:"type"` //收入类型
|
||||
IncomePrice int `json:"incomePrice"` //收入金额
|
||||
}
|
||||
|
||||
func (v *BillIncome) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"BillID"},
|
||||
[]string{"CreatedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
//账单支出表
|
||||
type BillExpend struct {
|
||||
ModelIDCUL
|
||||
|
||||
BillID int64 `orm:"bill_id" json:"billID"` //账单ID
|
||||
BillID int64 `orm:"bill_id" json:"billID"` //账单ID
|
||||
Type int `json:"type"` //支出类型
|
||||
ExpendPrice int `json:"expendPrice"` //支出金额
|
||||
}
|
||||
|
||||
func (v *BillExpend) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"BillID"},
|
||||
[]string{"CreatedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
//用户账单表
|
||||
type UserBill struct {
|
||||
ModelIDCUL
|
||||
|
||||
BillID int64 `orm:"bill_id" json:"billID"` //账单ID
|
||||
UserID string `orm:"user_id" json:"userID"` //用户ID
|
||||
BillID int64 `orm:"bill_id" json:"billID"` //账单ID
|
||||
UserID string `orm:"user_id" json:"userID"` //用户ID
|
||||
AccountBalance int `json:"accountBalance"` //账户余额
|
||||
}
|
||||
|
||||
func (v *UserBill) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"BillID"},
|
||||
[]string{"UserID"},
|
||||
[]string{"CreatedAt"},
|
||||
[]string{"AccountBalance"},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user