平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IUserCenterService.cs 2.8 KiB

пре 4 месеци
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 个人信息中心服务
  6. /// </summary>
  7. public interface IUserCenterService : ITransient
  8. {
  9. #region 查询
  10. /// <summary>
  11. /// 获取登录用户菜单
  12. /// </summary>
  13. /// <param name="input"></param>
  14. /// <returns></returns>
  15. Task<List<SysResource>> GetLoginMenu(BaseIdInput input);
  16. /// <summary>
  17. /// 获取个人工作台
  18. /// </summary>
  19. /// <returns></returns>
  20. Task<string> GetLoginWorkbench();
  21. /// <summary>
  22. /// 获取组织架构
  23. /// </summary>
  24. /// <returns>组织架构</returns>
  25. Task<List<LoginOrgTreeOutput>> LoginOrgTree();
  26. /// <summary>
  27. /// 获取登录用户的站内信分页
  28. /// </summary>
  29. /// <param name="input">查询参数</param>
  30. /// <returns>站内信列表</returns>
  31. Task<SqlSugarPagedList<SysMessage>> LoginMessagePage(MessagePageInput input);
  32. /// <summary>
  33. /// 读取登录用户站内信详情
  34. /// </summary>
  35. /// <param name="input">消息ID</param>
  36. /// <returns>消息详情</returns>
  37. Task<MessageDetailOutPut> LoginMessageDetail(BaseIdInput input);
  38. /// <summary>
  39. /// 获取未读消息数量
  40. /// </summary>
  41. /// <returns>未读消息数量</returns>
  42. Task<int> UnReadCount();
  43. /// <summary>
  44. /// 获取快捷菜单树
  45. /// </summary>
  46. /// <returns></returns>
  47. Task<List<SysResource>> ShortcutTree();
  48. #endregion 查询
  49. #region 编辑
  50. /// <summary>
  51. /// 更新个人信息
  52. /// </summary>
  53. /// <param name="input">信息参数</param>
  54. /// <returns></returns>
  55. Task UpdateUserInfo(UpdateInfoInput input);
  56. /// <summary>
  57. /// 更新签名
  58. /// </summary>
  59. /// <param name="input">签名图片</param>
  60. /// <returns></returns>
  61. Task UpdateSignature(UpdateSignatureInput input);
  62. /// <summary>
  63. /// 编辑个人工作台
  64. /// </summary>
  65. /// <param name="input">工作台字符串</param>
  66. /// <returns></returns>
  67. Task UpdateWorkbench(UpdateWorkbenchInput input);
  68. /// <summary>
  69. /// 删除我的消息
  70. /// </summary>
  71. /// <param name="input">消息Id</param>
  72. /// <returns></returns>
  73. Task DeleteMyMessage(BaseIdInput input);
  74. /// <summary>
  75. /// 修改个人密码
  76. /// </summary>
  77. /// <param name="input">密码信息</param>
  78. /// <returns></returns>
  79. Task UpdatePassword(UpdatePasswordInput input);
  80. /// <summary>
  81. /// 修改头像
  82. /// </summary>
  83. /// <param name="input">头像文件</param>
  84. /// <returns></returns>
  85. Task<string> UpdateAvatar(BaseFileInput input);
  86. /// <summary>
  87. /// 修改默认模块
  88. /// </summary>
  89. /// <param name="input">默认模块输入参数</param>
  90. /// <returns></returns>
  91. Task SetDefaultModule(SetDefaultModuleInput input);
  92. #endregion 编辑
  93. }