IDataBusInnerServiceSMO.java 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package com.java110.intf.job;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.java110.config.feign.FeignConfiguration;
  4. import com.java110.dto.businessDatabus.CustomBusinessDatabusDto;
  5. import com.java110.dto.machine.MachineDto;
  6. import com.java110.dto.tempCarFeeConfig.TempCarPayOrderDto;
  7. import com.java110.entity.order.Business;
  8. import com.java110.po.machine.MachineRecordPo;
  9. import com.java110.vo.ResultVo;
  10. import org.springframework.cloud.openfeign.FeignClient;
  11. import org.springframework.web.bind.annotation.RequestBody;
  12. import org.springframework.web.bind.annotation.RequestMapping;
  13. import org.springframework.web.bind.annotation.RequestMethod;
  14. import java.util.List;
  15. /**
  16. * @ClassName ITaskInnerServiceSMO
  17. * @Description dataBus统一处理类
  18. * @Author wuxw
  19. * @Date 2019/4/24 9:04
  20. * @Version 1.0
  21. * add by wuxw 2019/4/24
  22. **/
  23. @FeignClient(name = "${java110.job-service}", configuration = {FeignConfiguration.class})
  24. @RequestMapping("/dataBusApi")
  25. public interface IDataBusInnerServiceSMO {
  26. /**
  27. * <p>查询小区楼信息</p>
  28. *
  29. * @param businesses 业务
  30. * @return TaskDto 对象数据
  31. */
  32. @RequestMapping(value = "/exchange", method = RequestMethod.POST)
  33. boolean exchange(@RequestBody List<Business> businesses);
  34. /**
  35. * <p>开门</p>
  36. *
  37. * @param reqJson 请求信息
  38. * @return TaskDto 对象数据
  39. */
  40. @RequestMapping(value = "/openDoor", method = RequestMethod.POST)
  41. ResultVo openDoor(@RequestBody JSONObject reqJson);
  42. /**
  43. * <p>重启设备</p>
  44. *
  45. * @param reqJson 请求信息
  46. * @return TaskDto 对象数据
  47. */
  48. @RequestMapping(value = "/restartMachine", method = RequestMethod.POST)
  49. ResultVo restartMachine(@RequestBody JSONObject reqJson);
  50. /**
  51. * <p>重启设备</p>
  52. *
  53. * @param reqJson 请求信息
  54. * @return TaskDto 对象数据
  55. */
  56. @RequestMapping(value = "/resendIot", method = RequestMethod.POST)
  57. ResultVo resendIot(@RequestBody JSONObject reqJson);
  58. /**
  59. * <p>查询待支付订单</p>
  60. *
  61. * @param tempCarPayOrderDto 请求信息
  62. * @return TaskDto 对象数据
  63. */
  64. @RequestMapping(value = "/getTempCarFeeOrder", method = RequestMethod.POST)
  65. ResultVo getTempCarFeeOrder(@RequestBody TempCarPayOrderDto tempCarPayOrderDto);
  66. @RequestMapping(value = "/notifyTempCarFeeOrder", method = RequestMethod.POST)
  67. ResultVo notifyTempCarFeeOrder(@RequestBody TempCarPayOrderDto tempCarPayOrderDto);
  68. /**
  69. * 自定义databus 数据 传输
  70. * @param customBusinessDatabusDto
  71. * @return
  72. */
  73. @RequestMapping(value = "/customExchange", method = RequestMethod.POST)
  74. void customExchange(@RequestBody CustomBusinessDatabusDto customBusinessDatabusDto);
  75. @RequestMapping(value = "/getQRcode", method = RequestMethod.POST)
  76. ResultVo getQRcode(@RequestBody JSONObject reqJson);
  77. @RequestMapping(value = "/customCarInOut", method = RequestMethod.POST)
  78. ResultVo customCarInOut(@RequestBody JSONObject reqJson);
  79. @RequestMapping(value = "/payVideo", method = RequestMethod.POST)
  80. ResultVo payVideo(@RequestBody MachineDto machineDto);
  81. @RequestMapping(value = "/heartbeatVideo", method = RequestMethod.POST)
  82. ResultVo heartbeatVideo(@RequestBody JSONObject reqJson);
  83. }