base
UI
Net
Cache
Log
Utils
modules
UI
Net
Cache
Net
Service
Api
C2S
S2C
CREW
SERVICE
API
USECASE
HANDLE -> SUBSCRIBER
API api = Service.retrofit.create(api.class)
api.call.subscribe(handle)
Handle
- send(T c2s)
- onNetError()
- onCodeError()
- onSuccess(T s2c)
NetUtil
login
View
add
remove
update
click
Modules
req
res
Data
add
remove
update
get
DataManager
ModMgr{
init
addMod
watch(mod, id, watcher)
unWatch()
}
Mod{
showPanel
datas
}
WatcherManager{
tick();
}
DataWatcher
new(dataId)
onUpdate()
clear()
https://leafflow.top/2023/02/07/other/tmp/