refactor: new types
This commit is contained in:
parent
e6dc27fd55
commit
4949a3c25f
3 changed files with 21 additions and 12 deletions
|
|
@ -94,8 +94,8 @@ type GetTitleParams struct {
|
|||
Rating *float64 `form:"rating,omitempty" json:"rating,omitempty"`
|
||||
ReleaseYear *int32 `form:"release_year,omitempty" json:"release_year,omitempty"`
|
||||
ReleaseSeason *ReleaseSeason `form:"release_season,omitempty" json:"release_season,omitempty"`
|
||||
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
|
||||
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
|
||||
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
|
||||
Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`
|
||||
Fields *string `form:"fields,omitempty" json:"fields,omitempty"`
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,11 +35,13 @@ paths:
|
|||
name: limit
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
default: 10
|
||||
- in: query
|
||||
name: offset
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
- in: query
|
||||
name: fields
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue