weblimit.go 549 B

12345678910111213141516171819202122232425262728
  1. package repository
  2. import (
  3. "context"
  4. "github.com/go-nunu/nunu-layout-advanced/internal/model"
  5. )
  6. type WebLimitRepository interface {
  7. GetWebLimit(ctx context.Context, id int64) (*model.WebLimit, error)
  8. }
  9. func NewWebLimitRepository(
  10. repository *Repository,
  11. ) WebLimitRepository {
  12. return &webLimitRepository{
  13. Repository: repository,
  14. }
  15. }
  16. type webLimitRepository struct {
  17. *Repository
  18. }
  19. func (r *webLimitRepository) GetWebLimit(ctx context.Context, id int64) (*model.WebLimit, error) {
  20. var webLimit model.WebLimit
  21. return &webLimit, nil
  22. }