docs(swagger): added typehint
Signed-off-by: SoXX <soxx@fenpa.ws>
This commit is contained in:
parent
aa26357fec
commit
0620d2919e
@ -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"`
|
||||||
}
|
}
|
||||||
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user