fix: 网元信息新增返回记录的ID

This commit is contained in:
TsMask committed 2024-04-24 15:35:12 +08:00
1 parent 75007afabb
commit 3ea6285112
1 file changed
+1 -1
@@ -338,7 +338,7 @@ func (s *NeInfoController) Add(c *gin.Context) {
body.UpdateBy = loginUserName
insertId := s.neInfoService.Insert(body)
if insertId != "" {
c.JSON(200, result.Ok(nil))
c.JSON(200, result.OkData(insertId))
return
}
c.JSON(200, result.Err(nil))