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
package com.yeshi.buwan.service.inter.vip;
 
import com.yeshi.buwan.domain.vip.VIPPrice;
import com.yeshi.buwan.domain.vip.VIPPriceType;
import com.yeshi.buwan.exception.vip.VIPException;
 
import java.util.List;
 
public interface VIPPriceService {
 
    /**
     * 添加套餐
     *
     * @param price
     */
    public void addPrice(VIPPrice price) throws VIPException;
 
 
    /**
     * 拉取列表
     *
     * @return
     */
    public List<VIPPrice> listValidPrice();
 
 
    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    public VIPPrice selectByPrimaryKey(String id);
 
 
    /**
     * 根据类型查询
     *
     * @param type
     * @return
     */
    public VIPPrice selectByType(VIPPriceType type);
 
 
}