package com.palmnest.service.estateserve;

import com.palmnest.application.bean.Page;
import com.palmnest.model.estateserve.ServiceTypeInfo;
import com.palmnest.service.GenericManager;

import java.util.List;
import java.util.Map;

/**
 * 服务内容信息业务层
 *
 * @author 金牙
 */
public interface ServiceTypeInfoManager extends GenericManager<ServiceTypeInfo, Integer> {

	/**
	 * 查询平台所有服务列表
	 *
	 * @param pageNo
	 * @param pageSize
	 * @param whereSql
	 * @return
	 */
	public Page serviceTypeInfoPage(Integer pageNo, Integer pageSize, String whereSql) throws Exception;

	/**
	 * 新增或修改平台服务
	 *
	 * @param serviceTypeInfo
	 * @param actype
	 * @param organizationId
	 * @param roleGroup
	 * @return
	 */
	public Map<String, Object> saveUpdateServiceTypeInfo(ServiceTypeInfo serviceTypeInfo, String actype,
														 String organizationId, String roleGroup) throws Exception;

	/**
	 * 批量上架模板服务到项目
	 *
	 * @param organizationId
	 * @param organizationIds
	 * @return
	 */
	public Map<String, Object> saveUpdateServiceProjectTypeInfoManager(String organizationId, String organizationIds, String creator) throws Exception;

	/**
	 * 查询会议室分享链接 我要预定的链接
	 *
	 * @param shkipAddress
	 * @return
	 */
	public List<ServiceTypeInfo> getServiceTypeInfoByShkipAddress(String shkipAddress);

	/**
	 * 获取最大id
	 *
	 * @return
	 */
	public int maxId();

	public ServiceTypeInfo getServiceTypeInfoByServiceCode(String serviceCode);

}
