RemoteSystemBaseService.java 7.7 KB

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