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{}, msg string)
- func RespFail(writer http.ResponseWriter, msg string)
- func RespList(w http.ResponseWriter, code int, data interface{}, total interface{})
- func RespOK(writer http.ResponseWriter, data interface{}, msg string)
- func RespOkList(w http.ResponseWriter, lists interface{}, total interface{})
- func ValidatePasswd(plainpwd, salt, passwd string) bool
- type H
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakePasswd ¶
func RespFail ¶
func RespFail(writer http.ResponseWriter, msg string)
func RespList ¶
func RespList(w http.ResponseWriter, code int, data interface{}, total interface{})
func RespOK ¶
func RespOK(writer http.ResponseWriter, data interface{}, msg string)
func RespOkList ¶
func RespOkList(w http.ResponseWriter, lists interface{}, total interface{})
func ValidatePasswd ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.