1 回答

TA貢獻(xiàn)1836條經(jīng)驗(yàn) 獲得超13個(gè)贊
聲明所有結(jié)構(gòu)的類型:
type JiraCreateStory struct {
Fields Fields
}
type Fields struct {
Project Project
Summary string
Issuetype Issuetype
UserStory string
Assignee Assignee
ProductOwner ProductOwner
}
type Project struct { Key string }
type Issuetype struct { Name string }
type Assignee struct { Name string }
type ProductOwner struct { Name string }
JiraCreateStory使用復(fù)合文字創(chuàng)建一個(gè):
x := JiraCreateStory{Fields: Fields{
Project: Project{Key: src.Project},
Summary: src.Summary,
Issuetype: Issuetype{Name: src.Issuetype},
UserStory: src.UserStory,
Assignee: Assignee{Name: src.Assignee},
ProductOwner: ProductOwner{Name: src.ProductOwner},
}}
- 1 回答
- 0 關(guān)注
- 108 瀏覽
添加回答
舉報(bào)