IRepairSettingV1InnerServiceSMO.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.repair.RepairSettingDto;
  19. import com.java110.po.repair.RepairSettingPo;
  20. import org.springframework.cloud.openfeign.FeignClient;
  21. import org.springframework.web.bind.annotation.RequestBody;
  22. import org.springframework.web.bind.annotation.RequestMapping;
  23. import org.springframework.web.bind.annotation.RequestMethod;
  24. import java.util.List;
  25. /**
  26. * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用
  27. * add by 吴学文 at 2022-08-06 12:43:34 mail: 928255095@qq.com
  28. * open source address: https://gitee.com/wuxw7/MicroCommunity
  29. * 官网:http://www.homecommunity.cn
  30. * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  31. * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  32. */
  33. @FeignClient(name = "community-service", configuration = {FeignConfiguration.class})
  34. @RequestMapping("/repairSettingV1Api")
  35. public interface IRepairSettingV1InnerServiceSMO {
  36. @RequestMapping(value = "/saveRepairSetting", method = RequestMethod.POST)
  37. int saveRepairSetting(@RequestBody RepairSettingPo repairSettingPo);
  38. @RequestMapping(value = "/updateRepairSetting", method = RequestMethod.POST)
  39. int updateRepairSetting(@RequestBody RepairSettingPo repairSettingPo);
  40. @RequestMapping(value = "/deleteRepairSetting", method = RequestMethod.POST)
  41. int deleteRepairSetting(@RequestBody RepairSettingPo repairSettingPo);
  42. /**
  43. * <p>查询小区楼信息</p>
  44. *
  45. *
  46. * @param repairSettingDto 数据对象分享
  47. * @return RepairSettingDto 对象数据
  48. */
  49. @RequestMapping(value = "/queryRepairSettings", method = RequestMethod.POST)
  50. List<RepairSettingDto> queryRepairSettings(@RequestBody RepairSettingDto repairSettingDto);
  51. /**
  52. * 查询<p>小区楼</p>总记录数
  53. *
  54. * @param repairSettingDto 数据对象分享
  55. * @return 小区下的小区楼记录数
  56. */
  57. @RequestMapping(value = "/queryRepairSettingsCount", method = RequestMethod.POST)
  58. int queryRepairSettingsCount(@RequestBody RepairSettingDto repairSettingDto);
  59. }