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