docs(swagger): added typehint

Signed-off-by: SoXX <soxx@fenpa.ws>
This commit is contained in:
SoXX 2024-05-31 14:18:36 +02:00
parent aa26357fec
commit 0620d2919e
5 changed files with 13 additions and 13 deletions

View File

@ -1,6 +1,6 @@
package models
type AnthrovePost struct {
PostID AnthrovePostID `json:"post_id"`
Rating AnthroveRating `json:"rating"`
PostID AnthrovePostID `json:"post_id" format:"string"`
Rating AnthroveRating `json:"rating" format:"string"`
}

View File

@ -1,12 +1,12 @@
package models
type AnthroveUserRelationship struct {
UserID string `json:"user_id"`
Username string `json:"username"`
ScrapeTimeInterval string `json:"scrape_time_interval"`
UserID string `json:"user_id" format:"string"`
Username string `json:"username" format:"string"`
ScrapeTimeInterval string `json:"scrape_time_interval" format:"string"`
Source AnthroveSource `json:"source"`
}
type AnthrovePostRelationship struct {
PostID string `json:"post_id"`
Url string `json:"url"`
PostID string `json:"post_id" format:"string"`
Url string `json:"url" format:"string"`
}

View File

@ -1,7 +1,7 @@
package models
type AnthroveSource struct {
DisplayName string `json:"display_name"`
Domain string `json:"domain"`
Icon string `json:"icon"`
DisplayName string `json:"display_name" format:"string"`
Domain string `json:"domain" format:"string"`
Icon string `json:"icon" format:"string"`
}

View File

@ -1,6 +1,6 @@
package models
type AnthroveTag struct {
Name string `json:"name"`
Type string `json:"type"`
Name string `json:"name" format:"string"`
Type string `json:"type" format:"string"`
}

View File

@ -1,6 +1,6 @@
package models
type AnthroveUser struct {
UserID AnthroveUserID `json:"user_id"`
UserID AnthroveUserID `json:"user_id" format:"string"`
Relationship []AnthroveUserRelationship `json:"relationship"`
}