Documentation ¶
Index ¶
- Constants
- func Fail(c core.Context)
- func FailWithDetailed(data interface{}, message string, c core.Context)
- func FailWithMessage(message string, c core.Context)
- func Ok(c core.Context)
- func OkWithData(data interface{}, c core.Context)
- func OkWithDetailed(data interface{}, message string, c core.Context)
- func OkWithMessage(message string, c core.Context)
- func Result(code int, data interface{}, msg string, c core.Context)
- type CreateResponse
- type DeleteRes
- type QueryRes
- type Res
- type SysCaptchaResponse
Constants ¶
View Source
const ( ERROR = 3000 SUCCESS = 0 )
Variables ¶
This section is empty.
Functions ¶
func FailWithDetailed ¶
func FailWithMessage ¶
func OkWithData ¶
func OkWithDetailed ¶
func OkWithMessage ¶
Types ¶
type CreateResponse ¶
type CreateResponse struct {
Id int64 `json:"ID"` // 主键ID
}
type SysCaptchaResponse ¶
Click to show internal directories.
Click to hide internal directories.