admin_config/
cos_config.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4pub struct CosConfig {
5    /// Secret ID
6    pub secret_id: String,
7    /// Secret Key
8    pub secret_key: String,
9    /// 存储桶名称
10    pub bucket: String,
11    /// 区域
12    pub region: String,
13    /// CDN 域名
14    pub cdn_domain: Option<String>,
15}
16
17impl Default for CosConfig {
18    fn default() -> Self {
19        Self {
20            secret_id: "".to_string(),
21            secret_key: "".to_string(),
22            bucket: "".to_string(),
23            region: "ap-guangzhou".to_string(),
24            cdn_domain: Some("".to_string()),
25        }
26    }
27}