feat: import services and standardize Go 1.26.5
This commit is contained in:
37
apps/finance/wallet/internal/models/wallet_apply_cash.go
Normal file
37
apps/finance/wallet/internal/models/wallet_apply_cash.go
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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"
|
||||
)
|
||||
|
||||
/*
|
||||
* WalletApplyCash
|
||||
* Comment: 提现信息表
|
||||
* Version: 10
|
||||
* Created: 2022-04-14 22:18:44 , Updated:0001-01-01 00:00:00
|
||||
*/
|
||||
type WalletApplyCash struct {
|
||||
gorm.Model
|
||||
types.Std_Identity
|
||||
types.Std_Passport
|
||||
WalletIdentity string `gorm:"column:wallet_identity;type:varchar(36);not null;" json:"wallet_identity"` // 钱包唯一码
|
||||
CashNo string `gorm:"column:cash_no;type:varchar(255);default:'';" json:"cash_no"` // 钱包内部交易流水号
|
||||
TradeNo string `gorm:"column:trade_no;type:varchar(255);default:'';" json:"trade_no"` // 第三方交易流水号
|
||||
Remark string `gorm:"column:remark;type:varchar(255);default:'';" json:"remark"` // 备注
|
||||
Amount int64 `gorm:"column:amount;default:0;" json:"amount"` // 提现金额,单位:分
|
||||
Channel int8 `gorm:"column:channel;default:0;" json:"channel"` // 提现方式 1:微信 2:支付宝 3:银行卡
|
||||
Status int8 `gorm:"column:status;default:0;" json:"status"` // 提现状态 -1:提现失败 0:待处理 1:提现成功
|
||||
CallBackMsg string `gorm:"column:call_back_msg;type:varchar(255);default:'';" json:"call_back_msg"` // 提现回调信息
|
||||
}
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&WalletApplyCash{})
|
||||
}
|
||||
|
||||
// TableName .
|
||||
func (table *WalletApplyCash) TableName() string {
|
||||
return "wallet_apply_cash" //对应数据库表名
|
||||
}
|
||||
Reference in New Issue
Block a user