mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
clean: first clean archi sandbox implementation
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
. "GohCMS2/domain/article"
|
||||
. "GohCMS2/useCases"
|
||||
)
|
||||
|
||||
func GetArticle(id int) Article {
|
||||
return container.GetArticleUseCase.GetArticle(id)
|
||||
}
|
||||
|
||||
func CreateArticle(title string, body string) Article {
|
||||
return container.CreateArticleUseCase.CreateAarticle(CreateArticleCommand{Title: title, Body: body})
|
||||
}
|
||||
Reference in New Issue
Block a user