package com.ruoyi.other.api.feignClient; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; import com.ruoyi.other.api.domain.Shop; import com.ruoyi.other.api.domain.ShopBalanceStatement; import com.ruoyi.other.api.factory.ShopClientFallbackFactory; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; import java.util.Set; /** * @author zhibing.pu * @Date 2024/11/29 10:28 */ @FeignClient(contextId = "ShopClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = ShopClientFallbackFactory.class) public interface ShopClient { /** * 根据id获取门店信息 * @param id * @return */ @PostMapping("/shop/getShopById") R getShopById(@RequestParam("id") Integer id); @PostMapping("/shop/getShopByUserId") R> getShopByUserId(@RequestParam("id") Long id); /** * 根据店铺管理员电话获取门店数据 * @param phone * @return */ @PostMapping("/shop/getShopByPhone") R getShopByPhone(@RequestParam("phone") String phone); @PostMapping("/getShopByUserIds") R> getShopByUserIds(@RequestBody List userIds); @GetMapping("/getShopIdByName") R> getShopIdByName(String shopName); @PostMapping("/shop-balance-statement/getList") R> getShopBalanceStatementList(@RequestBody ShopBalanceStatement shopBalanceStatement); }