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