Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8471d110
authored
Jul 11, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix param error
1 parent
5ece0bb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
project-interface/src/main/java/com/dituhui/pea/pojo/UserLoginParam.java
project-interface/src/main/java/com/dituhui/pea/user/IUser.java
project-user/src/main/java/com/dituhui/pea/user/controller/UserController.java
project-interface/src/main/java/com/dituhui/pea/pojo/UserLoginParam.java
0 → 100644
View file @
8471d11
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
;
}
project-interface/src/main/java/com/dituhui/pea/user/IUser.java
View file @
8471d11
...
...
@@ -10,7 +10,7 @@ import com.dituhui.pea.common.Result;
import
com.dituhui.pea.enums.ThirdPartyEnum
;
import
com.dituhui.pea.pojo.ThirdUserInfo
;
import
com.dituhui.pea.pojo.UserInfo
;
import
com.dituhui.pea.pojo.UserLogin
DTO
;
import
com.dituhui.pea.pojo.UserLogin
Param
;
import
com.dituhui.pea.pojo.WebResult
;
/**
...
...
@@ -21,7 +21,7 @@ import com.dituhui.pea.pojo.WebResult;
public
interface
IUser
{
@RequestMapping
(
value
=
"/user/login"
,
method
=
RequestMethod
.
POST
)
public
Result
<?>
userLogin
(
@RequestBody
UserLogin
DTO
user
);
public
Result
<?>
userLogin
(
@RequestBody
UserLogin
Param
user
);
@RequestMapping
(
value
=
"/user/userInfo"
,
method
=
RequestMethod
.
GET
)
public
Result
<?>
getUserInfo
(
@RequestParam
(
name
=
"token"
)
String
token
);
...
...
project-user/src/main/java/com/dituhui/pea/user/controller/UserController.java
View file @
8471d11
...
...
@@ -14,6 +14,7 @@ import com.dituhui.pea.pojo.ThirdUserInfo;
import
com.dituhui.pea.pojo.UserAuthInfo
;
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.user.IUser
;
import
com.dituhui.pea.user.commom.RedisService
;
...
...
@@ -34,7 +35,7 @@ public class UserController implements IUser {
@Autowired
private
RedisService
redisService
;
public
Result
<?>
userLogin
(
UserLogin
DTO
user
)
{
public
Result
<?>
userLogin
(
UserLogin
Param
user
)
{
return
userService
.
userLogin
(
user
.
getAccount
(),
user
.
getPassword
());
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment