Commit 8fb9aedb authored by Quxl's avatar Quxl

修改API中文描述

parent 2f745854
...@@ -14,7 +14,7 @@ import com.egolm.film.model.LoginToken; ...@@ -14,7 +14,7 @@ import com.egolm.film.model.LoginToken;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@Api @Api(tags={"后台管理系统登陆"})
@Controller @Controller
@RequestMapping("admin") @RequestMapping("admin")
public class AdminLoginController { public class AdminLoginController {
...@@ -25,7 +25,7 @@ public class AdminLoginController { ...@@ -25,7 +25,7 @@ public class AdminLoginController {
@ResponseBody @ResponseBody
@PostMapping("login") @PostMapping("login")
@ApiOperation("fc_admin登陆") @ApiOperation("登陆")
public Object login(String username, String password) { public Object login(String username, String password) {
XException.assertNotBlank(username, "用户名不能为空"); XException.assertNotBlank(username, "用户名不能为空");
XException.assertNotBlank(password, "密码不能为空"); XException.assertNotBlank(password, "密码不能为空");
...@@ -43,7 +43,7 @@ public class AdminLoginController { ...@@ -43,7 +43,7 @@ public class AdminLoginController {
@ResponseBody @ResponseBody
@PostMapping("logout") @PostMapping("logout")
@ApiOperation("fc_admin退出") @ApiOperation("退出")
public Object logout() { public Object logout() {
tokenService.doLogout(); tokenService.doLogout();
return Rjx.jsonOk(); return Rjx.jsonOk();
......
...@@ -14,7 +14,7 @@ import com.egolm.film.model.LoginToken; ...@@ -14,7 +14,7 @@ import com.egolm.film.model.LoginToken;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@Api @Api(tags={"会员系统登陆"})
@Controller @Controller
@RequestMapping("member") @RequestMapping("member")
public class MemberLoginController { public class MemberLoginController {
...@@ -24,7 +24,7 @@ public class MemberLoginController { ...@@ -24,7 +24,7 @@ public class MemberLoginController {
@ResponseBody @ResponseBody
@PostMapping("login") @PostMapping("login")
@ApiOperation("fc_user登陆") @ApiOperation("登陆")
public Object login(String username, String password) { public Object login(String username, String password) {
if(tokenService.isLogin()) { if(tokenService.isLogin()) {
throw new XException("用户已登录", 200); throw new XException("用户已登录", 200);
...@@ -40,7 +40,7 @@ public class MemberLoginController { ...@@ -40,7 +40,7 @@ public class MemberLoginController {
@ResponseBody @ResponseBody
@PostMapping("logout") @PostMapping("logout")
@ApiOperation("fc_user退出") @ApiOperation("退出")
public Object logout() { public Object logout() {
tokenService.doLogout(); tokenService.doLogout();
return Rjx.jsonOk(); return Rjx.jsonOk();
......
...@@ -14,7 +14,7 @@ import com.egolm.film.model.LoginToken; ...@@ -14,7 +14,7 @@ import com.egolm.film.model.LoginToken;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@Api @Api(tags={"审片系统登陆"})
@Controller @Controller
@RequestMapping("user") @RequestMapping("user")
public class UserLoginController { public class UserLoginController {
...@@ -24,7 +24,7 @@ public class UserLoginController { ...@@ -24,7 +24,7 @@ public class UserLoginController {
@ResponseBody @ResponseBody
@PostMapping("login") @PostMapping("login")
@ApiOperation("fc_user登陆") @ApiOperation("登陆")
public Object login(String username, String password) { public Object login(String username, String password) {
if(tokenService.isLogin()) { if(tokenService.isLogin()) {
throw new XException("用户已登录", 200); throw new XException("用户已登录", 200);
...@@ -40,7 +40,7 @@ public class UserLoginController { ...@@ -40,7 +40,7 @@ public class UserLoginController {
@ResponseBody @ResponseBody
@PostMapping("logout") @PostMapping("logout")
@ApiOperation("fc_user退出") @ApiOperation("退出")
public Object logout() { public Object logout() {
tokenService.doLogout(); tokenService.doLogout();
return Rjx.jsonOk(); return Rjx.jsonOk();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment