// Code generated by goctl. DO NOT EDIT! // Source: integral.proto package server import ( "context" "points_service/rpc/integral" "points_service/rpc/internal/logic" "points_service/rpc/internal/svc" ) type IntegralServer struct { svcCtx *svc.ServiceContext } func NewIntegralServer(svcCtx *svc.ServiceContext) *IntegralServer { return &IntegralServer{ svcCtx: svcCtx, } } // 新增积分 func (s *IntegralServer) AddFlow(ctx context.Context, in *integral.AddReq) (*integral.AddResp, error) { l := logic.NewAddFlowLogic(ctx, s.svcCtx) return l.AddFlow(in) } // 调整结存 func (s *IntegralServer) UpdateBalance(ctx context.Context, in *integral.AddReq) (*integral.AddResp, error) { l := logic.NewUpdateBalanceLogic(ctx, s.svcCtx) return l.UpdateBalance(in) } // 调整余额 func (s *IntegralServer) UpdateTotal(ctx context.Context, in *integral.AddReq) (*integral.AddResp, error) { l := logic.NewUpdateTotalLogic(ctx, s.svcCtx) return l.UpdateTotal(in) } // 消耗积分 func (s *IntegralServer) IntegralConsume(ctx context.Context, in *integral.AddReq) (*integral.AddResp, error) { l := logic.NewIntegralConsumeLogic(ctx, s.svcCtx) return l.IntegralConsume(in) } // 积分守护 func (s *IntegralServer) IntegralGuard(ctx context.Context, in *integral.AddReq) (*integral.AddResp, error) { l := logic.NewIntegralGuardLogic(ctx, s.svcCtx) return l.IntegralGuard(in) } // 到期积分查询 func (s *IntegralServer) IntegralCheck(ctx context.Context, in *integral.AddReq) (*integral.AddResp, error) { l := logic.NewIntegralCheckLogic(ctx, s.svcCtx) return l.IntegralCheck(in) }