package cn.huge.module.syncbydyh.controller; import cn.huge.base.common.utils.ReturnFailUtils; import cn.huge.base.common.utils.ReturnSucUtils; import cn.huge.module.syncbydyh.service.ByToGzService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; /** * @title: 白云数据割接为广州数据接口api * @description: 白云数据割接为广州数据接口api * @company: hugeinfo * @author: liyj * @time: 2024-08-19 20:04:19 * @version: 1.0.0 */ @Slf4j @RestController @RequestMapping("/api/syncBydyh") public class SyncBydyhController { @Autowired(required = false) private HttpServletRequest request; @Autowired private ByToGzService service; /** * 白云区矛盾纠纷多元化解平台数据割接-已结束的纠纷案件信息 * @url {ctx}/api/syncBydyh/byToGzEndCase * @return Object */ @GetMapping("/byToGzEndCase") public Object byToGzEndCase() { try { service.byToGzEndCase(); return ReturnSucUtils.getRepInfo(); } catch (Exception e) { return ReturnFailUtils.getRepInfo(); } } /** * 白云区矛盾纠纷多元化解平台数据割接-进行中的纠纷案件信息 * @url {ctx}/api/syncBydyh/byToGzTodoCase * @return Object */ @GetMapping("/byToGzTodoCase") public Object byToGzTodoCase() { try { service.byToGzTodoCase(); return ReturnSucUtils.getRepInfo(); } catch (Exception e) { return ReturnFailUtils.getRepInfo(); } } /** * 白云区矛盾纠纷多元化解平台数据割接-更新纠纷类型 * @url {ctx}/api/syncBydyh/upThirdCause * @return Object */ @GetMapping("/upThirdCause") public Object upThirdCause() { try { service.upThirdCause(); return ReturnSucUtils.getRepInfo(); } catch (Exception e) { return ReturnFailUtils.getRepInfo(); } } /** * 白云区矛盾纠纷多元化解平台数据割接-更新问题属地的村级社区 * @url {ctx}/api/syncBydyh/upThirdCause * @return Object */ @GetMapping("/upQueAddr") public Object upQueAddr() { try { service.upQueAddr(); return ReturnSucUtils.getRepInfo(); } catch (Exception e) { return ReturnFailUtils.getRepInfo(); } } /** * 白云区矛盾纠纷多元化解平台数据割接-更新纠纷类型 * @url {ctx}/api/syncBydyh/upCauseByOld * @return Object */ @GetMapping("/upCauseByOld") public Object upCauseByOld() { try { service.upCauseByOld(); return ReturnSucUtils.getRepInfo(); } catch (Exception e) { return ReturnFailUtils.getRepInfo(); } } /** * 白云区矛盾纠纷多元化解平台数据割接-进行中的纠纷案件信息 * @url {ctx}/api/syncBydyh/byToGzJudic * @return Object */ @GetMapping("/byToGzJudic") public Object byToGzJudic() { try { service.byToGzJudic(); return ReturnSucUtils.getRepInfo(); } catch (Exception e) { return ReturnFailUtils.getRepInfo(); } } }