Documentation ¶
Index ¶
- Constants
- func ConvertBasicList(data interface{}) string
- func ConvertStruct(data interface{}) string
- func ConvertStructList(data interface{}) string
- func GetSign(publicParam map[string]interface{}, data map[string]interface{}, secret string) string
- func HandleJsonResponse(jsonStr string, v interface{}) (err error)
- func HmacSha256(data string, secret string) string
- func UnmarshalJSON(data []byte, v interface{}) (err error)
- type FileItem
- type LocalTime
- type TopApiRequestError
Constants ¶
View Source
const (
TimeFormat = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func ConvertBasicList ¶
func ConvertBasicList(data interface{}) string
func ConvertStruct ¶
func ConvertStruct(data interface{}) string
func ConvertStructList ¶
func ConvertStructList(data interface{}) string
func HandleJsonResponse ¶
func HmacSha256 ¶
func UnmarshalJSON ¶
Types ¶
type TopApiRequestError ¶
type TopApiRequestError struct { /* System code */ TopCode int `json:"code,omitempty" ` /* System error message */ Msg string `json:"msg,omitempty" ` /* System sub code */ SubCode string `json:"sub_code,omitempty" ` /* System sub message */ SubMsg string `json:"sub_msg,omitempty" ` /* System request id */ RequestId string `json:"request_id,omitempty" ` }
func (*TopApiRequestError) Error ¶
func (e *TopApiRequestError) Error() string
Click to show internal directories.
Click to hide internal directories.