Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a45a1606
authored
Apr 27, 2026
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:登录账号添加accountId返回
1 parent
324ef453
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/dto/LoginUserDTO.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrLoginService.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrLoginRespVO.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrLoginUserVO.java
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/dto/LoginUserDTO.java
View file @
a45a160
package
com
.
glsx
.
usedcar
.
module
.
vrsystem
.
dto
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.io.Serial
;
...
...
@@ -15,6 +16,7 @@ public class LoginUserDTO implements Serializable {
private
static
final
long
serialVersionUID
=
1L
;
private
Long
userId
;
private
String
accountId
;
private
String
phone
;
private
String
userName
;
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/service/VrLoginService.java
View file @
a45a160
...
...
@@ -121,6 +121,7 @@ public class VrLoginService {
userDTO
.
setUserId
(
user
.
getId
());
userDTO
.
setPhone
(
user
.
getPhone
());
userDTO
.
setUserName
(
user
.
getUserName
());
userDTO
.
setAccountId
(
user
.
getAccountId
());
// 获取角色信息
VrRole
role
=
vrUserService
.
getUserRole
(
user
.
getId
());
...
...
@@ -172,6 +173,7 @@ public class VrLoginService {
return
VrLoginRespVO
.
builder
()
.
token
(
token
)
.
userId
(
user
.
getId
())
.
accountId
(
user
.
getAccountId
())
.
phone
(
user
.
getPhone
())
.
userName
(
user
.
getUserName
())
.
roleId
(
role
!=
null
?
role
.
getId
()
:
null
)
...
...
@@ -247,6 +249,7 @@ public class VrLoginService {
VrLoginUserVO
rtn
=
VrLoginUserVO
.
builder
()
.
userId
(
userDTO
.
getUserId
())
.
accountId
(
userDTO
.
getAccountId
())
.
phone
(
userDTO
.
getPhone
())
.
userName
(
userDTO
.
getUserName
())
.
roleId
(
userDTO
.
getRoleId
())
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrLoginRespVO.java
View file @
a45a160
package
com
.
glsx
.
usedcar
.
module
.
vrsystem
.
vo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.persistence.Column
;
import
lombok.Builder
;
import
lombok.Data
;
...
...
@@ -24,6 +25,9 @@ public class VrLoginRespVO implements Serializable {
@Schema
(
description
=
"用户ID"
,
example
=
"1"
)
private
Long
userId
;
@Schema
(
description
=
"账号ID"
,
example
=
"1"
)
private
String
accountId
;
@Schema
(
description
=
"手机号"
,
example
=
"13800138000"
)
private
String
phone
;
...
...
aus-core/src/main/java/com/glsx/usedcar/module/vrsystem/vo/VrLoginUserVO.java
View file @
a45a160
...
...
@@ -21,6 +21,9 @@ public class VrLoginUserVO implements Serializable {
@Schema
(
description
=
"用户ID"
,
example
=
"1"
)
private
Long
userId
;
@Schema
(
description
=
"账号ID"
,
example
=
"1"
)
private
String
accountId
;
@Schema
(
description
=
"手机号"
,
example
=
"13800138000"
)
private
String
phone
;
...
...
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