product

package
v0.0.0-...-7a73484 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Product

type Product struct {
	client.Baseclient
}

func (*Product) AddCategory

func (p *Product) AddCategory(ctx context.Context, args *product.ArgsCategoryAdd, categoryId *int) error

添加商品分类

func (*Product) AddProduct

func (p *Product) AddProduct(ctx context.Context, args *product.ArgsProductAdd, detailId *int) error

添加商品

func (*Product) AddSpec

func (p *Product) AddSpec(ctx context.Context, args *product.ArgsSpecAdd, reply *int) error

添加商品规格

func (*Product) AddTag

func (p *Product) AddTag(ctx context.Context, args *product.ArgsTagAdd, tagId *int) error

添加商品标签

func (*Product) ChangeProductSalesAndStack

func (p *Product) ChangeProductSalesAndStack(ctx context.Context, orderSn *string, reply *bool) error

购买成功,设置产品的销量和库存

func (*Product) DelCategory

func (p *Product) DelCategory(ctx context.Context, args *product.ArgsCategoryDel, reply *bool) error

删除 一条 商品分类

func (*Product) DelMoreProduct

func (p *Product) DelMoreProduct(ctx context.Context, args *product.ArgsProductDelMore, reply *bool) error

批量删除 商品

func (*Product) DelProduct

func (p *Product) DelProduct(ctx context.Context, args *product.ArgsProductDel, reply *bool) error

删除一条 商品

func (*Product) DelTag

func (p *Product) DelTag(ctx context.Context, args *product.ArgsTagDel, reply *bool) error

删除 一条 商品标签

func (*Product) GetByDetailIds

func (p *Product) GetByDetailIds(ctx context.Context, detailIds *[]int, reply *[]product.ReplyShopSell) error

根据detailIds查询售价-RPC调用

func (*Product) GetCategories

func (p *Product) GetCategories(ctx context.Context, args *product.ArgsCategoryGet, reply *product.ReplyCategoryPage) error

查询 对应商户 的商品分类

func (*Product) GetDetail

func (p *Product) GetDetail(ctx context.Context, args *product.ArgsStockGet, reply *product.ReplyDetailPage) error

根据 商品分类 和 商品名称 查询商品详情

func (*Product) GetDetailByIds

func (p *Product) GetDetailByIds(ctx context.Context, detailIds *[]int, reply *[]product.ReplyGetDetailById) error

商品明细-rpc

func (*Product) GetDetailsByProductId

func (p *Product) GetDetailsByProductId(ctx context.Context, args *cards.ArgsSubServer, reply *product.ReplySubServer) error

根据商品id获取子规格商品

func (*Product) GetImageByProductIds

func (p *Product) GetImageByProductIds(ctx context.Context, productIds *[]int, reply *[]product.ReplyImage) error

根据多个商品id查询照片

func (*Product) GetProductByBusId

func (p *Product) GetProductByBusId(ctx context.Context, args *product.ArgsGetProductByBusId, reply *product.ReplyGetProductByBusId) error

根据busid获取商品列表 --rpc用

func (*Product) GetProductByIds

func (p *Product) GetProductByIds(ctx context.Context, args *product.ArgsProductGetByIds, reply *[]product.ReplyProductGetByIds) error

根据ids 查询商品信息

func (*Product) GetProductIds

func (p *Product) GetProductIds(ctx context.Context, args *product.ArgsGetProductIds, reply *product.ReplyGetProductIds) error

根据busId或者shopId获取商品id --rpc

func (*Product) GetProductNum

func (p *Product) GetProductNum(ctx context.Context, args *product.ArgsProductNum, reply *product.ReplyProductNum) error

获取添加商品总数

func (*Product) GetProductOne

func (p *Product) GetProductOne(ctx context.Context, args *product.ArgsProductOneGet, reply *product.ReplyProductOne) error

查询一条

func (*Product) GetProducts

func (p *Product) GetProducts(ctx context.Context, args *product.ArgsProductGet, reply *product.ReplyProductPage) error

根据 商品分类 和 商品标签 查询商品

func (*Product) GetSpecs

func (p *Product) GetSpecs(ctx context.Context, args *int, reply *[]product.ReplySpec) error

根据busId查询所属

func (*Product) GetSpecsByDeatailIds

func (p *Product) GetSpecsByDeatailIds(ctx context.Context, detailIds *[]int, reply *product.ReplyGetSpecs) error

根据DetailId获取商品规格-rpc

func (*Product) GetSpecsById

func (p *Product) GetSpecsById(ctx context.Context, args *product.ArgsSpecGet, reply *[]product.ReplySpec) error

根据一级规格id查询所有二级规格 //传0 获取所有一级规格

func (*Product) GetTags

func (p *Product) GetTags(ctx context.Context, args *product.ArgsTagGet, reply *product.ReplyTagPage) error

查询 对应商户 的商品标签

func (*Product) GetTagsByBusId

func (p *Product) GetTagsByBusId(ctx context.Context, args *int, reply *[]product.ReplyTag) error

根据busId查询所有标签id和标签名字

func (*Product) Init

func (p *Product) Init() *Product

func (*Product) IsShopIncProducts

func (p *Product) IsShopIncProducts(ctx context.Context, args *product.ArgsIsShopIncProducts, reply *bool) error

判断分店下是否含有指定商品

func (*Product) IsShopProductEqBus

func (p *Product) IsShopProductEqBus(ctx context.Context, args *product.ArgsIsShopProductEqBus, reply *bool) error

判断分店是否添加总店所有商品

func (*Product) MqDelProduct

func (p *Product) MqDelProduct(ctx context.Context, args []int, reply *bool) error

异步删除商品

func (*Product) MqUpdateStock

func (p *Product) MqUpdateStock(ctx context.Context, args *product.ArgsMqUpdateStock, reply *bool) error

异步修改总库存和预警

func (*Product) MqUpdateWarn

func (p *Product) MqUpdateWarn(ctx context.Context, args int, reply *bool) error

异步修改预警

func (*Product) UpdateCategory

func (p *Product) UpdateCategory(ctx context.Context, args *product.ArgsCategoryUpdate, reply *bool) error

更改商品类名

func (*Product) UpdateProduct

func (p *Product) UpdateProduct(ctx context.Context, args *product.ArgsProductAdd, reply *bool) error

修改商品

func (*Product) UpdateTag

func (p *Product) UpdateTag(ctx context.Context, args *product.ArgsTagUpdate, reply *bool) error

更改商品标签名

type ShopProduct

type ShopProduct struct {
	client.Baseclient
}

func (*ShopProduct) AddMoreProduct

func (s *ShopProduct) AddMoreProduct(ctx context.Context, args *product.ArgsShopProductMoreAdd, id *int) error

批量添加

func (*ShopProduct) AddProduct

func (s *ShopProduct) AddProduct(ctx context.Context, args *product.ArgsShopProductAdd, id *int) error

总部商品添加到门店

func (*ShopProduct) AddShopRequire

func (s *ShopProduct) AddShopRequire(ctx context.Context, args *product.ArgsShopRequireAdd, reply *int) error

门店要货申请

func (*ShopProduct) CancelRequire

func (s *ShopProduct) CancelRequire(ctx context.Context, args *product.ArgsRequireCancel, reply *bool) error

门店要货申请修改状态 //取消操作 待审核 修改为 已关闭

func (*ShopProduct) GetBusProductUnderRate

获取企业当月商品下架率

func (*ShopProduct) GetByShopIdAndDetailIds

func (s *ShopProduct) GetByShopIdAndDetailIds(ctx context.Context, args *product.ArgsShopSellGet, reply *[]product.ReplyShopSell) error

根据门店id和detailIds 查询售价-RPC调用

func (*ShopProduct) GetProductByIds

func (s *ShopProduct) GetProductByIds(ctx context.Context, args *product.ArgsGetProductByIds, reply *[]product.ReplyGetProductByIds) error

根据门店id和商品ID查询是否存在-RPC调用

func (*ShopProduct) GetShopDetails

func (s *ShopProduct) GetShopDetails(ctx context.Context, args *product.ArgsStockGet, reply *product.ReplyDetailPage) error

出入库添加商品 查询 根据分类和名称

func (*ShopProduct) GetShopInOutStock

func (s *ShopProduct) GetShopInOutStock(ctx context.Context, args *product.ArgsInOutStockGet, reply *product.ReplyInOutStockPage) error

门店查询出入库明细

func (*ShopProduct) GetShopProdcuts

func (s *ShopProduct) GetShopProdcuts(ctx context.Context, args *product.ArgsGetShopProdcuts, reply *[]product.ReplyGetShopProdcuts) error

根据门店id和detailIds 获取门店产品信息

func (*ShopProduct) GetShopProduct

查询门店商品

func (*ShopProduct) GetShopProductStatus

func (s *ShopProduct) GetShopProductStatus(ctx context.Context, args *[]product.ArgsGetShopProductStatus, reply *[]product.ReplyGetShopProductStatus) error

查询商品在门店的状态-rpc

func (*ShopProduct) GetShopRequire

门店要货申请查询

func (*ShopProduct) GetShopSpecPrice

func (s *ShopProduct) GetShopSpecPrice(ctx context.Context, args *product.ArgsGetImages, reply *[]product.ReplySpecPrice) error

根据多个商品id查询 价格区间

func (*ShopProduct) InRequire

func (s *ShopProduct) InRequire(ctx context.Context, args *product.ArgsRequireUpdate, reply *bool) error

门店要货申请修改状态 //入库操作 待入库 修改为 已完成

func (*ShopProduct) Init

func (s *ShopProduct) Init() *ShopProduct

func (*ShopProduct) MoreUpDownProduct

func (s *ShopProduct) MoreUpDownProduct(ctx context.Context, args *product.ArgsShopProductUpDowns, reply *bool) error

商品批量上下架

func (*ShopProduct) MqAddProduct

func (s *ShopProduct) MqAddProduct(ctx context.Context, args *product.ArgsAddProduct, reply *bool) error

异步回调 添加商品

func (*ShopProduct) ShopInfoProductList

附近-门店详情-本店商品

func (*ShopProduct) UPDownProduct

func (s *ShopProduct) UPDownProduct(ctx context.Context, args *product.ArgsShopProductUpDown, reply *bool) error

商品上下架

func (*ShopProduct) UpdateShopPrice

func (s *ShopProduct) UpdateShopPrice(ctx context.Context, args *product.ShopPriceUpdate, reply *bool) error

门店修改商品价格

type Stock

type Stock struct {
	client.Baseclient
}

func (*Stock) AddInStock

func (s *Stock) AddInStock(ctx context.Context, args *product.ArgsStockInAdd, reply *int) error

新增入库

func (*Stock) AddOutStock

func (s *Stock) AddOutStock(ctx context.Context, args *product.ArgsOutStockAdd, reply *int) error

新增出库

func (*Stock) AddPur

func (s *Stock) AddPur(ctx context.Context, args *product.ArgsPurAdd, reply *int) error

采购入库

func (*Stock) AddStockCheck

func (s *Stock) AddStockCheck(ctx context.Context, args *product.ArgsCheckAdd, reply *int) error

新建 盘点 单

func (*Stock) AddSub

func (s *Stock) AddSub(ctx context.Context, args *product.ArgsSubAdd, reply *int) error

添加供应商

func (*Stock) CheckRequire

func (s *Stock) CheckRequire(ctx context.Context, args *product.ArgsCheckRequire, reply *bool) error

总部要货申请修改状态 //审核操作 待审核 修改为 待入库

func (*Stock) GetInOutStock

func (s *Stock) GetInOutStock(ctx context.Context, args *product.ArgsInOutStockGet, reply *product.ReplyInOutStockPage) error

按条件查询出入库明细

func (*Stock) GetInStock

func (s *Stock) GetInStock(ctx context.Context, args *product.ArgsInStockGet, reply *product.ReplyInStockPage) error

查询所有入库

func (*Stock) GetOneInOutStockDetail

func (s *Stock) GetOneInOutStockDetail(ctx context.Context, args *product.ArgsGetOneStock, reply *product.ReplyOneStockPage) error

查询一条出入库详情

func (*Stock) GetOneRequireInStock

func (s *Stock) GetOneRequireInStock(ctx context.Context, args *product.ArgsRequireOneGet, reply *product.ReplyRequireDetail) error

查询一条要货入库详情

func (*Stock) GetOutStock

func (s *Stock) GetOutStock(ctx context.Context, args *product.ArgsOutStockGet, reply *product.ReplyOutStockPage) error

查询所有出库

func (*Stock) GetPending

func (s *Stock) GetPending(ctx context.Context, args *product.ArgsGetPending, reply *product.ReplyGetPending) error

获取要货提货待处理数量和预警待处理数量

func (*Stock) GetPur

func (s *Stock) GetPur(ctx context.Context, args *product.ArgsPurGet, reply *product.ReplyPur) error

查询采购信息

func (*Stock) GetPurDetail

func (s *Stock) GetPurDetail(ctx context.Context, args *product.ArgsPurDetail, reply *product.ReplyPurDetail) error

查询一条采购详情信息

func (*Stock) GetStock

func (s *Stock) GetStock(ctx context.Context, args *product.ArgsStockGet, reply *product.ReplyDetailPage) error

库存查询

func (*Stock) GetStockCheck

func (s *Stock) GetStockCheck(ctx context.Context, args *product.ArgsCheckGet, reply *product.ReplyCheckPage) error

查询盘点单

func (*Stock) GetStockCheckDetail

func (s *Stock) GetStockCheckDetail(ctx context.Context, args *product.ArgsCheckDetail, reply *product.ReplyCheckDetailPage) error

盘点单详情 - 恢复盘点单 共用接口

func (*Stock) GetSub

func (s *Stock) GetSub(ctx context.Context, args *product.ArgsSubGet, reply *product.ReplySup) error

查询供应商

func (*Stock) GetSubNameAndId

func (s *Stock) GetSubNameAndId(ctx context.Context, args *int, reply *[]product.ReplySubInfo) error

查询供应商名称和id接口

func (*Stock) GetSubOne

func (s *Stock) GetSubOne(ctx context.Context, args *product.ArgsSubGetOne, reply *product.SupInfo) error

查询一条供应商信息

func (*Stock) GetSupName

func (s *Stock) GetSupName(ctx context.Context, args *[]int, reply *map[int]string) error

根据供应商Id 查询供应商名

func (*Stock) GetWarn

查询所有预警 商品明细

func (*Stock) Init

func (s *Stock) Init() *Stock

func (*Stock) RegainDefault

func (s *Stock) RegainDefault(ctx context.Context, args *product.ArgsRegainDefault, reply *bool) error

恢复默认预警值

func (*Stock) SetCustom

func (s *Stock) SetCustom(ctx context.Context, args *product.ArgsCustom, reply *bool) error

自定义预警值

func (*Stock) SetRequire

func (s *Stock) SetRequire(ctx context.Context, args *product.ArgsSetRequire, reply *bool) error

总部要货申请 审核驳回 待审核 修改为 已驳回

func (*Stock) SetStockCheck

func (s *Stock) SetStockCheck(ctx context.Context, args *product.ArgsCheckSet, reply *bool) error

作废盘点单

func (*Stock) SetWarn

func (s *Stock) SetWarn(ctx context.Context, args *product.ArgsWarnSet, reply *bool) error

开启预警或者关闭预警

func (*Stock) SetWarnDetail

func (s *Stock) SetWarnDetail(ctx context.Context, args *product.ArgsDetailSet, reply *bool) error

关闭或开启 明细商品 预警

func (*Stock) SetWarnNum

func (s *Stock) SetWarnNum(ctx context.Context, args *product.ArgsWarnNumSet, reply *bool) error

统一设置库存预警数量

func (*Stock) UpdateSub

func (s *Stock) UpdateSub(ctx context.Context, args *product.ArgsSubUpdate, reply *bool) error

修改供应商

func (*Stock) WarnGet

func (s *Stock) WarnGet(ctx context.Context, args *product.ArgsWarnGet, reply *product.ReplyWarnGet) error

返回预警状态

Jump to

Keyboard shortcuts

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