mod(gitea-api): add json encoding informations for all structs

This commit is contained in:
2023-10-20 13:53:38 +02:00
parent 255b35783c
commit 11c57d3485
5 changed files with 73 additions and 73 deletions

View File

@@ -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) {