Commit 8fb9aedb authored by Quxl's avatar Quxl

修改API中文描述

parent 2f745854
......@@ -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();
......
......@@ -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();
......
......@@ -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();
......
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