mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-19 10:12:54 +02:00
[Vendor] Update gitea go-sdk to 2020-01-03 (#81)
update sdk to v0.0.0-20200103062250-c7686bd633c6 Co-authored-by: 6543 <6543@obermui.de> Reviewed-by: techknowlogick <techknowlogick@gitea.io> Reviewed-by: sapk <sapk@noreply.gitea.io> Reviewed-by: mrsdizzie <info@mrsdizzie.com>
This commit is contained in:
16
vendor/code.gitea.io/sdk/gitea/issue_tracked_time.go
generated
vendored
16
vendor/code.gitea.io/sdk/gitea/issue_tracked_time.go
generated
vendored
@ -16,9 +16,13 @@ type TrackedTime struct {
|
||||
ID int64 `json:"id"`
|
||||
Created time.Time `json:"created"`
|
||||
// Time in seconds
|
||||
Time int64 `json:"time"`
|
||||
UserID int64 `json:"user_id"`
|
||||
IssueID int64 `json:"issue_id"`
|
||||
Time int64 `json:"time"`
|
||||
// deprecated (only for backwards compatibility)
|
||||
UserID int64 `json:"user_id"`
|
||||
UserName string `json:"user_name"`
|
||||
// deprecated (only for backwards compatibility)
|
||||
IssueID int64 `json:"issue_id"`
|
||||
Issue *Issue `json:"issue"`
|
||||
}
|
||||
|
||||
// GetUserTrackedTimes list tracked times of a user
|
||||
@ -42,7 +46,11 @@ func (c *Client) GetMyTrackedTimes() ([]*TrackedTime, error) {
|
||||
// AddTimeOption options for adding time to an issue
|
||||
type AddTimeOption struct {
|
||||
// time in seconds
|
||||
Time int64 `json:"time"`
|
||||
Time int64 `json:"time" binding:"Required"`
|
||||
// optional
|
||||
Created time.Time `json:"created"`
|
||||
// optional
|
||||
User string `json:"user_name"`
|
||||
}
|
||||
|
||||
// AddTime adds time to issue with the given index
|
||||
|
Reference in New Issue
Block a user