mirror of
https://github.com/go-gitea/gitea
synced 2025-02-12 07:07:02 +01:00
21 lines
558 B
Go
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"`
|
|
}
|