Introducing: Users service (#17)

Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
Janos Dobronszki
2020-10-23 17:41:00 +02:00
committed by GitHub
parent 54eaf72b0b
commit 15e7ad22e5
14 changed files with 1853 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ type Post struct {
type Posts struct {
Tags tags.TagsService
db model.DB
db model.Table
}
func NewPosts(tagsService tags.TagsService) *Posts {
@@ -41,11 +41,11 @@ func NewPosts(tagsService tags.TagsService) *Posts {
return &Posts{
Tags: tagsService,
db: model.NewDB(
db: model.NewTable(
store.DefaultStore,
"posts",
model.Indexes(model.ByEquality("slug"), createdIndex),
&model.DBOptions{
&model.TableOptions{
Debug: false,
},
),