integraldetailedchecklogic.go 897 B

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