chore: use any instead of interface{}

This commit is contained in:
Steven
2023-06-15 22:57:42 +08:00
parent 6512d6d277
commit a9f33cef6a
7 changed files with 13 additions and 13 deletions

View File

@ -6,9 +6,9 @@ import (
"github.com/labstack/echo/v4"
)
func composeResponse(data interface{}) interface{} {
func composeResponse(data any) any {
type R struct {
Data interface{} `json:"data"`
Data any `json:"data"`
}
return R{