Commit 60e2bec1 authored by zengtianlai3's avatar zengtianlai3

修改注销接口

parent 4c09d235
...@@ -8,6 +8,7 @@ import iot.sixiang.license.jwt.JwtUtil; ...@@ -8,6 +8,7 @@ import iot.sixiang.license.jwt.JwtUtil;
import iot.sixiang.license.jwt.LoginUser; import iot.sixiang.license.jwt.LoginUser;
import iot.sixiang.license.log.BusinessType; import iot.sixiang.license.log.BusinessType;
import iot.sixiang.license.log.MyLog; import iot.sixiang.license.log.MyLog;
import iot.sixiang.license.model.BaseResult;
import iot.sixiang.license.model.ResResult; import iot.sixiang.license.model.ResResult;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
...@@ -62,12 +63,8 @@ public class LoginController { ...@@ -62,12 +63,8 @@ public class LoginController {
@ApiOperation(value = "注销接口", notes = "注销接口") @ApiOperation(value = "注销接口", notes = "注销接口")
@GetMapping("logout") @GetMapping("logout")
@MyLog(title = "注销", optParam = "#{userName},#{password}", businessType = BusinessType.OTHER) @MyLog(title = "注销", businessType = BusinessType.OTHER)
@ApiImplicitParams({ public BaseResult logout() {
@ApiImplicitParam(name = "userName",value = "用户名",required = true), return BaseResult.success();
@ApiImplicitParam(name = "password",value = "密码",required = true)
})
public ResResult logout(@RequestParam("userName") String userName, @RequestParam("password") String password) {
return ResResult.fail().msg("用户名或密码错误");
} }
} }
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