SzwlFeign.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. package com.szwl.feign.bean;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.szwl.model.bo.ResponseModel;
  4. import com.szwl.model.entity.*;
  5. import org.springframework.cloud.openfeign.FeignClient;
  6. import org.springframework.http.ResponseEntity;
  7. import org.springframework.web.bind.annotation.GetMapping;
  8. import org.springframework.web.bind.annotation.PathVariable;
  9. import org.springframework.web.bind.annotation.RequestBody;
  10. import org.springframework.web.bind.annotation.RequestParam;
  11. import java.util.Date;
  12. @FeignClient(name = "szwl-server")
  13. //@FeignClient(name = "szwl-server", url = "http://127.0.0.1:49011/")
  14. public interface SzwlFeign {
  15. @GetMapping("/test/testGetAdmin")
  16. ResponseModel<?> testGetAdmin(@RequestParam String id);
  17. @GetMapping("/tEquipment/getEquipmentBool")
  18. ResponseModel<Boolean> getEquipmentBool(@RequestParam String clientId);
  19. @GetMapping("/tAdmin/getIdIfForeign")
  20. ResponseModel<TAdmin> getIdIfForeign(@RequestParam String username);
  21. @GetMapping("/tEquipment/findEquipmentByClientId")
  22. ResponseModel<TEquipment> findEquipmentByClientId(@RequestParam String clientId);
  23. @GetMapping("/tEquipment/updateByEquipment")
  24. ResponseModel<TEquipment> updateByEquipment(@RequestBody TEquipment equipment);
  25. @GetMapping("/tPromoCode/getTPromoCode")
  26. ResponseModel<IPage<TPromoCode>> getTPromoCode(@RequestParam String code);
  27. @GetMapping("/tPromoCode/getPromoCode")
  28. ResponseModel<TPromoCode> getPromoCode(@RequestParam String code);
  29. @GetMapping("/tPromoCode/selectTPromoCode")
  30. ResponseModel<TPromoCode> selectTPromoCode(@RequestParam String code, @RequestParam String adminId);
  31. @GetMapping("/tPromoCode/getYHJ")
  32. ResponseModel<TPromoCode> getYHJ(@RequestParam(value = "code") String code);
  33. @GetMapping("/tPromoCode/updatePromoCode")
  34. void updatePromoCode(@RequestParam(value = "id") String id, @RequestParam(value = "type") String type);
  35. @GetMapping("/tPromoCode/useYHJ")
  36. void useYHJ(@RequestParam String code, @RequestParam String adminId, @RequestParam String clentId);
  37. @GetMapping("/tProduct/getProduct")
  38. ResponseModel<TProduct> getProduct(@RequestParam(value = "equipmentId") String equipmentId, @RequestParam(value = "productName") String productName);
  39. @GetMapping("/tProportion/getProportion")
  40. ResponseModel<TProportion> getProportion(@RequestParam String equipmentId);
  41. @GetMapping("/tAdmin/getAdmin")
  42. ResponseModel<TAdmin> getAdmin(@RequestParam String id);
  43. @GetMapping("/tAdmin/getAdminOne/{adminId}")
  44. ResponseModel<TAdmin> getAdminOne(@PathVariable Long adminId);
  45. @GetMapping("/tJoinpayMch/getMch")
  46. ResponseModel<TJoinpayMch> getMch(@RequestParam String id);
  47. @GetMapping("/tShandeMch/getShandeMch")
  48. ResponseModel<TShandeMch> getShandeMch(@RequestParam String id);
  49. @GetMapping("/tShandeMch/updateShandeMch")
  50. void updateShandeMch(@RequestBody TShandeMch shandeMch);
  51. @GetMapping("/tEquipmentDesc/findEquipmentById")
  52. ResponseModel<TEquipmentDesc> findEquipmentById(@RequestParam Long id);
  53. @GetMapping("/tPrice/getPrice")
  54. ResponseModel<TPrice> getPrice(@RequestParam String name);
  55. @GetMapping("/tPromoCode/addPromoCode")
  56. void addPromoCode(@RequestParam(value = "adminId") String adminId, @RequestParam(value = "lastUseDate") Date lastUseDate, @RequestParam(value = "number") int number);
  57. //同步订单到es中
  58. /**
  59. * 获取汇付商户号
  60. *
  61. * @param adminId
  62. * @return
  63. */
  64. @GetMapping("/tHuifuMch/getHuifuId")
  65. ResponseModel<THuifuMch> getHuifuId(@RequestParam Long adminId);
  66. }