diff --git a/core/app_admin.go b/core/app_admin.go index e4ae3da..fbe99d8 100644 --- a/core/app_admin.go +++ b/core/app_admin.go @@ -70,8 +70,8 @@ func reloadAPP(file os.DirEntry, appsDir string) (totalDelta int, successDelta i _ = wbaObj.Set("WithLicense", wba.WithLicense) _ = wbaObj.Set("WithAppType", wba.WithAppType) _ = wbaObj.Set("WithRule", wba.WithRule) - _ = wbaObj.Set("WSP", wsp) - _ = wbaObj.Set("WSD", wsd) + _ = wbaObj.Set("wsp", wsp) + _ = wbaObj.Set("wsd", wsd) _ = wsp.Set("UnsafelySendMsg", AppApi.UnsafelySendMsg) _ = wsp.Set("UnsafelySendPrivateMsg", AppApi.UnsafelySendPrivateMsg) _ = wsp.Set("UnsafelySendGroupMsg", AppApi.UnsafelySendGroupMsg) diff --git a/typed/typed.go b/typed/typed.go index 0f621d7..2dce859 100644 --- a/typed/typed.go +++ b/typed/typed.go @@ -22,3 +22,13 @@ type AppKey struct { AppLevel int32 `json:"app_level"` AppVersion string `json:"app_version"` } + +type SessionWorkSpace struct { + SessionId string `json:"session_id"` + SessionType string `json:"session_type"` + Rule string `json:"rule"` + Enable bool `json:"enable"` + AppEnable map[AppKey]bool `json:"app_enable"` + CmdEnable map[string]bool `json:"cmd_enable"` + WorkLevel int32 `json:"work_level"` +}