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
|
||||
|
||||
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"`
|
||||
}
|
||||
|
@ -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"`
|
||||
}
|
||||
|
@ -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"`
|
||||
}
|
||||
|
@ -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"`
|
||||
}
|
||||
|
@ -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"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user