Authored by fangyeqing

MOD:state to status

  1 +cd /d H:\Program Files\work\redis
  2 +redis-server.exe redis.windows.conf
@@ -46,11 +46,11 @@ public class UserInfoController { @@ -46,11 +46,11 @@ public class UserInfoController {
46 String salt= SecurityTool.genSalt(); 46 String salt= SecurityTool.genSalt();
47 String pass=SecurityTool.getPassword(username,password,salt); 47 String pass=SecurityTool.getPassword(username,password,salt);
48 user = new User(); 48 user = new User();
49 - user.setMember_id("aaa"); 49 + user.setMember_id(123);
50 user.setUsername(username); 50 user.setUsername(username);
51 user.setPassword(pass); 51 user.setPassword(pass);
52 user.setSalt(salt); 52 user.setSalt(salt);
53 - user.setState(true); 53 + user.setStatus(true);
54 userRepository.save(user); 54 userRepository.save(user);
55 } 55 }
56 return new ResponseEntity<>(ResultModel.ok(), HttpStatus.OK); 56 return new ResponseEntity<>(ResultModel.ok(), HttpStatus.OK);
@@ -76,13 +76,13 @@ public class UserInfoController { @@ -76,13 +76,13 @@ public class UserInfoController {
76 76
77 @RequestMapping(method = RequestMethod.GET) 77 @RequestMapping(method = RequestMethod.GET)
78 @Authorization 78 @Authorization
79 - @ApiOperation(value = "获取用户昵称") 79 + @ApiOperation(value = "获取用户id")
80 @ApiImplicitParams({ 80 @ApiImplicitParams({
81 @ApiImplicitParam(name = "authorization", value = "请输入登录返回信息:userId_tokens", required = true, dataType = "string", paramType = "header"), 81 @ApiImplicitParam(name = "authorization", value = "请输入登录返回信息:userId_tokens", required = true, dataType = "string", paramType = "header"),
82 }) 82 })
83 public ResponseEntity<ResultModel> getUserNickName(@CurrentUser User user) { 83 public ResponseEntity<ResultModel> getUserNickName(@CurrentUser User user) {
84 - String dickName=user.getMember_id();  
85 - return new ResponseEntity<>(ResultModel.ok(dickName), HttpStatus.OK); 84 + long member_id=user.getMember_id();
  85 + return new ResponseEntity<>(ResultModel.ok(member_id), HttpStatus.OK);
86 } 86 }
87 87
88 } 88 }
@@ -30,9 +30,9 @@ public class User { @@ -30,9 +30,9 @@ public class User {
30 @Column(name = "salt") 30 @Column(name = "salt")
31 private String salt; 31 private String salt;
32 32
33 - @Column(name = "state")  
34 - private boolean state; 33 + @Column(name = "status")
  34 + private boolean status;
35 35
36 @Column(name = "member_id") 36 @Column(name = "member_id")
37 - private String member_id; 37 + private long member_id;
38 } 38 }