Skip to content

Commit

Permalink
ECOM-12827 feat: gotsrpc
Browse files Browse the repository at this point in the history
  • Loading branch information
cvejk committed Dec 10, 2024
1 parent b941886 commit 4735292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions domain/redirectdefinition/service/gotsrpcclient_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion domain/redirectdefinition/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import (
"net/http"

"github.com/foomo/contentserver/content"
redirectrepository "github.com/foomo/redirects/domain/redirectdefinition/repository"
redirectstore "github.com/foomo/redirects/domain/redirectdefinition/store"
)

// AdminService is the interface for the admin service
// the service is responsible for the admin endpoints
// will be exposed to the frontend
type AdminService interface {
Search(w http.ResponseWriter, r *http.Request, locale, path string, page, pageSize int) (map[redirectstore.RedirectSource]*redirectstore.RedirectDefinition, *redirectstore.RedirectDefinitionError)
Search(w http.ResponseWriter, r *http.Request, locale, path string, page, pageSize int) (*redirectrepository.PaginatedResult, *redirectstore.RedirectDefinitionError)
Create(w http.ResponseWriter, r *http.Request, def *redirectstore.RedirectDefinition, locale string) (redirectstore.EntityID, *redirectstore.RedirectDefinitionError)
Delete(w http.ResponseWriter, r *http.Request, id string) *redirectstore.RedirectDefinitionError
Update(w http.ResponseWriter, r *http.Request, def *redirectstore.RedirectDefinition) *redirectstore.RedirectDefinitionError
Expand Down

0 comments on commit 4735292

Please sign in to comment.