无关风月
2024-07-11 eb6b6dbb35a9f029e0b7d269773685c19fd40976
cloud-server-management/src/main/java/com/dsh/course/feignClient/course/CoursePackageClient.java
@@ -10,6 +10,7 @@
import com.dsh.guns.modular.system.model.dto.BallQueryDto;
import com.dsh.guns.modular.system.model.dto.PacQueryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
@@ -24,12 +25,16 @@
@FeignClient("mb-cloud-course")
public interface CoursePackageClient {
    /**
     * 根据门店ids获取课包ids 根据课包ids 获取购课记录的用户ids
     */
    @PostMapping("/base/coursePackage/getCoursePackageByStoreIds")
     List<Integer> getCoursePackageByStoreIds(@RequestBody List<Integer> storeIds);
    /**
     * 根据课包类型获取课包
     */
    @PostMapping("/base/coursePackage/getCoursePackageByType")
    List<TCoursePackage> getCoursePackageByType(@RequestBody Integer typeId);
    @PostMapping("/base/coursePackage/getCoursePackageByType/{typeId}/{storeId}")
    List<TCoursePackage> getCoursePackageByType(@PathVariable("typeId") Integer typeId, @PathVariable("storeId")Integer storeId);
    /**
     * 根据门店id获取课包
     */
@@ -84,4 +89,11 @@
    @PostMapping("/courdent/bypac")
    List<Map<String, Object>> bypac(PacQueryDto pacQueryDto);
    @PostMapping("/courdent/queryIdsByStore")
    List<Integer> queryIdsByStore(Integer objectId);
    @PostMapping("/courdent/queryAble")
    Integer queryAble(Integer id);
}