更新后端新增内容
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.nanri.aiimage.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ConfigurationProperties(prefix = "aiimage.module-cleanup")
|
||||
public class ModuleCleanupProperties {
|
||||
private boolean enabled = true;
|
||||
private String cron = "0 0 0 * * *";
|
||||
private List<String> moduleTypes = new ArrayList<>(List.of("DEDUPE", "SPLIT", "CONVERT", "DELETE_BRAND"));
|
||||
}
|
||||
@@ -4,6 +4,6 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
@EnableConfigurationProperties({OssProperties.class, StorageProperties.class, BrandProgressProperties.class, ZiniaoProperties.class})
|
||||
@EnableConfigurationProperties({OssProperties.class, StorageProperties.class, BrandProgressProperties.class, ZiniaoProperties.class, ModuleCleanupProperties.class})
|
||||
public class PropertiesConfig {
|
||||
}
|
||||
|
||||
@@ -9,9 +9,13 @@ public class ZiniaoProperties {
|
||||
private boolean enabled;
|
||||
private String baseUrl;
|
||||
private String apiKey;
|
||||
private String appId;
|
||||
private String appSecret;
|
||||
private Long companyId;
|
||||
private String shopsPath;
|
||||
private String switchShopPath;
|
||||
private String appTokenPath;
|
||||
private String staffListPath;
|
||||
private String userStoresPath;
|
||||
private String userLoginTokenPath;
|
||||
private String openStoreScheme;
|
||||
private String openStoreUserId;
|
||||
private String openStoreLaunchUrl;
|
||||
|
||||
Reference in New Issue
Block a user