topic.authorId = loginUser.id;
topic.postDate = new Timestamp(System.currentTimeMillis());
topic.updateDate = topic.postDate;
topicService.insertTopic(topic);
} else {
Topic t = topicService.findTopic(topic.id);
notNull(t, "主题不存在");
equal(t.authorId, loginUser.id, "权限错误");
topicService.updateTopic(topic);
}
return ok();