|
|
@@ -3,6 +3,7 @@ package com.hz.pm.api.sys.controller; |
|
|
|
import com.hz.pm.api.sys.manage.StagingManage; |
|
|
|
import com.hz.pm.api.sys.model.dto.StagingDTO; |
|
|
|
import com.hz.pm.api.sys.model.enumeration.StagingType; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
@@ -17,6 +18,7 @@ import javax.validation.Valid; |
|
|
|
* @author WendyYang |
|
|
|
* @since 2024-03-25 |
|
|
|
*/ |
|
|
|
@Api(tags = "通用暂存控制器") |
|
|
|
@RestController |
|
|
|
@AllArgsConstructor |
|
|
|
@RequestMapping("/api/v1/staging") |
|
|
@@ -30,6 +32,7 @@ public class StagingController { |
|
|
|
stagingManage.save(staging); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("获取暂存详情") |
|
|
|
@GetMapping(value = {"/detail/{type}", "/detail/{type}/{bizId}"}) |
|
|
|
public StagingDTO detail(@PathVariable StagingType type, @PathVariable(required = false) String bizId) { |
|
|
|
return stagingManage.detail(type, bizId); |
|
|
|