proxy-detector/service/proxy-detector_svc.go

27 lines
513 B
Go
Raw Normal View History

2024-12-09 15:02:05 +08:00
package service
import (
"gitea.timerzz.com/kedaya_haitao/common/pkg/web"
"gitea.timerzz.com/kedaya_haitao/common/structs/storage"
)
type ProxyDetector struct {
storage *storage.Storage
}
func NewProxyDetector(storage *storage.Storage) *ProxyDetector {
return &ProxyDetector{
storage: storage,
}
}
func (s *ProxyDetector) Registry(r fiber.Router) {
api := r.Group("/api/v2")
}
func (s *ProxyDetector) List(c fiber.Ctx) error {
return c.JSON(web.NewResponse(web.NewListResponse(total, sellers)))
}