IStaffCommunityV1InnerServiceSMO.java 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.user;
  17. import com.java110.config.feign.FeignConfiguration;
  18. import com.java110.dto.staffCommunity.StaffCommunityDto;
  19. import com.java110.po.staffCommunity.StaffCommunityPo;
  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 2025-03-18 14:06:45 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 = "user-service", configuration = {FeignConfiguration.class})
  34. @RequestMapping("/staffCommunityV1Api")
  35. public interface IStaffCommunityV1InnerServiceSMO {
  36. @RequestMapping(value = "/saveStaffCommunity", method = RequestMethod.POST)
  37. int saveStaffCommunity(@RequestBody StaffCommunityPo staffCommunityPo);
  38. @RequestMapping(value = "/updateStaffCommunity", method = RequestMethod.POST)
  39. int updateStaffCommunity(@RequestBody StaffCommunityPo staffCommunityPo);
  40. @RequestMapping(value = "/deleteStaffCommunity", method = RequestMethod.POST)
  41. int deleteStaffCommunity(@RequestBody StaffCommunityPo staffCommunityPo);
  42. /**
  43. * <p>查询小区楼信息</p>
  44. *
  45. * @param staffCommunityDto 数据对象分享
  46. * @return StaffCommunityDto 对象数据
  47. */
  48. @RequestMapping(value = "/queryStaffCommunitys", method = RequestMethod.POST)
  49. List<StaffCommunityDto> queryStaffCommunitys(@RequestBody StaffCommunityDto staffCommunityDto);
  50. /**
  51. * 查询<p>小区楼</p>总记录数
  52. *
  53. * @param staffCommunityDto 数据对象分享
  54. * @return 小区下的小区楼记录数
  55. */
  56. @RequestMapping(value = "/queryStaffCommunitysCount", method = RequestMethod.POST)
  57. int queryStaffCommunitysCount(@RequestBody StaffCommunityDto staffCommunityDto);
  58. }