IDataPrivilegeUnitV1InnerServiceSMO.java 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Copyright 2017-2020 吴学文 and java110 team.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.java110.intf.community;
  17. import com.java110.config.feign.FeignConfiguration;
  18. import com.java110.dto.UnitDto;
  19. import com.java110.dto.dataPrivilegeStaff.DataPrivilegeStaffDto;
  20. import com.java110.dto.dataPrivilegeUnit.DataPrivilegeUnitDto;
  21. import com.java110.po.dataPrivilegeUnit.DataPrivilegeUnitPo;
  22. import org.springframework.cloud.openfeign.FeignClient;
  23. import org.springframework.web.bind.annotation.RequestBody;
  24. import org.springframework.web.bind.annotation.RequestMapping;
  25. import org.springframework.web.bind.annotation.RequestMethod;
  26. import java.util.List;
  27. /**
  28. * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用
  29. * add by 吴学文 at 2022-09-28 16:32:34 mail: 928255095@qq.com
  30. * open source address: https://gitee.com/wuxw7/MicroCommunity
  31. * 官网:http://www.homecommunity.cn
  32. * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  33. * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  34. */
  35. @FeignClient(name = "community-service", configuration = {FeignConfiguration.class})
  36. @RequestMapping("/dataPrivilegeUnitV1Api")
  37. public interface IDataPrivilegeUnitV1InnerServiceSMO {
  38. @RequestMapping(value = "/saveDataPrivilegeUnit", method = RequestMethod.POST)
  39. public int saveDataPrivilegeUnit(@RequestBody DataPrivilegeUnitPo dataPrivilegeUnitPo);
  40. @RequestMapping(value = "/updateDataPrivilegeUnit", method = RequestMethod.POST)
  41. public int updateDataPrivilegeUnit(@RequestBody DataPrivilegeUnitPo dataPrivilegeUnitPo);
  42. @RequestMapping(value = "/deleteDataPrivilegeUnit", method = RequestMethod.POST)
  43. public int deleteDataPrivilegeUnit(@RequestBody DataPrivilegeUnitPo dataPrivilegeUnitPo);
  44. /**
  45. * <p>查询小区楼信息</p>
  46. *
  47. *
  48. * @param dataPrivilegeUnitDto 数据对象分享
  49. * @return DataPrivilegeUnitDto 对象数据
  50. */
  51. @RequestMapping(value = "/queryDataPrivilegeUnits", method = RequestMethod.POST)
  52. List<DataPrivilegeUnitDto> queryDataPrivilegeUnits(@RequestBody DataPrivilegeUnitDto dataPrivilegeUnitDto);
  53. /**
  54. * 查询<p>小区楼</p>总记录数
  55. *
  56. * @param dataPrivilegeUnitDto 数据对象分享
  57. * @return 小区下的小区楼记录数
  58. */
  59. @RequestMapping(value = "/queryDataPrivilegeUnitsCount", method = RequestMethod.POST)
  60. int queryDataPrivilegeUnitsCount(@RequestBody DataPrivilegeUnitDto dataPrivilegeUnitDto);
  61. @RequestMapping(value = "/queryUnitsNotInDataPrivilegeCount", method = RequestMethod.POST)
  62. int queryUnitsNotInDataPrivilegeCount(@RequestBody DataPrivilegeUnitDto dataPrivilegeUnitDto);
  63. @RequestMapping(value = "/queryUnitsNotInDataPrivilege", method = RequestMethod.POST)
  64. List<UnitDto> queryUnitsNotInDataPrivilege(@RequestBody DataPrivilegeUnitDto dataPrivilegeUnitDto);
  65. @RequestMapping(value = "/queryDataPrivilegeUnitsByStaff", method = RequestMethod.POST)
  66. String[] queryDataPrivilegeUnitsByStaff(@RequestBody DataPrivilegeStaffDto dataPrivilegeStaffDto);
  67. }