Skip to content

Commit

Permalink
modify struct
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal committed Aug 21, 2023
1 parent 8a35fb5 commit ac0a49c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion server/api/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func UploadRules(c *gin.Context) {
rules := convertCsvIntoRules(csvLines)
for _, rule := range rules {
if err := service.CreateRule(rule); err != nil {
global.GVA_LOG.Error("创建Rule失败!", zap.Error(err))
global.GVA_LOG.Error("创建规则失败!", zap.Error(err))
response.FailWithMessage("创建规则失败", c)
return
}
Expand Down
1 change: 0 additions & 1 deletion server/model/response/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const (
)

func Result(code int, data interface{}, msg string, c *gin.Context) {
// 开始时间
c.JSON(http.StatusOK, Response{
code,
data,
Expand Down

0 comments on commit ac0a49c

Please sign in to comment.