package com.palmnest.service.estateserve;

import com.alibaba.fastjson.JSONObject;
import com.palmnest.application.core.util.Pages;
import com.palmnest.service.GenericManager;
import org.springframework.ui.ModelMap;

import java.util.Map;

public interface ServicePackBasicsManager extends GenericManager<Object, Integer> {

	/**
	 * 查询服务项详情列表
	 *
	 * @param modelMap
	 * @return
	 */
	public Pages<Map<String, String>> queryServicePackBasicsList(ModelMap modelMap);

	/**
	 * 添加服务项
	 *
	 * @param map
	 * @return
	 */
	public JSONObject addServicePackBasics(Map<String, String> map);

	/**
	 * 根据场地id查询服务项详细信息
	 *
	 * @param id
	 * @return
	 */
	public Map<String, String> findDetails(int id);

	/**
	 * 删除服务项
	 *
	 * @param id
	 * @param yesorno0
	 * @return
	 */
	public JSONObject deleteServicePackBasics(String id, String isEnabled);

}
