/// <summary> /// 获取用户分页列表 /// </summary> /// <param name="page"></param> /// <param name="keywords"></param> /// <returns></returns> public PageResponse <UcUsers> GetUserPageList(PageModel page, string keywords) { try { RequestBase request = RequestBase.Get.Clone() as RequestBase; request.SetValue("pageIndex", page.PageIndex); request.SetValue("pageSize", page.PageSize); request.SetValue("keywords", keywords); request.Url = GetPageUrl; return(sdkUtil.PostForResultVo <PageResponse <UcUsers> >(request)); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } return(new PageResponse <UcUsers>()); }
/// <summary> /// 获取当前登录信息 /// </summary> /// <param name="loginInfo"></param> /// <returns></returns> public OperatorVo GetCurrentOperator() { try { RequestBase request = RequestBase.Get.Clone() as RequestBase; request.Url = GetCurrentOperatorUrl; return(sdkUtil.PostForResultVo <OperatorVo>(request)); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } return(null); }
/// <summary> /// 根据主键ID获取信息 /// </summary> /// <returns></returns> public UcUsersSetting GetUserSettingInfo(string UserNo) { try { RequestBase request = RequestBase.Get.Clone() as RequestBase; request.SetValue("userNo", UserNo); request.Url = GetUserSettingInfoUrl; return(sdkUtil.PostForResultVo <UcUsersSetting>(request)); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } return(null); }
/// <summary> /// 获取菜单所有列表 /// </summary> /// <param name="loginInfo"></param> /// <returns></returns> public PageResponse <RtShortMessage> GetPageList(PageModel page) { try { RequestBase request = RequestBase.Get.Clone() as RequestBase; request.SetValue("pageIndex", page.PageIndex); request.SetValue("pageSize", page.PageSize); request.Url = GetPageUrl; return(sdkUtil.PostForResultVo <PageResponse <RtShortMessage> >(request)); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } return(new PageResponse <RtShortMessage>()); }
/// <summary> /// 获取菜单所有列表 /// </summary> /// <param name="loginInfo"></param> /// <returns></returns> public PageResponse <RtPushconfig> GetPageList(PageModel page, string keywords = "", long PushconfigNo = -1) { try { RequestBase request = RequestBase.Get.Clone() as RequestBase; request.SetValue("pageIndex", page.PageIndex); request.SetValue("pageSize", page.PageSize); request.SetValue("keywords", keywords); request.SetValue("queryNo", PushconfigNo); request.Url = GetPageUrl; return(sdkUtil.PostForResultVo <PageResponse <RtPushconfig> >(request)); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } return(new PageResponse <RtPushconfig>()); }
/// <summary> /// 获取菜单所有列表 /// </summary> /// <param name="loginInfo"></param> /// <returns></returns> public PageResponse <UcLoginLog> GetUcLoginLogPageList(PageModel page, LogQueryForm logQueryForm) { try { RequestBase request = RequestBase.Get.Clone() as RequestBase; request.SetValue("pageIndex", page.PageIndex, true); request.SetValue("pageIndex", page.PageIndex); request.SetValue("pageSize", page.PageSize); request.SetValue("keywords", logQueryForm.keywords); request.SetValue("queryNo", logQueryForm.queryNo); request.SetValue("handleUser", logQueryForm.HandleUser); request.Url = GetPageUrl; return(sdkUtil.PostForResultVo <PageResponse <UcLoginLog> >(request)); } catch (Exception ex) { LogAgent.Info(ex.ToString()); } return(new PageResponse <UcLoginLog>()); }
/// <summary> /// 获取菜单所有列表 /// </summary> /// <param name="loginInfo"></param> /// <returns></returns> public PageResponse <RtEmail> GetPageList(PageModel page, string from = "", string to = "", string subject = "", string message = "") { try { RequestBase request = RequestBase.Get.Clone() as RequestBase; request.SetValue("pageIndex", page.PageIndex); request.SetValue("pageSize", page.PageSize); request.SetValue("from", from); request.SetValue("to", to); request.SetValue("subject", subject); request.SetValue("message", message); request.Url = GetPageUrl; return(sdkUtil.PostForResultVo <PageResponse <RtEmail> >(request)); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } return(new PageResponse <RtEmail>()); }