Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
member-api
Commits
06c87acc
Commit
06c87acc
authored
Oct 18, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化API
parent
3ad764a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
MemberInfoController.java
.../java/com/egolm/film/api/member/MemberInfoController.java
+9
-5
No files found.
src/main/java/com/egolm/film/api/member/MemberInfoController.java
View file @
06c87acc
...
@@ -42,11 +42,11 @@ public class MemberInfoController {
...
@@ -42,11 +42,11 @@ public class MemberInfoController {
@PostMapping
(
"save"
)
@PostMapping
(
"save"
)
@ApiOperation
(
"保存会员基本信息"
)
@ApiOperation
(
"保存会员基本信息"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
S
tring"
,
required
=
true
,
name
=
"email"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
s
tring"
,
required
=
true
,
name
=
"email"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
S
tring"
,
required
=
false
,
name
=
"realname"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
s
tring"
,
required
=
false
,
name
=
"realname"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
S
tring"
,
required
=
false
,
name
=
"address"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
s
tring"
,
required
=
false
,
name
=
"address"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
S
tring"
,
required
=
false
,
name
=
"company"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
s
tring"
,
required
=
false
,
name
=
"company"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
S
tring"
,
required
=
false
,
name
=
"tel"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
s
tring"
,
required
=
false
,
name
=
"tel"
),
})
})
public
Object
save
(
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
)
{
public
Object
save
(
String
email
,
String
realname
,
String
address
,
String
company
,
String
tel
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
LoginToken
loginToken
=
tokenService
.
getToken
();
...
@@ -58,6 +58,10 @@ public class MemberInfoController {
...
@@ -58,6 +58,10 @@ public class MemberInfoController {
@ResponseBody
@ResponseBody
@PostMapping
(
"changePassword"
)
@PostMapping
(
"changePassword"
)
@ApiOperation
(
"修改密码"
)
@ApiOperation
(
"修改密码"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"password"
,
value
=
"当前密码"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"newPassword"
,
value
=
"新密码"
),
})
public
Object
changePassword
(
String
password
,
String
newPassword
)
{
public
Object
changePassword
(
String
password
,
String
newPassword
)
{
LoginToken
loginToken
=
tokenService
.
getToken
();
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
id
=
(
Integer
)
loginToken
.
getId
();
Integer
id
=
(
Integer
)
loginToken
.
getId
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment