(ctx context.Context, questionID string)
| 194 | } |
| 195 | |
| 196 | func (qs *QuestionCommon) UpdatePostTime(ctx context.Context, questionID string) error { |
| 197 | questioninfo := &entity.Question{} |
| 198 | now := time.Now() |
| 199 | questioninfo.ID = questionID |
| 200 | questioninfo.PostUpdateTime = now |
| 201 | return qs.questionRepo.UpdateQuestion(ctx, questioninfo, []string{"post_update_time"}) |
| 202 | } |
| 203 | func (qs *QuestionCommon) UpdatePostSetTime(ctx context.Context, questionID string, setTime time.Time) error { |
| 204 | questioninfo := &entity.Question{} |
| 205 | questioninfo.ID = questionID |
no test coverage detected