generated from kedaya_haitao/template
27 lines
513 B
Go
27 lines
513 B
Go
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)))
|
|
}
|