package github

import (
	"github.com/tidbcloud/devops/api"
	gitent "github.com/tidbcloud/devops/entity/github"
)

type GetRepositoryResp struct {
	api.BaseResp `json:",inline"`

	Repository gitent.Repository `json:"repository"`
}

type ListRepositoriesReq struct {
	api.PaginationReq

	Owners       []string `form:"owners"`
	LocationLike string   `form:"location_like"`
}

type ListRepositoriesResp struct {
	api.BaseResp `json:",inline"`

	Total        int64                `json:"total"`
	Repositories []*gitent.Repository `json:"repositories"`
}
