integraldetailedchecklogic.go 933 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package logic
  2. import (
  3. "context"
  4. "fmt"
  5. "points_service/entity"
  6. "points_service/rpc/integral"
  7. "points_service/rpc/internal/svc"
  8. "github.com/tal-tech/go-zero/core/logx"
  9. )
  10. type IntegralDetailedCheckLogic struct {
  11. ctx context.Context
  12. svcCtx *svc.ServiceContext
  13. logx.Logger
  14. }
  15. func NewIntegralDetailedCheckLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IntegralDetailedCheckLogic {
  16. return &IntegralDetailedCheckLogic{
  17. ctx: ctx,
  18. svcCtx: svcCtx,
  19. Logger: logx.WithContext(ctx),
  20. }
  21. }
  22. // 积分明细查询
  23. func (l *IntegralDetailedCheckLogic) IntegralDetailedCheck(in *integral.AddReq) (*integral.AddResp, error) {
  24. // todo: add your logic here and delete this line
  25. dat := entity.FlowJSON{}
  26. dat.UserId = in.UserId
  27. dat.EndDate = "2021-03"
  28. dat.AppId = 10000
  29. dat.Page=1
  30. dat.PageSize=2
  31. data,count := integralService.IntegralDetailedCheck(dat)
  32. fmt.Println(count,data)
  33. return &integral.AddResp{}, nil
  34. }