public DataRes <IEnumerable <string> > GetFunctions(string code) { DataRes <IEnumerable <string> > res = new DataRes <IEnumerable <string> >() { code = ResCode.Success }; var list = userFunctionBLL.GetList($"userCode='{code}'"); res.data = list.Select(p => p.FunctionCode); return(res); }
/// <summary> /// 获取用户权限列表 /// </summary> /// <param name="userCode"></param> /// <returns></returns> private List <Pub_UserFunction> GetUserFunction(string userCode) { var data = userFunctionBLL.GetList("UserCode='" + userCode + "'"); return(data); }