deriveshowlogic.go 653 B

123456789101112131415161718192021222324252627282930
  1. package logic
  2. import (
  3. "context"
  4. "jyBXSubscribe/rpc/model"
  5. "jyBXSubscribe/rpc/internal/svc"
  6. "jyBXSubscribe/rpc/type/bxsubscribe"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type DeriveShowLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewDeriveShowLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeriveShowLogic {
  15. return &DeriveShowLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. // 自动数据导出筛选条件查询
  22. func (l *DeriveShowLogic) DeriveShow(in *bxsubscribe.DeriveReq) (*bxsubscribe.DeriveRes, error) {
  23. return model.ScreeningList(in.UserId), nil
  24. }