Commit 343e6e5d by 蒋勇

d

parent 7381936d
...@@ -7,6 +7,10 @@ class UserCtl extends CtlBase { ...@@ -7,6 +7,10 @@ class UserCtl extends CtlBase {
constructor() { constructor() {
super("auth", CtlBase.getServiceName(UserCtl)); super("auth", CtlBase.getServiceName(UserCtl));
} }
async logout(pobj, qobj, req){
let rtn=await this.service.logout(pobj)
return system.getResult(rtn)
}
async pmgetUserByCode(pobj, qobj, req){ async pmgetUserByCode(pobj, qobj, req){
let code=pobj.code let code=pobj.code
let rtn=await this.service.pmgetUserByCode(code) let rtn=await this.service.pmgetUserByCode(code)
......
...@@ -128,6 +128,10 @@ class UserService extends ServiceBase { ...@@ -128,6 +128,10 @@ class UserService extends ServiceBase {
} }
}); });
} }
async logout(pobj){
await this.cacheManager["UserCache"].invalidate(pobj.username);
return {}
}
//平台登录 //平台登录
//登录接口封装kong-url //登录接口封装kong-url
//登录路由放行 //登录路由放行
......
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