generate 接口参数变更
This commit is contained in:
@@ -24,7 +24,6 @@ public class GenerateThroughImageTextDTO {
|
||||
@ApiModelProperty("text image text-image")
|
||||
String generateType;
|
||||
|
||||
/** 暂时没有用上 */
|
||||
@ApiModelProperty("图片是update,还是从library中选择")
|
||||
String designType;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user