refactor: split backend into standalone server project

Remove embedded frontend and workflow editor assets, add standalone API deployment configuration, and retain the current backend service updates.
This commit is contained in:
t
2026-08-20 21:46:55 +08:00
parent 954a3fe8d9
commit 3d47227fbd
612 changed files with 515 additions and 97334 deletions
+17
View File
@@ -48,6 +48,23 @@ func TestChannelServiceAllowsAgentWithPublishedRevision(t *testing.T) {
}
}
func TestChannelServiceAllowsHumanReceptionWithoutAIAgent(t *testing.T) {
setupChannelServiceTestDB(t)
item, err := ChannelService.CreateChannel(request.CreateChannelRequest{
ChannelType: enums.ChannelTypeWeb,
AIAgentID: 0,
Name: "人工客服渠道",
Status: int(enums.StatusOk),
}, channelServiceTestOperator())
if err != nil {
t.Fatalf("create human channel: %v", err)
}
if item == nil || item.AIAgentID != 0 {
t.Fatalf("unexpected human channel: %#v", item)
}
}
func TestChannelServiceStoresAIAgentRolloutPercent(t *testing.T) {
db := setupChannelServiceTestDB(t)
agent := createChannelServiceTestAgent(t, db, 1001)