1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- // Code generated by goctl. DO NOT EDIT.
- // Source: integral.proto
- package server
- import (
- "context"
- "app.yhyue.com/moapp/jyPoints/rpc/integral"
- "app.yhyue.com/moapp/jyPoints/rpc/internal/logic"
- "app.yhyue.com/moapp/jyPoints/rpc/internal/svc"
- )
- type IntegralServer struct {
- svcCtx *svc.ServiceContext
- integral.UnimplementedIntegralServer
- }
- func NewIntegralServer(svcCtx *svc.ServiceContext) *IntegralServer {
- return &IntegralServer{
- svcCtx: svcCtx,
- }
- }
- // 收获积分
- func (s *IntegralServer) IntegralHarvest(ctx context.Context, in *integral.Req) (*integral.Resp, error) {
- l := logic.NewIntegralHarvestLogic(ctx, s.svcCtx)
- return l.IntegralHarvest(in)
- }
- // 消耗积分
- func (s *IntegralServer) IntegralConsume(ctx context.Context, in *integral.Req) (*integral.Resp, error) {
- l := logic.NewIntegralConsumeLogic(ctx, s.svcCtx)
- return l.IntegralConsume(in)
- }
- // 积分余额查询
- func (s *IntegralServer) IntegralBalanceCheck(ctx context.Context, in *integral.Req) (*integral.Resp, error) {
- l := logic.NewIntegralBalanceCheckLogic(ctx, s.svcCtx)
- return l.IntegralBalanceCheck(in)
- }
- // 积分明细查询
- func (s *IntegralServer) IntegralDetailedCheck(ctx context.Context, in *integral.Req) (*integral.RespList, error) {
- l := logic.NewIntegralDetailedCheckLogic(ctx, s.svcCtx)
- return l.IntegralDetailedCheck(in)
- }
- // 积分守护
- func (s *IntegralServer) IntegralGuard(ctx context.Context, in *integral.Req) (*integral.Resp, error) {
- l := logic.NewIntegralGuardLogic(ctx, s.svcCtx)
- return l.IntegralGuard(in)
- }
- // 到期积分查询
- func (s *IntegralServer) IntegralExpireCheck(ctx context.Context, in *integral.Req) (*integral.Resp, error) {
- l := logic.NewIntegralExpireCheckLogic(ctx, s.svcCtx)
- return l.IntegralExpireCheck(in)
- }
- // 合并账号
- func (s *IntegralServer) UserMerge(ctx context.Context, in *integral.MergeInfo) (*integral.Resp, error) {
- l := logic.NewUserMergeLogic(ctx, s.svcCtx)
- return l.UserMerge(in)
- }
|