登出
This commit is contained in:
parent
682d012bed
commit
d4dd4dd7ac
@ -1,5 +1,6 @@
|
|||||||
package com.cdzy.staff.controller;
|
package com.cdzy.staff.controller;
|
||||||
|
|
||||||
|
import cn.dev33.satoken.stp.StpUtil;
|
||||||
import com.cdzy.common.enums.Message;
|
import com.cdzy.common.enums.Message;
|
||||||
import com.cdzy.common.model.request.PageParam;
|
import com.cdzy.common.model.request.PageParam;
|
||||||
import com.cdzy.common.model.response.JsonResult;
|
import com.cdzy.common.model.response.JsonResult;
|
||||||
@ -65,6 +66,18 @@ public class EbikeOperatorStaffController {
|
|||||||
return JsonResult.success(Message.LOGIN, token);
|
return JsonResult.success(Message.LOGIN, token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运营商员工登出。
|
||||||
|
*
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@PostMapping("logout")
|
||||||
|
public JsonResult<?> logout() {
|
||||||
|
StpUtil.logout();
|
||||||
|
return JsonResult.success();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加运营商员工。
|
* 添加运营商员工。
|
||||||
* `
|
* `
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user