Files
image2api/backend/internal/service/showcase.go
T
chiyiandClaude Opus 4.8 606caaf047 Initial open-source release (MIT): image2api AI gateway
Full Go backend + Vue 3 frontend, OpenAI-compatible API, multi-provider
account pools, billing/admin, Docker one-command deploy with auto HTTPS.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 22:59:04 +08:00

21 lines
398 B
Go

package service
import (
"context"
"backend/internal/model"
"backend/internal/repo"
)
type ShowcaseService struct {
repo *repo.ShowcaseRepository
}
func NewShowcaseService(repo *repo.ShowcaseRepository) *ShowcaseService {
return &ShowcaseService{repo: repo}
}
func (s *ShowcaseService) Grouped(ctx context.Context) (map[string][]model.ShowcaseItem, error) {
return s.repo.Grouped(ctx)
}