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 5ece0bb1
authored
Jul 11, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix error
1 parent
1ccc1cb7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
project-user/src/main/java/com/dituhui/pea/user/controller/UserController.java
project-user/src/main/java/com/dituhui/pea/user/dao/UserDao.java
project-user/src/main/java/com/dituhui/pea/user/controller/UserController.java
View file @
5ece0bb
package
com
.
dituhui
.
pea
.
user
.
controller
;
import
cn.hutool.core.util.ObjectUtil
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.enums.RedisKeyGroup
;
import
com.dituhui.pea.enums.StatusCodeEnum
;
import
com.dituhui.pea.enums.ThirdPartyEnum
;
import
com.dituhui.pea.pojo.*
;
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.WebResult
;
import
com.dituhui.pea.user.IUser
;
import
com.dituhui.pea.user.commom.RedisService
;
import
com.dituhui.pea.user.service.UserService
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
org.springframework.web.bind.annotation.RestController
;
import
cn.hutool.core.util.ObjectUtil
;
/**
* 用户控制层
...
...
@@ -35,7 +35,7 @@ public class UserController implements IUser {
private
RedisService
redisService
;
public
Result
<?>
userLogin
(
UserLoginDTO
user
)
{
return
userService
.
userLogin
(
user
.
getAccount
(),
user
.
get
Account
());
return
userService
.
userLogin
(
user
.
getAccount
(),
user
.
get
Password
());
}
public
Result
<?>
getUserInfo
(
String
token
)
{
...
...
project-user/src/main/java/com/dituhui/pea/user/dao/UserDao.java
View file @
5ece0bb
...
...
@@ -11,8 +11,6 @@ import com.dituhui.pea.user.entity.UserEntity;
/**
* 用户表(User)表数据库访问层
*
* @author zl
* @since 2020-12-09 15:34:42
*/
public
interface
UserDao
extends
JpaRepository
<
UserEntity
,
String
>,
JpaSpecificationExecutor
<
UserEntity
>,
CrudRepository
<
UserEntity
,
String
>
{
...
...
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