asset_rw_callback_log.go 1.5 KB

1234567891011121314151617181920212223242526272829
  1. package entity
  2. type AssetRwCallbackLog struct {
  3. MysqlBaseModel
  4. Currency string `json:"currency,omitempty" gorm:"type:VARCHAR(20);comment:币种缩写"`
  5. Amount string `json:"amount,omitempty" gorm:"type:VARCHAR(50);comment:金额"`
  6. OrderId string `json:"orderId,omitempty" gorm:"type:VARCHAR(50);unique;comment:订单ID-唯一"`
  7. OpenId string `json:"openId,omitempty" gorm:"type:VARCHAR(50);comment:openId"`
  8. CreateTime int64 `json:"createTime,omitempty" gorm:"type:VARCHAR(20);comment:时间戳"`
  9. Type string `json:"type,omitempty" gorm:"type:VARCHAR(20);comment:类型 user_to_application:充值 application_to_user:提现"`
  10. AppId string `json:"appId,omitempty" gorm:"type:VARCHAR(50);comment:应用ID"`
  11. CustomParam string `json:"customParam" gorm:"type:VARCHAR(100);comment:透传信息"`
  12. Sign string `json:"sign,omitempty" gorm:"type:VARCHAR(100);comment:签名信息"`
  13. State int32 `json:"state" gorm:"type:tinyint;default:0;comment:处理状态 0-待处理 1-成功 2-失败"`
  14. ErrDesc string `json:"errDesc" gorm:"type:VARCHAR(255);comment:错误信息"`
  15. Status int `json:"status" gorm:"comment:充值、提现回调状态码 0 / 1 成功 2 失败"`
  16. }
  17. func (*AssetRwCallbackLog) TableName() string {
  18. return ModelPrefix + "asset_rw_callback_log"
  19. }
  20. func (*AssetRwCallbackLog) Comment() string {
  21. return "转账回调日志"
  22. }
  23. func NewAssetRwCallbackLog() *AssetRwCallbackLog {
  24. return &AssetRwCallbackLog{}
  25. }