Documentation ¶
Index ¶
- Constants
- func Fail(c *gin.Context)
- func FailWithDetailed(data interface{}, message string, c *gin.Context)
- func FailWithMessage(message string, c *gin.Context)
- func Ok(c *gin.Context)
- func OkWithData(data interface{}, c *gin.Context)
- func OkWithDetailed(data interface{}, message string, c *gin.Context)
- func OkWithMessage(message string, c *gin.Context)
- func Result(code int, data interface{}, msg string, c *gin.Context)
- func UnauthorizedFailDetail(data interface{}, message string, c *gin.Context)
- type EvBaseModel
- type EvCategory
- type EvProduct
- type Response
Constants ¶
View Source
const ( ERROR = 500 SUCCESS = 200 UNAUTHORIZED = 401 )
Variables ¶
This section is empty.
Functions ¶
func FailWithDetailed ¶
func FailWithMessage ¶
func OkWithData ¶
func OkWithDetailed ¶
func OkWithMessage ¶
func UnauthorizedFailDetail ¶
Types ¶
type EvBaseModel ¶
type EvCategory ¶
type EvCategory struct { EvBaseModel Name string `json:"name"` Slug string `json:"slug"` }
type EvProduct ¶
type EvProduct struct { EvBaseModel Name string `json:"name"` Description string `json:"description"` CategoryID int64 `json:"category_id"` Type string `json:"type"` Category EvCategory `json:"category"` }
Click to show internal directories.
Click to hide internal directories.