profitRate/service/profitRate_svc.go

27 lines
495 B
Go
Raw Normal View History

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