mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
feat: draft/online post field #26
This commit is contained in:
@@ -23,3 +23,7 @@ func (g *UpdatePostUseCase) UpdateBody(id uint32, body string) (post.Post, error
|
||||
func (g *UpdatePostUseCase) AddImage(postId uint32, imageId uint32) error {
|
||||
return g.postRepository.AddImage(postId, imageId)
|
||||
}
|
||||
|
||||
func (g *UpdatePostUseCase) UpdateIsOnline(id uint32, isOnline bool) (post.Post, error) {
|
||||
return g.postRepository.UpdateIsOnline(id, isOnline)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user