func (c *Client) ListTrackedTimes(owner, repo string, index int64) (TrackedTimes, error) {
	times := make(TrackedTimes, 0, 5)
	return times, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/issues/%d/times", owner, repo, index), nil, nil, &times)
}
ListTrackedTimes get tracked times of one issue via issue id
package gitea
import (
	"bytes"
	"encoding/json"
	"fmt"
	"time"
)
type TrackedTime struct {
	ID int64 `json:"id"`
	Created time.Time `json:"created"`
	Time    int64 `json:"time"`
	UserID  int64 `json:"user_id"`
	IssueID int64 `json:"issue_id"`
}
type TrackedTimes []*TrackedTime
func (c *Client) GetUserTrackedTimes(owner, repo, user string) (TrackedTimes, error) {
	times := make(TrackedTimes, 0, 10)
	return times, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/times/%s", owner, repo, user), nil, nil, &times)
}
func (c *Client) GetRepoTrackedTimes(owner, repo string) (TrackedTimes, error) {
	times := make(TrackedTimes, 0, 10)
	return times, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/times", owner, repo), nil, nil, &times)
}
func (c *Client) GetMyTrackedTimes() (TrackedTimes, error) {
	times := make(TrackedTimes, 0, 10)
	return times, c.getParsedResponse("GET", "/user/times", nil, nil, &times)
}
type AddTimeOption struct {
	Time int64 `json:"time" binding:"Required"`
}
func (c *Client) AddTime(owner, repo string, index int64, opt AddTimeOption) (*TrackedTime, error) {
	body, err := json.Marshal(&opt)
	if err != nil {
		return nil, err
	}
	t := new(TrackedTime)
	return t, c.getParsedResponse("POST", fmt.Sprintf("/repos/%s/%s/issues/%d/times", owner, repo, index),
		jsonHeader, bytes.NewReader(body), t)
}