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 package models
type AnthrovePost struct { type AnthrovePost struct {
PostID AnthrovePostID `json:"post_id"` PostID AnthrovePostID `json:"post_id" format:"string"`
Rating AnthroveRating `json:"rating"` Rating AnthroveRating `json:"rating" format:"string"`
} }

View File

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

View File

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

View File

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

View File

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