|
|
@@ -3,7 +3,7 @@ package com.zd.system.api.feign;
|
|
|
import com.zd.model.constant.ApplicationConstants;
|
|
|
import com.zd.model.constant.SecurityConstants;
|
|
|
import com.zd.model.domain.AjaxResult;
|
|
|
-import com.zd.model.domain.ResultData;
|
|
|
+import com.zd.model.domain.R;
|
|
|
import com.zd.model.entity.LoginUser;
|
|
|
import com.zd.model.entity.SysUser;
|
|
|
import com.zd.system.api.feign.factory.RemoteUserFallback;
|
|
|
@@ -14,7 +14,6 @@ import org.springframework.cloud.openfeign.FeignClient;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
-
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -32,8 +31,7 @@ public interface RemoteUserService {
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@GetMapping("/user/info/{username}")
|
|
|
- ResultData<LoginUser> getUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
-
|
|
|
+ R<LoginUser> getUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
/**
|
|
|
* 通过用户名查询用户信息
|
|
|
*
|
|
|
@@ -42,8 +40,8 @@ public interface RemoteUserService {
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@GetMapping("/user/info/{username}/{loginType}")
|
|
|
- ResultData<LoginUser> getUserInfo(@PathVariable("username") String username, @PathVariable("loginType") Integer loginType,
|
|
|
- @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
+ R<LoginUser> getUserInfo(@PathVariable("username") String username, @PathVariable("loginType") Integer loginType,
|
|
|
+ @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
|
|
|
/**
|
|
|
* 通过用户ID查询用户信息
|
|
|
@@ -53,7 +51,7 @@ public interface RemoteUserService {
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@GetMapping("/user/info/id/{id}")
|
|
|
- ResultData<SysUser> getUserInfoByUserId(@PathVariable("id") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
+ R<SysUser> getUserInfoByUserId(@PathVariable("id") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -64,17 +62,16 @@ public interface RemoteUserService {
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@GetMapping("/user/info/username/{username}")
|
|
|
- ResultData<SysUser> getUserInfoByUserName(@PathVariable("username") String userName, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
-
|
|
|
+ R<SysUser> getUserInfoByUserName(@PathVariable("username") String userName, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
/**
|
|
|
* 通过用户卡号查询用户信息
|
|
|
*
|
|
|
* @param cardnum 用户账户
|
|
|
- * @param source 请求来源
|
|
|
+ * @param source 请求来源
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@GetMapping("/user/info/cardnum/{cardnum}")
|
|
|
- ResultData<SysUser> getUserInfoByCardNum(@PathVariable("cardnum") String cardnum, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
+ R<SysUser> getUserInfoByCardNum(@PathVariable("cardnum")String cardnum, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
|
|
|
/**
|
|
|
* 注册用户信息
|
|
|
@@ -84,19 +81,18 @@ public interface RemoteUserService {
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@PostMapping("/user/register")
|
|
|
- ResultData<Boolean> registerUserInfo(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
+ R<Boolean> registerUserInfo(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
|
|
|
|
|
|
@GetMapping("/user/my/info/Simple")
|
|
|
- ResultData<SimpleUserVO> myInfoSimple(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
-
|
|
|
+ R<SimpleUserVO> myInfoSimple(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
/**
|
|
|
* 获取所有可用户IDS
|
|
|
*
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@GetMapping("/user/all")
|
|
|
- ResultData<List<Long>> userALLIDS(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
+ R<List<Long>> userALLIDS(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -105,8 +101,7 @@ public interface RemoteUserService {
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@GetMapping("/user/phone/{ids}")
|
|
|
- ResultData<List<String>> getPhoneByUserIDS(@PathVariable("ids") String ids);
|
|
|
-
|
|
|
+ R<List<String>> getPhoneByUserIDS(@PathVariable("ids") String ids);
|
|
|
/**
|
|
|
* 获取指定院系用户IDS
|
|
|
*
|
|
|
@@ -114,7 +109,7 @@ public interface RemoteUserService {
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@GetMapping("/user/dept/{deptIds}")
|
|
|
- ResultData<List<Long>> userDeptIDS(@PathVariable("deptIds") String deptId, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
+ R<List<Long>> userDeptIDS(@PathVariable("deptIds") String deptId, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -122,7 +117,7 @@ public interface RemoteUserService {
|
|
|
*/
|
|
|
@ApiOperation(value = "小程序查询院系列表(用户端,管理端)")
|
|
|
@GetMapping(value = "/dept/departments/list")
|
|
|
- ResultData<Object> departmentsList();
|
|
|
+ R<Object> departmentsList();
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -130,7 +125,7 @@ public interface RemoteUserService {
|
|
|
*/
|
|
|
@ApiOperation(value = "小程序查询院系下楼栋列表(用户端,管理端)")
|
|
|
@GetMapping(value = "/dept/{deptId}/building/list")
|
|
|
- ResultData<Object> building(@PathVariable("deptId") Long deptId);
|
|
|
+ R<Object> building(@PathVariable("deptId") Long deptId);
|
|
|
|
|
|
/**
|
|
|
* 登录查询大屏用户的路由菜单
|
|
|
@@ -142,58 +137,56 @@ public interface RemoteUserService {
|
|
|
* 大屏用户权限判断
|
|
|
*/
|
|
|
@GetMapping("/role/authUser/power")
|
|
|
- AjaxResult selectAuthUserPower(@RequestParam("userId") Long userId);
|
|
|
+ AjaxResult selectAuthUserPower(@RequestParam("userId") Long userId);
|
|
|
|
|
|
/**
|
|
|
* 修改学生信息
|
|
|
*/
|
|
|
@PutMapping("/user/student")
|
|
|
- AjaxResult editUser(@RequestBody SysUser user);
|
|
|
+ AjaxResult editUser(@RequestBody SysUser user);
|
|
|
|
|
|
/**
|
|
|
* 修改学生信息
|
|
|
*/
|
|
|
@PutMapping("/user/student/editStudent")
|
|
|
- ResultData editStudent(@RequestBody SysUser user);
|
|
|
+ AjaxResult editStudent(@RequestBody SysUser user);
|
|
|
|
|
|
@PostMapping(value = "/user/updateSignature", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
|
- ResultData updateSignature(@RequestPart("file") MultipartFile file);
|
|
|
+ R updateSignature(@RequestPart("file") MultipartFile file);
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取用户默认密码
|
|
|
*/
|
|
|
@GetMapping("/config/configKey/{configKey}")
|
|
|
- AjaxResult getConfigKey(@PathVariable("configKey") String configKey);
|
|
|
+ AjaxResult getConfigKey(@PathVariable("configKey") String configKey);
|
|
|
|
|
|
@PostMapping("/user/querySignature")
|
|
|
- ResultData querySignature();
|
|
|
+ R querySignature();
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取用户默认密码
|
|
|
*/
|
|
|
@GetMapping("/logo/config/getLogoInfo")
|
|
|
- ResultData<SysLogoConfigVO> getConfigLogo();
|
|
|
+ R<SysLogoConfigVO> getConfigLogo();
|
|
|
|
|
|
@DeleteMapping("/user/{userIds}")
|
|
|
AjaxResult remove(@PathVariable("userIds") Long[] userIds);
|
|
|
|
|
|
/**
|
|
|
* 获取当前登录用户所属学校以及院系id集合
|
|
|
- *
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/user/getLogingUserDeptids")
|
|
|
- ResultData<List<Long>> getLogingUserDeptids();
|
|
|
+ R<List<Long>> getLogingUserDeptids();
|
|
|
|
|
|
/**
|
|
|
* 获取当前登录用户所属学校的deptid
|
|
|
- *
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/user/getLoginUserSchoolDeptid")
|
|
|
- ResultData<Long> getLoginUserSchoolDeptid();
|
|
|
+ R<Long> getLoginUserSchoolDeptid();
|
|
|
|
|
|
/***
|
|
|
* 根据电话查询用户信息
|
|
|
@@ -201,5 +194,5 @@ public interface RemoteUserService {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/user/getUserByPhone/{phone}")
|
|
|
- ResultData<SysUser> getUserByPhone(@PathVariable("phone") String phone);
|
|
|
+ R<SysUser> getUserByPhone(@PathVariable("phone") String phone);
|
|
|
}
|