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))) }