Add blog service & follow model changes in tags/posts (#22)

This commit is contained in:
Janos Dobronszki
2020-11-03 14:14:00 +01:00
committed by GitHub
parent 3642f7279d
commit b30adabfc3
20 changed files with 415 additions and 117 deletions

View File

@@ -11,7 +11,7 @@ import (
)
type Comments struct {
comments model.Table
comments model.Model
idIndex model.Index
postIndex model.Index
}
@@ -25,7 +25,7 @@ func NewComments() *Comments {
idIndex.Order.Type = model.OrderTypeUnordered
return &Comments{
comments: model.NewTable(store.DefaultStore, "users", model.Indexes(postIndex), nil),
comments: model.New(store.DefaultStore, "users", model.Indexes(postIndex), nil),
postIndex: postIndex,
idIndex: idIndex,
}