mod(gitea-api): add json encoding informations for all structs
This commit is contained in:
@@ -7,10 +7,10 @@ import (
|
||||
)
|
||||
|
||||
type Repository struct {
|
||||
Id uint
|
||||
Name string
|
||||
Owner string
|
||||
Full_name string
|
||||
Id uint `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Owner string `json:"owner"`
|
||||
Full_name string `json:"full_name"`
|
||||
}
|
||||
|
||||
func NewRepository(name, owner string) (repo Repository) {
|
||||
|
||||
Reference in New Issue
Block a user