admin
2021-01-19 8f1b5245c592cd6dc5eb5a73f9a0ceb2a85f2048
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.ks.daylucky.service;
 
import com.ks.daylucky.exception.MsgTypeConfigException;
import com.ks.daylucky.pojo.DO.MsgTypeConfig;
import com.ks.daylucky.pojo.DO.UserMsg;
 
import javax.validation.Valid;
 
public interface MsgTypeConfigService {
 
 
    /**
     * 添加消息类型配置
     *
     * @param config
     * @throws MsgTypeConfigException
     */
    public void addMsgTypeConfig(@Valid MsgTypeConfig config) throws MsgTypeConfigException;
 
 
    /**
     * 获取配置信息
     *
     * @param appId
     * @param msgType
     * @return
     */
    public MsgTypeConfig getConfig(Long appId, UserMsg.UserMsgType msgType);
 
 
    /**
     * 修改配置信息
     *
     * @param config
     */
    public void updateConfig(MsgTypeConfig config);
 
    /**
     * 删除
     *
     * @param id
     */
    public void delete(Long id);
 
}