|
|
@@ -0,0 +1,41 @@
|
|
|
+package com.ydtech.modules.protocol.controller;
|
|
|
+
|
|
|
+
|
|
|
+import com.ydtech.core.page.HttpResult;
|
|
|
+import com.ydtech.core.page.PageResult;
|
|
|
+import com.ydtech.modules.protocol.entity.po.PtlAgreement;
|
|
|
+import com.ydtech.modules.protocol.entity.vo.PltAgreementDeptDispositionVo;
|
|
|
+import com.ydtech.modules.protocol.service.PtlAgreementDeptService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author wenks
|
|
|
+ * @description 协议管理内容
|
|
|
+ * @createDate 2023-08-15 17:52:52
|
|
|
+ */
|
|
|
+@Api(tags = "机构配置协议")
|
|
|
+@RequestMapping("/plt/agreementDept")
|
|
|
+@RestController
|
|
|
+@RequiredArgsConstructor
|
|
|
+public class PtlAgreementDispositionController {
|
|
|
+
|
|
|
+ private final PtlAgreementDeptService ptlAgreementDeptService;
|
|
|
+
|
|
|
+ @PostMapping("/disposition")
|
|
|
+ @ApiOperation("配置协议信息")
|
|
|
+ public HttpResult<PageResult<PtlAgreement>> disposition(@RequestBody PltAgreementDeptDispositionVo pltAgreementDeptDispositionVo) {
|
|
|
+ ptlAgreementDeptService.disposition(pltAgreementDeptDispositionVo);
|
|
|
+ return HttpResult.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|