WeMaterialMapper.java
1.91 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.linkwechat.wecom.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linkwechat.wecom.domain.WeMaterial;
import com.linkwechat.wecom.domain.vo.WeMaterialVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 素材mapper
*
* @author KEWEN
* @date 2020-10-09
*/
public interface WeMaterialMapper extends BaseMapper<WeMaterial> {
/**
* 添加素材信息
*
* @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 搜索值
* @param mediaType 0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file) 4 文本
* @return {@link WeMaterial}s
*/
List<WeMaterial> findWeMaterials(@Param("categoryId") String categoryId, @Param("search") String search, @Param("mediaType") String mediaType);
/**
* 更换分组
*
* @param categoryId 类目id
* @param material 素材id
* @return int
*/
int resetCategory(@Param("categoryId") String categoryId, @Param("material") String material);
/**
* 根据id列表获取素材Vo列表
* @param ids 素材id列表
* @return 结果
*/
List<WeMaterialVo> findMaterialVoListByIds(Long[] ids);
}