18 lines
714 B
Go
18 lines
714 B
Go
package productposimod
|
|
|
|
import (
|
|
"time"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
// ProductPositionSelector 修改结构体
|
|
type ProductPositionSelector struct {
|
|
ID primitive.ObjectID `json:"id" bson:"_id"`
|
|
ShowType *int64 `bson:"showType,omitempty" json:"showType,omitempty"` //展示样式 1 横 2 竖线
|
|
Name *string `bson:"name,omitempty" json:"name,omitempty"` //商品名字
|
|
Sort *int `bson:"sort,omitempty" json:"sort,omitempty" ` //排序字段
|
|
Status *bool `bson:"status,omitempty" json:"status,omitempty"` //0 下架 //1 下架
|
|
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
|
|
}
|