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
8fb9aedb
Commit
8fb9aedb
authored
Oct 08, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改API中文描述
parent
2f745854
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
AdminLoginController.java
src/main/java/com/egolm/film/login/AdminLoginController.java
+3
-3
MemberLoginController.java
...main/java/com/egolm/film/login/MemberLoginController.java
+3
-3
UserLoginController.java
src/main/java/com/egolm/film/login/UserLoginController.java
+3
-3
No files found.
src/main/java/com/egolm/film/login/AdminLoginController.java
View file @
8fb9aedb
...
...
@@ -14,7 +14,7 @@ import com.egolm.film.model.LoginToken;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
@Api
@Api
(
tags
={
"后台管理系统登陆"
})
@Controller
@RequestMapping
(
"admin"
)
public
class
AdminLoginController
{
...
...
@@ -25,7 +25,7 @@ public class AdminLoginController {
@ResponseBody
@PostMapping
(
"login"
)
@ApiOperation
(
"
fc_admin
登陆"
)
@ApiOperation
(
"登陆"
)
public
Object
login
(
String
username
,
String
password
)
{
XException
.
assertNotBlank
(
username
,
"用户名不能为空"
);
XException
.
assertNotBlank
(
password
,
"密码不能为空"
);
...
...
@@ -43,7 +43,7 @@ public class AdminLoginController {
@ResponseBody
@PostMapping
(
"logout"
)
@ApiOperation
(
"
fc_admin
退出"
)
@ApiOperation
(
"退出"
)
public
Object
logout
()
{
tokenService
.
doLogout
();
return
Rjx
.
jsonOk
();
...
...
src/main/java/com/egolm/film/login/MemberLoginController.java
View file @
8fb9aedb
...
...
@@ -14,7 +14,7 @@ import com.egolm.film.model.LoginToken;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
@Api
@Api
(
tags
={
"会员系统登陆"
})
@Controller
@RequestMapping
(
"member"
)
public
class
MemberLoginController
{
...
...
@@ -24,7 +24,7 @@ public class MemberLoginController {
@ResponseBody
@PostMapping
(
"login"
)
@ApiOperation
(
"
fc_user
登陆"
)
@ApiOperation
(
"登陆"
)
public
Object
login
(
String
username
,
String
password
)
{
if
(
tokenService
.
isLogin
())
{
throw
new
XException
(
"用户已登录"
,
200
);
...
...
@@ -40,7 +40,7 @@ public class MemberLoginController {
@ResponseBody
@PostMapping
(
"logout"
)
@ApiOperation
(
"
fc_user
退出"
)
@ApiOperation
(
"退出"
)
public
Object
logout
()
{
tokenService
.
doLogout
();
return
Rjx
.
jsonOk
();
...
...
src/main/java/com/egolm/film/login/UserLoginController.java
View file @
8fb9aedb
...
...
@@ -14,7 +14,7 @@ import com.egolm.film.model.LoginToken;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
@Api
@Api
(
tags
={
"审片系统登陆"
})
@Controller
@RequestMapping
(
"user"
)
public
class
UserLoginController
{
...
...
@@ -24,7 +24,7 @@ public class UserLoginController {
@ResponseBody
@PostMapping
(
"login"
)
@ApiOperation
(
"
fc_user
登陆"
)
@ApiOperation
(
"登陆"
)
public
Object
login
(
String
username
,
String
password
)
{
if
(
tokenService
.
isLogin
())
{
throw
new
XException
(
"用户已登录"
,
200
);
...
...
@@ -40,7 +40,7 @@ public class UserLoginController {
@ResponseBody
@PostMapping
(
"logout"
)
@ApiOperation
(
"
fc_user
退出"
)
@ApiOperation
(
"退出"
)
public
Object
logout
()
{
tokenService
.
doLogout
();
return
Rjx
.
jsonOk
();
...
...
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