2026-04-09 10:01:23 +08:00
|
|
|
package dto
|
|
|
|
|
|
2026-08-21 00:41:07 +08:00
|
|
|
import (
|
|
|
|
|
"code.tczkiot.com/wlw/ai-agent/identity"
|
|
|
|
|
"code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
|
|
|
|
|
)
|
2026-04-09 10:01:23 +08:00
|
|
|
|
|
|
|
|
type AuthPrincipal struct {
|
2026-08-21 00:41:07 +08:00
|
|
|
SubjectType identity.SubjectType
|
2026-04-09 10:01:23 +08:00
|
|
|
UserID int64
|
|
|
|
|
Username string
|
|
|
|
|
Nickname string
|
|
|
|
|
Avatar string
|
|
|
|
|
Status enums.Status
|
|
|
|
|
Roles []string
|
|
|
|
|
Permissions []string
|
|
|
|
|
}
|
2026-04-24 21:43:39 +08:00
|
|
|
|
|
|
|
|
type WxWorkKFChannelConfig struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
OpenKfID string `json:"open_kf_id"`
|
2026-04-24 21:43:39 +08:00
|
|
|
}
|
2026-04-24 22:24:19 +08:00
|
|
|
|
|
|
|
|
type WebChannelConfig struct {
|
2026-08-21 00:41:07 +08:00
|
|
|
Title string `json:"title"`
|
|
|
|
|
Subtitle string `json:"subtitle"`
|
2026-08-28 22:23:13 +08:00
|
|
|
ThemeColor string `json:"theme_color"`
|
2026-08-21 00:41:07 +08:00
|
|
|
Position string `json:"position"`
|
|
|
|
|
Width string `json:"width"`
|
2026-04-24 22:24:19 +08:00
|
|
|
}
|
2026-04-27 15:42:04 +08:00
|
|
|
|
|
|
|
|
type WechatMPChannelConfig struct {
|
2026-08-21 00:41:07 +08:00
|
|
|
Title string `json:"title"`
|
|
|
|
|
Subtitle string `json:"subtitle"`
|
2026-08-28 22:23:13 +08:00
|
|
|
ThemeColor string `json:"theme_color"`
|
2026-04-27 15:42:04 +08:00
|
|
|
}
|