Beispiel #1
0
func (m *MgoQuestionStore) UpdateContent(q *model.Question) error {
	q.SetUpdated()
	return m.c.UpdateId(q.ID, q.GetUpdateContentMap())
}
Beispiel #2
0
func (m *MgoQuestionStore) Create(q *model.Question) error {
	q.SetNew()
	return m.c.Insert(q)
}