Esempio n. 1
0
 /// <summary>
 /// 授权组API使用权
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public string Get(Routes.CMSAPIAuthorize request)
 {
     try
     {
         IGroup gcms     = Helper.GetGrain <IGroup>(0);
         string response = gcms.AuthorizeAPI(request.userName, request.token, request.groupObjectId, request.APIFullname).Result;
         return(response);
     }
     catch
     {
         return(Helper.AbnormalError);
     }
 }