BUGFIX:design中的排序问题 倒序问题 再次修改
This commit is contained in:
@@ -2,6 +2,7 @@ package com.ai.da.controller;
|
||||
|
||||
import com.ai.da.common.enums.CreditsEventsEnum;
|
||||
import com.ai.da.common.response.Response;
|
||||
import com.ai.da.mapper.primary.entity.CollectionSort;
|
||||
import com.ai.da.model.dto.*;
|
||||
import com.ai.da.model.vo.*;
|
||||
import com.ai.da.service.GenerateService;
|
||||
@@ -101,7 +102,7 @@ public class GenerateController {
|
||||
|
||||
@ApiOperation(value = "请求进行姿势变换")
|
||||
@PostMapping("/poseTransform")
|
||||
public Response<String> poseTransform(@Valid @RequestBody PoseTransformDTO poseTransformDTO) {
|
||||
public Response<ToProductImageResultVO> poseTransform(@Valid @RequestBody PoseTransformDTO poseTransformDTO) {
|
||||
return Response.success(generateService.poseTransform(poseTransformDTO));
|
||||
}
|
||||
|
||||
@@ -115,7 +116,12 @@ public class GenerateController {
|
||||
@ApiOperation("喜欢或取消喜欢姿势变换生成的图片")
|
||||
@PostMapping("/likeOrDislike")
|
||||
public Response<Object> likeOrDislike(@ApiParam("id") @RequestParam Long transformedId, @ApiParam("like || dislike") @RequestParam String likeOrDislike, @RequestParam("projectId") Long projectId, @RequestParam(value = "collectionSortParentId", required = false) Long collectionSortParentId) {
|
||||
return Response.success(generateService.disOrLikePose(transformedId, likeOrDislike, projectId, collectionSortParentId));
|
||||
Object obj = generateService.disOrLikePose(transformedId, likeOrDislike, projectId, collectionSortParentId);
|
||||
if (obj instanceof CollectionSort){
|
||||
return Response.success(((CollectionSort) obj).getId());
|
||||
}else {
|
||||
return Response.success(obj);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "修改模特比例")
|
||||
|
||||
Reference in New Issue
Block a user