[用户平台][缓存]实现刷新和预热

This commit is contained in:
GoEdgeLab
2020-12-23 21:24:48 +08:00
parent abc523fa1a
commit 559e6cc7f9
7 changed files with 56 additions and 5 deletions

View File

@@ -148,7 +148,7 @@ func (this *APINodeService) ListEnabledAPINodes(ctx context.Context, req *pb.Lis
// 根据ID查找节点
func (this *APINodeService) FindEnabledAPINode(ctx context.Context, req *pb.FindEnabledAPINodeRequest) (*pb.FindEnabledAPINodeResponse, error) {
_, _, err := rpcutils.ValidateRequest(ctx, rpcutils.UserTypeAdmin)
_, _, err := this.ValidateAdminAndUser(ctx, 0, 0)
if err != nil {
return nil, err
}