合并代码

This commit is contained in:
Renpc-kilig 2020-10-22 16:38:58 +08:00
parent d43d786188
commit 196d087cd6
5 changed files with 484 additions and 4 deletions

View File

@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View File

@ -0,0 +1,121 @@
package com.cm.partybuilding.controller.apis.activity;
import com.cm.common.annotation.CheckRequestBodyAnnotation;
import com.cm.common.base.AbstractController;
import com.cm.common.component.SecurityComponent;
import com.cm.common.constants.ISystemConstant;
import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SearchException;
import com.cm.common.pojo.ListPage;
import com.cm.common.pojo.dtos.CurrentUserIdInfoDTO;
import com.cm.common.result.ErrorResult;
import com.cm.common.result.SuccessResult;
import com.cm.common.result.SuccessResultData;
import com.cm.common.result.SuccessResultList;
import com.cm.partybuilding.pojo.dtos.activity.ActivityDTO;
import com.cm.partybuilding.pojo.vos.activity.ActivityVO;
import com.cm.partybuilding.service.activity.IActivityService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @ClassName: ActivityController
* @Description: 名书记工作室活动
* @Author: WenG
* @Date: 2020-10-21 10:50
* @Version: 1.0
**/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "名书记工作室活动接口")
@RestController
@RequestMapping(ISystemConstant.API_PREFIX + "/activity")
public class ActivityController extends AbstractController {
@Autowired
private IActivityService activityService;
@Autowired
private SecurityComponent securityComponent;
@ApiOperation(value = "新增名书记工作室活动", notes = "新增名书记工作室活动接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("saveactivity")
@CheckRequestBodyAnnotation
public SuccessResult saveActivity(@RequestBody ActivityVO activityVO) throws Exception {
return activityService.saveActivity(activityVO);
}
@ApiOperation(value = "删除名书记工作室活动(id列表)", notes = "删除名书记工作室活动(id列表)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "ID列表用下划线分隔", paramType = "path", example = "1_2_3")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@DeleteMapping("removeactivity/{ids}")
public SuccessResult removeActivity(@PathVariable("ids") String ids) throws RemoveException {
return activityService.removeActivity(ids);
}
@ApiOperation(value = "修改名书记工作室活动", notes = "修改名书记工作室活动接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "activityId", value = "名书记工作室活动ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PutMapping("updateactivity/{activityId}")
@CheckRequestBodyAnnotation
public SuccessResult updateActivity(@PathVariable("activityId") String activityId, @RequestBody ActivityVO activityVO) throws Exception {
return activityService.updateActivity(activityId, activityVO);
}
@ApiOperation(value = "名书记工作室活动详情(通过ID)", notes = "名书记工作室活动详情(通过ID)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "activityId", value = "名书记工作室活动ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getactivitybyid/{activityId}")
public ActivityDTO getActivityById(@PathVariable("activityId") String activityId) throws SearchException {
return activityService.getActivityById(activityId);
}
@ApiOperation(value = "名书记工作室活动列表", notes = "名书记工作室活动列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listactivity")
public List<ActivityDTO> listActivity() throws SearchException {
Map<String, Object> params = requestParams();
return activityService.listActivity(params);
}
@ApiOperation(value = "名书记工作室活动分页列表", notes = "名书记工作室活动分页列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpageactivity")
public SuccessResultList<List<ActivityDTO>> listPageActivity(ListPage page) throws SearchException {
Map<String, Object> params = requestParams();
page.setParams(params);
return activityService.listPageActivity(page);
}
@ApiOperation(value = "名书记工作室活动统计", notes = "名书记工作室活动统计接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("countactivity")
SuccessResultData<Integer> countActivity() throws SearchException {
Map<String, Object> params = requestParams();
return activityService.countActivity(params);
}
@ApiOperation(value = "当前用户id信息", notes = "当前用户id信息接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getcurrentuseridinfo")
public CurrentUserIdInfoDTO getCurrentUserIdInfo() {
return securityComponent.getCurrentUserIdInfo();
}
}

View File

@ -0,0 +1,121 @@
package com.cm.partybuilding.controller.apis.partymemberorganize;
import com.cm.common.annotation.CheckRequestBodyAnnotation;
import com.cm.common.base.AbstractController;
import com.cm.common.component.SecurityComponent;
import com.cm.common.constants.ISystemConstant;
import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SearchException;
import com.cm.common.pojo.ListPage;
import com.cm.common.pojo.dtos.CurrentUserIdInfoDTO;
import com.cm.common.result.ErrorResult;
import com.cm.common.result.SuccessResult;
import com.cm.common.result.SuccessResultData;
import com.cm.common.result.SuccessResultList;
import com.cm.partybuilding.pojo.dtos.partymemberorganize.PartyMemberOrganizeDTO;
import com.cm.partybuilding.pojo.vos.partymemberorganize.PartyMemberOrganizeVO;
import com.cm.partybuilding.service.partymemberorganize.IPartyMemberOrganizeService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @ClassName: PartyMemberOrganizeController
* @Description: 党员管理
* @Author: WenG
* @Date: 2020-10-20 10:18
* @Version: 1.0
**/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "党员管理接口")
@RestController
@RequestMapping(ISystemConstant.API_PREFIX + "/partymemberorganize")
public class PartyMemberOrganizeController extends AbstractController {
@Autowired
private IPartyMemberOrganizeService partyMemberOrganizeService;
@Autowired
private SecurityComponent securityComponent;
@ApiOperation(value = "新增党员管理", notes = "新增党员管理接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("savepartymemberorganize")
@CheckRequestBodyAnnotation
public SuccessResult savePartyMemberOrganize(@RequestBody PartyMemberOrganizeVO partyMemberOrganizeVO) throws Exception {
return partyMemberOrganizeService.savePartyMemberOrganize(partyMemberOrganizeVO);
}
@ApiOperation(value = "删除党员管理(id列表)", notes = "删除党员管理(id列表)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "ID列表用下划线分隔", paramType = "path", example = "1_2_3")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@DeleteMapping("removepartymemberorganize/{ids}")
public SuccessResult removePartyMemberOrganize(@PathVariable("ids") String ids) throws RemoveException {
return partyMemberOrganizeService.removePartyMemberOrganize(ids);
}
@ApiOperation(value = "修改党员管理", notes = "修改党员管理接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "partyMemberOrganizeId", value = "党员管理ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PutMapping("updatepartymemberorganize/{partyMemberOrganizeId}")
@CheckRequestBodyAnnotation
public SuccessResult updatePartyMemberOrganize(@PathVariable("partyMemberOrganizeId") String partyMemberOrganizeId, @RequestBody PartyMemberOrganizeVO partyMemberOrganizeVO) throws Exception {
return partyMemberOrganizeService.updatePartyMemberOrganize(partyMemberOrganizeId, partyMemberOrganizeVO);
}
@ApiOperation(value = "党员管理详情(通过ID)", notes = "党员管理详情(通过ID)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "partyMemberOrganizeId", value = "党员管理ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getpartymemberorganizebyid/{partyMemberOrganizeId}")
public PartyMemberOrganizeDTO getPartyMemberOrganizeById(@PathVariable("partyMemberOrganizeId") String partyMemberOrganizeId) throws SearchException {
return partyMemberOrganizeService.getPartyMemberOrganizeById(partyMemberOrganizeId);
}
@ApiOperation(value = "党员管理列表", notes = "党员管理列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpartymemberorganize")
public List<PartyMemberOrganizeDTO> listPartyMemberOrganize() throws SearchException {
Map<String, Object> params = requestParams();
return partyMemberOrganizeService.listPartyMemberOrganize(params);
}
@ApiOperation(value = "党员管理分页列表", notes = "党员管理分页列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpagepartymemberorganize")
public SuccessResultList<List<PartyMemberOrganizeDTO>> listPagePartyMemberOrganize(ListPage page) throws SearchException {
Map<String, Object> params = requestParams();
page.setParams(params);
return partyMemberOrganizeService.listPagePartyMemberOrganize(page);
}
@ApiOperation(value = "党员管理统计", notes = "党员管理统计接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("countpartymemberorganize")
SuccessResultData<Integer> countPartyMemberOrganize() throws SearchException {
Map<String, Object> params = requestParams();
return partyMemberOrganizeService.countPartyMemberOrganize(params);
}
@ApiOperation(value = "当前用户id信息", notes = "当前用户id信息接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getcurrentuseridinfo")
public CurrentUserIdInfoDTO getCurrentUserIdInfo() {
return securityComponent.getCurrentUserIdInfo();
}
}

View File

@ -0,0 +1,121 @@
package com.cm.partybuilding.controller.apis.partyorganize;
import com.cm.common.annotation.CheckRequestBodyAnnotation;
import com.cm.common.base.AbstractController;
import com.cm.common.component.SecurityComponent;
import com.cm.common.constants.ISystemConstant;
import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SearchException;
import com.cm.common.pojo.ListPage;
import com.cm.common.pojo.dtos.CurrentUserIdInfoDTO;
import com.cm.common.result.ErrorResult;
import com.cm.common.result.SuccessResult;
import com.cm.common.result.SuccessResultData;
import com.cm.common.result.SuccessResultList;
import com.cm.partybuilding.pojo.dtos.partyorganize.PartyOrganizeDTO;
import com.cm.partybuilding.pojo.vos.partyorganize.PartyOrganizeVO;
import com.cm.partybuilding.service.partyorganize.IPartyOrganizeService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @ClassName: PartyOrganizeController
* @Description: 党组织
* @Author: WenG
* @Date: 2020-10-16 14:24
* @Version: 1.0
**/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "党组织接口")
@RestController
@RequestMapping(ISystemConstant.API_PREFIX + "/partyorganize")
public class PartyOrganizeController extends AbstractController {
@Autowired
private IPartyOrganizeService partyOrganizeService;
@Autowired
private SecurityComponent securityComponent;
@ApiOperation(value = "新增党组织", notes = "新增党组织接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("savepartyorganize")
@CheckRequestBodyAnnotation
public SuccessResult savePartyOrganize(@RequestBody PartyOrganizeVO partyOrganizeVO) throws Exception {
return partyOrganizeService.savePartyOrganize(partyOrganizeVO);
}
@ApiOperation(value = "删除党组织(id列表)", notes = "删除党组织(id列表)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "ID列表用下划线分隔", paramType = "path", example = "1_2_3")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@DeleteMapping("removepartyorganize/{ids}")
public SuccessResult removePartyOrganize(@PathVariable("ids") String ids) throws RemoveException {
return partyOrganizeService.removePartyOrganize(ids);
}
@ApiOperation(value = "修改党组织", notes = "修改党组织接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "partyOrganizeId", value = "党组织ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PutMapping("updatepartyorganize/{partyOrganizeId}")
@CheckRequestBodyAnnotation
public SuccessResult updatePartyOrganize(@PathVariable("partyOrganizeId") String partyOrganizeId, @RequestBody PartyOrganizeVO partyOrganizeVO) throws Exception {
return partyOrganizeService.updatePartyOrganize(partyOrganizeId, partyOrganizeVO);
}
@ApiOperation(value = "党组织详情(通过ID)", notes = "党组织详情(通过ID)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "partyOrganizeId", value = "党组织ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getpartyorganizebyid/{partyOrganizeId}")
public PartyOrganizeDTO getPartyOrganizeById(@PathVariable("partyOrganizeId") String partyOrganizeId) throws SearchException {
return partyOrganizeService.getPartyOrganizeById(partyOrganizeId);
}
@ApiOperation(value = "党组织列表", notes = "党组织列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpartyorganize")
public List<PartyOrganizeDTO> listPartyOrganize() throws SearchException {
Map<String, Object> params = requestParams();
return partyOrganizeService.listPartyOrganize(params);
}
@ApiOperation(value = "党组织分页列表", notes = "党组织分页列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpagepartyorganize")
public SuccessResultList<List<PartyOrganizeDTO>> listPagePartyOrganize(ListPage page) throws SearchException {
Map<String, Object> params = requestParams();
page.setParams(params);
return partyOrganizeService.listPagePartyOrganize(page);
}
@ApiOperation(value = "党组织统计", notes = "党组织统计接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("countpartyorganize")
SuccessResultData<Integer> countPartyOrganize() throws SearchException {
Map<String, Object> params = requestParams();
return partyOrganizeService.countPartyOrganize(params);
}
@ApiOperation(value = "当前用户id信息", notes = "当前用户id信息接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getcurrentuseridinfo")
public CurrentUserIdInfoDTO getCurrentUserIdInfo() {
return securityComponent.getCurrentUserIdInfo();
}
}

View File

@ -0,0 +1,121 @@
package com.cm.partybuilding.controller.apis.secretarynoffice;
import com.cm.common.annotation.CheckRequestBodyAnnotation;
import com.cm.common.base.AbstractController;
import com.cm.common.component.SecurityComponent;
import com.cm.common.constants.ISystemConstant;
import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SearchException;
import com.cm.common.pojo.ListPage;
import com.cm.common.pojo.dtos.CurrentUserIdInfoDTO;
import com.cm.common.result.ErrorResult;
import com.cm.common.result.SuccessResult;
import com.cm.common.result.SuccessResultData;
import com.cm.common.result.SuccessResultList;
import com.cm.partybuilding.pojo.dtos.secretarynoffice.SecretarynOfficeDTO;
import com.cm.partybuilding.pojo.vos.secretarynoffice.SecretarynOfficeVO;
import com.cm.partybuilding.service.secretarynoffice.ISecretarynOfficeService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @ClassName: SecretarynOfficeController
* @Description: 名书记工作室
* @Author: WenG
* @Date: 2020-10-21 10:46
* @Version: 1.0
**/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "名书记工作室接口")
@RestController
@RequestMapping(ISystemConstant.API_PREFIX + "/secretarynoffice")
public class SecretarynOfficeController extends AbstractController {
@Autowired
private ISecretarynOfficeService secretarynOfficeService;
@Autowired
private SecurityComponent securityComponent;
@ApiOperation(value = "新增名书记工作室", notes = "新增名书记工作室接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PostMapping("savesecretarynoffice")
@CheckRequestBodyAnnotation
public SuccessResult saveSecretarynOffice(@RequestBody SecretarynOfficeVO secretarynOfficeVO) throws Exception {
return secretarynOfficeService.saveSecretarynOffice(secretarynOfficeVO);
}
@ApiOperation(value = "删除名书记工作室(id列表)", notes = "删除名书记工作室(id列表)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "ID列表用下划线分隔", paramType = "path", example = "1_2_3")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@DeleteMapping("removesecretarynoffice/{ids}")
public SuccessResult removeSecretarynOffice(@PathVariable("ids") String ids) throws RemoveException {
return secretarynOfficeService.removeSecretarynOffice(ids);
}
@ApiOperation(value = "修改名书记工作室", notes = "修改名书记工作室接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "secretarynOfficeId", value = "名书记工作室ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@PutMapping("updatesecretarynoffice/{secretarynOfficeId}")
@CheckRequestBodyAnnotation
public SuccessResult updateSecretarynOffice(@PathVariable("secretarynOfficeId") String secretarynOfficeId, @RequestBody SecretarynOfficeVO secretarynOfficeVO) throws Exception {
return secretarynOfficeService.updateSecretarynOffice(secretarynOfficeId, secretarynOfficeVO);
}
@ApiOperation(value = "名书记工作室详情(通过ID)", notes = "名书记工作室详情(通过ID)接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "secretarynOfficeId", value = "名书记工作室ID", paramType = "path")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getsecretarynofficebyid/{secretarynOfficeId}")
public SecretarynOfficeDTO getSecretarynOfficeById(@PathVariable("secretarynOfficeId") String secretarynOfficeId) throws SearchException {
return secretarynOfficeService.getSecretarynOfficeById(secretarynOfficeId);
}
@ApiOperation(value = "名书记工作室列表", notes = "名书记工作室列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listsecretarynoffice")
public List<SecretarynOfficeDTO> listSecretarynOffice() throws SearchException {
Map<String, Object> params = requestParams();
return secretarynOfficeService.listSecretarynOffice(params);
}
@ApiOperation(value = "名书记工作室分页列表", notes = "名书记工作室分页列表接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"),
@ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"),
@ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String")
})
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listpagesecretarynoffice")
public SuccessResultList<List<SecretarynOfficeDTO>> listPageSecretarynOffice(ListPage page) throws SearchException {
Map<String, Object> params = requestParams();
page.setParams(params);
return secretarynOfficeService.listPageSecretarynOffice(page);
}
@ApiOperation(value = "名书记工作室统计", notes = "名书记工作室统计接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("countsecretarynoffice")
SuccessResultData<Integer> countSecretarynOffice() throws SearchException {
Map<String, Object> params = requestParams();
return secretarynOfficeService.countSecretarynOffice(params);
}
@ApiOperation(value = "当前用户id信息", notes = "当前用户id信息接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("getcurrentuseridinfo")
public CurrentUserIdInfoDTO getCurrentUserIdInfo() {
return securityComponent.getCurrentUserIdInfo();
}
}