48 lines
1.1 KiB
Java
48 lines
1.1 KiB
Java
package com.cm.systemcity.service.config;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.cm.common.exception.SaveException;
|
|
import com.cm.common.exception.SearchException;
|
|
import com.cm.common.exception.UpdateException;
|
|
import com.cm.common.result.SuccessResult;
|
|
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* When you feel like quitting. Think about why you started
|
|
* 当你想要放弃的时候,想想当初你为何开始
|
|
*
|
|
* @ClassName: IConfigService
|
|
* @Description: 配置
|
|
* @Author: WangGeng
|
|
* @Date: 2019-08-14 15:40
|
|
* @Version: 1.0
|
|
**/
|
|
public interface IConfigService {
|
|
/**
|
|
* 保存配置
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SaveException
|
|
* @throws UpdateException
|
|
* @throws SearchException
|
|
*/
|
|
SuccessResult saveConfig(Map<String, Object> params) throws SaveException, UpdateException, SearchException;
|
|
|
|
/**
|
|
* 获取配置
|
|
*
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
JSONObject getConfig() throws SearchException;
|
|
|
|
/**
|
|
* 获取地图初始化
|
|
*
|
|
* @return
|
|
*/
|
|
JSONObject getMapInit();
|
|
}
|