[优化] response 结构调整

This commit is contained in:
ryan
2026-06-05 11:42:25 +08:00
parent 4dc4c745c8
commit 43e8ef154f
29 changed files with 578 additions and 605 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
package controller
import (
"openflare/common/response"
"openflare/model"
"github.com/gin-gonic/gin"
@@ -16,8 +17,8 @@ import (
func GetDefaultAcmeAccount(c *gin.Context) {
account, err := model.GetDefaultAcmeAccount()
if err != nil {
respondFailure(c, err.Error())
response.RespondFailure(c, err.Error())
return
}
respondSuccess(c, account)
response.RespondSuccess(c, account)
}