fix:升级swagger注解
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.ai.da.python.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -9,15 +9,15 @@ import java.util.List;
|
||||
@Data
|
||||
public class DesignPythonItemElement {
|
||||
|
||||
@ApiModelProperty("print的位置 传 [[0.2, 0.2]]")
|
||||
@Schema(description = "print的位置 传 [[0.2, 0.2]]")
|
||||
private List<List<Float>> location = new ArrayList<>();
|
||||
|
||||
private List<String> element_path_list = new ArrayList<>();
|
||||
|
||||
@ApiModelProperty("print的缩放比例 传 [0.2, 0.2]")
|
||||
@Schema(description = "print的缩放比例 传 [0.2, 0.2]")
|
||||
private List<List<Float>> element_scale_list = new ArrayList<>();
|
||||
|
||||
@ApiModelProperty("print的旋转角度 传 [0.2, 0.2]")
|
||||
@Schema(description = "print的旋转角度 传 [0.2, 0.2]")
|
||||
private List<Double> element_angle_list = new ArrayList<>();
|
||||
|
||||
public DesignPythonItemElement() {
|
||||
|
||||
@@ -1,47 +1,47 @@
|
||||
package com.ai.da.python.vo;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class DesignPythonItemPrint {
|
||||
/**
|
||||
* print 绝对路径
|
||||
*/
|
||||
@ApiModelProperty("图片绝对路径")
|
||||
@Schema(description = "图片绝对路径")
|
||||
private String path;
|
||||
|
||||
private List<String> print_path_list = new ArrayList<>();
|
||||
|
||||
@ApiModelProperty("上传时候对应的类型,一级类型 Printboard ")
|
||||
@Schema(description = "上传时候对应的类型,一级类型 Printboard ")
|
||||
private String level1Type;
|
||||
|
||||
/**
|
||||
* print_scale
|
||||
*/
|
||||
@ApiModelProperty("print_scale")
|
||||
@Schema(description = "print_scale")
|
||||
private Float scale;
|
||||
|
||||
/**
|
||||
* 是否打点
|
||||
*/
|
||||
@ApiModelProperty("是否打点 是传true 否则false")
|
||||
@Schema(description = "是否打点 是传true 否则false")
|
||||
private Boolean ifSingle;
|
||||
|
||||
|
||||
@ApiModelProperty("print的位置 传 [[0.2, 0.2]]")
|
||||
@Schema(description = "print的位置 传 [[0.2, 0.2]]")
|
||||
private List<List<Float>> location = new ArrayList<>();
|
||||
|
||||
@ApiModelProperty("print的缩放比例 传 [0.2, 0.2]")
|
||||
@Schema(description = "print的缩放比例 传 [0.2, 0.2]")
|
||||
private List<List<Float>> print_scale_list = new ArrayList<>();
|
||||
|
||||
@ApiModelProperty("print的旋转角度 传 [0.2, 0.2]")
|
||||
@Schema(description = "print的旋转角度 传 [0.2, 0.2]")
|
||||
private List<Double> print_angle_list = new ArrayList<>();
|
||||
|
||||
@JSONField(name = "IfSingle")
|
||||
|
||||
Reference in New Issue
Block a user