Documentation
¶
Index ¶
- Variables
- func Byte2Int(data []byte) int
- func Capitalize(str string) string
- func Case2Camel(name string) string
- func GetAndSql(queryList *[]*QuerySql) (whereSqlStr string, valueArray *[]types.Any)
- func GetDynamicList(fields string, inter interface{}) interface{}
- func GetDynamicObject(fields string, inter interface{}) interface{}
- func GetExecPath() string
- func GetStringValue(inter interface{}, defValue string) string
- func Int2Byte(data int) (ret []byte)
- func MapFailOnlyMsg(msg string) types.Map
- func MapResult(data types.Any, msg string, code int) types.Map
- func MapResultNoData(msg string, code int) types.Map
- func MapSuccess(data types.Any) types.Map
- func MapSuccessWithMsg(data types.Any, msg string) types.Map
- func ProtectFunc(entry func())
- func StringToUnit(str string) uint
- func UnitToString(uintParam uint) string
- type QuerySql
- type QuerySqlPtrs
Constants ¶
This section is empty.
Variables ¶
json iterator 工具类
Functions ¶
func Case2Camel ¶
func GetDynamicList ¶
func GetDynamicList(fields string, inter interface{}) interface{}
包装了 renderDynamicList
func GetDynamicObject ¶
func GetDynamicObject(fields string, inter interface{}) interface{}
包装了 renderDynamicObject
func GetExecPath ¶
func GetExecPath() string
func GetStringValue ¶
func MapFailOnlyMsg ¶
失败时, 响应结果 , 错误码 固定 为 400, 只需要传 msg 参数
func MapSuccessWithMsg ¶
返回 带提示的 成功结果 map
func ProtectFunc ¶
func ProtectFunc(entry func())
Types ¶
type QuerySqlPtrs ¶
type QuerySqlPtrs = []*QuerySql
Click to show internal directories.
Click to hide internal directories.