Documentation ¶
Index ¶
- func Error(c *gin.Context, error error)
- func ErrorWithEnMessage(c *gin.Context, statusCode int, messageEn, errorCode string)
- func ErrorWithIdMessage(c *gin.Context, statusCode int, messageId, errorCode string)
- func ErrorWithMessage(c *gin.Context, statusCode int, messageId, messageEn, errorCode string)
- func PagingSuccess(c *gin.Context, data interface{}, total int64, pagingFilter models.Paging)
- func Success(c *gin.Context, data interface{})
- type ModelError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWithEnMessage ¶
func ErrorWithIdMessage ¶
func ErrorWithMessage ¶
func PagingSuccess ¶
Types ¶
type ModelError ¶
type ModelError struct { Code int `json:"code"` ErrorCode string `json:"error_code,omitempty"` Success bool `json:"success"` Message *struct { Indonesian *string `json:"indonesian"` English *string `json:"english"` } `json:"message,omitempty"` Timestamp int64 `json:"timestamp"` }
func (ModelError) ErrorString ¶
func (m ModelError) ErrorString() errors.ErrorString
Click to show internal directories.
Click to hide internal directories.