|
@ -108,7 +108,7 @@ func InsertSnrtab(ctx iris.Context) { |
|
|
} |
|
|
} |
|
|
err := data.Add() |
|
|
err := data.Add() |
|
|
if err != nil{ |
|
|
if err != nil{ |
|
|
supports.Error(ctx, iris.StatusBadRequest,"添加失败!", nil) |
|
|
|
|
|
|
|
|
supports.Error(ctx, iris.StatusBadRequest,"添加失败!error: " + err.Error(), nil) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
supports.Ok(ctx, supports.OptionSuccess, data) |
|
|
supports.Ok(ctx, supports.OptionSuccess, data) |
|
|