feat: ftime logic for usertitle is changed
This commit is contained in:
parent
5acc53ec9d
commit
00894f4526
12 changed files with 113 additions and 35 deletions
|
|
@ -395,6 +395,9 @@ paths:
|
|||
rate:
|
||||
type: integer
|
||||
format: int32
|
||||
ftime:
|
||||
type: string
|
||||
format: date-time
|
||||
required:
|
||||
- title_id
|
||||
- status
|
||||
|
|
@ -478,6 +481,9 @@ paths:
|
|||
rate:
|
||||
type: integer
|
||||
format: int32
|
||||
ftime:
|
||||
type: string
|
||||
format: date-time
|
||||
responses:
|
||||
'200':
|
||||
description: Title successfully updated
|
||||
|
|
|
|||
|
|
@ -262,7 +262,8 @@ type GetUserTitlesParams struct {
|
|||
|
||||
// AddUserTitleJSONBody defines parameters for AddUserTitle.
|
||||
type AddUserTitleJSONBody struct {
|
||||
Rate *int32 `json:"rate,omitempty"`
|
||||
Ftime *time.Time `json:"ftime,omitempty"`
|
||||
Rate *int32 `json:"rate,omitempty"`
|
||||
|
||||
// Status User's title status
|
||||
Status UserTitleStatus `json:"status"`
|
||||
|
|
@ -271,7 +272,8 @@ type AddUserTitleJSONBody struct {
|
|||
|
||||
// UpdateUserTitleJSONBody defines parameters for UpdateUserTitle.
|
||||
type UpdateUserTitleJSONBody struct {
|
||||
Rate *int32 `json:"rate,omitempty"`
|
||||
Ftime *time.Time `json:"ftime,omitempty"`
|
||||
Rate *int32 `json:"rate,omitempty"`
|
||||
|
||||
// Status User's title status
|
||||
Status *UserTitleStatus `json:"status,omitempty"`
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@ patch:
|
|||
rate:
|
||||
type: integer
|
||||
format: int32
|
||||
ftime:
|
||||
type: string
|
||||
format: date-time
|
||||
responses:
|
||||
'200':
|
||||
description: Title successfully updated
|
||||
|
|
|
|||
|
|
@ -122,6 +122,9 @@ post:
|
|||
rate:
|
||||
type: integer
|
||||
format: int32
|
||||
ftime:
|
||||
type: string
|
||||
format: date-time
|
||||
responses:
|
||||
'200':
|
||||
description: Title successfully added to user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue