feat: 完善平台总后台模块
This commit is contained in:
17
backend/api/internal/models/fin_reconciliation.go
Normal file
17
backend/api/internal/models/fin_reconciliation.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"time"
|
||||
)
|
||||
|
||||
// FinReconciliation 对应 fin_reconciliation,保存渠道对账记录。
|
||||
type FinReconciliation struct {
|
||||
Entity
|
||||
Channel string `gorm:"column:channel;type:varchar(32);not null;index" json:"channel"`
|
||||
BillDate time.Time `gorm:"column:bill_date;type:date;not null" json:"bill_date"`
|
||||
DifferenceAmount int64 `gorm:"column:difference_amount;not null;default:0" json:"difference_amount"`
|
||||
}
|
||||
|
||||
func init() { database.AppendMigrate(&FinReconciliation{}) }
|
||||
func (table *FinReconciliation) TableName() string { return "fin_reconciliation" }
|
||||
Reference in New Issue
Block a user