// Code generated by goctl. DO NOT EDIT! // Source: resource.proto package server import ( "context" "bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/internal/logic" "bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/internal/svc" "bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/pb" ) type ResourceServer struct { svcCtx *svc.ServiceContext pb.UnimplementedResourceServer } func NewResourceServer(svcCtx *svc.ServiceContext) *ResourceServer { return &ResourceServer{ svcCtx: svcCtx, } } // 开通或者取消用户/企业权益 func (s *ResourceServer) PowerHandle(ctx context.Context, in *pb.PowerReq) (*pb.Resp, error) { l := logic.NewPowerHandleLogic(ctx, s.svcCtx) return l.PowerHandle(in) } // 检查用户/企业权益 func (s *ResourceServer) CheckPower(ctx context.Context, in *pb.CheckPowerReq) (*pb.Resp, error) { l := logic.NewCheckPowerLogic(ctx, s.svcCtx) return l.CheckPower(in) } // 资源扣减 func (s *ResourceServer) Deduction(ctx context.Context, in *pb.DeductionReq) (*pb.Resp, error) { l := logic.NewDeductionLogic(ctx, s.svcCtx) return l.Deduction(in) } // 资源充值 func (s *ResourceServer) Recharge(ctx context.Context, in *pb.RechargeReq) (*pb.Resp, error) { l := logic.NewRechargeLogic(ctx, s.svcCtx) return l.Recharge(in) } // 重新授权 func (s *ResourceServer) ReEmpower(ctx context.Context, in *pb.EmpowerReq) (*pb.Resp, error) { l := logic.NewReEmpowerLogic(ctx, s.svcCtx) return l.ReEmpower(in) } // 取消授权 func (s *ResourceServer) CancelEmpower(ctx context.Context, in *pb.EmpowerReq) (*pb.Resp, error) { l := logic.NewCancelEmpowerLogic(ctx, s.svcCtx) return l.CancelEmpower(in) } // 授权列表 func (s *ResourceServer) EmpowerList(ctx context.Context, in *pb.EmpowerListReq) (*pb.EmpowerListResp, error) { l := logic.NewEmpowerListLogic(ctx, s.svcCtx) return l.EmpowerList(in) }