merge: 合并代码
This commit is contained in:
@@ -78,6 +78,7 @@ func (s *NeVersionController) Add(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
body.CreateBy = ctx.LoginUserToUserName(c)
|
||||
insertId := s.neVersionService.Insert(body)
|
||||
if insertId != "" {
|
||||
c.JSON(200, result.Ok(nil))
|
||||
@@ -115,6 +116,7 @@ func (s *NeVersionController) Edit(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
body.UpdateBy = ctx.LoginUserToUserName(c)
|
||||
rows := s.neVersionService.Update(body)
|
||||
if rows > 0 {
|
||||
c.JSON(200, result.Ok(nil))
|
||||
|
||||
Reference in New Issue
Block a user