You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo_topic.go 635B

12345678910111213141516171819202122232425262728
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. import (
  5. "time"
  6. )
  7. // TopicResponse for returning topics
  8. type TopicResponse struct {
  9. ID int64 `json:"id"`
  10. Name string `json:"topic_name"`
  11. RepoCount int `json:"repo_count"`
  12. Created time.Time `json:"created"`
  13. Updated time.Time `json:"updated"`
  14. }
  15. // TopicName a list of repo topic names
  16. type TopicName struct {
  17. TopicNames []string `json:"topics"`
  18. }
  19. // RepoTopicOptions a collection of repo topic names
  20. type RepoTopicOptions struct {
  21. // list of topic names
  22. Topics []string `json:"topics"`
  23. }