Files
t 2bbf42b741 refactor(auth): delegate access control to be-system
Remove Agent Desk users, roles, login sessions, tokens, and local permission persistence. Expose the backend as an embeddable ai-agent module with host-provided subject lookup and operation authorization callbacks, and complete the frontend/backend repository split.
2026-08-21 00:41:07 +08:00

50 lines
1.1 KiB
Go

package seeds
import (
"code.tczkiot.com/wlw/ai-agent/cmd/testdata/seedlang"
"code.tczkiot.com/wlw/ai-agent/internal/pkg/dto"
"code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
"github.com/mlogclub/simple/common/jsons"
)
type ChannelSeed struct {
Name string
ChannelType string
ConfigJSON string
Remark string
}
func ChannelSeeds(lang seedlang.Language) []ChannelSeed {
if lang == seedlang.English {
return []ChannelSeed{
{
Name: "Website Support",
ChannelType: enums.ChannelTypeWeb,
ConfigJSON: jsons.ToJsonStr(dto.WebChannelConfig{
Title: "Online Support",
Subtitle: "Powered by AgentDesk",
ThemeColor: "#2563eb",
Position: "right",
Width: "780px",
}),
Remark: "Local testdata seed",
},
}
}
return []ChannelSeed{
{
Name: "官网客服",
ChannelType: enums.ChannelTypeWeb,
ConfigJSON: jsons.ToJsonStr(dto.WebChannelConfig{
Title: "在线客服",
Subtitle: "AgentDesk 提供技术支持",
ThemeColor: "#2563eb",
Position: "right",
Width: "780px",
}),
Remark: "Local testdata seed",
},
}
}