Documentation
¶
Index ¶
- Constants
- type PmsAlbum
- type PmsAlbumPic
- type PmsBrand
- type PmsComment
- type PmsCommentReplay
- type PmsFeightTemplate
- type PmsMemberPrice
- type PmsProduct
- type PmsProductAttribute
- type PmsProductAttributeCategory
- type PmsProductAttributeValue
- type PmsProductCategory
- type PmsProductCategoryAttributeRelation
- type PmsProductCollect
- type PmsProductFullReduction
- type PmsProductLadder
- type PmsProductOperateLog
- type PmsProductVertifyRecord
- type PmsSkuStock
Constants ¶
const TableNamePmsAlbum = "pms_album"
const TableNamePmsAlbumPic = "pms_album_pic"
const TableNamePmsBrand = "pms_brand"
const TableNamePmsComment = "pms_comment"
const TableNamePmsCommentReplay = "pms_comment_replay"
const TableNamePmsFeightTemplate = "pms_feight_template"
const TableNamePmsMemberPrice = "pms_member_price"
const TableNamePmsProduct = "pms_product"
const TableNamePmsProductAttribute = "pms_product_attribute"
const TableNamePmsProductAttributeCategory = "pms_product_attribute_category"
const TableNamePmsProductAttributeValue = "pms_product_attribute_value"
const TableNamePmsProductCategory = "pms_product_category"
const TableNamePmsProductCategoryAttributeRelation = "pms_product_category_attribute_relation"
const TableNamePmsProductCollect = "pms_product_collect"
const TableNamePmsProductFullReduction = "pms_product_full_reduction"
const TableNamePmsProductLadder = "pms_product_ladder"
const TableNamePmsProductOperateLog = "pms_product_operate_log"
const TableNamePmsProductVertifyRecord = "pms_product_vertify_record"
const TableNamePmsSkuStock = "pms_sku_stock"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PmsAlbum ¶
type PmsAlbum struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null" json:"name"` CoverPic string `gorm:"column:cover_pic;not null" json:"cover_pic"` PicCount int32 `gorm:"column:pic_count;not null" json:"pic_count"` Sort int32 `gorm:"column:sort;not null" json:"sort"` Description string `gorm:"column:description;not null" json:"description"` }
PmsAlbum 相册表
type PmsAlbumPic ¶
type PmsAlbumPic struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` AlbumID int64 `gorm:"column:album_id;not null" json:"album_id"` Pic string `gorm:"column:pic;not null" json:"pic"` }
PmsAlbumPic 画册图片表
func (*PmsAlbumPic) TableName ¶
func (*PmsAlbumPic) TableName() string
TableName PmsAlbumPic's table name
type PmsBrand ¶
type PmsBrand struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null;comment:品牌名称" json:"name"` // 品牌名称 FirstLetter string `gorm:"column:first_letter;not null;comment:首字母" json:"first_letter"` // 首字母 Sort int32 `gorm:"column:sort;not null;comment:排序" json:"sort"` // 排序 FactoryStatus int32 `gorm:"column:factory_status;not null;comment:是否为品牌制造商:0->不是;1->是" json:"factory_status"` // 是否为品牌制造商:0->不是;1->是 ShowStatus int32 `gorm:"column:show_status;not null;comment:品牌显示状态" json:"show_status"` // 品牌显示状态 RecommendStatus int32 `gorm:"column:recommend_status;not null;comment:推荐状态" json:"recommend_status"` // 推荐状态 ProductCount int32 `gorm:"column:product_count;not null;comment:产品数量" json:"product_count"` // 产品数量 ProductCommentCount int32 `gorm:"column:product_comment_count;not null;comment:产品评论数量" json:"product_comment_count"` // 产品评论数量 Logo string `gorm:"column:logo;not null;comment:品牌logo" json:"logo"` // 品牌logo BigPic string `gorm:"column:big_pic;not null;comment:专区大图" json:"big_pic"` // 专区大图 BrandStory string `gorm:"column:brand_story;not null;comment:品牌故事" json:"brand_story"` // 品牌故事 CreateBy string `gorm:"column:create_by;not null;comment:创建者" json:"create_by"` // 创建者 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 UpdateBy string `gorm:"column:update_by;not null;comment:更新者" json:"update_by"` // 更新者 UpdateTime *time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间 }
PmsBrand 品牌表
type PmsComment ¶
type PmsComment struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductID int64 `gorm:"column:product_id;not null;comment:商品id" json:"product_id"` // 商品id MemberNickName string `gorm:"column:member_nick_name;not null;comment:评价者昵称" json:"member_nick_name"` // 评价者昵称 ProductName string `gorm:"column:product_name;not null;comment:商品名称" json:"product_name"` // 商品名称 Star int32 `gorm:"column:star;not null;comment:评价星数:0->5" json:"star"` // 评价星数:0->5 MemberIP string `gorm:"column:member_ip;not null;comment:评价的ip" json:"member_ip"` // 评价的ip CreateTime time.Time `gorm:"column:create_time;not null;comment:评价时间" json:"create_time"` // 评价时间 ShowStatus int32 `gorm:"column:show_status;not null;comment:是否显示,0-不显示,1-显示" json:"show_status"` // 是否显示,0-不显示,1-显示 ProductAttribute string `gorm:"column:product_attribute;not null;comment:购买时的商品属性" json:"product_attribute"` // 购买时的商品属性 CollectCount int32 `gorm:"column:collect_count;not null;comment:点赞数" json:"collect_count"` // 点赞数 ReadCount int32 `gorm:"column:read_count;not null;comment:阅读数" json:"read_count"` // 阅读数 Content string `gorm:"column:content;not null;comment:内容" json:"content"` // 内容 Pics string `gorm:"column:pics;not null;comment:上传图片地址,以逗号隔开" json:"pics"` // 上传图片地址,以逗号隔开 MemberIcon string `gorm:"column:member_icon;not null;comment:评论用户头像" json:"member_icon"` // 评论用户头像 ReplayCount int32 `gorm:"column:replay_count;not null;comment:回复数量" json:"replay_count"` // 回复数量 }
PmsComment 商品评价表
func (*PmsComment) TableName ¶
func (*PmsComment) TableName() string
TableName PmsComment's table name
type PmsCommentReplay ¶
type PmsCommentReplay struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CommentID int64 `gorm:"column:comment_id;not null;comment:评论id" json:"comment_id"` // 评论id MemberNickName string `gorm:"column:member_nick_name;not null;comment:评论人员昵称" json:"member_nick_name"` // 评论人员昵称 MemberIcon string `gorm:"column:member_icon;not null;comment:评论人员头像" json:"member_icon"` // 评论人员头像 Content string `gorm:"column:content;not null;comment:内容" json:"content"` // 内容 CreateTime time.Time `gorm:"column:create_time;not null;comment:评论时间" json:"create_time"` // 评论时间 Type int32 `gorm:"column:type;not null;comment:评论人员类型;0->会员;1->管理员" json:"type"` // 评论人员类型;0->会员;1->管理员 }
PmsCommentReplay 产品评价回复表
func (*PmsCommentReplay) TableName ¶
func (*PmsCommentReplay) TableName() string
TableName PmsCommentReplay's table name
type PmsFeightTemplate ¶
type PmsFeightTemplate struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null;comment:运费模版名称" json:"name"` // 运费模版名称 ChargeType int32 `gorm:"column:charge_type;not null;comment:计费类型:0->按重量;1->按件数" json:"charge_type"` // 计费类型:0->按重量;1->按件数 FirstWeight int64 `gorm:"column:first_weight;not null;comment:首重kg" json:"first_weight"` // 首重kg FirstFee int64 `gorm:"column:first_fee;not null;comment:首费(元)" json:"first_fee"` // 首费(元) ContinueWeight int64 `gorm:"column:continue_weight;not null;comment:续重kg" json:"continue_weight"` // 续重kg ContinueFee int64 `gorm:"column:continue_fee;not null;comment:续费(元)" json:"continue_fee"` // 续费(元) Dest string `gorm:"column:dest;not null;comment:目的地(省、市)" json:"dest"` // 目的地(省、市) }
PmsFeightTemplate 运费模版
func (*PmsFeightTemplate) TableName ¶
func (*PmsFeightTemplate) TableName() string
TableName PmsFeightTemplate's table name
type PmsMemberPrice ¶
type PmsMemberPrice struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductID int64 `gorm:"column:product_id;not null;comment:商品id" json:"product_id"` // 商品id MemberLevelID int64 `gorm:"column:member_level_id;not null;comment:会员等级id" json:"member_level_id"` // 会员等级id MemberPrice int64 `gorm:"column:member_price;not null;comment:会员价格" json:"member_price"` // 会员价格 MemberLevelName string `gorm:"column:member_level_name;not null;comment:会员等级名称" json:"member_level_name"` // 会员等级名称 }
PmsMemberPrice 商品会员价格表
func (*PmsMemberPrice) TableName ¶
func (*PmsMemberPrice) TableName() string
TableName PmsMemberPrice's table name
type PmsProduct ¶
type PmsProduct struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` BrandID int64 `gorm:"column:brand_id;not null;comment:品牌id" json:"brand_id"` // 品牌id ProductCategoryID int64 `gorm:"column:product_category_id;not null;comment:商品分类id" json:"product_category_id"` // 商品分类id FeightTemplateID int64 `gorm:"column:feight_template_id;not null;comment:商品运费模板id" json:"feight_template_id"` // 商品运费模板id ProductAttributeCategoryID int64 `gorm:"column:product_attribute_category_id;not null;comment:商品属性分类id" json:"product_attribute_category_id"` // 商品属性分类id Name string `gorm:"column:name;not null;comment:商品名称" json:"name"` // 商品名称 Pic string `gorm:"column:pic;not null;comment:商品图片" json:"pic"` // 商品图片 ProductSn string `gorm:"column:product_sn;not null;comment:货号" json:"product_sn"` // 货号 DeleteStatus int32 `gorm:"column:delete_status;not null;comment:删除状态:0->未删除;1->已删除" json:"delete_status"` // 删除状态:0->未删除;1->已删除 PublishStatus int32 `gorm:"column:publish_status;not null;comment:上架状态:0->下架;1->上架" json:"publish_status"` // 上架状态:0->下架;1->上架 NewStatus int32 `gorm:"column:new_status;not null;comment:新品状态:0->不是新品;1->新品" json:"new_status"` // 新品状态:0->不是新品;1->新品 RecommandStatus int32 `gorm:"column:recommand_status;not null;comment:推荐状态;0->不推荐;1->推荐" json:"recommand_status"` // 推荐状态;0->不推荐;1->推荐 VerifyStatus int32 `gorm:"column:verify_status;not null;comment:审核状态:0->未审核;1->审核通过" json:"verify_status"` // 审核状态:0->未审核;1->审核通过 Sort int32 `gorm:"column:sort;not null;comment:排序" json:"sort"` // 排序 Sale int32 `gorm:"column:sale;not null;comment:销量" json:"sale"` // 销量 Price int64 `gorm:"column:price;not null;comment:商品价格" json:"price"` // 商品价格 PromotionPrice int64 `gorm:"column:promotion_price;not null;comment:促销价格" json:"promotion_price"` // 促销价格 GiftGrowth int32 `gorm:"column:gift_growth;not null;comment:赠送的成长值" json:"gift_growth"` // 赠送的成长值 GiftPoint int32 `gorm:"column:gift_point;not null;comment:赠送的积分" json:"gift_point"` // 赠送的积分 UsePointLimit int32 `gorm:"column:use_point_limit;not null;comment:限制使用的积分数" json:"use_point_limit"` // 限制使用的积分数 SubTitle string `gorm:"column:sub_title;not null;comment:副标题" json:"sub_title"` // 副标题 Description string `gorm:"column:description;not null;comment:商品描述" json:"description"` // 商品描述 OriginalPrice int64 `gorm:"column:original_price;not null;comment:市场价" json:"original_price"` // 市场价 Stock int32 `gorm:"column:stock;not null;comment:库存" json:"stock"` // 库存 LowStock int32 `gorm:"column:low_stock;not null;comment:库存预警值" json:"low_stock"` // 库存预警值 Unit string `gorm:"column:unit;not null;comment:单位" json:"unit"` // 单位 Weight int64 `gorm:"column:weight;not null;comment:商品重量,默认为克" json:"weight"` // 商品重量,默认为克 PreviewStatus int32 `gorm:"column:preview_status;not null;comment:是否为预告商品:0->不是;1->是" json:"preview_status"` // 是否为预告商品:0->不是;1->是 ServiceIds string `` // 以逗号分割的产品服务:1->无忧退货;2->快速退款;3->免费包邮 /* 146-byte string literal not displayed */ Keywords string `gorm:"column:keywords;not null;comment:搜索关键字" json:"keywords"` // 搜索关键字 Note string `gorm:"column:note;not null;comment:备注" json:"note"` // 备注 AlbumPics string `gorm:"column:album_pics;not null;comment:画册图片,连产品图片限制为5张,以逗号分割" json:"album_pics"` // 画册图片,连产品图片限制为5张,以逗号分割 DetailTitle string `gorm:"column:detail_title;not null;comment:详情标题" json:"detail_title"` // 详情标题 DetailDesc string `gorm:"column:detail_desc;not null;comment:详情描述" json:"detail_desc"` // 详情描述 DetailHTML string `gorm:"column:detail_html;not null;comment:产品详情网页内容" json:"detail_html"` // 产品详情网页内容 DetailMobileHTML string `gorm:"column:detail_mobile_html;not null;comment:移动端网页详情" json:"detail_mobile_html"` // 移动端网页详情 PromotionStartTime time.Time `gorm:"column:promotion_start_time;not null;comment:促销开始时间" json:"promotion_start_time"` // 促销开始时间 PromotionEndTime time.Time `gorm:"column:promotion_end_time;not null;comment:促销结束时间" json:"promotion_end_time"` // 促销结束时间 PromotionPerLimit int32 `gorm:"column:promotion_per_limit;not null;comment:活动限购数量" json:"promotion_per_limit"` // 活动限购数量 PromotionType int32 `` // 促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格;5->限时购 /* 213-byte string literal not displayed */ BrandName string `gorm:"column:brand_name;not null;comment:品牌名称" json:"brand_name"` // 品牌名称 ProductCategoryName string `gorm:"column:product_category_name;not null;comment:商品分类名称" json:"product_category_name"` // 商品分类名称 ProductCategoryIDArray string `gorm:"column:product_category_id_Array;not null;comment:商品分类id字符串" json:"product_category_id_Array"` // 商品分类id字符串 }
PmsProduct 商品信息
func (*PmsProduct) TableName ¶
func (*PmsProduct) TableName() string
TableName PmsProduct's table name
type PmsProductAttribute ¶
type PmsProductAttribute struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductAttributeCategoryID int64 `gorm:"column:product_attribute_category_id;not null;comment:商品属性分类id" json:"product_attribute_category_id"` // 商品属性分类id Name string `gorm:"column:name;not null;comment:商品属性分类id" json:"name"` // 商品属性分类id SelectType int32 `gorm:"column:select_type;not null;comment:属性选择类型:0->唯一;1->单选;2->多选" json:"select_type"` // 属性选择类型:0->唯一;1->单选;2->多选 InputType int32 `gorm:"column:input_type;not null;comment:属性录入方式:0->手工录入;1->从列表中选取" json:"input_type"` // 属性录入方式:0->手工录入;1->从列表中选取 InputList string `gorm:"column:input_list;not null;comment:可选值列表,以逗号隔开" json:"input_list"` // 可选值列表,以逗号隔开 Sort int32 `gorm:"column:sort;not null;comment:排序字段:最高的可以单独上传图片" json:"sort"` // 排序字段:最高的可以单独上传图片 FilterType int32 `gorm:"column:filter_type;not null;comment:分类筛选样式:1->普通;1->颜色" json:"filter_type"` // 分类筛选样式:1->普通;1->颜色 SearchType int32 `` // 检索类型;0->不需要进行检索;1->关键字检索;2->范围检索 /* 140-byte string literal not displayed */ RelatedStatus int32 `gorm:"column:related_status;not null;comment:相同属性产品是否关联;0->不关联;1->关联" json:"related_status"` // 相同属性产品是否关联;0->不关联;1->关联 HandAddStatus int32 `gorm:"column:hand_add_status;not null;comment:是否支持手动新增;0->不支持;1->支持" json:"hand_add_status"` // 是否支持手动新增;0->不支持;1->支持 Type int32 `gorm:"column:type;not null;comment:属性的类型;0->规格;1->参数" json:"type"` // 属性的类型;0->规格;1->参数 }
PmsProductAttribute 商品属性参数表
func (*PmsProductAttribute) TableName ¶
func (*PmsProductAttribute) TableName() string
TableName PmsProductAttribute's table name
type PmsProductAttributeCategory ¶
type PmsProductAttributeCategory struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null;comment:商品属性分类名称" json:"name"` // 商品属性分类名称 AttributeCount int32 `gorm:"column:attribute_count;not null;comment:属性数量" json:"attribute_count"` // 属性数量 ParamCount int32 `gorm:"column:param_count;not null;comment:参数数量" json:"param_count"` // 参数数量 }
PmsProductAttributeCategory 产品属性分类表
func (*PmsProductAttributeCategory) TableName ¶
func (*PmsProductAttributeCategory) TableName() string
TableName PmsProductAttributeCategory's table name
type PmsProductAttributeValue ¶
type PmsProductAttributeValue struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductID int64 `gorm:"column:product_id;not null;comment:商品id" json:"product_id"` // 商品id ProductAttributeID int64 `gorm:"column:product_attribute_id;not null;comment:商品属性id" json:"product_attribute_id"` // 商品属性id Value string `` // 手动添加规格或参数的值,参数单值,规格有多个时以逗号隔开 /* 134-byte string literal not displayed */ }
PmsProductAttributeValue 存储产品参数信息的表
func (*PmsProductAttributeValue) TableName ¶
func (*PmsProductAttributeValue) TableName() string
TableName PmsProductAttributeValue's table name
type PmsProductCategory ¶
type PmsProductCategory struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ParentID int64 `gorm:"column:parent_id;not null;comment:上机分类的编号:0表示一级分类" json:"parent_id"` // 上机分类的编号:0表示一级分类 Name string `gorm:"column:name;not null;comment:商品分类名称" json:"name"` // 商品分类名称 Level int32 `gorm:"column:level;not null;comment:分类级别:0->1级;1->2级" json:"level"` // 分类级别:0->1级;1->2级 ProductCount int32 `gorm:"column:product_count;not null;comment:商品数量" json:"product_count"` // 商品数量 ProductUnit string `gorm:"column:product_unit;not null;comment:商品数量" json:"product_unit"` // 商品数量 ShowStatus int32 `gorm:"column:show_status;not null;comment:显示状态:0->不显示;1->显示" json:"show_status"` // 显示状态:0->不显示;1->显示 Sort int32 `gorm:"column:sort;not null;comment:排序" json:"sort"` // 排序 Icon string `gorm:"column:icon;not null;comment:图标" json:"icon"` // 图标 Keywords string `gorm:"column:keywords;not null;comment:关键字" json:"keywords"` // 关键字 Description string `gorm:"column:description;not null;comment:描述" json:"description"` // 描述 }
PmsProductCategory 产品分类
func (*PmsProductCategory) TableName ¶
func (*PmsProductCategory) TableName() string
TableName PmsProductCategory's table name
type PmsProductCategoryAttributeRelation ¶
type PmsProductCategoryAttributeRelation struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductCategoryID int64 `gorm:"column:product_category_id;not null;comment:商品分类id" json:"product_category_id"` // 商品分类id ProductAttributeID int64 `gorm:"column:product_attribute_id;not null;comment:商品属性id" json:"product_attribute_id"` // 商品属性id }
PmsProductCategoryAttributeRelation 产品的分类和属性的关系表,用于设置分类筛选条件(只支持一级分类)
func (*PmsProductCategoryAttributeRelation) TableName ¶
func (*PmsProductCategoryAttributeRelation) TableName() string
TableName PmsProductCategoryAttributeRelation's table name
type PmsProductCollect ¶
type PmsProductCollect struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` UserID int32 `gorm:"column:user_id;not null;comment:用户表的用户ID" json:"user_id"` // 用户表的用户ID ValueID int32 `gorm:"column:value_id;not null;comment:如果type=0,则是商品ID;如果type=1,则是专题ID" json:"value_id"` // 如果type=0,则是商品ID;如果type=1,则是专题ID CollectType int32 `` // 收藏类型,如果type=0,则是商品ID;如果type=1,则是专题ID /* 140-byte string literal not displayed */ AddTime time.Time `gorm:"column:add_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"add_time"` // 创建时间 UpdateTime *time.Time `gorm:"column:update_time;comment:更新时间" json:"update_time"` // 更新时间 Deleted int32 `gorm:"column:deleted;not null;comment:逻辑删除" json:"deleted"` // 逻辑删除 }
PmsProductCollect 收藏表
func (*PmsProductCollect) TableName ¶
func (*PmsProductCollect) TableName() string
TableName PmsProductCollect's table name
type PmsProductFullReduction ¶
type PmsProductFullReduction struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductID int64 `gorm:"column:product_id;not null;comment:商品id" json:"product_id"` // 商品id FullPrice int64 `gorm:"column:full_price;not null;comment:商品满多少" json:"full_price"` // 商品满多少 ReducePrice int64 `gorm:"column:reduce_price;not null;comment:商品减多少" json:"reduce_price"` // 商品减多少 }
PmsProductFullReduction 产品满减表(只针对同商品)
func (*PmsProductFullReduction) TableName ¶
func (*PmsProductFullReduction) TableName() string
TableName PmsProductFullReduction's table name
type PmsProductLadder ¶
type PmsProductLadder struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductID int64 `gorm:"column:product_id;not null;comment:商品id" json:"product_id"` // 商品id Count int32 `gorm:"column:count;not null;comment:满足的商品数量" json:"count"` // 满足的商品数量 Discount int64 `gorm:"column:discount;not null;comment:折扣" json:"discount"` // 折扣 Price int64 `gorm:"column:price;not null;comment:折后价格" json:"price"` // 折后价格 }
PmsProductLadder 产品阶梯价格表(只针对同商品)
func (*PmsProductLadder) TableName ¶
func (*PmsProductLadder) TableName() string
TableName PmsProductLadder's table name
type PmsProductOperateLog ¶
type PmsProductOperateLog struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductID int64 `gorm:"column:product_id;not null;comment:产品id" json:"product_id"` // 产品id PriceOld int64 `gorm:"column:price_old;not null;comment:原价" json:"price_old"` // 原价 PriceNew int64 `gorm:"column:price_new;not null;comment:新价格" json:"price_new"` // 新价格 SalePriceOld int64 `gorm:"column:sale_price_old;not null;comment:原售价" json:"sale_price_old"` // 原售价 SalePriceNew int64 `gorm:"column:sale_price_new;not null;comment:新售价" json:"sale_price_new"` // 新售价 GiftPointOld int32 `gorm:"column:gift_point_old;not null;comment:赠送的积分" json:"gift_point_old"` // 赠送的积分 GiftPointNew int32 `gorm:"column:gift_point_new;not null;comment:新的积分" json:"gift_point_new"` // 新的积分 UsePointLimitOld int32 `gorm:"column:use_point_limit_old;not null;comment:使用积分限制" json:"use_point_limit_old"` // 使用积分限制 UsePointLimitNew int32 `gorm:"column:use_point_limit_new;not null;comment:新的使用积分限制" json:"use_point_limit_new"` // 新的使用积分限制 OperateMan string `gorm:"column:operate_man;not null;comment:操作人" json:"operate_man"` // 操作人 CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 }
PmsProductOperateLog 商品操作日志
func (*PmsProductOperateLog) TableName ¶
func (*PmsProductOperateLog) TableName() string
TableName PmsProductOperateLog's table name
type PmsProductVertifyRecord ¶
type PmsProductVertifyRecord struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductID int64 `gorm:"column:product_id;not null;comment:商品id" json:"product_id"` // 商品id CreateTime time.Time `gorm:"column:create_time;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间 ReviewMan string `gorm:"column:review_man;not null;comment:审核人" json:"review_man"` // 审核人 Status int32 `gorm:"column:status;not null;comment:审核状态:0->未通过;1->通过" json:"status"` // 审核状态:0->未通过;1->通过 Detail string `gorm:"column:detail;not null;comment:反馈详情" json:"detail"` // 反馈详情 }
PmsProductVertifyRecord 商品审核记录
func (*PmsProductVertifyRecord) TableName ¶
func (*PmsProductVertifyRecord) TableName() string
TableName PmsProductVertifyRecord's table name
type PmsSkuStock ¶
type PmsSkuStock struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ProductID int64 `gorm:"column:product_id;not null;comment:商品id" json:"product_id"` // 商品id SkuCode string `gorm:"column:sku_code;not null;comment:sku编码" json:"sku_code"` // sku编码 Price int64 `gorm:"column:price;not null;comment:价格" json:"price"` // 价格 Stock int32 `gorm:"column:stock;not null;comment:库存" json:"stock"` // 库存 LowStock int32 `gorm:"column:low_stock;not null;comment:预警库存" json:"low_stock"` // 预警库存 Pic string `gorm:"column:pic;not null;comment:展示图片" json:"pic"` // 展示图片 Sale int32 `gorm:"column:sale;not null;comment:销量" json:"sale"` // 销量 PromotionPrice int64 `gorm:"column:promotion_price;not null;comment:单品促销价格" json:"promotion_price"` // 单品促销价格 LockStock int32 `gorm:"column:lock_stock;not null;comment:锁定库存" json:"lock_stock"` // 锁定库存 SpData string `gorm:"column:sp_data;not null;comment:商品销售属性,json格式" json:"sp_data"` // 商品销售属性,json格式 }
PmsSkuStock sku的库存
func (*PmsSkuStock) TableName ¶
func (*PmsSkuStock) TableName() string
TableName PmsSkuStock's table name
Source Files
¶
- pms_album.gen.go
- pms_album_pic.gen.go
- pms_brand.gen.go
- pms_comment.gen.go
- pms_comment_replay.gen.go
- pms_feight_template.gen.go
- pms_member_price.gen.go
- pms_product.gen.go
- pms_product_attribute.gen.go
- pms_product_attribute_category.gen.go
- pms_product_attribute_value.gen.go
- pms_product_category.gen.go
- pms_product_category_attribute_relation.gen.go
- pms_product_collect.gen.go
- pms_product_full_reduction.gen.go
- pms_product_ladder.gen.go
- pms_product_operate_log.gen.go
- pms_product_vertify_record.gen.go
- pms_sku_stock.gen.go