一个余额

This commit is contained in:
苏尹岚
2020-10-19 10:38:39 +08:00
parent 793669a976
commit 5a95250bcd
4 changed files with 30 additions and 23 deletions

View File

@@ -1,5 +1,13 @@
package model
const (
BillTypeDeposit = 1 //发布任务
BillTypeJob = 2 //做任务实得
BillTypeMember = 3 //开通会员
BillTypeJobCancelOverdue = 4 //任务过期或取消
BillTypeJobAuditUnPassWithCancelOverdue = 5 //任务不通过时,任务已取消或过期
)
//账单收入表
type BillIncome struct {
ModelIDCUL
@@ -39,7 +47,6 @@ type UserBill struct {
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"` //保证金余额
}
func (v *UserBill) TableUnique() [][]string {

View File

@@ -33,8 +33,8 @@ const (
OrderTypeSupplyGoods = 2 //进货订单
OrderTypeDefendPrice = 3 //守价订单
OrderTypeDeposit = 1 //保证金
OrderTypeJob = 2 //任务金
OrderTypeAccount = 1 //任务保证金
OrderTypeMember = 2 //开通会员
)
var (