Merge branch 'feature/REQ-1309' into dev

This commit is contained in:
wangli 2023-10-08 18:31:54 +08:00
commit e81b7ad879

View File

@ -10,7 +10,12 @@ import cn.azxo.framework.common.model.CommonResponse;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import javax.validation.constraints.NotBlank;
@ -60,7 +65,7 @@ public interface ProcessModelApi {
* @return true 能更新,表明该模型关联的所有定义版本都是挂起状态
*/
@Operation(summary = "校验指定的模型是否能修改")
@GetMapping("/api/process/model/update/check")
@PutMapping("/api/process/model/update/check")
CommonResponse<Boolean> checkCanUpdate(@NotBlank(message = "模型 ID 不能为空") @RequestParam(required = false) String modelId,
@NotBlank(message = "租户不能为空") @RequestParam(required = false) String tenantId);