Documentation ¶
Index ¶
- func Bind(req *http.Request, obj interface{}) error
- func BindForm(req *http.Request, ptr interface{}) error
- func BindJson(req *http.Request, obj interface{}) error
- func MD5Encode(data string) string
- func MakePasswd(plainpwd, salt string) string
- func Md5Encode(data string) string
- func Resp(writer http.ResponseWriter, code int, data interface{}, message string)
- func RespFail(writer http.ResponseWriter, message string)
- func RespList(w http.ResponseWriter, code int, data interface{}, total interface{})
- func RespOk(writer http.ResponseWriter, data interface{}, message string)
- func RespOkList(w http.ResponseWriter, lists interface{}, total interface{})
- func ValidatePasswd(plainpwd, salt, passwd string) bool
- type ResponseData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakePasswd ¶
func RespFail ¶
func RespFail(writer http.ResponseWriter, message string)
func RespList ¶
func RespList(w http.ResponseWriter, code int, data interface{}, total interface{})
func RespOk ¶
func RespOk(writer http.ResponseWriter, data interface{}, message string)
func RespOkList ¶
func RespOkList(w http.ResponseWriter, lists interface{}, total interface{})
func ValidatePasswd ¶
Types ¶
type ResponseData ¶
Click to show internal directories.
Click to hide internal directories.