Documentation ¶
Index ¶
- Variables
- type Topic
- func (self *Topic) Create(db orm.DB, topicModel model.Topic) (*model.Topic, error)
- func (self *Topic) Delete(db orm.DB, topic *model.Topic) error
- func (self *Topic) List(db orm.DB, qp *model.FilterQuery, p *model.Pagination) ([]model.Topic, int, error)
- func (self *Topic) Update(db orm.DB, topic *model.Topic) error
- func (self *Topic) View(db orm.DB, qp *model.FilterQuery) (*model.Topic, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyExists = echo.NewHTTPError(http.StatusInternalServerError, "Topic name already exists.")
)
Custom errors
Functions ¶
This section is empty.
Types ¶
type Topic ¶
type Topic struct{}
Topic represents the client for topic table
func (*Topic) List ¶
func (self *Topic) List(db orm.DB, qp *model.FilterQuery, p *model.Pagination) ([]model.Topic, int, error)
List returns list of all topics retrievable for the current topic, depending on role
Click to show internal directories.
Click to hide internal directories.