code.gitea.io/gitea@v1.19.3/modules/structs/repo_topic.go (about)

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