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>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user