refac: mappers, file names
This commit is contained in:
1 parent
e0a6706d4e
commit
b50efae8a8
24 files changed
+171
-190
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package article
|
||||
|
||||
type Repository interface {
|
||||
Get(id uint32) (Article, error)
|
||||
GetByName(name string) (Article, error)
|
||||
GetAll() []Article
|
||||
Create(post Article) (Article, error)
|
||||
UpdateBody(id uint32, body string) (Article, error)
|
||||
UpdateIsOnline(id uint32, isOnline bool) (Article, error)
|
||||
Delete(id uint32) error
|
||||
AddImage(postId uint32, imageId uint32) error
|
||||
}
|
||||
Reference in new issue
Block a user