feat: import services and standardize Go 1.26.5
This commit is contained in:
26
apps/ec/order/internal/models/order_coupon.go
Normal file
26
apps/ec/order/internal/models/order_coupon.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/types"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// OrderCoupon 优惠券
|
||||
type OrderCoupon struct {
|
||||
gorm.Model
|
||||
types.Std_Identity
|
||||
types.Std_Passport
|
||||
Title string `gorm:"column:title;type:varchar(255);default:'';" json:"title"` // 标题
|
||||
Intro string `gorm:"column:intro;type:varchar(255);default:'';" json:"intro"` // 描述
|
||||
Amount int64 `gorm:"column:amount;default:0;" json:"amount"` // 金额
|
||||
Condition string `gorm:"column:condition;type:varchar(255);default:'';" json:"condition"` // 条件
|
||||
Started string `gorm:"column:started;type:varchar(255);default:'';" json:"started"` // 开始时间
|
||||
Expired string `gorm:"column:expired;type:varchar(20);default:'';" json:"expired"` // 结束时间
|
||||
types.Std_Status
|
||||
}
|
||||
|
||||
// TableName .
|
||||
func (table *OrderCoupon) TableName() string {
|
||||
return "order_coupon" //对应数据库表名
|
||||
}
|
||||
Reference in New Issue
Block a user