integraldetailedchecklogic.go 895 B

1234567891011121314151617181920212223242526272829303132333435363738
  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.ExpireJSON{}
  26. dat.UserId = in.UserId
  27. dat.EndDate = "2021-03"
  28. dat.AppId = 10000
  29. data := integralService.IntegralDetailedCheck(dat)
  30. fmt.Println(data)
  31. return &integral.AddResp{}, nil
  32. }