generate 接口参数变更

This commit is contained in:
2024-04-25 12:41:07 +08:00
parent c44fc14796
commit 6d9efc1509
8 changed files with 37 additions and 14 deletions

View File

@@ -24,7 +24,6 @@ public class GenerateThroughImageTextDTO {
@ApiModelProperty("text image text-image")
String generateType;
/** 暂时没有用上 */
@ApiModelProperty("图片是update还是从library中选择")
String designType;

View File

@@ -22,15 +22,16 @@ public class GenerateToPythonDTO {
// 去除
// private String version;
// 去掉
// private String gender;
private String gender;
// taskId的最后拼接用户id
private String tasks_id;
public GenerateToPythonDTO(String tasks_id, String prompt, String image_url, String mode, String category) {
public GenerateToPythonDTO(String tasks_id, String prompt, String image_url, String mode, String category, String gender) {
this.image_url = image_url;
this.category = category;
this.prompt = prompt;
this.mode = mode;
this.tasks_id = tasks_id;
this.gender = gender;
}
}

View File

@@ -19,6 +19,15 @@ public class GenerateResultVO {
private String status;
private String category;
public GenerateResultVO(String taskId, Long id, String url, String status) {
this.taskId = taskId;
this.id = id;
this.url = url;
this.status = status;
}
public GenerateResultVO(Long id, String url, String status) {
this.id = id;
this.url = url;