|
@@ -11,17 +11,24 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@Api(value = "法大大通用API", tags ={"法大大通用API"} )
|
|
@Api(value = "法大大通用API", tags ={"法大大通用API"} )
|
|
-@RequestMapping("fdd/common")
|
|
|
|
|
|
+@RequestMapping("/fdd/common")
|
|
public class ContractCommonController {
|
|
public class ContractCommonController {
|
|
|
|
|
|
- @PostMapping("view/contract")
|
|
|
|
|
|
+ @PostMapping("/view/template")
|
|
|
|
+ @ApiOperation(value = "查看模板")
|
|
|
|
+ public ResponseHelper<String> viewTemplate(@RequestParam String templateId) {
|
|
|
|
+ String url = Auth4FDDUtil.queryContractTemplate(templateId);
|
|
|
|
+ return ResponseHelper.success(url);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("/view/contract")
|
|
@ApiOperation(value = "查看合同")
|
|
@ApiOperation(value = "查看合同")
|
|
public ResponseHelper<String> viewContract(@RequestParam String contractId) {
|
|
public ResponseHelper<String> viewContract(@RequestParam String contractId) {
|
|
String url = Auth4FDDUtil.viewContract(contractId);
|
|
String url = Auth4FDDUtil.viewContract(contractId);
|
|
return ResponseHelper.success(url);
|
|
return ResponseHelper.success(url);
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping("download/contract")
|
|
|
|
|
|
+ @PostMapping("/download/contract")
|
|
@ApiOperation(value = "下载合同")
|
|
@ApiOperation(value = "下载合同")
|
|
public ResponseHelper<String> downloadContract(@RequestParam String contractId) {
|
|
public ResponseHelper<String> downloadContract(@RequestParam String contractId) {
|
|
String url = Auth4FDDUtil.downloadContract(contractId);
|
|
String url = Auth4FDDUtil.downloadContract(contractId);
|