Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusSuccess = "success" StatusFail = "fail" )
View Source
const ( PRODUCT_SORT_NEWEST = "newest" PRODUCT_SORT_POPULAR = "popular" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnswerValidator ¶
type QuestionUpvoteValidator ¶
type QuestionUpvoteValidator struct {
ID int64 `json:"id" binding:"required"`
}
type QuestionValidator ¶
type QuestionValidator struct {
Text string `json:"text" binding:"required"`
}
Validators
type ResponseContext ¶
func (*ResponseContext) ResponseData ¶
func (self *ResponseContext) ResponseData(status string, message string, data interface{}) Response
type ServiceResponse ¶
Click to show internal directories.
Click to hide internal directories.