init: taotie-api 项目初始化

This commit is contained in:
2026-05-16 00:14:19 +08:00
commit eb15ef4b87
33 changed files with 1746 additions and 0 deletions

38
common/common.go Normal file
View File

@@ -0,0 +1,38 @@
package common
type (
Map = map[string]any
MapAnyAny = map[any]any
MapAnyStr = map[any]string
MapAnyInt = map[any]int
MapAnyBool = map[any]bool
MapStrAny = map[string]any
MapStrStr = map[string]string
MapStrInt = map[string]int
MapStrBool = map[string]bool
MapIntAny = map[int]any
MapIntStr = map[int]string
MapIntInt = map[int]int
MapIntBool = map[int]bool
)
type (
List = []Map
ListAnyAny = []MapAnyAny
ListAnyStr = []MapAnyStr
ListAnyInt = []MapAnyInt
ListAnyBool = []MapAnyBool
ListStrAny = []MapStrAny
ListStrStr = []MapStrStr
ListStrInt = []MapStrInt
ListStrBool = []MapStrBool
ListIntAny = []MapIntAny
ListIntStr = []MapIntStr
ListIntInt = []MapIntInt
ListIntBool = []MapIntBool
)
const (
False = 0
True = 1
)