Commit 8471d110 by chamberone

fix: fix param error

1 parent 5ece0bb1
package com.dituhui.pea.pojo;
import lombok.Data;
@Data
public class UserLoginParam {
private String account;
private String password;
private String nickname;
private String email;
private String phone;
private String birthday;
private String region;
private Integer sex;
private String avatar;
private String wechat;
private String token;
}
...@@ -10,7 +10,7 @@ import com.dituhui.pea.common.Result; ...@@ -10,7 +10,7 @@ import com.dituhui.pea.common.Result;
import com.dituhui.pea.enums.ThirdPartyEnum; import com.dituhui.pea.enums.ThirdPartyEnum;
import com.dituhui.pea.pojo.ThirdUserInfo; import com.dituhui.pea.pojo.ThirdUserInfo;
import com.dituhui.pea.pojo.UserInfo; import com.dituhui.pea.pojo.UserInfo;
import com.dituhui.pea.pojo.UserLoginDTO; import com.dituhui.pea.pojo.UserLoginParam;
import com.dituhui.pea.pojo.WebResult; import com.dituhui.pea.pojo.WebResult;
/** /**
...@@ -21,7 +21,7 @@ import com.dituhui.pea.pojo.WebResult; ...@@ -21,7 +21,7 @@ import com.dituhui.pea.pojo.WebResult;
public interface IUser { public interface IUser {
@RequestMapping(value = "/user/login", method = RequestMethod.POST) @RequestMapping(value = "/user/login", method = RequestMethod.POST)
public Result<?> userLogin(@RequestBody UserLoginDTO user); public Result<?> userLogin(@RequestBody UserLoginParam user);
@RequestMapping(value = "/user/userInfo", method = RequestMethod.GET) @RequestMapping(value = "/user/userInfo", method = RequestMethod.GET)
public Result<?> getUserInfo(@RequestParam(name = "token") String token); public Result<?> getUserInfo(@RequestParam(name = "token") String token);
......
...@@ -14,6 +14,7 @@ import com.dituhui.pea.pojo.ThirdUserInfo; ...@@ -14,6 +14,7 @@ import com.dituhui.pea.pojo.ThirdUserInfo;
import com.dituhui.pea.pojo.UserAuthInfo; import com.dituhui.pea.pojo.UserAuthInfo;
import com.dituhui.pea.pojo.UserInfo; import com.dituhui.pea.pojo.UserInfo;
import com.dituhui.pea.pojo.UserLoginDTO; import com.dituhui.pea.pojo.UserLoginDTO;
import com.dituhui.pea.pojo.UserLoginParam;
import com.dituhui.pea.pojo.WebResult; import com.dituhui.pea.pojo.WebResult;
import com.dituhui.pea.user.IUser; import com.dituhui.pea.user.IUser;
import com.dituhui.pea.user.commom.RedisService; import com.dituhui.pea.user.commom.RedisService;
...@@ -34,7 +35,7 @@ public class UserController implements IUser { ...@@ -34,7 +35,7 @@ public class UserController implements IUser {
@Autowired @Autowired
private RedisService redisService; private RedisService redisService;
public Result<?> userLogin(UserLoginDTO user) { public Result<?> userLogin(UserLoginParam user) {
return userService.userLogin(user.getAccount(), user.getPassword()); return userService.userLogin(user.getAccount(), user.getPassword());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!