enhance(charge):完成用户服务延期功能的测试。

This commit is contained in:
徐涛
2022-08-15 16:56:56 +08:00
parent f033691aa4
commit 224ae9b07d
4 changed files with 62 additions and 16 deletions

View File

@@ -8,7 +8,7 @@ import (
type UserCharge struct {
Created `xorm:"extends"`
Seq int64 `xorm:"bigint pk not null autoincr" json:"seq"`
Seq int64 `xorm:"bigint pk not null" json:"seq"`
UserId string `xorm:"varchar(120) not null" json:"userId"`
Fee decimal.NullDecimal `xorm:"numeric(12,2)" json:"fee"`
Discount decimal.NullDecimal `xorm:"numeric(5,4)" json:"discount"`
@@ -32,5 +32,5 @@ type ChargeWithName struct {
}
func (ChargeWithName) TableName() string {
return "user_charge"
return "user_detail"
}