package com.dsh.course.feignClient.course; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.dsh.course.dto.StudentQeryDto; import com.dsh.course.feignClient.course.model.QueryCoursePackageLists; import com.dsh.course.feignClient.course.model.QueryExamineCoursePackageLists; import com.dsh.course.feignClient.course.model.QueryRegistrationRecord; import com.dsh.course.feignClient.course.model.TCoursePackage; import com.dsh.guns.modular.system.model.TCoursePackagePayment; 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; import java.util.List; import java.util.Map; /** * @author zhibing.pu * @Date 2023/8/1 15:12 */ @FeignClient("mb-cloud-course") public interface CoursePackageClient { /** * 根据门店ids获取课包ids 根据课包ids 获取购课记录的用户ids */ @PostMapping("/base/coursePackage/getCoursePackageByStoreIds") List getCoursePackageByStoreIds(@RequestBody List storeIds); /** * 根据课包类型获取课包 */ @PostMapping("/base/coursePackage/getCoursePackageByType/{typeId}/{storeId}") List getCoursePackageByType(@PathVariable("typeId") Integer typeId, @PathVariable("storeId")Integer storeId); /** * 根据门店id获取课包 */ @PostMapping("/base/coursePackage/getCoursePackageByStoreId") List getCoursePackageByStoreId(@RequestBody Integer storeId); /** * 获取课包管理列表数据 * @param queryCoursePackageLists * @return */ @PostMapping("/coursePackage/queryCoursePackageLists") Page> queryCoursePackageLists(QueryCoursePackageLists queryCoursePackageLists); /** * 添加数据 * @param coursePackage */ @PostMapping("/coursePackage/addCoursePackage") Integer addCoursePackage(TCoursePackage coursePackage); /** * 根据id查询数据 * @param id * @return */ @PostMapping("/base/coursePackage/queryCoursePackageById") TCoursePackage queryById(Integer id); /** * 修改数据 * @param coursePackage */ @PostMapping("/coursePackage/updateCoursePackageById") void updateCoursePackage(TCoursePackage coursePackage); /** * 获取课包审核列表 * @param queryExamineCoursePackageLists * @return */ @PostMapping("/coursePackage/queryExamineCoursePackageLists") Page> queryExamineCoursePackageLists(QueryExamineCoursePackageLists queryExamineCoursePackageLists); @PostMapping("/courdent/getStudentTotal") List> getStudentTotal(StudentQeryDto studentQeryDto); @PostMapping("/courdent/bypac") List> bypac(PacQueryDto pacQueryDto); @PostMapping("/courdent/queryIdsByStore") List queryIdsByStore(Integer objectId); @PostMapping("/courdent/queryAble") Integer queryAble(Integer id); }