getcommoditylistlogic.go 781 B

1234567891011121314151617181920212223242526272829303132
  1. package logic
  2. import (
  3. "context"
  4. "app.yhyue.com/moapp/jyMarketing/rpc/activity"
  5. "app.yhyue.com/moapp/jyMarketing/rpc/internal/svc"
  6. "github.com/zeromicro/go-zero/core/logx"
  7. )
  8. type GetCommodityListLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewGetCommodityListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCommodityListLogic {
  14. return &GetCommodityListLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. // 商品获取
  21. func (l *GetCommodityListLogic) GetCommodityList(in *activity.Request) (*activity.CommodityResp, error) {
  22. // todo: add your logic here and delete this line
  23. result := &activity.CommodityResp{}
  24. result.Data = activityServiceNew.GetCommodityList(in)
  25. return result, nil
  26. }