gitea/modules/structs/explore.go
2024-07-09 23:35:42 -04:00

21 lines
558 B
Go

// Copyright 2024 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package structs
// ExploreCodeSearchItem A code search match
// swagger:model
type ExploreCodeSearchItem struct {
RepoName string `json:"repoName"`
FilePath string `json:"path"`
LineNumber int `json:"lineNumber"`
LineText string `json:"lineText"`
}
// ExploreCodeResult all returned code search results
// swagger:model
type ExploreCodeResult struct {
Total int `json:"total"`
Results []ExploreCodeSearchItem `json:"results"`
}