forked from free-lancers/electricity_bill_calc_service
enhance(charge):完成用户服务延期功能的测试。
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user