package logic import ( "context" "app.yhyue.com/moapp/jyMarketing/rpc/activity" "app.yhyue.com/moapp/jyMarketing/rpc/internal/svc" "github.com/zeromicro/go-zero/core/logx" ) type GetCommodityListLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewGetCommodityListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCommodityListLogic { return &GetCommodityListLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 商品获取 func (l *GetCommodityListLogic) GetCommodityList(in *activity.Request) (*activity.CommodityResp, error) { // todo: add your logic here and delete this line result := &activity.CommodityResp{} result.Data = activityServiceNew.GetCommodityList(in) return result, nil }