12345678910111213141516171819202122232425262728293031323334353637383940 |
- package logic
- import (
- "app.yhyue.com/moapp/jyPoints/entity"
- "context"
- "app.yhyue.com/moapp/jyPoints/rpc/integral"
- "app.yhyue.com/moapp/jyPoints/rpc/internal/svc"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type IntegralExpireCheckLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewIntegralExpireCheckLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IntegralExpireCheckLogic {
- return &IntegralExpireCheckLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // 到期积分查询
- func (l *IntegralExpireCheckLogic) IntegralExpireCheck(in *integral.Req) (*integral.Resp, error) {
- // todo: add your logic here and delete this line
- result := &integral.Resp{}
- dat := entity.ExpireJSON{}
- dat.UserId = in.UserId
- dat.EndDate = "2021-03-16"
- dat.AppId = "10000"
- dataType, points := integralService.IntegralExpireCheckService(dat)
- result.Code = dataType
- result.Data = points
- result.Message = "到期积分查询成功"
- return result, nil
- }
|