Documentation ¶
Index ¶
- Variables
- type PmsAlbum
- type PmsAlbumModel
- type PmsAlbumPic
- type PmsAlbumPicModel
- type PmsBrand
- type PmsBrandModel
- type PmsComment
- type PmsCommentModel
- type PmsCommentReplay
- type PmsCommentReplayModel
- type PmsFeightTemplate
- type PmsFeightTemplateModel
- type PmsMemberPrice
- type PmsMemberPriceModel
- type PmsProduct
- type PmsProductAttribute
- type PmsProductAttributeCategory
- type PmsProductAttributeCategoryModel
- type PmsProductAttributeModel
- type PmsProductAttributeValue
- type PmsProductAttributeValueModel
- type PmsProductCategory
- type PmsProductCategoryAttributeRelation
- type PmsProductCategoryAttributeRelationModel
- type PmsProductCategoryModel
- type PmsProductCollect
- type PmsProductCollectModel
- type PmsProductFullReduction
- type PmsProductFullReductionModel
- type PmsProductLadder
- type PmsProductLadderModel
- type PmsProductModel
- type PmsProductOperateLog
- type PmsProductOperateLogModel
- type PmsProductVertifyRecord
- type PmsProductVertifyRecordModel
- type PmsSkuStock
- type PmsSkuStockModel
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type PmsAlbumModel ¶
type PmsAlbumModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, Current int64, PageSize int64) (*[]PmsAlbum, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsAlbumModel is an interface to be customized, add more methods here, and implement the added methods in customPmsAlbumModel.
func NewPmsAlbumModel ¶
func NewPmsAlbumModel(conn sqlx.SqlConn) PmsAlbumModel
NewPmsAlbumModel returns a model for the database table.
type PmsAlbumPic ¶
type PmsAlbumPicModel ¶
type PmsAlbumPicModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, Current int64, PageSize int64) (*[]PmsAlbumPic, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsAlbumPicModel is an interface to be customized, add more methods here, and implement the added methods in customPmsAlbumPicModel.
func NewPmsAlbumPicModel ¶
func NewPmsAlbumPicModel(conn sqlx.SqlConn) PmsAlbumPicModel
NewPmsAlbumPicModel returns a model for the database table.
type PmsBrand ¶
type PmsBrand struct { Id int64 `db:"id"` Name string `db:"name"` FirstLetter string `db:"first_letter"` // 首字母 Sort int64 `db:"sort"` FactoryStatus int64 `db:"factory_status"` // 是否为品牌制造商:0->不是;1->是 ShowStatus int64 `db:"show_status"` ProductCount int64 `db:"product_count"` // 产品数量 ProductCommentCount int64 `db:"product_comment_count"` // 产品评论数量 Logo string `db:"logo"` // 品牌logo BigPic string `db:"big_pic"` // 专区大图 BrandStory string `db:"brand_story"` // 品牌故事 }
type PmsBrandModel ¶
type PmsBrandModel interface { Count(ctx context.Context, in *pmsclient.BrandListReq) (int64, error) FindAll(ctx context.Context, in *pmsclient.BrandListReq) (*[]PmsBrand, error) DeleteByIds(ctx context.Context, ids []int64) error FindAllByIds(ctx context.Context, ids []int64) (*[]PmsBrand, error) // contains filtered or unexported methods }
PmsBrandModel is an interface to be customized, add more methods here, and implement the added methods in customPmsBrandModel.
func NewPmsBrandModel ¶
func NewPmsBrandModel(conn sqlx.SqlConn) PmsBrandModel
NewPmsBrandModel returns a model for the database table.
type PmsComment ¶
type PmsComment struct { Id int64 `db:"id"` ProductId int64 `db:"product_id"` MemberNickName string `db:"member_nick_name"` ProductName string `db:"product_name"` Star int64 `db:"star"` // 评价星数:0->5 MemberIp string `db:"member_ip"` // 评价的ip CreateTime time.Time `db:"create_time"` ShowStatus int64 `db:"show_status"` ProductAttribute string `db:"product_attribute"` // 购买时的商品属性 CollectCouont int64 `db:"collect_couont"` ReadCount int64 `db:"read_count"` Content string `db:"content"` Pics string `db:"pics"` // 上传图片地址,以逗号隔开 MemberIcon string `db:"member_icon"` // 评论用户头像 ReplayCount int64 `db:"replay_count"` }
type PmsCommentModel ¶
type PmsCommentModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, Current int64, PageSize int64) (*[]PmsComment, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsCommentModel is an interface to be customized, add more methods here, and implement the added methods in customPmsCommentModel.
func NewPmsCommentModel ¶
func NewPmsCommentModel(conn sqlx.SqlConn) PmsCommentModel
NewPmsCommentModel returns a model for the database table.
type PmsCommentReplay ¶
type PmsCommentReplayModel ¶
type PmsCommentReplayModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, Current int64, PageSize int64) (*[]PmsCommentReplay, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsCommentReplayModel is an interface to be customized, add more methods here, and implement the added methods in customPmsCommentReplayModel.
func NewPmsCommentReplayModel ¶
func NewPmsCommentReplayModel(conn sqlx.SqlConn) PmsCommentReplayModel
NewPmsCommentReplayModel returns a model for the database table.
type PmsFeightTemplate ¶
type PmsFeightTemplate struct { Id int64 `db:"id"` Name string `db:"name"` ChargeType int64 `db:"charge_type"` // 计费类型:0->按重量;1->按件数 FirstWeight float64 `db:"first_weight"` // 首重kg FirstFee float64 `db:"first_fee"` // 首费(元) ContinueWeight float64 `db:"continue_weight"` ContinmeFee float64 `db:"continme_fee"` Dest string `db:"dest"` // 目的地(省、市) }
type PmsFeightTemplateModel ¶
type PmsFeightTemplateModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, Current int64, PageSize int64) (*[]PmsFeightTemplate, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsFeightTemplateModel is an interface to be customized, add more methods here, and implement the added methods in customPmsFeightTemplateModel.
func NewPmsFeightTemplateModel ¶
func NewPmsFeightTemplateModel(conn sqlx.SqlConn) PmsFeightTemplateModel
NewPmsFeightTemplateModel returns a model for the database table.
type PmsMemberPrice ¶
type PmsMemberPriceModel ¶
type PmsMemberPriceModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, productId int64) (*[]PmsMemberPrice, error) DeleteByIds(ctx context.Context, ids []int64) error DeleteByProductId(ctx context.Context, productId int64) error // contains filtered or unexported methods }
PmsMemberPriceModel is an interface to be customized, add more methods here, and implement the added methods in customPmsMemberPriceModel.
func NewPmsMemberPriceModel ¶
func NewPmsMemberPriceModel(conn sqlx.SqlConn) PmsMemberPriceModel
NewPmsMemberPriceModel returns a model for the database table.
type PmsProduct ¶
type PmsProduct struct { Id int64 `db:"id"` BrandId int64 `db:"brand_id"` ProductCategoryId int64 `db:"product_category_id"` // 商品分类id ProductCategoryIdArray string `db:"product_category_id_Array"` // 商品分类id字符串 FeightTemplateId int64 `db:"feight_template_id"` ProductAttributeCategoryId int64 `db:"product_attribute_category_id"` Name string `db:"name"` Pic string `db:"pic"` ProductSn string `db:"product_sn"` // 货号 DeleteStatus int64 `db:"delete_status"` // 删除状态:0->未删除;1->已删除 PublishStatus int64 `db:"publish_status"` // 上架状态:0->下架;1->上架 NewStatus int64 `db:"new_status"` // 新品状态:0->不是新品;1->新品 RecommandStatus int64 `db:"recommand_status"` // 推荐状态;0->不推荐;1->推荐 VerifyStatus int64 `db:"verify_status"` // 审核状态:0->未审核;1->审核通过 Sort int64 `db:"sort"` // 排序 Sale int64 `db:"sale"` // 销量 Price float64 `db:"price"` PromotionPrice float64 `db:"promotion_price"` // 促销价格 GiftGrowth int64 `db:"gift_growth"` // 赠送的成长值 GiftPoint int64 `db:"gift_point"` // 赠送的积分 UsePointLimit int64 `db:"use_point_limit"` // 限制使用的积分数 SubTitle string `db:"sub_title"` // 副标题 Description string `db:"description"` // 商品描述 OriginalPrice float64 `db:"original_price"` // 市场价 Stock int64 `db:"stock"` // 库存 LowStock int64 `db:"low_stock"` // 库存预警值 Unit string `db:"unit"` // 单位 Weight float64 `db:"weight"` // 商品重量,默认为克 PreviewStatus int64 `db:"preview_status"` // 是否为预告商品:0->不是;1->是 ServiceIds string `db:"service_ids"` // 以逗号分割的产品服务:1->无忧退货;2->快速退款;3->免费包邮 Keywords string `db:"keywords"` Note string `db:"note"` AlbumPics string `db:"album_pics"` // 画册图片,连产品图片限制为5张,以逗号分割 DetailTitle string `db:"detail_title"` DetailDesc string `db:"detail_desc"` DetailHtml string `db:"detail_html"` // 产品详情网页内容 DetailMobileHtml string `db:"detail_mobile_html"` // 移动端网页详情 PromotionStartTime time.Time `db:"promotion_start_time"` // 促销开始时间 PromotionEndTime time.Time `db:"promotion_end_time"` // 促销结束时间 PromotionPerLimit int64 `db:"promotion_per_limit"` // 活动限购数量 PromotionType int64 `db:"promotion_type"` // 促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格;5->限时购 BrandName string `db:"brand_name"` // 品牌名称 ProductCategoryName string `db:"product_category_name"` // 商品分类名称 }
type PmsProductAttribute ¶
type PmsProductAttribute struct { Id int64 `db:"id"` ProductAttributeCategoryId int64 `db:"product_attribute_category_id"` Name string `db:"name"` SelectType int64 `db:"select_type"` // 属性选择类型:0->唯一;1->单选;2->多选 InputType int64 `db:"input_type"` // 属性录入方式:0->手工录入;1->从列表中选取 InputList string `db:"input_list"` // 可选值列表,以逗号隔开 Sort int64 `db:"sort"` // 排序字段:最高的可以单独上传图片 FilterType int64 `db:"filter_type"` // 分类筛选样式:1->普通;1->颜色 SearchType int64 `db:"search_type"` // 检索类型;0->不需要进行检索;1->关键字检索;2->范围检索 RelatedStatus int64 `db:"related_status"` // 相同属性产品是否关联;0->不关联;1->关联 HandAddStatus int64 `db:"hand_add_status"` // 是否支持手动新增;0->不支持;1->支持 Type int64 `db:"type"` // 属性的类型;0->规格;1->参数 }
type PmsProductAttributeCategoryModel ¶
type PmsProductAttributeCategoryModel interface { Count(ctx context.Context, in *pmsclient.ProductAttributeCategoryListReq) (int64, error) FindAll(ctx context.Context, in *pmsclient.ProductAttributeCategoryListReq) (*[]PmsProductAttributeCategory, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsProductAttributeCategoryModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductAttributeCategoryModel.
func NewPmsProductAttributeCategoryModel ¶
func NewPmsProductAttributeCategoryModel(conn sqlx.SqlConn) PmsProductAttributeCategoryModel
NewPmsProductAttributeCategoryModel returns a model for the database table.
type PmsProductAttributeModel ¶
type PmsProductAttributeModel interface { Count(ctx context.Context, in *pmsclient.ProductAttributeListReq) (int64, error) FindAll(ctx context.Context, in *pmsclient.ProductAttributeListReq) (*[]PmsProductAttribute, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsProductAttributeModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductAttributeModel.
func NewPmsProductAttributeModel ¶
func NewPmsProductAttributeModel(conn sqlx.SqlConn) PmsProductAttributeModel
NewPmsProductAttributeModel returns a model for the database table.
type PmsProductAttributeValue ¶
type PmsProductAttributeValue struct { Id int64 `db:"id"` ProductId int64 `db:"product_id"` ProductAttributeId int64 `db:"product_attribute_id"` Value sql.NullString `db:"value"` // 手动添加规格或参数的值,参数单值,规格有多个时以逗号隔开 }
type PmsProductAttributeValueModel ¶
type PmsProductAttributeValueModel interface { FindAll(ctx context.Context, productId int64) (*[]PmsProductAttributeValue, error) DeleteByProductId(ctx context.Context, productId int64) error // contains filtered or unexported methods }
PmsProductAttributeValueModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductAttributeValueModel.
func NewPmsProductAttributeValueModel ¶
func NewPmsProductAttributeValueModel(conn sqlx.SqlConn) PmsProductAttributeValueModel
NewPmsProductAttributeValueModel returns a model for the database table.
type PmsProductCategory ¶
type PmsProductCategory struct { Id int64 `db:"id"` ParentId int64 `db:"parent_id"` // 上机分类的编号:0表示一级分类 Name string `db:"name"` Level int64 `db:"level"` // 分类级别:0->1级;1->2级 ProductCount int64 `db:"product_count"` ProductUnit string `db:"product_unit"` ShowStatus int64 `db:"show_status"` // 显示状态:0->不显示;1->显示 Sort int64 `db:"sort"` Icon string `db:"icon"` // 图标 Keywords string `db:"keywords"` Description sql.NullString `db:"description"` // 描述 }
type PmsProductCategoryAttributeRelationModel ¶
type PmsProductCategoryAttributeRelationModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, Current int64, PageSize int64) (*[]PmsProductCategoryAttributeRelation, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsProductCategoryAttributeRelationModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductCategoryAttributeRelationModel.
func NewPmsProductCategoryAttributeRelationModel ¶
func NewPmsProductCategoryAttributeRelationModel(conn sqlx.SqlConn) PmsProductCategoryAttributeRelationModel
NewPmsProductCategoryAttributeRelationModel returns a model for the database table.
type PmsProductCategoryModel ¶
type PmsProductCategoryModel interface { FindAll(ctx context.Context, in *pmsclient.ProductCategoryListReq) (*[]PmsProductCategory, int64, error) DeleteByIds(ctx context.Context, ids []int64) error FindByParentId(ctx context.Context, parentId int64) (*[]PmsProductCategory, error) // contains filtered or unexported methods }
PmsProductCategoryModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductCategoryModel.
func NewPmsProductCategoryModel ¶
func NewPmsProductCategoryModel(conn sqlx.SqlConn) PmsProductCategoryModel
NewPmsProductCategoryModel returns a model for the database table.
type PmsProductCollect ¶
type PmsProductCollect struct { Id int64 `db:"id"` UserId int64 `db:"user_id"` // 用户表的用户ID ValueId int64 `db:"value_id"` // 如果type=0,则是商品ID;如果type=1,则是专题ID CollectType int64 `db:"collect_type"` // 收藏类型,如果type=0,则是商品ID;如果type=1,则是专题ID AddTime time.Time `db:"add_time"` // 创建时间 UpdateTime sql.NullTime `db:"update_time"` // 更新时间 Deleted int64 `db:"deleted"` // 逻辑删除 }
type PmsProductCollectModel ¶
type PmsProductCollectModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, Current int64, PageSize int64) (*[]PmsProductCollect, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsProductCollectModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductCollectModel.
func NewPmsProductCollectModel ¶
func NewPmsProductCollectModel(conn sqlx.SqlConn) PmsProductCollectModel
NewPmsProductCollectModel returns a model for the database table.
type PmsProductFullReduction ¶
type PmsProductFullReductionModel ¶
type PmsProductFullReductionModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, productId int64) (*[]PmsProductFullReduction, error) DeleteByIds(ctx context.Context, ids []int64) error DeleteByProductId(ctx context.Context, productId int64) error // contains filtered or unexported methods }
PmsProductFullReductionModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductFullReductionModel.
func NewPmsProductFullReductionModel ¶
func NewPmsProductFullReductionModel(conn sqlx.SqlConn) PmsProductFullReductionModel
NewPmsProductFullReductionModel returns a model for the database table.
type PmsProductLadder ¶
type PmsProductLadderModel ¶
type PmsProductLadderModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, productId int64) (*[]PmsProductLadder, error) DeleteByIds(ctx context.Context, ids []int64) error DeleteByProductId(ctx context.Context, productId int64) error // contains filtered or unexported methods }
PmsProductLadderModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductLadderModel.
func NewPmsProductLadderModel ¶
func NewPmsProductLadderModel(conn sqlx.SqlConn) PmsProductLadderModel
NewPmsProductLadderModel returns a model for the database table.
type PmsProductModel ¶
type PmsProductModel interface { Count(ctx context.Context, in *pmsclient.ProductListReq) (int64, error) FindAll(ctx context.Context, in *pmsclient.ProductListReq) (*[]PmsProduct, error) DeleteByIds(ctx context.Context, ids []int64) error FindAllByIds(ctx context.Context, ids []int64) (*[]PmsProduct, error) // contains filtered or unexported methods }
PmsProductModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductModel.
func NewPmsProductModel ¶
func NewPmsProductModel(conn sqlx.SqlConn) PmsProductModel
NewPmsProductModel returns a model for the database table.
type PmsProductOperateLog ¶
type PmsProductOperateLog struct { Id int64 `db:"id"` ProductId int64 `db:"product_id"` PriceOld float64 `db:"price_old"` PriceNew float64 `db:"price_new"` SalePriceOld float64 `db:"sale_price_old"` SalePriceNew float64 `db:"sale_price_new"` GiftPointOld int64 `db:"gift_point_old"` // 赠送的积分 GiftPointNew int64 `db:"gift_point_new"` UsePointLimitOld int64 `db:"use_point_limit_old"` UsePointLimitNew int64 `db:"use_point_limit_new"` OperateMan string `db:"operate_man"` // 操作人 CreateTime time.Time `db:"create_time"` }
type PmsProductOperateLogModel ¶
type PmsProductOperateLogModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, Current int64, PageSize int64) (*[]PmsProductOperateLog, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsProductOperateLogModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductOperateLogModel.
func NewPmsProductOperateLogModel ¶
func NewPmsProductOperateLogModel(conn sqlx.SqlConn) PmsProductOperateLogModel
NewPmsProductOperateLogModel returns a model for the database table.
type PmsProductVertifyRecord ¶
type PmsProductVertifyRecordModel ¶
type PmsProductVertifyRecordModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, Current int64, PageSize int64) (*[]PmsProductVertifyRecord, error) DeleteByIds(ctx context.Context, ids []int64) error // contains filtered or unexported methods }
PmsProductVertifyRecordModel is an interface to be customized, add more methods here, and implement the added methods in customPmsProductVertifyRecordModel.
func NewPmsProductVertifyRecordModel ¶
func NewPmsProductVertifyRecordModel(conn sqlx.SqlConn) PmsProductVertifyRecordModel
NewPmsProductVertifyRecordModel returns a model for the database table.
type PmsSkuStock ¶
type PmsSkuStock struct { Id int64 `db:"id"` ProductId int64 `db:"product_id"` SkuCode string `db:"sku_code"` // sku编码 Price float64 `db:"price"` Stock int64 `db:"stock"` // 库存 LowStock int64 `db:"low_stock"` // 预警库存 Pic string `db:"pic"` // 展示图片 Sale int64 `db:"sale"` // 销量 PromotionPrice float64 `db:"promotion_price"` // 单品促销价格 LockStock int64 `db:"lock_stock"` // 锁定库存 SpData string `db:"sp_data"` // 商品销售属性,json格式 }
type PmsSkuStockModel ¶
type PmsSkuStockModel interface { Count(ctx context.Context) (int64, error) FindAll(ctx context.Context, productId int64) (*[]PmsSkuStock, error) DeleteByIds(ctx context.Context, ids []int64) error DeleteByProductId(ctx context.Context, productId int64) error ReleaseSkuStockLock(ctx context.Context, ProductSkuId, ProductQuantity int64) error LockSkuStockLock(ctx context.Context, ProductSkuId, ProductQuantity int64) error // contains filtered or unexported methods }
PmsSkuStockModel is an interface to be customized, add more methods here, and implement the added methods in customPmsSkuStockModel.
func NewPmsSkuStockModel ¶
func NewPmsSkuStockModel(conn sqlx.SqlConn) PmsSkuStockModel
NewPmsSkuStockModel returns a model for the database table.
Source Files ¶
- pmsalbummodel.go
- pmsalbummodel_gen.go
- pmsalbumpicmodel.go
- pmsalbumpicmodel_gen.go
- pmsbrandmodel.go
- pmsbrandmodel_gen.go
- pmscommentmodel.go
- pmscommentmodel_gen.go
- pmscommentreplaymodel.go
- pmscommentreplaymodel_gen.go
- pmsfeighttemplatemodel.go
- pmsfeighttemplatemodel_gen.go
- pmsmemberpricemodel.go
- pmsmemberpricemodel_gen.go
- pmsproductattributecategorymodel.go
- pmsproductattributecategorymodel_gen.go
- pmsproductattributemodel.go
- pmsproductattributemodel_gen.go
- pmsproductattributevaluemodel.go
- pmsproductattributevaluemodel_gen.go
- pmsproductcategoryattributerelationmodel.go
- pmsproductcategoryattributerelationmodel_gen.go
- pmsproductcategorymodel.go
- pmsproductcategorymodel_gen.go
- pmsproductcollectmodel.go
- pmsproductcollectmodel_gen.go
- pmsproductfullreductionmodel.go
- pmsproductfullreductionmodel_gen.go
- pmsproductladdermodel.go
- pmsproductladdermodel_gen.go
- pmsproductmodel.go
- pmsproductmodel_gen.go
- pmsproductoperatelogmodel.go
- pmsproductoperatelogmodel_gen.go
- pmsproductvertifyrecordmodel.go
- pmsproductvertifyrecordmodel_gen.go
- pmsskustockmodel.go
- pmsskustockmodel_gen.go
- vars.go