地质所 沉降监测网建设项目
chenhuan
2024-05-16 0fdd42e318f51f9e3c6581473416af1cca69877f
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
package com.javaweb.cms.mapper;
 
import com.javaweb.cms.domain.Resource;
import java.util.List;
 
/**
 * 资源Mapper接口
 * 
 * @author wujiyue
 * @date 2019-11-23
 */
public interface ResourceMapper 
{
    /**
     * 查询资源
     * 
     * @param id 资源ID
     * @return 资源
     */
    public Resource selectResourceById(String id);
 
    /**
     * 查询资源列表
     * 
     * @param resource 资源
     * @return 资源集合
     */
    public List<Resource> selectResourceList(Resource resource);
 
    /**
     * 新增资源
     * 
     * @param resource 资源
     * @return 结果
     */
    public int insertResource(Resource resource);
 
    /**
     * 修改资源
     * 
     * @param resource 资源
     * @return 结果
     */
    public int updateResource(Resource resource);
 
    /**
     * 删除资源
     * 
     * @param id 资源ID
     * @return 结果
     */
    public int deleteResourceById(String id);
 
    /**
     * 批量删除资源
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteResourceByIds(String[] ids);
 
    /**
     * 点赞+1
     * @param id
     * @return
     */
    public int upVote(String id);
    /**
     * 点击数+1
     * @param id
     * @return
     */
    public int resourceLook(String id);
 
}