/// <summary> /// 获得权限的下拉值 /// </summary> /// <returns></returns> public DorpDownPrivilegeResponse GetPrivilege(DorpDownPrivilegeRequest request) { DorpDownPrivilegeResponse reponse = new DorpDownPrivilegeResponse(); var list = PostRoleDal.Instance.GetPrivilege(); if (list.Count <= 0) { reponse.Message = "获取失败,请稍后再试"; reponse.Status = false; } else { reponse.Privileges = list; reponse.Message = $"获取数据成功,共获取{list.Count}条数据"; } return(reponse); }
public DorpDownPrivilegeResponse GePrivilege(DorpDownPrivilegeRequest request) { return(PostRoleBll.Instance.GetPrivilege(request)); }
/// <summary> /// 获取权限名称 /// </summary> /// <returns></returns> public JsonResult GePrivilege(DorpDownPrivilegeRequest request) { return(Json(RoleBll.Instance.GePrivilege(request))); }
/// <summary> /// 获取权限名称 /// </summary> /// <param name="request"></param> /// <returns></returns> public DorpDownPrivilegeResponse GePrivilege(DorpDownPrivilegeRequest request) { return(ApiRequestHelper.Post <DorpDownPrivilegeRequest, DorpDownPrivilegeResponse>(request)); }