mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -9,15 +9,21 @@ import (
|
||||
|
||||
// TopicResponse for returning topics
|
||||
type TopicResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"topic_name"`
|
||||
RepoCount int `json:"repo_count"`
|
||||
Created time.Time `json:"created"`
|
||||
Updated time.Time `json:"updated"`
|
||||
// The unique identifier of the topic
|
||||
ID int64 `json:"id"`
|
||||
// The name of the topic
|
||||
Name string `json:"topic_name"`
|
||||
// The number of repositories using this topic
|
||||
RepoCount int `json:"repo_count"`
|
||||
// The date and time when the topic was created
|
||||
Created time.Time `json:"created"`
|
||||
// The date and time when the topic was last updated
|
||||
Updated time.Time `json:"updated"`
|
||||
}
|
||||
|
||||
// TopicName a list of repo topic names
|
||||
type TopicName struct {
|
||||
// List of topic names
|
||||
TopicNames []string `json:"topics"`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user