Documentation ¶
Index ¶
- Variables
- func DB() *gorm.DB
- func GetLangStr(lang string) string
- func MongoDB() *mongo.Database
- func MongoInit()
- func MongoUnInit()
- func ParseParamIntToString(m map[string]interface{})
- func QueryToMap(query string, args ...interface{}) (map[string]interface{}, error)
- func QueryToMapArr(query string, args ...interface{}) ([]map[string]interface{}, error)
- func SetDB(initDB *gorm.DB)
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextTodo = context.TODO()
Functions ¶
func GetLangStr ¶
func MongoUnInit ¶
func MongoUnInit()
func ParseParamIntToString ¶
func ParseParamIntToString(m map[string]interface{})
func QueryToMap ¶
避免调用QueryToMapArr导致log层级不准确
func QueryToMapArr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.