| | |
| | | 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.dto.ShopAnalysisDTO; |
| | | import com.ruoyi.other.api.factory.ShopClientFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * 获取所有门店 |
| | | * @return |
| | | */ |
| | | @PostMapping("/shop/getAllShop") |
| | | @GetMapping("/shop/getAllShop") |
| | | R<List<Shop>> getAllShop(); |
| | | |
| | | |
| | |
| | | * 获取指定用户的服务商 |
| | | */ |
| | | @GetMapping("/shop/getServiceProvider") |
| | | R<Shop> getServiceProvider(@RequestParam("appUserId") Long appUserId); |
| | | R<List<String>> getServiceProvider(@RequestParam("appUserId") Long appUserId); |
| | | |
| | | /** |
| | | * 获取指定用户的高级服务商 |
| | |
| | | @GetMapping("/shop/getSuperiorServiceProvider") |
| | | public R<Shop> getSuperiorServiceProvider(@RequestParam("appUserId") Long appUserId); |
| | | |
| | | @PostMapping("/shop/getIncomeAnalysis") |
| | | R<Map<String, Object>> getIncomeAnalysis(@RequestBody ShopAnalysisDTO shopAnalysisDTO); |
| | | |
| | | @PostMapping("/shop/insert") |
| | | R insert(@RequestBody Shop shop); |
| | | } |