()
| 456 | } |
| 457 | |
| 458 | func (t *HookTask) BeforeUpdate() { |
| 459 | if t.RequestInfo != nil { |
| 460 | t.RequestContent = t.ToJSON(t.RequestInfo) |
| 461 | } |
| 462 | if t.ResponseInfo != nil { |
| 463 | t.ResponseContent = t.ToJSON(t.ResponseInfo) |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | func (t *HookTask) AfterSet(colName string, _ xorm.Cell) { |
| 468 | var err error |