拆分事件和ocr前缀
parent
b012279858
commit
a96cabe0af
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
|
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
|
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
|
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
|
||||||
import com.docus.server.entity.segmentation.OcrBasic;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 患者信息表 API
|
||||||
* 患者信息表 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrBasicApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrBasicApi")
|
||||||
@RequestMapping("/ocrBasic")
|
@RequestMapping("/ocr/Basic")
|
||||||
public interface OcrBasicApi {
|
public interface OcrBasicApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrBasicVO findById(@PathVariable(value = "id") Long id);
|
OcrBasicVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrBasicVO> findAll();
|
List<OcrBasicVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrBasicVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrBasicVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrBasicDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrBasicDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrBasicDTO addOcrBasicDTO);
|
void add(@RequestBody AddOcrBasicDTO addOcrBasicDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrBasicDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrBasicDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrBasicDTO editOcrBasicDTO);
|
void edit(@RequestBody EditOcrBasicDTO editOcrBasicDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrBasicDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrBasicDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrBasicDTO deleteOcrBasicDTO);
|
int delete(@RequestBody DeleteOcrBasicDTO deleteOcrBasicDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrbasictest.AddOcrBasicTestDTO;
|
import com.docus.server.dto.segmentation.ocrbasictest.AddOcrBasicTestDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrbasictest.EditOcrBasicTestDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrbasictest.DeleteOcrBasicTestDTO;
|
import com.docus.server.dto.segmentation.ocrbasictest.DeleteOcrBasicTestDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrbasictest.EditOcrBasicTestDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrbasictest.OcrBasicTestVO;
|
import com.docus.server.vo.segmentation.ocrbasictest.OcrBasicTestVO;
|
||||||
import com.docus.server.entity.segmentation.OcrBasicTest;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 患者信息表-调试 API
|
||||||
* 患者信息表-调试 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrBasicTestApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrBasicTestApi")
|
||||||
@RequestMapping("/ocrBasicTest")
|
@RequestMapping("/ocr/BasicTest")
|
||||||
public interface OcrBasicTestApi {
|
public interface OcrBasicTestApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrBasicTestVO findById(@PathVariable(value = "id") Long id);
|
OcrBasicTestVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrBasicTestVO> findAll();
|
List<OcrBasicTestVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrBasicTestVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrBasicTestVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrBasicTestDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrBasicTestDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrBasicTestDTO addOcrBasicTestDTO);
|
void add(@RequestBody AddOcrBasicTestDTO addOcrBasicTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrBasicTestDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrBasicTestDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrBasicTestDTO editOcrBasicTestDTO);
|
void edit(@RequestBody EditOcrBasicTestDTO editOcrBasicTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrBasicTestDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrBasicTestDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrBasicTestDTO deleteOcrBasicTestDTO);
|
int delete(@RequestBody DeleteOcrBasicTestDTO deleteOcrBasicTestDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrcutconfig.AddOcrCutConfigDTO;
|
import com.docus.server.dto.segmentation.ocrcutconfig.AddOcrCutConfigDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrcutconfig.EditOcrCutConfigDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrcutconfig.DeleteOcrCutConfigDTO;
|
import com.docus.server.dto.segmentation.ocrcutconfig.DeleteOcrCutConfigDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrcutconfig.EditOcrCutConfigDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrcutconfig.OcrCutConfigVO;
|
import com.docus.server.vo.segmentation.ocrcutconfig.OcrCutConfigVO;
|
||||||
import com.docus.server.entity.segmentation.OcrCutConfig;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* ocr图片剪切配置 API
|
||||||
* ocr图片剪切配置 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrCutConfigApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrCutConfigApi")
|
||||||
@RequestMapping("/ocrCutConfig")
|
@RequestMapping("/ocr/CutConfig")
|
||||||
public interface OcrCutConfigApi {
|
public interface OcrCutConfigApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrCutConfigVO findById(@PathVariable(value = "id") Long id);
|
OcrCutConfigVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrCutConfigVO> findAll();
|
List<OcrCutConfigVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrCutConfigVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrCutConfigVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrCutConfigDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrCutConfigDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrCutConfigDTO addOcrCutConfigDTO);
|
void add(@RequestBody AddOcrCutConfigDTO addOcrCutConfigDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrCutConfigDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrCutConfigDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrCutConfigDTO editOcrCutConfigDTO);
|
void edit(@RequestBody EditOcrCutConfigDTO editOcrCutConfigDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrCutConfigDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrCutConfigDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrCutConfigDTO deleteOcrCutConfigDTO);
|
int delete(@RequestBody DeleteOcrCutConfigDTO deleteOcrCutConfigDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrcutconfigtest.AddOcrCutConfigTestDTO;
|
import com.docus.server.dto.segmentation.ocrcutconfigtest.AddOcrCutConfigTestDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrcutconfigtest.EditOcrCutConfigTestDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrcutconfigtest.DeleteOcrCutConfigTestDTO;
|
import com.docus.server.dto.segmentation.ocrcutconfigtest.DeleteOcrCutConfigTestDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrcutconfigtest.EditOcrCutConfigTestDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrcutconfigtest.OcrCutConfigTestVO;
|
import com.docus.server.vo.segmentation.ocrcutconfigtest.OcrCutConfigTestVO;
|
||||||
import com.docus.server.entity.segmentation.OcrCutConfigTest;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* ocr图片剪切配置-调试 API
|
||||||
* ocr图片剪切配置-调试 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrCutConfigTestApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrCutConfigTestApi")
|
||||||
@RequestMapping("/ocrCutConfigTest")
|
@RequestMapping("/ocr/CutConfigTest")
|
||||||
public interface OcrCutConfigTestApi {
|
public interface OcrCutConfigTestApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrCutConfigTestVO findById(@PathVariable(value = "id") Long id);
|
OcrCutConfigTestVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrCutConfigTestVO> findAll();
|
List<OcrCutConfigTestVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrCutConfigTestVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrCutConfigTestVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrCutConfigTestDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrCutConfigTestDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrCutConfigTestDTO addOcrCutConfigTestDTO);
|
void add(@RequestBody AddOcrCutConfigTestDTO addOcrCutConfigTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrCutConfigTestDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrCutConfigTestDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrCutConfigTestDTO editOcrCutConfigTestDTO);
|
void edit(@RequestBody EditOcrCutConfigTestDTO editOcrCutConfigTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrCutConfigTestDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrCutConfigTestDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrCutConfigTestDTO deleteOcrCutConfigTestDTO);
|
int delete(@RequestBody DeleteOcrCutConfigTestDTO deleteOcrCutConfigTestDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
|
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
|
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
|
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
|
||||||
import com.docus.server.entity.segmentation.OcrFileInfo;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* ocr文件信息 API
|
||||||
* ocr文件信息 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrFileInfoApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrFileInfoApi")
|
||||||
@RequestMapping("/ocrFileInfo")
|
@RequestMapping("/ocr/FileInfo")
|
||||||
public interface OcrFileInfoApi {
|
public interface OcrFileInfoApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrFileInfoVO findById(@PathVariable(value = "id") Long id);
|
OcrFileInfoVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrFileInfoVO> findAll();
|
List<OcrFileInfoVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrFileInfoVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrFileInfoVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrFileInfoDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrFileInfoDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrFileInfoDTO addOcrFileInfoDTO);
|
void add(@RequestBody AddOcrFileInfoDTO addOcrFileInfoDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrFileInfoDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrFileInfoDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrFileInfoDTO editOcrFileInfoDTO);
|
void edit(@RequestBody EditOcrFileInfoDTO editOcrFileInfoDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrFileInfoDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrFileInfoDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrFileInfoDTO deleteOcrFileInfoDTO);
|
int delete(@RequestBody DeleteOcrFileInfoDTO deleteOcrFileInfoDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrfileinfotest.AddOcrFileInfoTestDTO;
|
import com.docus.server.dto.segmentation.ocrfileinfotest.AddOcrFileInfoTestDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrfileinfotest.EditOcrFileInfoTestDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrfileinfotest.DeleteOcrFileInfoTestDTO;
|
import com.docus.server.dto.segmentation.ocrfileinfotest.DeleteOcrFileInfoTestDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrfileinfotest.EditOcrFileInfoTestDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrfileinfotest.OcrFileInfoTestVO;
|
import com.docus.server.vo.segmentation.ocrfileinfotest.OcrFileInfoTestVO;
|
||||||
import com.docus.server.entity.segmentation.OcrFileInfoTest;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* ocr文件信息-调试 API
|
||||||
* ocr文件信息-调试 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrFileInfoTestApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrFileInfoTestApi")
|
||||||
@RequestMapping("/ocrFileInfoTest")
|
@RequestMapping("/ocr/FileInfoTest")
|
||||||
public interface OcrFileInfoTestApi {
|
public interface OcrFileInfoTestApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrFileInfoTestVO findById(@PathVariable(value = "id") Long id);
|
OcrFileInfoTestVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrFileInfoTestVO> findAll();
|
List<OcrFileInfoTestVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrFileInfoTestVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrFileInfoTestVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrFileInfoTestDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrFileInfoTestDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrFileInfoTestDTO addOcrFileInfoTestDTO);
|
void add(@RequestBody AddOcrFileInfoTestDTO addOcrFileInfoTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrFileInfoTestDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrFileInfoTestDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrFileInfoTestDTO editOcrFileInfoTestDTO);
|
void edit(@RequestBody EditOcrFileInfoTestDTO editOcrFileInfoTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrFileInfoTestDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrFileInfoTestDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrFileInfoTestDTO deleteOcrFileInfoTestDTO);
|
int delete(@RequestBody DeleteOcrFileInfoTestDTO deleteOcrFileInfoTestDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
|
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
|
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
|
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
|
||||||
import com.docus.server.entity.segmentation.OcrRule;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 匹配策略表 API
|
||||||
* 匹配策略表 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrRuleApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrRuleApi")
|
||||||
@RequestMapping("/ocrRule")
|
@RequestMapping("/ocr/Rule")
|
||||||
public interface OcrRuleApi {
|
public interface OcrRuleApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrRuleVO findById(@PathVariable(value = "id") Long id);
|
OcrRuleVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrRuleVO> findAll();
|
List<OcrRuleVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrRuleVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrRuleVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrRuleDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrRuleDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrRuleDTO addOcrRuleDTO);
|
void add(@RequestBody AddOcrRuleDTO addOcrRuleDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrRuleDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrRuleDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrRuleDTO editOcrRuleDTO);
|
void edit(@RequestBody EditOcrRuleDTO editOcrRuleDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrRuleDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrRuleDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrRuleDTO deleteOcrRuleDTO);
|
int delete(@RequestBody DeleteOcrRuleDTO deleteOcrRuleDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrruletest.AddOcrRuleTestDTO;
|
import com.docus.server.dto.segmentation.ocrruletest.AddOcrRuleTestDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrruletest.EditOcrRuleTestDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrruletest.DeleteOcrRuleTestDTO;
|
import com.docus.server.dto.segmentation.ocrruletest.DeleteOcrRuleTestDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrruletest.EditOcrRuleTestDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrruletest.OcrRuleTestVO;
|
import com.docus.server.vo.segmentation.ocrruletest.OcrRuleTestVO;
|
||||||
import com.docus.server.entity.segmentation.OcrRuleTest;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 匹配策略表-调试 API
|
||||||
* 匹配策略表-调试 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrRuleTestApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrRuleTestApi")
|
||||||
@RequestMapping("/ocrRuleTest")
|
@RequestMapping("/ocr/RuleTest")
|
||||||
public interface OcrRuleTestApi {
|
public interface OcrRuleTestApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrRuleTestVO findById(@PathVariable(value = "id") Long id);
|
OcrRuleTestVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrRuleTestVO> findAll();
|
List<OcrRuleTestVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrRuleTestVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrRuleTestVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrRuleTestDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrRuleTestDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrRuleTestDTO addOcrRuleTestDTO);
|
void add(@RequestBody AddOcrRuleTestDTO addOcrRuleTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrRuleTestDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrRuleTestDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrRuleTestDTO editOcrRuleTestDTO);
|
void edit(@RequestBody EditOcrRuleTestDTO editOcrRuleTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrRuleTestDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrRuleTestDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrRuleTestDTO deleteOcrRuleTestDTO);
|
int delete(@RequestBody DeleteOcrRuleTestDTO deleteOcrRuleTestDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
|
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
|
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
|
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
|
||||||
import com.docus.server.entity.segmentation.OcrSpecialRule;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 特殊策略表 API
|
||||||
* 特殊策略表 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrSpecialRuleApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrSpecialRuleApi")
|
||||||
@RequestMapping("/ocrSpecialRule")
|
@RequestMapping("/ocr/SpecialRule")
|
||||||
public interface OcrSpecialRuleApi {
|
public interface OcrSpecialRuleApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrSpecialRuleVO findById(@PathVariable(value = "id") Long id);
|
OcrSpecialRuleVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrSpecialRuleVO> findAll();
|
List<OcrSpecialRuleVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrSpecialRuleVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrSpecialRuleVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrSpecialRuleDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrSpecialRuleDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrSpecialRuleDTO addOcrSpecialRuleDTO);
|
void add(@RequestBody AddOcrSpecialRuleDTO addOcrSpecialRuleDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrSpecialRuleDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrSpecialRuleDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrSpecialRuleDTO editOcrSpecialRuleDTO);
|
void edit(@RequestBody EditOcrSpecialRuleDTO editOcrSpecialRuleDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrSpecialRuleDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrSpecialRuleDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO);
|
int delete(@RequestBody DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrspecialruletest.AddOcrSpecialRuleTestDTO;
|
import com.docus.server.dto.segmentation.ocrspecialruletest.AddOcrSpecialRuleTestDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrspecialruletest.EditOcrSpecialRuleTestDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrspecialruletest.DeleteOcrSpecialRuleTestDTO;
|
import com.docus.server.dto.segmentation.ocrspecialruletest.DeleteOcrSpecialRuleTestDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrspecialruletest.EditOcrSpecialRuleTestDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrspecialruletest.OcrSpecialRuleTestVO;
|
import com.docus.server.vo.segmentation.ocrspecialruletest.OcrSpecialRuleTestVO;
|
||||||
import com.docus.server.entity.segmentation.OcrSpecialRuleTest;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 特殊策略表-调试 API
|
||||||
* 特殊策略表-调试 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrSpecialRuleTestApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrSpecialRuleTestApi")
|
||||||
@RequestMapping("/ocrSpecialRuleTest")
|
@RequestMapping("/ocr/SpecialRuleTest")
|
||||||
public interface OcrSpecialRuleTestApi {
|
public interface OcrSpecialRuleTestApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrSpecialRuleTestVO findById(@PathVariable(value = "id") Long id);
|
OcrSpecialRuleTestVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrSpecialRuleTestVO> findAll();
|
List<OcrSpecialRuleTestVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrSpecialRuleTestVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrSpecialRuleTestVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrSpecialRuleTestDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrSpecialRuleTestDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrSpecialRuleTestDTO addOcrSpecialRuleTestDTO);
|
void add(@RequestBody AddOcrSpecialRuleTestDTO addOcrSpecialRuleTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrSpecialRuleTestDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrSpecialRuleTestDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrSpecialRuleTestDTO editOcrSpecialRuleTestDTO);
|
void edit(@RequestBody EditOcrSpecialRuleTestDTO editOcrSpecialRuleTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrSpecialRuleTestDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrSpecialRuleTestDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrSpecialRuleTestDTO deleteOcrSpecialRuleTestDTO);
|
int delete(@RequestBody DeleteOcrSpecialRuleTestDTO deleteOcrSpecialRuleTestDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrurlconfig.AddOcrUrlConfigDTO;
|
import com.docus.server.dto.segmentation.ocrurlconfig.AddOcrUrlConfigDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrurlconfig.EditOcrUrlConfigDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrurlconfig.DeleteOcrUrlConfigDTO;
|
import com.docus.server.dto.segmentation.ocrurlconfig.DeleteOcrUrlConfigDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrurlconfig.EditOcrUrlConfigDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrurlconfig.OcrUrlConfigVO;
|
import com.docus.server.vo.segmentation.ocrurlconfig.OcrUrlConfigVO;
|
||||||
import com.docus.server.entity.segmentation.OcrUrlConfig;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* ocr路径配置表 API
|
||||||
* ocr路径配置表 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrUrlConfigApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrUrlConfigApi")
|
||||||
@RequestMapping("/ocrUrlConfig")
|
@RequestMapping("/ocr/UrlConfig")
|
||||||
public interface OcrUrlConfigApi {
|
public interface OcrUrlConfigApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrUrlConfigVO findById(@PathVariable(value = "id") Long id);
|
OcrUrlConfigVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrUrlConfigVO> findAll();
|
List<OcrUrlConfigVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrUrlConfigVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrUrlConfigVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrUrlConfigDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrUrlConfigDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrUrlConfigDTO addOcrUrlConfigDTO);
|
void add(@RequestBody AddOcrUrlConfigDTO addOcrUrlConfigDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrUrlConfigDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrUrlConfigDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrUrlConfigDTO editOcrUrlConfigDTO);
|
void edit(@RequestBody EditOcrUrlConfigDTO editOcrUrlConfigDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrUrlConfigDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrUrlConfigDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrUrlConfigDTO deleteOcrUrlConfigDTO);
|
int delete(@RequestBody DeleteOcrUrlConfigDTO deleteOcrUrlConfigDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrurlconfigtest.AddOcrUrlConfigTestDTO;
|
import com.docus.server.dto.segmentation.ocrurlconfigtest.AddOcrUrlConfigTestDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrurlconfigtest.EditOcrUrlConfigTestDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrurlconfigtest.DeleteOcrUrlConfigTestDTO;
|
import com.docus.server.dto.segmentation.ocrurlconfigtest.DeleteOcrUrlConfigTestDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrurlconfigtest.EditOcrUrlConfigTestDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrurlconfigtest.OcrUrlConfigTestVO;
|
import com.docus.server.vo.segmentation.ocrurlconfigtest.OcrUrlConfigTestVO;
|
||||||
import com.docus.server.entity.segmentation.OcrUrlConfigTest;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* ocr路径配置表-调试 API
|
||||||
* ocr路径配置表-调试 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrUrlConfigTestApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrUrlConfigTestApi")
|
||||||
@RequestMapping("/ocrUrlConfigTest")
|
@RequestMapping("/ocr/UrlConfigTest")
|
||||||
public interface OcrUrlConfigTestApi {
|
public interface OcrUrlConfigTestApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrUrlConfigTestVO findById(@PathVariable(value = "id") Long id);
|
OcrUrlConfigTestVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrUrlConfigTestVO> findAll();
|
List<OcrUrlConfigTestVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrUrlConfigTestVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrUrlConfigTestVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrUrlConfigTestDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrUrlConfigTestDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrUrlConfigTestDTO addOcrUrlConfigTestDTO);
|
void add(@RequestBody AddOcrUrlConfigTestDTO addOcrUrlConfigTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrUrlConfigTestDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrUrlConfigTestDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrUrlConfigTestDTO editOcrUrlConfigTestDTO);
|
void edit(@RequestBody EditOcrUrlConfigTestDTO editOcrUrlConfigTestDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrUrlConfigTestDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrUrlConfigTestDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrUrlConfigTestDTO deleteOcrUrlConfigTestDTO);
|
int delete(@RequestBody DeleteOcrUrlConfigTestDTO deleteOcrUrlConfigTestDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
|
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
|
||||||
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
|
|
||||||
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
|
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
|
||||||
|
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
|
||||||
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
|
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
|
||||||
import com.docus.server.entity.segmentation.OcrVersion;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 正式数据版本号管理 API
|
||||||
* 正式数据版本号管理 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-29
|
||||||
* @since 2023-08-29
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrVersionApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrVersionApi")
|
||||||
@RequestMapping("/ocrVersion")
|
@RequestMapping("/ocr/Version")
|
||||||
public interface OcrVersionApi {
|
public interface OcrVersionApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
OcrVersionVO findById(@PathVariable(value = "id") Long id);
|
OcrVersionVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<OcrVersionVO> findAll();
|
List<OcrVersionVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<OcrVersionVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<OcrVersionVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addOcrVersionDTO 新增参数
|
*
|
||||||
*/
|
* @param addOcrVersionDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddOcrVersionDTO addOcrVersionDTO);
|
void add(@RequestBody AddOcrVersionDTO addOcrVersionDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editOcrVersionDTO 编辑参数
|
*
|
||||||
*/
|
* @param editOcrVersionDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditOcrVersionDTO editOcrVersionDTO);
|
void edit(@RequestBody EditOcrVersionDTO editOcrVersionDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteOcrVersionDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteOcrVersionDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteOcrVersionDTO deleteOcrVersionDTO);
|
int delete(@RequestBody DeleteOcrVersionDTO deleteOcrVersionDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,81 @@
|
|||||||
package com.docus.server.api.segmentation;
|
package com.docus.server.api.segmentation;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.web.request.SearchDTO;
|
||||||
|
import com.docus.infrastructure.web.response.PageResult;
|
||||||
import com.docus.server.dto.segmentation.zdassort.AddZdAssortDTO;
|
import com.docus.server.dto.segmentation.zdassort.AddZdAssortDTO;
|
||||||
import com.docus.server.dto.segmentation.zdassort.EditZdAssortDTO;
|
|
||||||
import com.docus.server.dto.segmentation.zdassort.DeleteZdAssortDTO;
|
import com.docus.server.dto.segmentation.zdassort.DeleteZdAssortDTO;
|
||||||
|
import com.docus.server.dto.segmentation.zdassort.EditZdAssortDTO;
|
||||||
import com.docus.server.vo.segmentation.zdassort.ZdAssortVO;
|
import com.docus.server.vo.segmentation.zdassort.ZdAssortVO;
|
||||||
import com.docus.server.entity.segmentation.ZdAssort;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import com.docus.infrastructure.web.request.SearchDTO;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import com.docus.infrastructure.web.response.PageResult;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import io.swagger.annotations.Api;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 病案分类 API
|
||||||
* 病案分类 API
|
*
|
||||||
*
|
* @author AutoGenerator
|
||||||
* @author AutoGenerator
|
* @since 2023-08-30
|
||||||
* @since 2023-08-30
|
*/
|
||||||
*/
|
|
||||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.ZdAssortApi")
|
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.ZdAssortApi")
|
||||||
@RequestMapping("/zdAssort")
|
@RequestMapping("/zdAssort")
|
||||||
public interface ZdAssortApi {
|
public interface ZdAssortApi {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按主键查询
|
* 按主键查询
|
||||||
* @param id 主键id
|
*
|
||||||
* @return 实体
|
* @param id 主键id
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/find/{id}")
|
@GetMapping("/find/{id}")
|
||||||
ZdAssortVO findById(@PathVariable(value = "id") Long id);
|
ZdAssortVO findById(@PathVariable(value = "id") Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有
|
* 查询所有
|
||||||
* @return 实体
|
*
|
||||||
*/
|
* @return 实体
|
||||||
|
*/
|
||||||
@GetMapping("/findAll")
|
@GetMapping("/findAll")
|
||||||
List<ZdAssortVO> findAll();
|
List<ZdAssortVO> findAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关键字搜索
|
* 关键字搜索
|
||||||
* @param searchDTO 搜索参数
|
*
|
||||||
* @return 分页列表
|
* @param searchDTO 搜索参数
|
||||||
*/
|
* @return 分页列表
|
||||||
|
*/
|
||||||
@PostMapping("/search")
|
@PostMapping("/search")
|
||||||
PageResult<ZdAssortVO> search(@RequestBody SearchDTO searchDTO);
|
PageResult<ZdAssortVO> search(@RequestBody SearchDTO searchDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param addZdAssortDTO 新增参数
|
*
|
||||||
*/
|
* @param addZdAssortDTO 新增参数
|
||||||
|
*/
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
void add(@RequestBody AddZdAssortDTO addZdAssortDTO);
|
void add(@RequestBody AddZdAssortDTO addZdAssortDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
* @param editZdAssortDTO 编辑参数
|
*
|
||||||
*/
|
* @param editZdAssortDTO 编辑参数
|
||||||
|
*/
|
||||||
@PutMapping("/edit")
|
@PutMapping("/edit")
|
||||||
void edit(@RequestBody EditZdAssortDTO editZdAssortDTO);
|
void edit(@RequestBody EditZdAssortDTO editZdAssortDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除
|
* 批量删除
|
||||||
* @param deleteZdAssortDTO 删除参数
|
*
|
||||||
* @return 成功或失败
|
* @param deleteZdAssortDTO 删除参数
|
||||||
*/
|
* @return 成功或失败
|
||||||
|
*/
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
int delete(@RequestBody DeleteZdAssortDTO deleteZdAssortDTO);
|
int delete(@RequestBody DeleteZdAssortDTO deleteZdAssortDTO);
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,26 @@
|
|||||||
package com.docus.server.common.event;
|
package com.docus.server.common.event;
|
||||||
|
|
||||||
import com.docus.server.api.ocr.OcrApi;
|
import com.docus.log.executor.TrackRetrySpringExecutor;
|
||||||
import com.docus.server.service.impl.PlatformServiceImpl;
|
import com.docus.log.handler.IJobHandler;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.context.event.EventListener;
|
import org.springframework.context.event.EventListener;
|
||||||
import org.springframework.scheduling.annotation.Async;
|
import org.springframework.scheduling.annotation.Async;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class FlowEventListener {
|
public class FlowEventListener {
|
||||||
@Resource
|
|
||||||
private OcrApi ocrApi;
|
|
||||||
@Resource
|
|
||||||
private PlatformServiceImpl downloadService;
|
|
||||||
|
|
||||||
@EventListener
|
@EventListener
|
||||||
@Async("threadPoolExecutor")
|
@Async("threadPoolExecutor")
|
||||||
public void flowListen(FlowEvent fileEvent) {
|
public void flowListen(FlowEvent fileEvent) throws Exception {
|
||||||
|
|
||||||
String patientId = fileEvent.getPatientId();
|
|
||||||
|
|
||||||
FlowEvent.FlowTypeEnum flowTypeEnum = fileEvent.getFlowTypeEnum();
|
FlowEvent.FlowTypeEnum flowTypeEnum = fileEvent.getFlowTypeEnum();
|
||||||
|
|
||||||
switch (flowTypeEnum) {
|
IJobHandler jobHandler = TrackRetrySpringExecutor.loadJobHandler(flowTypeEnum.name());
|
||||||
case START_SEGMENT:
|
|
||||||
startSegment(patientId);
|
|
||||||
break;
|
|
||||||
case START_OCR:
|
|
||||||
startOcr(patientId);
|
|
||||||
break;
|
|
||||||
case START_UPLOAD:
|
|
||||||
startUpload(patientId);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
jobHandler.execute(fileEvent.getPatientId());
|
||||||
* 开始上传归档系统
|
|
||||||
*
|
|
||||||
* @param patientId
|
|
||||||
*/
|
|
||||||
private void startUpload(String patientId) {
|
|
||||||
downloadService.uploadPlatform(null, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 开始进行ocr识别
|
|
||||||
*
|
|
||||||
* @param patientId
|
|
||||||
*/
|
|
||||||
private void startOcr(String patientId) {
|
|
||||||
System.out.println(patientId);
|
|
||||||
List<String> text = ocrApi.getText("D:\\docus\\cut\\segmentation\\20230822\\c6b03e5767814895a2c155c32f174051\\麻醉.jpg");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 开始分段
|
|
||||||
*
|
|
||||||
* @param patientId
|
|
||||||
*/
|
|
||||||
private void startSegment(String patientId) {
|
|
||||||
System.out.println(patientId);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.docus.server.service.handler;
|
||||||
|
|
||||||
|
import com.docus.log.annotation.TrackRetryListener;
|
||||||
|
import com.docus.server.api.ocr.OcrApi;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始OCR处理器
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class StartOcrHandler {
|
||||||
|
@Resource
|
||||||
|
private OcrApi ocrApi;
|
||||||
|
|
||||||
|
@TrackRetryListener("START_OCR")
|
||||||
|
public void startOcr(String patientId) {
|
||||||
|
System.out.println(patientId);
|
||||||
|
List<String> text = ocrApi.getText("D:\\docus\\cut\\segmentation\\20230822\\c6b03e5767814895a2c155c32f174051\\麻醉.jpg");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.docus.server.service.handler;
|
||||||
|
|
||||||
|
import com.docus.log.annotation.TrackRetryListener;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始分段处理器
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class StartSegmentHandler {
|
||||||
|
|
||||||
|
@TrackRetryListener("START_SEGMENT")
|
||||||
|
public void startSegment(String patientId) {
|
||||||
|
System.out.println(patientId);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.docus.server.service.handler;
|
||||||
|
|
||||||
|
import com.docus.log.annotation.TrackRetryListener;
|
||||||
|
import com.docus.server.service.impl.PlatformServiceImpl;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始上传归档系统处理器
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class StartUploadHandler {
|
||||||
|
@Resource
|
||||||
|
private PlatformServiceImpl downloadService;
|
||||||
|
|
||||||
|
@TrackRetryListener("START_UPLOAD")
|
||||||
|
public void startUpload(String patientId) {
|
||||||
|
downloadService.uploadPlatform(null, null);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue