[6.6.0][登录] feat:增加登录状态监听接口;
This commit is contained in:
@@ -29,4 +29,10 @@ interface IOrderListener {
|
||||
* @param tenantId 租户id
|
||||
*/
|
||||
fun onTenantIdUpdate(tenantId: Long){}
|
||||
|
||||
/**
|
||||
* 登录状态变化通知
|
||||
* @param isLogin 是否已登录
|
||||
*/
|
||||
fun onLoginStatusUpdate(isLogin: Boolean) {}
|
||||
}
|
||||
@@ -46,4 +46,15 @@ object CallerOrderListenerManager: CallerBase<IOrderListener>() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录状态变化通知
|
||||
* @param isLogin 是否已登录
|
||||
*/
|
||||
fun invokeLoginStatusUpdate(isLogin: Boolean) {
|
||||
M_LISTENERS.forEach{
|
||||
val listener = it.value
|
||||
listener.onLoginStatusUpdate(isLogin)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user