categoryIds

package
v0.0.0-...-10721fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCategory

func AddCategory(category JccGoodsCategory) (int64, error)

添加分类

func CountSameParentCategory

func CountSameParentCategory(pid int) (int, error)

查询相同父类的分类个数

func DeleteGoodsCategory

func DeleteGoodsCategory(params *request.DeleteGoodsCategory) (err error)

删除商品种类

func EditGoodsCategory

func EditGoodsCategory(params *request.EditGoodsCategory) (err error)

修改商品分类名称

func ExistCategory

func ExistCategory(categoryId int) bool

判断是否存在三级分类

func QueryExistCategoryName

func QueryExistCategoryName(categoryName string) (int, error)

查询未删除状态的分类名称是否存在

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)

查询商品种类是否存在商品

func QueryParentCategoryInfo

func QueryParentCategoryInfo(pid int) (int, string, 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查询

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL