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

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

@@ -21,9 +21,9 @@ import (
"gorm.io/gen/field"
)
type channelBaiyinService struct{}
type channelBaiyinProvider struct{}
func (s *channelBaiyinService) CreateChannels(source netip.Addr, resourceId int32, authWhitelist bool, authPassword bool, count int, edgeFilter ...EdgeFilter) ([]*m.Channel, error) {
func (s *channelBaiyinProvider) CreateChannels(source netip.Addr, resourceId int32, authWhitelist bool, authPassword bool, count int, edgeFilter ...EdgeFilter) ([]*m.Channel, error) {
var filter *EdgeFilter = nil
if len(edgeFilter) > 0 {
filter = &edgeFilter[0]
@@ -256,7 +256,7 @@ func (s *channelBaiyinService) CreateChannels(source netip.Addr, resourceId int3
return channels, nil
}
func (s *channelBaiyinService) RemoveChannels(batch string) error {
func (s *channelBaiyinProvider) RemoveChannels(batch string) error {
start := time.Now()
// 获取连接数据