本站源代码
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.

30 lines
707B

  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. import (
  6. "time"
  7. )
  8. // TopicResponse for returning topics
  9. type TopicResponse struct {
  10. ID int64 `json:"id"`
  11. Name string `json:"topic_name"`
  12. RepoCount int `json:"repo_count"`
  13. Created time.Time `json:"created"`
  14. Updated time.Time `json:"updated"`
  15. }
  16. // TopicName a list of repo topic names
  17. type TopicName struct {
  18. TopicNames []string `json:"topics"`
  19. }
  20. // RepoTopicOptions a collection of repo topic names
  21. type RepoTopicOptions struct {
  22. // list of topic names
  23. Topics []string `json:"topics"`
  24. }
上海开阖软件有限公司 沪ICP备12045867号-1