平安校园
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.
 
 
 
 
 
 

120 lines
2.8 KiB

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