RemoteSystemBaseService.java 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. package com.sooka.sponest.mobile.remoteapi;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.ruoyi.common.core.constant.SecurityConstants;
  4. import com.ruoyi.common.core.domain.R;
  5. import com.ruoyi.common.core.web.domain.AjaxResult;
  6. import com.ruoyi.common.core.web.page.TableDataInfo;
  7. import com.ruoyi.system.api.domain.SysDept;
  8. import com.ruoyi.system.api.domain.SysMenuEventType;
  9. import com.ruoyi.system.api.domain.SysUser;
  10. import com.ruoyi.system.api.model.LoginUser;
  11. import com.sooka.sponest.mobile.base.domain.ModulesServiceNameContants;
  12. import com.sooka.sponest.mobile.base.domain.SysAttendance;
  13. import com.sooka.sponest.mobile.event.domain.SysUserSystem;
  14. import com.sooka.sponest.mobile.log.LogFeignCall;
  15. import com.sooka.sponest.mobile.remoteapi.factory.RemoteSystemBaseServiceFallbackFactory;
  16. import com.sooka.sponest.mobile.system.login.domain.AppUpPwd;
  17. import org.springframework.cloud.openfeign.FeignClient;
  18. import org.springframework.web.bind.annotation.*;
  19. import java.util.List;
  20. import java.util.Map;
  21. @FeignClient(contextId = "remoteSystemService", value = ModulesServiceNameContants.SYSTEM_SERVICE,
  22. fallbackFactory = RemoteSystemBaseServiceFallbackFactory.class, url = "${sooka.service.system}")
  23. public interface RemoteSystemBaseService {
  24. /**
  25. * 查询轮播图列表(无参)
  26. *
  27. * @return com.ruoyi.common.core.web.page.TableDataInfo
  28. * @author pengyu
  29. * @date 2023/2/22 14:45
  30. **/
  31. @RequestMapping("/retaion/selectList")
  32. @LogFeignCall
  33. public TableDataInfo selectList();
  34. /**
  35. * 手机端获取版本
  36. *
  37. * @return com.ruoyi.common.core.web.domain.AjaxResult
  38. * @author pengyu
  39. * @date 2023/2/22 14:46
  40. **/
  41. @PostMapping("/version/getVersionInfo")
  42. @LogFeignCall
  43. public AjaxResult getVersionInfo(@RequestParam("packageName") String packageName);
  44. /**
  45. * 手机端通知列表
  46. *
  47. * @return com.ruoyi.common.core.web.page.TableDataInfo
  48. * @author pengyu
  49. * @date 2023/2/22 13:05
  50. **/
  51. /*@GetMapping("/notice/noticlist")
  52. public TableDataInfo noticlist(@RequestParam(value = "pageNum") Integer pageNum, @RequestParam(value = "pageSize") Integer pageSize);*/
  53. @GetMapping("/notice/listNoticeByDeptId")
  54. @LogFeignCall
  55. public AjaxResult noticlist(@RequestParam(value = "pageNum") Integer pageNum, @RequestParam(value = "pageSize") Integer pageSize);
  56. //根据通知公告编号获取详细信息(App)
  57. @RequestMapping("/notice/getInfoApp")
  58. @LogFeignCall
  59. public AjaxResult getInfoApp(@RequestParam(value = "noticeId") Long noticeId);
  60. //根据参数键名查询参数值
  61. @GetMapping(value = "/config/configKey/{configKey}")
  62. @LogFeignCall
  63. public AjaxResult getConfigKey(@PathVariable(value = "configKey") String configKey);
  64. //根据用户编号获取详细信息远程接口
  65. @RequestMapping(value = "/user/selectById/{userId}")
  66. @LogFeignCall
  67. public R<SysUser> selectById(@PathVariable("userId") Long userId);
  68. //根据部门编号获取详细信息
  69. @RequestMapping("/dept/selectDeptById/{deptId}")
  70. @LogFeignCall
  71. public R<SysDept> selectDeptById(@PathVariable("deptId") Long deptId);
  72. //获取全部部门
  73. @GetMapping("/dept/getDeptListAll")
  74. @LogFeignCall
  75. R<List<SysDept>> treeselectAll();
  76. /**
  77. * 根据参数键名查询参数值
  78. *
  79. * @return
  80. * @Version 1.0
  81. * @author wang_xy
  82. * @since 2023/2/22 14:30
  83. */
  84. @RequestMapping("/config/selectConfigKey/{configKey}")
  85. @LogFeignCall
  86. public R<String> selectConfigKey(@PathVariable("configKey") String configKey);
  87. /**
  88. * 根据多个参数键名查询多个参数键值MAP
  89. *
  90. * @return
  91. * @Version 1.0
  92. * @author wang_xy
  93. * @since 2023/2/22 14:31
  94. */
  95. @PostMapping(value = "/config/getConfigMap")
  96. @LogFeignCall
  97. R<Map<String, String>> remotegetConfigMap(@RequestParam("keys") List<String> keys);
  98. /**
  99. * 获取当前用户信息
  100. *
  101. * @return
  102. * @Version 1.0
  103. * @author wang_xy
  104. * @since 2023/2/22 8:43
  105. */
  106. @GetMapping("/user/info/{username}")
  107. @LogFeignCall
  108. public R<LoginUser> getUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
  109. /**
  110. * 修改用户的极光设备码
  111. *
  112. * @return
  113. * @Version 1.0
  114. * @author wang_xy
  115. * @since 2023/2/22 8:43
  116. */
  117. @GetMapping("/user/updateUserJg/{userName}/{deviceid}")
  118. @LogFeignCall
  119. public R updateUserJg(@PathVariable("userName") String userName, @PathVariable("deviceid") String deviceid);
  120. /**
  121. * 手机端新增考勤打卡
  122. *
  123. * @param sys
  124. * @return com.ruoyi.common.core.web.domain.AjaxResult
  125. * @author pengyu
  126. * @date 2023/2/21 16:23
  127. */
  128. @PutMapping("/sysAttendance/addAttendance")
  129. @LogFeignCall
  130. public AjaxResult addAttendance(@RequestBody SysAttendance sys);
  131. /**
  132. * 手机端查询考勤打卡
  133. *
  134. * @param userId
  135. * @return com.ruoyi.common.core.web.domain.AjaxResult
  136. * @author pengyu
  137. * @date 2023/2/21 16:23
  138. */
  139. @GetMapping("/sysAttendance/getAttendance/{userId}")
  140. @LogFeignCall
  141. public AjaxResult getAttendance(@PathVariable("userId") Long userId);
  142. /**
  143. * 通过用户名查询用户
  144. *
  145. * @param userName
  146. * @return com.ruoyi.common.core.web.domain.AjaxResult
  147. * @author pengyu
  148. * @date 2023/2/21 16:23
  149. */
  150. @GetMapping("/sysutils/deptselector")
  151. @LogFeignCall
  152. public AjaxResult deptselector(@RequestParam("userName") String userName);
  153. /**
  154. * 获取所有组织机构
  155. *
  156. * @return com.ruoyi.common.core.web.domain.AjaxResult
  157. * @author pengyu
  158. * @date 2023/2/21 16:23
  159. */
  160. @GetMapping("/dept/appList")
  161. @LogFeignCall
  162. public AjaxResult getDeptList(@RequestParam("deptName") String deptName);
  163. /**
  164. * @param sysMenuEventType
  165. * @Description: 通过menu_id查询事件类型
  166. * @return: AjaxResult
  167. */
  168. @PostMapping(value = "/menuEventType/selectByMenuId")
  169. @LogFeignCall
  170. R<List<SysMenuEventType>> selectByMenuId(@RequestBody SysMenuEventType sysMenuEventType);
  171. /**
  172. * 获取可视化菜单信息
  173. *
  174. * @return com.ruoyi.common.core.web.domain.AjaxResult
  175. * @author pengyu
  176. * @date 2023/5/26 16:23
  177. */
  178. @GetMapping("/user/selectRoleMenuVisuTreest")
  179. @LogFeignCall
  180. public AjaxResult selectRoleMenuVisuTreest();
  181. @GetMapping("/menuEventType/selectByMenuIds/{ids}")
  182. @LogFeignCall
  183. R<List<SysMenuEventType>> selectByMenuIds(@PathVariable("ids") String[] ids);
  184. @GetMapping("/user/selectUserWithPostByDeptId")
  185. @LogFeignCall
  186. R<List<SysUserSystem>> selectUserWithPostByDeptId(@RequestParam("deptId") Long deptId);
  187. @GetMapping("/hwMeeting/joinConferences/{eventId}/{meetingSubject}/{userName}")
  188. @LogFeignCall
  189. public AjaxResult joinConferences(@PathVariable("eventId") String eventId, @PathVariable("meetingSubject") String meetingSubject, @PathVariable("userName") String userName);
  190. @GetMapping("/menuApp/getAppChildrenMenuOrButtonByParentId")
  191. @LogFeignCall
  192. AjaxResult getAppChildrenMenuOrButtonByParentId(@RequestParam("parentId") String parentId,@RequestParam("menuType") String menuType);
  193. @GetMapping("/dict/data/type/{dictType}")
  194. @LogFeignCall
  195. AjaxResult getSortByType(@PathVariable("dictType") String dictType);
  196. @GetMapping("/menuApp/selectMenuListByParentIdAndRoleId/{parentId}")
  197. @LogFeignCall
  198. AjaxResult getMenuListByParentId(@PathVariable("parentId") String parentId);
  199. @PostMapping("/user/userFeginlist")
  200. @LogFeignCall
  201. R<List<SysUser>> getUserList(@RequestBody SysUser sysUser);
  202. @PostMapping("/user/userFeginlistWithPage")
  203. @LogFeignCall
  204. List<SysUser> getUserListByPage(@RequestBody SysUser sysUser);
  205. @GetMapping(value = "/dept/userDeptSelectIncludeChildren/{deptId}")
  206. @LogFeignCall
  207. AjaxResult userDeptSelectIncludeChildren(@PathVariable("deptId") String deptId);
  208. @GetMapping("/dept/userDeptSelect")
  209. @LogFeignCall
  210. AjaxResult getUserDeptSelect();
  211. @GetMapping("/dept/getChildren/{deptId}/{postId}")
  212. @LogFeignCall
  213. AjaxResult getChildren(@PathVariable("deptId") String deptId, @PathVariable("postId") String postId);
  214. @GetMapping("/dict/data/internetOfThings/{dictType}")
  215. @LogFeignCall
  216. AjaxResult getSortByTypeAndCount(@PathVariable("dictType") String dictType);
  217. @PostMapping("/dept/getDeptsByDeptType")
  218. @LogFeignCall
  219. AjaxResult getDeptsByDeptType(@RequestBody SysDept sysDept);
  220. @GetMapping("/user/forceUpdatePwd/{username}")
  221. AjaxResult forceUpdatePwd(@PathVariable("username")String username);
  222. @PutMapping("/user/profile/updateAppPwd")
  223. AjaxResult updatPwd(@RequestBody AppUpPwd appUpPwd);
  224. @GetMapping("/communication/getCommunicationByDeptId")
  225. public AjaxResult getCommunicationByDeptId(@RequestParam(value = "deptId") String deptId, @RequestParam(value = "selectParam") String selectParam, @RequestParam(value = "pageNum") int pageNum, @RequestParam(value = "pageSize") int pageSize);
  226. }