Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Routes = map[myrouter.RouteKey]func(w http.ResponseWriter, r *http.Request, ps common.QueryMap){ {Path: "/api/v2/me/zos", Method: http.MethodGet, NeedAuth: true}: hfs.Finds, {Path: "/api/v2/me/zos/:zo_id", Method: http.MethodGet, NeedAuth: true}: hf.Find, {Path: "/api/v2/me/zos", Method: http.MethodPost, NeedAuth: true}: hc.Create, {Path: "/api/v2/me/zos/:zo_id", Method: http.MethodPut, NeedAuth: true}: hu.Update, {Path: "/api/v2/me/zos/:zo_id", Method: http.MethodDelete, NeedAuth: true}: hd.Delete, }
Functions ¶
This section is empty.
Types ¶
type PostRequest ¶
type PostResponse ¶
type PostResponse struct { *myhttp.ResponseBase Zo Zo `json:"zo"` }
func NewZoResponse ¶
func NewZoResponse(res *myhttp.ResponseBase, zo d.Zo) *PostResponse
type SimpleResponse ¶
type SimpleResponse struct {
*myhttp.ResponseBase
}
func NewSimpleResponse ¶
func NewSimpleResponse(res *myhttp.ResponseBase) *SimpleResponse
type Zo ¶
type Zo struct { Id int `json:"id"` AchievementDate time.Time `json:"achievementdate"` Exp int `json:"exp"` CategoryId int `json:"category_id"` Message string `json:"message"` CreatedAt time.Time `json:"createdat"` UpdatedAt sql.NullTime `json:"updatedat"` UserId int `json:"user_id"` }
func ToResponse ¶
type ZosResponse ¶
type ZosResponse struct { *myhttp.ResponseBase Zos []Zo `json:"zos"` }
func NewZosResponse ¶
func NewZosResponse(res *myhttp.ResponseBase, zos []d.Zo) *ZosResponse
Click to show internal directories.
Click to hide internal directories.