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

This commit is contained in:
TsMask
2024-04-24 15:35:12 +08:00
parent 75007afabb
commit 3ea6285112

View File

@@ -338,7 +338,7 @@ func (s *NeInfoController) Add(c *gin.Context) {
body.UpdateBy = loginUserName body.UpdateBy = loginUserName
insertId := s.neInfoService.Insert(body) insertId := s.neInfoService.Insert(body)
if insertId != "" { if insertId != "" {
c.JSON(200, result.Ok(nil)) c.JSON(200, result.OkData(insertId))
return return
} }
c.JSON(200, result.Err(nil)) c.JSON(200, result.Err(nil))