user/service/user_svc.go
2025-04-10 10:51:27 +08:00

27 lines
459 B
Go

package service
import (
"gitea.timerzz.com/kedaya_haitao/common/pkg/web"
"gitea.timerzz.com/kedaya_haitao/common/structs/storage"
)
type user struct {
storage *storage.Storage
}
func Newuser(storage *storage.Storage) *user {
return &user{
storage: storage,
}
}
func (s *user) Registry(r fiber.Router) {
api := r.Group("/api/v2")
}
func (s *user) List(c fiber.Ctx) error {
return c.JSON(web.NewResponse(web.NewListResponse(total, sellers)))
}