gitea源码

repo_topic.go 846B

1234567891011121314151617181920212223242526272829303132333435
  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. // The unique identifier of the topic
  10. ID int64 `json:"id"`
  11. // The name of the topic
  12. Name string `json:"topic_name"`
  13. // The number of repositories using this topic
  14. RepoCount int `json:"repo_count"`
  15. // The date and time when the topic was created
  16. Created time.Time `json:"created"`
  17. // The date and time when the topic was last updated
  18. Updated time.Time `json:"updated"`
  19. }
  20. // TopicName a list of repo topic names
  21. type TopicName struct {
  22. // List of topic names
  23. TopicNames []string `json:"topics"`
  24. }
  25. // RepoTopicOptions a collection of repo topic names
  26. type RepoTopicOptions struct {
  27. // list of topic names
  28. Topics []string `json:"topics"`
  29. }