Skip to content

Commit

Permalink
#168 应该返回code而不是id
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhuisheng committed Aug 16, 2018
1 parent e6e58a0 commit c207584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/mossle/user/rs/UserResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public BaseDTO getUserByUsername(@QueryParam("username") String username) {
}

Map<String, Object> map = new HashMap<String, Object>();
map.put("id", accountInfo.getId());
map.put("id", accountInfo.getCode());
map.put("username", accountInfo.getUsername());
map.put("nickName", accountInfo.getNickName());
map.put("displayName", accountInfo.getDisplayName());
Expand Down Expand Up @@ -101,7 +101,7 @@ public List<Map<String, Object>> search(

for (AccountInfo accountInfo : accountInfos) {
Map<String, Object> map = new HashMap<String, Object>();
map.put("id", accountInfo.getId());
map.put("id", accountInfo.getCode());
map.put("username", accountInfo.getUsername());
map.put("displayName", accountInfo.getDisplayName());
list.add(map);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public List<Map<String, Object>> search(

for (AccountInfo accountInfo : accountInfos) {
Map<String, Object> map = new HashMap<String, Object>();
map.put("id", accountInfo.getId());
map.put("id", accountInfo.getCode());
map.put("username", accountInfo.getUsername());
map.put("displayName", accountInfo.getDisplayName());
list.add(map);
Expand Down

0 comments on commit c207584

Please sign in to comment.