// 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) }