mod(gitea-api): add json encoding informations for all structs
This commit is contained in:
@@ -9,36 +9,36 @@ import (
|
||||
)
|
||||
|
||||
type PullRequest struct {
|
||||
Merged bool
|
||||
Merged_at time.Time
|
||||
Merged bool `json:"merged"`
|
||||
Merged_at time.Time `json:"merged_at"`
|
||||
}
|
||||
|
||||
type Issue struct {
|
||||
Id uint
|
||||
Url string
|
||||
Html_url string
|
||||
Number uint
|
||||
User User
|
||||
Original_author string
|
||||
Original_author_id uint
|
||||
Title string
|
||||
Body string
|
||||
Ref string
|
||||
Assets []string
|
||||
Labels []string
|
||||
Milestone Milestone
|
||||
Assignee User
|
||||
Assignees []User
|
||||
State string
|
||||
Is_locked bool
|
||||
Comments uint
|
||||
Created_at time.Time
|
||||
Updated_at time.Time
|
||||
Closed_at time.Time
|
||||
Due_date time.Time
|
||||
Pull_request PullRequest
|
||||
Repository Repository
|
||||
Pin_order uint
|
||||
Id uint `json:"id"`
|
||||
Url string `json:"url"`
|
||||
Html_url string `json:"html_url"`
|
||||
Number uint `json:"number"`
|
||||
User User `json:"user"`
|
||||
Original_author string `json:"original_author"`
|
||||
Original_author_id uint `json:"original_author_id"`
|
||||
Title string `json:"title"`
|
||||
Body string `json:"body"`
|
||||
Ref string `json:"ref"`
|
||||
Assets []string `json:"assets"`
|
||||
Labels []string `json:"labels"`
|
||||
Milestone Milestone `json:"milestone"`
|
||||
Assignee User `json:"assignee"`
|
||||
Assignees []User `json:"assignees"`
|
||||
State string `json:"state"`
|
||||
Is_locked bool `json:"is_locked"`
|
||||
Comments uint `json:"comments"`
|
||||
Created_at time.Time `json:"created_at"`
|
||||
Updated_at time.Time `json:"updated_at"`
|
||||
Closed_at time.Time `json:"closed_at"`
|
||||
Due_date time.Time `json:"due_date"`
|
||||
Pull_request PullRequest `json:"pull_request"`
|
||||
Repository Repository `json:"repository"`
|
||||
Pin_order uint `json:"pin_order"`
|
||||
}
|
||||
|
||||
func (gitea *Gitea) GetIssues(repo Repository) ([]Issue, error) {
|
||||
|
||||
Reference in New Issue
Block a user