admin
2020-11-13 ae08b37317103344b9be1b9f91b6bdf7abbc839b
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
package com.ks.goldcorn.service.remote;
 
import com.ks.goldcorn.exception.GoldSourceException;
import com.ks.goldcorn.pojo.DO.GoldCornGetSource;
 
import java.util.List;
 
/**
 * 金币获取来源服务
 */
public interface GoldCornGetSourceService {
 
 
    /**
     * 搜索列表
     *
     * @param appCode
     * @param nameKey
     * @param page
     * @param pageSize
     * @return
     */
    public List<GoldCornGetSource> searchByName(String appCode, String nameKey, int page, int pageSize);
 
    /**
     * 根据应用与Code查询
     *
     * @param appCode
     * @param code
     * @return
     */
    public GoldCornGetSource selectByAppAndCode(String appCode, String code);
 
 
    /**
     * 查询数量
     *
     * @param appCode
     * @param nameKey
     * @return
     */
    public long countByName(String appCode, String nameKey);
 
 
    /**
     * 添加来源
     *
     * @param source
     * @throws GoldSourceException
     */
    public void addSource(GoldCornGetSource source) throws GoldSourceException;
 
    /**
     * 删除
     *
     * @param id
     */
    public void deleteSource(Long id);
 
 
    /**
     * 更新source
     *
     * @param source
     * @throws GoldSourceException
     */
    public void updateSource(GoldCornGetSource source) throws GoldSourceException;
 
 
}