Documentation ¶
Index ¶
Constants ¶
View Source
const AppNotInstall = 801
View Source
const AuthError = 401
View Source
const FailureContent = "操作失败"
View Source
const NotFound = 404
View Source
const ResponseFailure = 1
View Source
const ResponseSuccess = 0
View Source
const ServerError = 500
View Source
const SuccessContent = "操作成功"
Variables ¶
This section is empty.
Functions ¶
func JsonResponseByErr ¶
Types ¶
type JsonResponse ¶
type JsonResponse struct{}
func (*JsonResponse) CommonFailure ¶
func (j *JsonResponse) CommonFailure(message string, err ...error) string
func (*JsonResponse) Success ¶
func (j *JsonResponse) Success(message string, data interface{}) string
Click to show internal directories.
Click to hide internal directories.