package model

type StatusCategory struct {
	Id   int
	Name string
}

type Status struct {
	StatusCategory *StatusCategory
}

type Creator struct {
	Name string
}

type Priority struct {
	Name string
}

type Reporter struct {
	Name string
}

type Assignee struct {
	Name string
}

type Issuetype struct {
	Name string
}

type Components struct {
	Name string
}

type Token2 struct {
	Created           string
	Updated           string
	Resolutiondate    string
	Status            *Status
	Creator           *Creator
	Priority          *Priority //嵌套json
	Summary           string
	Reporter          *Reporter
	Assignee          *Assignee
	Description       string
	Issuetype         *Issuetype
	Components        []*Components
	Customfield_12816 string             //1 account name
	Customfield_12819 string             //1 account code
	Customfield_10615 string             //2
	Customfield_10321 string             //1
	Customfield_10635 string             //2
	Customfield_12601 string             //1 internal github issue id
	Customfield_10639 string             //2 tcoc github issue id
	Customfield_10616 string             // cluster id
	Customfield_10908 string             // cloud cluster version
	Customfield_10924 string             // cloud account code
	Customfield_10926 string             // cloud account name
	Versions          []*InternalVersion // op cluster version
}

type InternalVersion struct {
	Name string
}

type Token struct {
	Id     string
	Key    string
	Fields *Token2
}

type Actress struct {
	Total  int
	Issues []*Token
}

type Author struct {
	Name string
}

// action结构体
type Tokenact struct {
	Id      string
	Author  *Author
	Body    string
	Created string
	Updated string
}

type ActressAction struct {
	Total    int
	Comments []*Tokenact
}
type Items struct {
	Field string //只需要找=status
	From  string //变化前的状态
	To    string
}

type Histories struct {
	Created string
	Items   []*Items
}

//type Changelog struct {
//	Histories []*Histories
//}

type Token3 struct {
	Total     int
	Histories []*Histories
}

type ActressIssue struct {
	Changelog *Token3
}

// issue结构体
type Tokenissue struct {
	Created           string
	Updated           string
	Resolutiondate    string
	Status            *Status
	Creator           *Creator
	Priority          *Priority //嵌套json
	Summary           string
	Reporter          *Reporter
	Assignee          *Assignee
	Description       string
	Issuetype         *Issuetype
	Components        []*Components
	Customfield_12927 *SyncToOncall
	//Customfield_12816 string//1
	//Customfield_12819 string//1
	//Customfield_10615 string//2
}

type SyncToOncall struct {
	Value string
}

type Tokeni struct {
	Id     string
	Key    string
	Fields *Tokenissue
}
type Tokenob struct {
	Title string
}

type Tokentitle struct {
	Id     int
	Object *Tokenob
}

type HttpRes interface {
}
