EciController.java 1.63 KB
package com.pashanhoo.qys.controller;

import com.pashanhoo.common.Result;
import com.pashanhoo.qys.service.EciService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eci/")
@Api(tags = "电子证照相关接口")
public class EciController {
    @Autowired
    private EciService eciService;

    @PostMapping("accessCreateContract")
    @ApiOperation("创建合同接口")
    public Result accessCreateContract(@ApiParam("不动产权基本信息id")@RequestParam String zsbs,@ApiParam("证件号码")@RequestParam String qlrzjh,@ApiParam("证书编号")@RequestParam String bh) {
        eciService.createContractForHandle(zsbs,qlrzjh,bh);
        return Result.ok();
    }
    @GetMapping("accessDetails")
    @ApiOperation("合同详情接口")
    public Result accessDetails(@ApiParam("电子证照表主键ID")@RequestParam String biz_id) {
        eciService.accessDetailsForHandle(biz_id);
        return Result.ok();
    }
    @GetMapping("accessDownload")
    @ApiOperation("下载合同文档接口")
    public Result accessDownload(@ApiParam("电子证照表主键ID")@RequestParam String biz_id) {
        eciService.accessDownloadForHandle(biz_id);
        return Result.ok();
    }
    @GetMapping("convert")
    @ApiOperation("ofd转换服务接口")
    public Result convert(@ApiParam("电子证照表主键ID")@RequestParam String biz_id) {
        eciService.convertElecForHandle(biz_id);
        return Result.ok();
    }

}