WeMaterialMapper.java
1.22 KB
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
package com.linkwechat.wecom.mapper;
import com.linkwechat.wecom.domain.WeMaterial;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 素材mapper
*
* @author KEWEN
* @date 2020-10-09
*/
public interface WeMaterialMapper {
/**
* 添加素材信息
*
* @param WeMaterial 素材信息
* @return
*/
int insertWeMaterial(WeMaterial WeMaterial);
/**
* 删除素材信息
*
* @param id 主键id
* @return {@link int}
*/
int deleteWeMaterialById(Long id);
/**
* 批量删除
*
* @param ids id列表
* @return {@link int}
*/
int deleteWeMaterialByIds(Long[] ids);
/**
* 更新素材信息
*
* @param WeMaterial
* @return
*/
int updateWeMaterial(WeMaterial WeMaterial);
/**
* 查询素材详细信息
*
* @param id id
* @return {@link WeMaterial}
*/
WeMaterial findWeMaterialById(Long id);
/**
* 查询素材列表
*
* @param categoryId 类目id
* @param search 搜索值
* @return {@link WeMaterial}s
*/
List<WeMaterial> findWeMaterials(@Param("categoryId") String categoryId, @Param("search") String search);
}