mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-05 00:50:21 +00:00
add a helper function (#443)
This commit is contained in:
1 parent
80740ddf39
commit
2699627df5
4 files changed
+21
-6
No files matched your search
@@ -27,7 +27,7 @@ func listServerGroup(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, model.CommonResponse[[]model.ServerGroup]{
|
||||
Success: err == nil,
|
||||
Data: sg,
|
||||
Error: utils.IfOrFn[string](err == nil, func() string {
|
||||
Error: utils.IfOrFn(err == nil, func() string {
|
||||
return err.Error()
|
||||
}, func() string {
|
||||
return ""
|
||||
|
||||
Reference in new issue
Block a user