Documentation ¶
Overview ¶
Package common ...
Description : common ...
Author : go_developer@163.com<白茶清欢>
Date : 2023-03-10 18:28
Package common ...
Description : common ...
Author : go_developer@163.com<白茶清欢>
Date : 2023-03-10 15:19
Index ¶
- func CheckParam(inputParam easymap.EasyMap, rule [][]*baseDefine.Param) (map[string]interface{}, string, exception.IException)
- func ConvertToSlice(data interface{}) ([]interface{}, error)
- func StringToAny(val interface{}, targetType string) (interface{}, exception.IException)
- func ToString(data interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckParam ¶
func CheckParam(inputParam easymap.EasyMap, rule [][]*baseDefine.Param) (map[string]interface{}, string, exception.IException)
CheckParam 检测参数,返回向下转发的参数,或者出现异常,返回error
Author : go_developer@163.com<白茶清欢>
Date : 9:39 下午 2021/9/15
func ConvertToSlice ¶
func ConvertToSlice(data interface{}) ([]interface{}, error)
ConvertToSlice 任意类型转为slice
Author : go_developer@163.com<白茶清欢>
Date : 11:03 下午 2021/9/15
func StringToAny ¶
func StringToAny(val interface{}, targetType string) (interface{}, exception.IException)
StringToAny 字符串转为任意类型数据
Author : go_developer@163.com<白茶清欢>
Date : 15:10 2023/3/10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.