实现用户咨询数据收集接口

This commit is contained in:
2025-12-18 14:22:56 +08:00
parent 0207720943
commit 8f2e71849f
14 changed files with 606 additions and 121 deletions

View File

@@ -20,16 +20,16 @@ import (
// 通道服务
var Channel = &channelServer{
provider: &channelBaiyinService{},
provider: &channelBaiyinProvider{},
}
type ChanProviderAdapter interface {
type ChannelServiceProvider interface {
CreateChannels(source netip.Addr, resourceId int32, authWhitelist bool, authPassword bool, count int, edgeFilter ...EdgeFilter) ([]*m.Channel, error)
RemoveChannels(batch string) error
}
type channelServer struct {
provider ChanProviderAdapter
provider ChannelServiceProvider
}
func (s *channelServer) CreateChannels(source netip.Addr, resourceId int32, authWhitelist bool, authPassword bool, count int, edgeFilter ...EdgeFilter) ([]*m.Channel, error) {