return last insert object of metric view
This commit is contained in:
parent
7eb665e401
commit
b838cb1c6f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue