Documentation ¶
Overview ¶
* @Author: lihuan * @Date: 2021-12-22 20:41:17 * @LastEditors: lihuan * @LastEditTime: 2021-12-22 21:26:25 * @Email: 17719495105@163.com
* @Author: lihuan * @Date: 2021-12-18 12:48:16 * @LastEditors: lihuan * @LastEditTime: 2021-12-22 21:32:22 * @Email: 17719495105@163.com
* @Author: lihuan * @Date: 2021-12-21 19:52:35 * @LastEditors: lihuan * @LastEditTime: 2021-12-22 20:06:01 * @Email: 17719495105@163.com
* @Author: lihuan * @Date: 2021-12-20 21:05:42 * @LastEditors: lihuan * @LastEditTime: 2021-12-21 21:22:17 * @Email: 17719495105@163.com
* @Author: lihuan * @Date: 2021-12-22 20:41:17 * @LastEditors: lihuan * @LastEditTime: 2021-12-22 21:25:40 * @Email: 17719495105@163.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProductToMapListResp ¶
func ProductToMapListResp(res *models.Product) *product.ProductReply
Types ¶
type DeleteProductLogic ¶
func NewDeleteProductLogic ¶
func NewDeleteProductLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteProductLogic
func (*DeleteProductLogic) DeleteProduct ¶
func (l *DeleteProductLogic) DeleteProduct(in *product.DeleteProductReq) (*product.DeleteProductReply, error)
删除商品
type GetBannerLogic ¶
func NewGetBannerLogic ¶
func NewGetBannerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetBannerLogic
func (*GetBannerLogic) GetBanner ¶
func (l *GetBannerLogic) GetBanner(in *product.GetBannerReq) (*product.BannerReply, error)
获取轮播图
type GetProductListLogic ¶
func NewGetProductListLogic ¶
func NewGetProductListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetProductListLogic
func (*GetProductListLogic) GetProductList ¶
func (l *GetProductListLogic) GetProductList(in *product.GetProductListReq) (*product.ProductListReply, error)
获取产品列表
type GetProductLogic ¶
func NewGetProductLogic ¶
func NewGetProductLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetProductLogic
func (*GetProductLogic) GetProduct ¶
func (l *GetProductLogic) GetProduct(in *product.GetProductReq) (*product.ProductReply, error)
获取产品列表
type IncrementProductLogic ¶
func NewIncrementProductLogic ¶
func NewIncrementProductLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IncrementProductLogic
func (*IncrementProductLogic) IncrementProduct ¶
func (l *IncrementProductLogic) IncrementProduct(in *product.ProductReq) (*product.IncrementProductReply, error)
新增产品
type UpdateProductLogic ¶
func NewUpdateProductLogic ¶
func NewUpdateProductLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateProductLogic
func (*UpdateProductLogic) UpdateProduct ¶
func (l *UpdateProductLogic) UpdateProduct(in *product.ProductReq) (*product.UpdateProductReply, error)
修改产品