|
|
@@ -3,10 +3,10 @@ package com.zhongshu.card.server.core.controller.user;
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.helper.AuthHelper;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
+import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.card.client.model.base.AuthTypeParam;
|
|
|
import com.zhongshu.card.client.model.base.UserIdModel;
|
|
|
import com.zhongshu.card.client.model.org.*;
|
|
|
-import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.card.client.model.org.orgUser.OrganizationUserModel;
|
|
|
import com.zhongshu.card.client.model.org.orgUser.OrganizationUserSearch;
|
|
|
import com.zhongshu.card.client.service.org.OrganizationService;
|
|
|
@@ -93,7 +93,7 @@ public class UserInfoController {
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "修改用户头像", description = "修改用户头像")
|
|
|
@RequestMapping(value = {"updateUserHead"}, method = {RequestMethod.GET})
|
|
|
- public ResultContent<UserCountDetailsModel> updateUserHead(@Parameter(name = "url", description = "头像url", example = "")
|
|
|
+ public ResultContent updateUserHead(@Parameter(name = "url", description = "头像url", example = "")
|
|
|
@RequestParam("url") String url) {
|
|
|
return userAccountService.updateUserHead(url);
|
|
|
}
|
|
|
@@ -156,6 +156,15 @@ public class UserInfoController {
|
|
|
return organizationService.getUserOrgList(param);
|
|
|
}
|
|
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
+ @Operation(summary = "根据loginName查询用户基本信息", description = "根据loginName查询用户基本信息")
|
|
|
+ @RequestMapping(value = {"getUserDetailByLoginName"}, method = {RequestMethod.GET})
|
|
|
+ public ResultContent getUserDetailByLoginName(
|
|
|
+ @Parameter(name = "loginName", description = "登录名", example = "")
|
|
|
+ @RequestParam("loginName") String loginName) {
|
|
|
+ return userAccountService.getUserDetailByLoginName(loginName);
|
|
|
+ }
|
|
|
+
|
|
|
//------------------------------------feign start -----------------------------
|
|
|
|
|
|
@Operation(hidden = true, summary = "feign得到用户详情", description = "feign得到用户详情")
|