12345678910111213141516171819202122232425 |
- package models
- import (
- "github.com/beego/beego/v2/client/orm"
- "time"
- )
- // RefundDealFlow 表示 refund_deal_flow 表的 ORM 结构体
- type RefundDealFlow struct {
- Id int `gorm:"column:id;primaryKey;autoIncrement:false"`
- OperatorUserId int `gorm:"column:operator_user_id;default:null"`
- ProductOrderNo string `gorm:"column:product_order_no;default:null"`
- RefundOrderNo string `gorm:"column:refund_order_no;default:null"`
- CreatedTime time.Time `gorm:"column:created_time;default:null"`
- }
- // TableName 返回表名
- func (RefundDealFlow) TableName() string {
- return "refund_deal_flow"
- }
- func (m *RefundDealFlow) Insert() (err error) {
- o := orm.NewOrm()
- _, err = o.Insert(m)
- return
- }
|