mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
15 lines
323 B
Go
15 lines
323 B
Go
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})
|
|
}
|