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);
|
|
}
|