44323
2023-11-27 aa925d851857f50eff0556411366690d9a78a0e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package com.dsh.course.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dsh.course.entity.TCoursePackage;
import com.dsh.course.feignclient.model.CourseOfStoreVo;
import com.dsh.course.model.*;
import com.dsh.course.util.ResultUtil;
import org.springframework.web.bind.annotation.RequestBody;
 
import java.util.List;
import java.util.Map;
 
/**
 * <p>
 * 课包 服务类
 * </p>
 *
 * @author administrator
 * @since 2023-06-14
 */
public interface TCoursePackageService extends IService<TCoursePackage> {
 
    List<CourseOfStoreVo> queryStoreOfCourse();
 
 
    /**
     * 获取课程列表
     *
     * @param coursePackageList
     * @return
     * @throws Exception
     */
    List<CoursePackageListVo> queryCourseList(Integer uid, CoursePackageList coursePackageList) throws Exception;
 
 
    /**
     * 获取课包详情
     *
     * @param uid
     * @param id
     * @return
     * @throws Exception
     */
    CoursePackageInfo queryCourseInfo(Integer uid, Integer id, String lon, String lat) throws Exception;
 
 
    /**
     * 课程报名支付
     *
     * @param uid
     * @param paymentCourseVo
     * @return
     * @throws Exception
     */
    ResultUtil paymentCourse(Integer uid, PaymentCourseVo paymentCourseVo) throws Exception;
 
 
    /**
     * 获取课包管理列表数据
     *
     * @param queryCoursePackageLists
     * @return
     */
    List<Map<String, Object>> queryCoursePackageLists(Page<Map<String, Object>> page, QueryCoursePackageLists queryCoursePackageLists);
 
 
    /**
     * 添加课包
     *
     * @param coursePackage
     * @return
     */
    Integer addCoursePackage(TCoursePackage coursePackage);
 
 
    /**
     * 修改数据
     *
     * @param coursePackage
     */
    void updateCoursePackageById(TCoursePackage coursePackage);
 
 
    /**
     * 获取课包审核列表
     *
     * @param queryExamineCoursePackageLists
     * @return
     */
    List<Map<String, Object>> queryExamineCoursePackageLists(Page<Map<String, Object>> page, QueryExamineCoursePackageLists queryExamineCoursePackageLists);
 
    List<Map<String, Object>> queryByConfigId(Integer oneId);
 
    List<Integer> getHours(Integer coursePackageId);
 
    ResultUtil paymentCourseCouponList(Integer uid, Integer coursePackagePaymentConfigId);
 
 
    List<CoursePackageListVo> queryCourseListOne(CoursePackageList coursePackageList) throws Exception;
 
 
    /**
     * 购买课程支付成功后的回调处理
     *
     * @param code
     * @param trade_no
     * @return
     */
    ResultUtil paymentCourseCallback(String code, String trade_no, String attach);
}