5d7c10aeab
- Updated runtime configuration to use __CS_AI_AGENT_WIDGET_CONFIG__ instead of __CS_AGENT_WIDGET_CONFIG__. - Changed message types in support host bridge from "cs-agent" to "cs-ai-agent". - Minified SDK script updated to reflect new AI agent naming conventions. - Adjusted scrollbar styles in main.scss to use .cs-ai-agent-scrollbar instead of .cs-agent-scrollbar.
26 lines
722 B
Go
26 lines
722 B
Go
package response
|
|
|
|
import "cs-ai-agent/internal/pkg/enums"
|
|
|
|
type AuthUserResponse struct {
|
|
ID int64 `json:"id"`
|
|
Username string `json:"username"`
|
|
Nickname string `json:"nickname"`
|
|
Avatar string `json:"avatar"`
|
|
Status enums.Status `json:"status"`
|
|
Roles []string `json:"roles"`
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
AccessToken string `json:"accessToken"`
|
|
ExpiresAt string `json:"expiresAt"`
|
|
User *AuthUserResponse `json:"user"`
|
|
Permissions []string `json:"permissions"`
|
|
Roles []string `json:"roles"`
|
|
}
|
|
|
|
type AuthOptionsResponse struct {
|
|
WxWorkEnabled bool `json:"wxworkEnabled"`
|
|
OIDCEnabled bool `json:"oidcEnabled"`
|
|
}
|