refactor: reorganize modules and add Linux build tooling
This commit is contained in:
34
module/finance/wallet/internal/models/wallet_refund.go
Normal file
34
module/finance/wallet/internal/models/wallet_refund.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"git.apinb.com/bsm-sdk/core/types"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
/*
|
||||
* WalletRefund
|
||||
* Comment: 退款记录表
|
||||
* Version: 10
|
||||
* Created: 2022-04-14 22:24:38 , Updated:0001-01-01 00:00:00
|
||||
*/
|
||||
type WalletRefund struct {
|
||||
gorm.Model
|
||||
types.Std_Identity
|
||||
types.Std_Passport
|
||||
WalletIdentity string `gorm:"column:wallet_identity;type:varchar(36);not null;" json:"wallet_identity"` // 钱包唯一码
|
||||
OrderIdentity string `gorm:"column:order_identity;type:varchar(64);not null;" json:"order_identity"` // 订单唯一码
|
||||
Reason string `gorm:"column:reason;type:text;default:'';" json:"reason"` // 退款理由
|
||||
OrderInfo string `gorm:"column:order_info;type:text;default:'';" json:"order_info"` // 订单信息
|
||||
Result string `gorm:"column:result;type:text;default:'';" json:"result"` // 处理结果
|
||||
}
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&WalletRefund{})
|
||||
}
|
||||
|
||||
// TableName .
|
||||
func (table *WalletRefund) TableName() string {
|
||||
return "wallet_refund" //对应数据库表名
|
||||
}
|
||||
Reference in New Issue
Block a user