// Code generated by goctl. DO NOT EDIT! // Source: powerCheck.proto package server import ( "context" "bp.jydev.jianyu360.cn/BaseService/powerCheckCenter/rpc/internal/logic" "bp.jydev.jianyu360.cn/BaseService/powerCheckCenter/rpc/internal/svc" "bp.jydev.jianyu360.cn/BaseService/powerCheckCenter/rpc/pb" ) type PowerCheckServer struct { svcCtx *svc.ServiceContext pb.UnimplementedPowerCheckServer } func NewPowerCheckServer(svcCtx *svc.ServiceContext) *PowerCheckServer { return &PowerCheckServer{ svcCtx: svcCtx, } } // 用户权限判断 func (s *PowerCheckServer) Check(ctx context.Context, in *pb.CheckReq) (*pb.CheckResp, error) { l := logic.NewCheckLogic(ctx, s.svcCtx) return l.Check(in) } // 清除权限缓存 func (s *PowerCheckServer) DelCheckRedis(ctx context.Context, in *pb.CheckReq) (*pb.PowerCheckResp, error) { l := logic.NewDelCheckRedisLogic(ctx, s.svcCtx) return l.DelCheckRedis(in) }