refund_deal_flow.go 727 B

12345678910111213141516171819202122232425
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. // RefundDealFlow 表示 refund_deal_flow 表的 ORM 结构体
  7. type RefundDealFlow struct {
  8. Id int `gorm:"column:id;primaryKey;autoIncrement:false"`
  9. OperatorUserId int `gorm:"column:operator_user_id;default:null"`
  10. ProductOrderNo string `gorm:"column:product_order_no;default:null"`
  11. RefundOrderNo string `gorm:"column:refund_order_no;default:null"`
  12. CreatedTime time.Time `gorm:"column:created_time;default:null"`
  13. }
  14. // TableName 返回表名
  15. func (RefundDealFlow) TableName() string {
  16. return "refund_deal_flow"
  17. }
  18. func (m *RefundDealFlow) Insert() (err error) {
  19. o := orm.NewOrm()
  20. _, err = o.Insert(m)
  21. return
  22. }