init: taotie-api 项目初始化
This commit is contained in:
38
common/common.go
Normal file
38
common/common.go
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user