更新操作日志状态
(c *gin.Context)
| 33 | |
| 34 | // 更新操作日志状态 |
| 35 | func UpdateOperationLogStatus(c *gin.Context) { |
| 36 | c.Next() |
| 37 | if c.GetString("operationLogID") == "" { |
| 38 | return |
| 39 | } |
| 40 | log := ginzap.WithContext(c).Sugar() |
| 41 | err := systemservice.UpdateOperation(c.GetString("operationLogID"), c.Writer.Status(), log) |
| 42 | if err != nil { |
| 43 | log.Errorf("UpdateOperation err:%v", err) |
| 44 | } |
| 45 | } |
no test coverage detected