Documentation ¶
Index ¶
- type ApiJson
- func ApiResponse(code int, status bool, objects interface{}, msg string) *ApiJson
- func ErrorBuildJWT(errs ...error) *ApiJson
- func ErrorDeleteDatabase(errs ...error) *ApiJson
- func ErrorIncompleteData(errs ...error) *ApiJson
- func ErrorInsertDatabase(errs ...error) *ApiJson
- func ErrorInternalServer(errs ...error) *ApiJson
- func ErrorInvalidData(errs ...error) *ApiJson
- func ErrorNoPermissions(errs ...error) *ApiJson
- func ErrorNotFound(errs ...error) *ApiJson
- func ErrorQueryDatabase(errs ...error) *ApiJson
- func ErrorUnauthorized(errs ...error) *ApiJson
- func ErrorUpdateDatabase(errs ...error) *ApiJson
- func ErrorValidation(errs ...error) *ApiJson
- func ErrorVerification(errs ...error) *ApiJson
- func Fail(objects interface{}, msg string) *ApiJson
- func Success(objects interface{}, msg string) *ApiJson
- func SuccessCreate(objects interface{}, msg string) *ApiJson
- func SuccessPaged(entries interface{}, total uint, msg string) *ApiJson
- func SuccessUpdate(objects interface{}, msg string) *ApiJson
- type AuthInfo
- type BaseModel
- type Page
- type PageParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiJson ¶
type ApiJson struct { Code int `json:"code"` Status bool `json:"status"` Msg string `json:"msg"` Data interface{} `json:"data"` }
func ApiResponse ¶
func ErrorDeleteDatabase ¶
ErrorDeleteDatabase 删除数据库失败
func ErrorIncompleteData ¶
ErrorIncompleteData 数据不完整
func ErrorInsertDatabase ¶
ErrorInsertDatabase 插入数据库失败
func ErrorInternalServer ¶
ErrorInternalServer 服务器内部错误
func ErrorQueryDatabase ¶
ErrorQueryDatabase 查询数据库失败
func ErrorUpdateDatabase ¶
ErrorUpdateDatabase 更新数据库失败
func SuccessCreate ¶
SuccessCreate 成功创建资源
func SuccessPaged ¶
SuccessPaged 成功
func SuccessUpdate ¶
SuccessUpdate 成功更新/删除资源
Click to show internal directories.
Click to hide internal directories.