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.*;
|
|
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/byToGzCtUnit
|
* @return Object
|
*/
|
@GetMapping("/byToGzCtUnit")
|
public Object byToGzCtUnit() {
|
try {
|
service.byToGzCtUnit();
|
return ReturnSucUtils.getRepInfo();
|
} catch (Exception e) {
|
return ReturnFailUtils.getRepInfo();
|
}
|
}
|
|
/**
|
* 白云区矛盾纠纷多元化解平台数据割接-部门信息
|
* @url {ctx}/api/syncBydyh/byToGzCtDept
|
* @return Object
|
*/
|
@GetMapping("/byToGzCtDept")
|
public Object byToGzCtDept() {
|
try {
|
service.byToGzCtDept();
|
return ReturnSucUtils.getRepInfo();
|
} catch (Exception e) {
|
return ReturnFailUtils.getRepInfo();
|
}
|
}
|
|
/**
|
* 白云区矛盾纠纷多元化解平台数据割接-用户信息
|
* @url {ctx}/api/syncBydyh/byToGzCtUser
|
* @return Object
|
*/
|
@GetMapping("/byToGzCtUser")
|
public Object byToGzCtUser() {
|
try {
|
service.byToGzCtUser();
|
return ReturnSucUtils.getRepInfo();
|
} catch (Exception e) {
|
return ReturnFailUtils.getRepInfo();
|
}
|
}
|
|
/**
|
* 白云区矛盾纠纷多元化解平台数据割接-账号信息
|
* @url {ctx}/api/syncBydyh/byToGzCtAccount
|
* @return Object
|
*/
|
@GetMapping("/byToGzCtAccount")
|
public Object byToGzCtAccount() {
|
try {
|
service.byToGzCtAccount();
|
return ReturnSucUtils.getRepInfo();
|
} catch (Exception e) {
|
return ReturnFailUtils.getRepInfo();
|
}
|
}
|
|
/**
|
* 白云区矛盾纠纷多元化解平台数据割接-用户角色关系信息
|
* @url {ctx}/api/syncBydyh/byToGzCtUserole
|
* @return Object
|
*/
|
@GetMapping("/byToGzCtUserole")
|
public Object byToGzCtUserole() {
|
try {
|
service.byToGzCtUserole();
|
return ReturnSucUtils.getRepInfo();
|
} catch (Exception e) {
|
return ReturnFailUtils.getRepInfo();
|
}
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
* 单位名称更新-白云单位名称街道办->综治中心
|
* @url {ctx}/api/byToGz/upUnitNameZzzx
|
* @return Object
|
*/
|
@GetMapping("/upUnitNameZzzx")
|
public Object upUnitNameZzzx() {
|
try {
|
service.upUnitNameZzzx();
|
return ReturnSucUtils.getRepInfo();
|
} catch (Exception e) {
|
return ReturnFailUtils.getRepInfo();
|
}
|
}
|
}
|