public static List <Organize> GetOrganizes(string sessionKey) { List <Organize> permission = null; string moduleJson = CallTheApi(GetPermissionUrl.FormatWith(sessionKey) + "?$top=120", "", PublicKey, SecretKey, "POST", (a, r) => { permission = a.TryParseEntitys <Organize>(r, "Organize"); }); return(permission); }
/// <summary> /// 获取当前用户的功能菜单树 /// </summary> /// <returns></returns> //public static string GetSysMenu() //{ // //return HttpCrossDomain.Post(GetSysMenuUrl, "{sessionKey:'" + AuthToken.CurrentUser.sessionKey + "'}"); // return ""; //} /// <summary> /// 获取用户拥有的权限 /// </summary> /// <returns></returns> public static List <Permission> GetPermissions(string sessionKey) { List <Permission> permission = null; string moduleJson = CallTheApi(GetPermissionUrl.FormatWith(sessionKey) + "?$top=120", "{\"AppKey\":\"" + AppKey + "\"}", PublicKey, SecretKey, "POST", (a, r) => { permission = a.TryParseEntitys <Permission>(r, "Permission"); }); return(permission); }