合并分支SheyiyuanDev

This commit is contained in:
Sheyiyuan 2025-03-03 15:37:59 +08:00
parent 8e604fd397
commit 5659914298
2 changed files with 12 additions and 2 deletions

View File

@ -70,8 +70,8 @@ func reloadAPP(file os.DirEntry, appsDir string) (totalDelta int, successDelta i
_ = wbaObj.Set("WithLicense", wba.WithLicense) _ = wbaObj.Set("WithLicense", wba.WithLicense)
_ = wbaObj.Set("WithAppType", wba.WithAppType) _ = wbaObj.Set("WithAppType", wba.WithAppType)
_ = wbaObj.Set("WithRule", wba.WithRule) _ = wbaObj.Set("WithRule", wba.WithRule)
_ = wbaObj.Set("WSP", wsp) _ = wbaObj.Set("wsp", wsp)
_ = wbaObj.Set("WSD", wsd) _ = wbaObj.Set("wsd", wsd)
_ = wsp.Set("UnsafelySendMsg", AppApi.UnsafelySendMsg) _ = wsp.Set("UnsafelySendMsg", AppApi.UnsafelySendMsg)
_ = wsp.Set("UnsafelySendPrivateMsg", AppApi.UnsafelySendPrivateMsg) _ = wsp.Set("UnsafelySendPrivateMsg", AppApi.UnsafelySendPrivateMsg)
_ = wsp.Set("UnsafelySendGroupMsg", AppApi.UnsafelySendGroupMsg) _ = wsp.Set("UnsafelySendGroupMsg", AppApi.UnsafelySendGroupMsg)

View File

@ -22,3 +22,13 @@ type AppKey struct {
AppLevel int32 `json:"app_level"` AppLevel int32 `json:"app_level"`
AppVersion string `json:"app_version"` 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"`
}