mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-27 05:04:21 -04:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -5,34 +5,52 @@ package structs
|
||||
|
||||
// GeneralRepoSettings contains global repository settings exposed by API
|
||||
type GeneralRepoSettings struct {
|
||||
MirrorsDisabled bool `json:"mirrors_disabled"`
|
||||
HTTPGitDisabled bool `json:"http_git_disabled"`
|
||||
MigrationsDisabled bool `json:"migrations_disabled"`
|
||||
StarsDisabled bool `json:"stars_disabled"`
|
||||
// MirrorsDisabled indicates if repository mirroring is disabled
|
||||
MirrorsDisabled bool `json:"mirrors_disabled"`
|
||||
// HTTPGitDisabled indicates if HTTP Git operations are disabled
|
||||
HTTPGitDisabled bool `json:"http_git_disabled"`
|
||||
// MigrationsDisabled indicates if repository migrations are disabled
|
||||
MigrationsDisabled bool `json:"migrations_disabled"`
|
||||
// StarsDisabled indicates if repository starring is disabled
|
||||
StarsDisabled bool `json:"stars_disabled"`
|
||||
// TimeTrackingDisabled indicates if time tracking is disabled
|
||||
TimeTrackingDisabled bool `json:"time_tracking_disabled"`
|
||||
LFSDisabled bool `json:"lfs_disabled"`
|
||||
// LFSDisabled indicates if Git LFS support is disabled
|
||||
LFSDisabled bool `json:"lfs_disabled"`
|
||||
}
|
||||
|
||||
// GeneralUISettings contains global ui settings exposed by API
|
||||
type GeneralUISettings struct {
|
||||
DefaultTheme string `json:"default_theme"`
|
||||
// DefaultTheme is the default UI theme
|
||||
DefaultTheme string `json:"default_theme"`
|
||||
// AllowedReactions contains the list of allowed emoji reactions
|
||||
AllowedReactions []string `json:"allowed_reactions"`
|
||||
CustomEmojis []string `json:"custom_emojis"`
|
||||
// CustomEmojis contains the list of custom emojis
|
||||
CustomEmojis []string `json:"custom_emojis"`
|
||||
}
|
||||
|
||||
// GeneralAPISettings contains global api settings exposed by it
|
||||
type GeneralAPISettings struct {
|
||||
MaxResponseItems int `json:"max_response_items"`
|
||||
DefaultPagingNum int `json:"default_paging_num"`
|
||||
DefaultGitTreesPerPage int `json:"default_git_trees_per_page"`
|
||||
DefaultMaxBlobSize int64 `json:"default_max_blob_size"`
|
||||
// MaxResponseItems is the maximum number of items returned in API responses
|
||||
MaxResponseItems int `json:"max_response_items"`
|
||||
// DefaultPagingNum is the default number of items per page
|
||||
DefaultPagingNum int `json:"default_paging_num"`
|
||||
// DefaultGitTreesPerPage is the default number of Git tree items per page
|
||||
DefaultGitTreesPerPage int `json:"default_git_trees_per_page"`
|
||||
// DefaultMaxBlobSize is the default maximum blob size for API responses
|
||||
DefaultMaxBlobSize int64 `json:"default_max_blob_size"`
|
||||
// DefaultMaxResponseSize is the default maximum response size
|
||||
DefaultMaxResponseSize int64 `json:"default_max_response_size"`
|
||||
}
|
||||
|
||||
// GeneralAttachmentSettings contains global Attachment settings exposed by API
|
||||
type GeneralAttachmentSettings struct {
|
||||
Enabled bool `json:"enabled"`
|
||||
// Enabled indicates if file attachments are enabled
|
||||
Enabled bool `json:"enabled"`
|
||||
// AllowedTypes contains the allowed file types for attachments
|
||||
AllowedTypes string `json:"allowed_types"`
|
||||
MaxSize int64 `json:"max_size"`
|
||||
MaxFiles int `json:"max_files"`
|
||||
// MaxSize is the maximum size for individual attachments
|
||||
MaxSize int64 `json:"max_size"`
|
||||
// MaxFiles is the maximum number of files per attachment
|
||||
MaxFiles int `json:"max_files"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user