123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- package com.szwl.feign.bean;
- import com.baomidou.mybatisplus.core.metadata.IPage;
- import com.szwl.model.bo.ResponseModel;
- import com.szwl.model.entity.*;
- import org.springframework.cloud.openfeign.FeignClient;
- import org.springframework.http.ResponseEntity;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.PathVariable;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestParam;
- import java.util.Date;
- @FeignClient(name = "szwl-server")
- //@FeignClient(name = "szwl-server", url = "http://127.0.0.1:49011/")
- public interface SzwlFeign {
- @GetMapping("/test/testGetAdmin")
- ResponseModel<?> testGetAdmin(@RequestParam String id);
- @GetMapping("/tEquipment/getEquipmentBool")
- ResponseModel<Boolean> getEquipmentBool(@RequestParam String clientId);
- @GetMapping("/tAdmin/getIdIfForeign")
- ResponseModel<TAdmin> getIdIfForeign(@RequestParam String username);
- @GetMapping("/tEquipment/findEquipmentByClientId")
- ResponseModel<TEquipment> findEquipmentByClientId(@RequestParam String clientId);
- @GetMapping("/tEquipment/updateByEquipment")
- ResponseModel<TEquipment> updateByEquipment(@RequestBody TEquipment equipment);
- @GetMapping("/tPromoCode/getTPromoCode")
- ResponseModel<IPage<TPromoCode>> getTPromoCode(@RequestParam String code);
- @GetMapping("/tPromoCode/getPromoCode")
- ResponseModel<TPromoCode> getPromoCode(@RequestParam String code);
- @GetMapping("/tPromoCode/selectTPromoCode")
- ResponseModel<TPromoCode> selectTPromoCode(@RequestParam String code, @RequestParam String adminId);
- @GetMapping("/tPromoCode/getYHJ")
- ResponseModel<TPromoCode> getYHJ(@RequestParam(value = "code") String code);
- @GetMapping("/tPromoCode/updatePromoCode")
- void updatePromoCode(@RequestParam(value = "id") String id, @RequestParam(value = "type") String type);
- @GetMapping("/tPromoCode/useYHJ")
- void useYHJ(@RequestParam String code, @RequestParam String adminId, @RequestParam String clentId);
- @GetMapping("/tProduct/getProduct")
- ResponseModel<TProduct> getProduct(@RequestParam(value = "equipmentId") String equipmentId, @RequestParam(value = "productName") String productName);
- @GetMapping("/tProportion/getProportion")
- ResponseModel<TProportion> getProportion(@RequestParam String equipmentId);
- @GetMapping("/tAdmin/getAdmin")
- ResponseModel<TAdmin> getAdmin(@RequestParam String id);
- @GetMapping("/tAdmin/getAdminOne/{adminId}")
- ResponseModel<TAdmin> getAdminOne(@PathVariable Long adminId);
- @GetMapping("/tJoinpayMch/getMch")
- ResponseModel<TJoinpayMch> getMch(@RequestParam String id);
- @GetMapping("/tShandeMch/getShandeMch")
- ResponseModel<TShandeMch> getShandeMch(@RequestParam String id);
- @GetMapping("/tShandeMch/updateShandeMch")
- void updateShandeMch(@RequestBody TShandeMch shandeMch);
- @GetMapping("/tEquipmentDesc/findEquipmentById")
- ResponseModel<TEquipmentDesc> findEquipmentById(@RequestParam Long id);
- @GetMapping("/tPrice/getPrice")
- ResponseModel<TPrice> getPrice(@RequestParam String name);
- @GetMapping("/tPromoCode/addPromoCode")
- void addPromoCode(@RequestParam(value = "adminId") String adminId, @RequestParam(value = "lastUseDate") Date lastUseDate, @RequestParam(value = "number") int number);
- //同步订单到es中
- /**
- * 获取汇付商户号
- *
- * @param adminId
- * @return
- */
- @GetMapping("/tHuifuMch/getHuifuId")
- ResponseModel<THuifuMch> getHuifuId(@RequestParam Long adminId);
- }
|