return last insert object of metric view

This commit is contained in:
Ulric Qin 2022-04-08 11:07:30 +08:00
parent 7eb665e401
commit b838cb1c6f
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ func metricViewAdd(c *gin.Context) {
f.Id = 0
f.CreateBy = c.MustGet("userid").(int64)
ginx.NewRender(c).Message(f.Add())
ginx.Dangerous(f.Add())
ginx.NewRender(c).Data(f, nil)
}
// body: ids