From 56599142988566e8450600c7fa982a0c6a58183f Mon Sep 17 00:00:00 2001 From: Sheyiyuan <2125107118@qq.com> Date: Mon, 3 Mar 2025 15:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=88=86=E6=94=AFSheyiyuanDe?= =?UTF-8?q?v?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/app_admin.go | 4 ++-- typed/typed.go | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) 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"` +}