~xenrox/srhtctl

764fa3459bf0693b24f4971a52d5856b7d6a6a12 — Thorben Günther 2 years ago 6a2d4b1
todo: Remove short structs
1 files changed, 14 insertions(+), 22 deletions(-)

M api/todo.go
M api/todo.go => api/todo.go +14 -22
@@ 8,7 8,7 @@ type permissionStruct struct {

type trackerStruct struct {
	ID                 int              `json:"id"`
	Owner              shortUserStruct  `json:"owner"`
	Owner              userStruct       `json:"owner"`
	Created            string           `json:"created"`
	Updated            string           `json:"updated"`
	Name               string           `json:"name"`


@@ 16,14 16,6 @@ type trackerStruct struct {
	DefaultPermissions permissionStruct `json:"default_permissions"`
}

type shortTrackerStruct struct {
	ID      int             `json:"id"`
	Owner   shortUserStruct `json:"owner"`
	Created string          `json:"created"`
	Updated string          `json:"updated"`
	Name    string          `json:"name"`
}

type trackerPagerStruct struct {
	Next           *int             `json:"next,string"`
	Results        []*trackerStruct `json:"results"`


@@ 32,19 24,19 @@ type trackerPagerStruct struct {
}

type ticketStruct struct {
	ID          int                `json:"id"`
	Ref         string             `json:"ref"`
	Tracker     shortTrackerStruct `json:"tracker"`
	Title       string             `json:"title"`
	Created     string             `json:"created"`
	Updated     string             `json:"updated"`
	Submitter   shortUserStruct    `json:"submitter"`
	Description string             `json:"description"`
	Status      string             `json:"status"`
	Resolution  string             `json:"resolution"`
	Permissions permissionStruct   `json:"permissions"`
	Labels      []string           `json:"labels"`
	Assignees   []string           `json:"assignees"`
	ID          int              `json:"id"`
	Ref         string           `json:"ref"`
	Tracker     trackerStruct    `json:"tracker"`
	Title       string           `json:"title"`
	Created     string           `json:"created"`
	Updated     string           `json:"updated"`
	Submitter   userStruct       `json:"submitter"`
	Description string           `json:"description"`
	Status      string           `json:"status"`
	Resolution  string           `json:"resolution"`
	Permissions permissionStruct `json:"permissions"`
	Labels      []string         `json:"labels"`
	Assignees   []string         `json:"assignees"`
}

type ticketPagerStruct struct {