Documentation ¶
Index ¶
- func AddCategory(category JccGoodsCategory) (int64, error)
- func CountSameParentCategory(pid int) (int, error)
- func DeleteGoodsCategory(params *request.DeleteGoodsCategory) (err error)
- func EditGoodsCategory(params *request.EditGoodsCategory) (err error)
- func ExistCategory(categoryId int) bool
- func QueryExistCategoryName(categoryName string) (int, error)
- func QueryGoodsCategoryChildren(params *request.DeleteGoodsCategory) (sum int, err error)
- func QueryGoodsCategoryLevel(params *request.DeleteGoodsCategory) (level int, err error)
- func QueryGoodsCategoryNameOnly(params *request.EditGoodsCategory) (sum int, err error)
- func QueryGoodsCategoryindexChildren(params *request.DeleteGoodsCategory) (sum int, err error)
- func QueryParentCategoryInfo(pid int) (int, string, error)
- type JccGoodsCategory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteGoodsCategory ¶
func DeleteGoodsCategory(params *request.DeleteGoodsCategory) (err error)
删除商品种类
func EditGoodsCategory ¶
func EditGoodsCategory(params *request.EditGoodsCategory) (err error)
修改商品分类名称
func QueryExistCategoryName ¶
查询未删除状态的分类名称是否存在
func QueryGoodsCategoryChildren ¶
func QueryGoodsCategoryChildren(params *request.DeleteGoodsCategory) (sum int, err error)
查询商品种类是否存在子分类
func QueryGoodsCategoryLevel ¶
func QueryGoodsCategoryLevel(params *request.DeleteGoodsCategory) (level int, err error)
查询商品种类level
func QueryGoodsCategoryNameOnly ¶
func QueryGoodsCategoryNameOnly(params *request.EditGoodsCategory) (sum int, err error)
查询商品分类名字是否唯一
func QueryGoodsCategoryindexChildren ¶
func QueryGoodsCategoryindexChildren(params *request.DeleteGoodsCategory) (sum int, err error)
查询商品种类是否存在商品
Types ¶
type JccGoodsCategory ¶
type JccGoodsCategory struct { Id int `orm:"column(id);auto" description:"ID"` Name string `orm:"column(name);size(20)" description:"名称"` No string `orm:"column(no);size(9)" description:"编码"` Level int8 `orm:"column(level)" description:"等级"` Pid int `orm:"column(pid)" description:"父类ID"` CreatedAt int64 `orm:"column(created_at)" description:"创建时间"` UpdatedAt int64 `orm:"column(updated_at)" description:"修改时间"` DeletedAt int64 `orm:"column(deleted_at)" description:"删除时间"` IsDel int8 `orm:"column(is_del)" description:"是否删除"` //Kind string `orm:"column(kind);size(20);null" description:"商品的分类(本地(offline)、自营(online))默认的是本地(offline)"` //Companyid int `orm:"column(companyid)" description:"公司id"` //ErpId int `orm:"column(erp_id)" description:"erp的商品分类id"` Category []JccGoodsCategory `orm:"-"` }
func QueryAllCategoryInfoById ¶
func QueryAllCategoryInfoById(categoryId int) ([]JccGoodsCategory, error)
func QueryAllGoodsCategoryInfo ¶
func QueryAllGoodsCategoryInfo(param *request.GoodsCategory) ([]JccGoodsCategory, error)
查询所有商品分类信息
func QueryCategoryById ¶
func QueryCategoryById(categoryId int) (list JccGoodsCategory, err error)
通过id查询
Click to show internal directories.
Click to hide internal directories.