feat: migrate api to v1 package

This commit is contained in:
Steven
2023-06-20 18:02:53 +08:00
parent 44ef82fb4a
commit 92d50eabf3
17 changed files with 244 additions and 799 deletions

View File

@@ -6,16 +6,6 @@ import (
"github.com/labstack/echo/v4"
)
func composeResponse(data any) any {
type R struct {
Data any `json:"data"`
}
return R{
Data: data,
}
}
// hasPrefixes returns true if the string s has any of the given prefixes.
func hasPrefixes(src string, prefixes ...string) bool {
for _, prefix := range prefixes {