ty
9 months ago
1 changed files with 25 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||||||
|
package com.hnac.hzims.safeproduct.feign; |
||||||
|
|
||||||
|
|
||||||
|
import com.hnac.hzims.middle.process.to.ProcessWorkFlowResponse; |
||||||
|
import com.hnac.hzims.safeproduct.flow.service.IInnerDangerFlowService; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
|
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
public class SafeInnerDangerClient implements ISafeInnerDangerClient { |
||||||
|
|
||||||
|
private IInnerDangerFlowService service; |
||||||
|
|
||||||
|
|
||||||
|
@PostMapping(SAVE_HIDDENDANGER) |
||||||
|
@Override |
||||||
|
public R saveDefect(@RequestBody ProcessWorkFlowResponse processWorkFlowResponse) { |
||||||
|
return service.listenAndUpdateDefect(processWorkFlowResponse); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue