feat: 完善平台总后台模块
This commit is contained in:
16
backend/api/internal/models/ec_review.go
Normal file
16
backend/api/internal/models/ec_review.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
import "git.apinb.com/bsm-sdk/core/database"
|
||||
|
||||
// EcReview 对应 ec_review,保存商品评论与审核状态。
|
||||
type EcReview struct {
|
||||
Entity
|
||||
EcOrderID uint64 `gorm:"column:ec_order_id;not null;index" json:"ec_order_id"`
|
||||
EcProductID uint64 `gorm:"column:ec_product_id;not null;index" json:"ec_product_id"`
|
||||
UserAccountID uint64 `gorm:"column:user_account_id;not null;index" json:"user_account_id"`
|
||||
Score int `gorm:"column:score;not null;default:5" json:"score"`
|
||||
Content string `gorm:"column:content;type:text;not null;default:''" json:"content"`
|
||||
}
|
||||
|
||||
func init() { database.AppendMigrate(&EcReview{}) }
|
||||
func (table *EcReview) TableName() string { return "ec_review" }
|
||||
Reference in New Issue
Block a user