修复bug
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -46,6 +45,3 @@ func SendResponse(ctx *gin.Context, code int, message string, data interface{})
|
||||
func SendErrorResponse(ctx *gin.Context, code int, message string) {
|
||||
SendResponse(ctx, code, message, nil)
|
||||
}
|
||||
|
||||
// Properties 是一个自定义类型,用于在 Swagger 中正确表示 JSON 对象
|
||||
type Properties json.RawMessage
|
||||
|
||||
Reference in New Issue
Block a user