refactor: 重构 GetLoginAccountInfo 函数,移除 actionManager 依赖,并更新相关调用;修改 sendAlertMessage 函数为发送合并转发
This commit is contained in:
@@ -57,7 +57,7 @@ func GetGroupList() ([]model.Group, error) {
|
||||
return groupListResponse.Data, nil
|
||||
}
|
||||
|
||||
func (am *actionManager) GetLoginAccountInfo() (*model.LoginAccountInfoResponse, error) {
|
||||
func GetLoginAccountInfo() (*model.LoginAccountInfoResponse, error) {
|
||||
fullURL := fmt.Sprintf("http://%s%s", config.ConfigManager.GetConfig().Management.NapcatHttpSrv, constants.GET_LOGIN_INFO)
|
||||
|
||||
response, err := http.Post(fullURL, "application/json", nil)
|
||||
|
||||
Reference in New Issue
Block a user