

该怎么修改一下 想传入tid title content三个进行修改
```go
func ModifyTopic(tid, title, content string) error {
tidNum, err := strconv.ParseInt(tid, 10, 64)
if err != nil {
return nil, err
}
o := orm.NewOrm()
topic := &Topic{Id: tidNum}
if o.Read(topic) == nil {
topic.Title = title
topic.Content = content
topic.Update = time.Now()
o.Update(topic)
}
return err
}
```
#1
更多评论