feat: now use _build to build
This commit is contained in:
parent
2025bb451f
commit
fbf3f1d3a2
4 changed files with 457 additions and 4 deletions
|
|
@ -47,6 +47,12 @@ const (
|
|||
UserTitleStatusPlanned UserTitleStatus = "planned"
|
||||
)
|
||||
|
||||
// CursorObj defines model for CursorObj.
|
||||
type CursorObj struct {
|
||||
Id int64 `json:"id"`
|
||||
Param *string `json:"param,omitempty"`
|
||||
}
|
||||
|
||||
// Image defines model for Image.
|
||||
type Image struct {
|
||||
Id *int64 `json:"id,omitempty"`
|
||||
|
|
@ -108,7 +114,7 @@ type TitleStatus string
|
|||
// User defines model for User.
|
||||
type User struct {
|
||||
// AvatarId ID of the user avatar (references images table)
|
||||
AvatarId *int64 `json:"avatar_id"`
|
||||
AvatarId *int64 `json:"avatar_id,omitempty"`
|
||||
|
||||
// CreationDate Timestamp when the user was created
|
||||
CreationDate *time.Time `json:"creation_date,omitempty"`
|
||||
|
|
@ -906,7 +912,12 @@ type GetTitlesResponseObject interface {
|
|||
VisitGetTitlesResponse(w http.ResponseWriter) error
|
||||
}
|
||||
|
||||
type GetTitles200JSONResponse []Title
|
||||
type GetTitles200JSONResponse struct {
|
||||
Cursor CursorObj `json:"cursor"`
|
||||
|
||||
// Data List of titles
|
||||
Data []Title `json:"data"`
|
||||
}
|
||||
|
||||
func (response GetTitles200JSONResponse) VisitGetTitlesResponse(w http.ResponseWriter) error {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue