mirror of
https://github.com/ctwj/urldb.git
synced 2025-11-25 11:29:37 +08:00
90 lines
3.5 KiB
Go
90 lines
3.5 KiB
Go
package dto
|
||
|
||
// SystemConfigRequest 系统配置请求
|
||
type SystemConfigRequest struct {
|
||
// SEO 配置
|
||
SiteTitle string `json:"site_title"`
|
||
SiteDescription string `json:"site_description"`
|
||
Keywords string `json:"keywords"`
|
||
Author string `json:"author"`
|
||
Copyright string `json:"copyright"`
|
||
|
||
// 自动处理配置组
|
||
AutoProcessReadyResources bool `json:"auto_process_ready_resources"` // 自动处理待处理资源
|
||
AutoProcessInterval int `json:"auto_process_interval"` // 自动处理间隔(分钟)
|
||
AutoTransferEnabled bool `json:"auto_transfer_enabled"` // 开启自动转存
|
||
AutoTransferLimitDays int `json:"auto_transfer_limit_days"` // 自动转存限制天数(0表示不限制)
|
||
AutoTransferMinSpace int `json:"auto_transfer_min_space"` // 最小存储空间(GB)
|
||
AutoFetchHotDramaEnabled bool `json:"auto_fetch_hot_drama_enabled"` // 自动拉取热播剧名字
|
||
|
||
// API配置
|
||
ApiToken string `json:"api_token"` // 公开API访问令牌
|
||
|
||
// 违禁词配置
|
||
ForbiddenWords string `json:"forbidden_words"` // 违禁词列表,用逗号分隔
|
||
|
||
// 广告配置
|
||
AdKeywords string `json:"ad_keywords"` // 广告关键词列表,用逗号分隔
|
||
AutoInsertAd string `json:"auto_insert_ad"` // 自动插入广告内容
|
||
|
||
// 其他配置
|
||
PageSize int `json:"page_size"`
|
||
MaintenanceMode bool `json:"maintenance_mode"`
|
||
EnableRegister bool `json:"enable_register"` // 开启注册功能
|
||
|
||
// 三方统计配置
|
||
ThirdPartyStatsCode string `json:"third_party_stats_code"` // 三方统计代码
|
||
}
|
||
|
||
// SystemConfigResponse 系统配置响应
|
||
type SystemConfigResponse struct {
|
||
ID uint `json:"id"`
|
||
CreatedAt string `json:"created_at"`
|
||
UpdatedAt string `json:"updated_at"`
|
||
|
||
// SEO 配置
|
||
SiteTitle string `json:"site_title"`
|
||
SiteDescription string `json:"site_description"`
|
||
Keywords string `json:"keywords"`
|
||
Author string `json:"author"`
|
||
Copyright string `json:"copyright"`
|
||
|
||
// 自动处理配置组
|
||
AutoProcessReadyResources bool `json:"auto_process_ready_resources"` // 自动处理待处理资源
|
||
AutoProcessInterval int `json:"auto_process_interval"` // 自动处理间隔(分钟)
|
||
AutoTransferEnabled bool `json:"auto_transfer_enabled"` // 开启自动转存
|
||
AutoTransferLimitDays int `json:"auto_transfer_limit_days"` // 自动转存限制天数(0表示不限制)
|
||
AutoTransferMinSpace int `json:"auto_transfer_min_space"` // 最小存储空间(GB)
|
||
AutoFetchHotDramaEnabled bool `json:"auto_fetch_hot_drama_enabled"` // 自动拉取热播剧名字
|
||
|
||
// API配置
|
||
ApiToken string `json:"api_token"` // 公开API访问令牌
|
||
|
||
// 违禁词配置
|
||
ForbiddenWords string `json:"forbidden_words"` // 违禁词列表,用逗号分隔
|
||
|
||
// 广告配置
|
||
AdKeywords string `json:"ad_keywords"` // 广告关键词列表,用逗号分隔
|
||
AutoInsertAd string `json:"auto_insert_ad"` // 自动插入广告内容
|
||
|
||
// 其他配置
|
||
PageSize int `json:"page_size"`
|
||
MaintenanceMode bool `json:"maintenance_mode"`
|
||
EnableRegister bool `json:"enable_register"` // 开启注册功能
|
||
|
||
// 三方统计配置
|
||
ThirdPartyStatsCode string `json:"third_party_stats_code"` // 三方统计代码
|
||
}
|
||
|
||
// SystemConfigItem 单个配置项
|
||
type SystemConfigItem struct {
|
||
Key string `json:"key"`
|
||
Value string `json:"value"`
|
||
Type string `json:"type"`
|
||
}
|
||
|
||
// SystemConfigListResponse 配置列表响应
|
||
type SystemConfigListResponse struct {
|
||
Configs []SystemConfigItem `json:"configs"`
|
||
}
|