mod(gitea-api): add json encoding informations for all structs
This commit is contained in:
@@ -9,16 +9,16 @@ import (
|
||||
)
|
||||
|
||||
type Milestone struct {
|
||||
Id uint
|
||||
Title string
|
||||
Description string
|
||||
State string
|
||||
Open_issues uint
|
||||
Closed_issues uint
|
||||
Created_at time.Time
|
||||
Updated_at time.Time
|
||||
Due_on time.Time
|
||||
Closed_at time.Time
|
||||
Id uint `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
State string `json:"state"`
|
||||
Open_issues uint `json:"open_issues"`
|
||||
Closed_issues uint `json:"closed_issues"`
|
||||
Created_at time.Time `json:"created_at"`
|
||||
Updated_at time.Time `json:"updated_at"`
|
||||
Due_on time.Time `json:"due_on"`
|
||||
Closed_at time.Time `json:"closed_at"`
|
||||
}
|
||||
|
||||
func (gitea *Gitea) GetMilestones(repo Repository) ([]Milestone, error) {
|
||||
|
||||
Reference in New Issue
Block a user