添加python端调用upload接口的operateType
--添加类型“generateSketch”
This commit is contained in:
@@ -4,7 +4,7 @@ import java.util.stream.Stream;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author yanglei
|
* @author yanglei
|
||||||
* @description python调用java 操作数类型 generatePrint ->生成印花 designCollection ->设计collection
|
* @description python调用java 操作数类型 generatePrint ->生成印花 designCollection ->设计collection generateSketch->设计草图
|
||||||
* @create 2022-10-3 17:33
|
* @create 2022-10-3 17:33
|
||||||
**/
|
**/
|
||||||
public enum PythonToJavaApiOperationTypeEnum {
|
public enum PythonToJavaApiOperationTypeEnum {
|
||||||
@@ -19,7 +19,12 @@ public enum PythonToJavaApiOperationTypeEnum {
|
|||||||
/**
|
/**
|
||||||
* 设计collection
|
* 设计collection
|
||||||
*/
|
*/
|
||||||
DESIGN_COLLECTION("designCollection");
|
DESIGN_COLLECTION("designCollection"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生成草图
|
||||||
|
*/
|
||||||
|
GENERATE_SKETCH("generateSketch");
|
||||||
|
|
||||||
private String realName;
|
private String realName;
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ public class PythonController {
|
|||||||
@PostMapping("/saveGeneratePicture")
|
@PostMapping("/saveGeneratePicture")
|
||||||
public Response<String> upload(@RequestParam("file") MultipartFile file,
|
public Response<String> upload(@RequestParam("file") MultipartFile file,
|
||||||
@ApiParam("操作类型 generatePrint ->生成印花 " +
|
@ApiParam("操作类型 generatePrint ->生成印花 " +
|
||||||
"designCollection ->设计collection generateAdvancedDesign ->生成高级design")
|
"designCollection ->设计collection generateAdvancedDesign ->生成高级design"+
|
||||||
|
"generateSketch -> 生成草图")
|
||||||
@RequestParam(value = "operateType") String operateType) {
|
@RequestParam(value = "operateType") String operateType) {
|
||||||
return Response.success(pythonService.upload(file, operateType));
|
return Response.success(pythonService.upload(file, operateType));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user