34 lines
1.2 KiB
Java
34 lines
1.2 KiB
Java
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.similar-asin")
|
|
public class SimilarAsinProperties {
|
|
private String cozeBaseUrl = "https://api.coze.cn";
|
|
private String cozeWorkflowPath = "/v1/workflow/run";
|
|
private String cozeWorkflowHistoryPath = "/v1/workflows/{workflow_id}/run_histories/{execute_id}";
|
|
private String cozeWorkflowId = "7635328462404583478";
|
|
private String cozeToken = "";
|
|
private List<CozeCredential> cozeCredentials = new ArrayList<>();
|
|
private int cozeCredentialStripeSize = 5;
|
|
private int cozeBatchSize = 50;
|
|
private int cozeConnectTimeoutMillis = 10000;
|
|
private int cozeReadTimeoutMillis = 60000;
|
|
private int cozePollIntervalMillis = 30000;
|
|
private int cozePollTimeoutMillis = 600000;
|
|
private int staleTimeoutMinutes = 20;
|
|
private String staleFinalizeCron = "0 */2 * * * *";
|
|
|
|
@Data
|
|
public static class CozeCredential {
|
|
private String name;
|
|
private String workflowId;
|
|
private String token;
|
|
}
|
|
}
|