Commit c8c6db99 authored by hezhen's avatar hezhen

123

parent 4a930764
......@@ -101,6 +101,6 @@ public interface UserFeign {
public ObjectRestResponse<List<BaseUserMemberLevel>> memberEntityList(@RequestParam("entity") Map<String, Object> entity);
@GetMapping("/app/user/one")
public ObjectRestResponse<AppUserLogin> one(@RequestParam(value = "username")String username);
public AppUserLogin one(@RequestParam(value = "username")String username);
}
......@@ -152,14 +152,10 @@ public class AppUserController extends CommonBaseController {
* 更新用户信息
* @param username
* @return
* @throws Exception
*/
@GetMapping("/one")
public ObjectRestResponse<AppUserLogin> one(@RequestParam(value = "username")String username)throws Exception {
if(StringUtils.isBlank(username)){
return ObjectRestResponse.createFailedResult(ResultCode.NULL_CODE, "参数为空");
}
return ObjectRestResponse.succ(appUserLoginBiz.getUserByUsername(username));
public AppUserLogin one(@RequestParam(value = "username")String username){
return appUserLoginBiz.getUserByUsername(username);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment