misc

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ApiJson

func ApiJson(v string, data interface{}, e *exception.Exception) []byte

func ApiJsonp

func ApiJsonp(v string, data interface{}, e *exception.Exception, callback string) []byte

func CalApiSign

func CalApiSign(queryValues url.Values, signQueryNames []string, token string) string

func MongoTestClient

func MongoTestClient() *mongo.Client

func MysqlTestClient

func MysqlTestClient() *mysql.Client

func PrintComplexObjectForTest

func PrintComplexObjectForTest(v interface{})

func RedisTestClient

func RedisTestClient() *redis.Client

func SendMail

func SendMail(subject, body, from string, to []string) error

func StructSimpleFieldAssign

func StructSimpleFieldAssign(sou, dst interface{})

Types

type ApiData

type ApiData struct {
	Errno int    `json:"errno"`
	Msg   string `json:"msg"`
	V     string `json:"v"`

	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL