package com.bocloud.ims.interfaces.resource;

import com.bocloud.common.model.BocloudResult;
import com.bocloud.common.model.GridBean;
import com.bocloud.common.model.Pager;
import com.bocloud.common.model.RequestContext;
import com.bocloud.ims.entity.resource.SecurityGroupRule;

import java.util.List;

/**
 * 安全组规则抽象Service层
 *
 * @author weiwei
 */
public interface SecurityGroupRuleService {

	/**
	 * 列表展示
	 *
	 * @param page
	 * @param rows
	 * @param params
	 * @param sorter
	 * @param simple
	 * @return
	 */
	public BocloudResult<GridBean<SecurityGroupRule>> list(Pager pager);

	/**
	 * 创建
	 *
	 * @param rule
	 * @return
	 */
	public BocloudResult<SecurityGroupRule> create(SecurityGroupRule rule);

	/**
	 * 删除
	 *
	 * @param id
	 * @param user
	 * @return
	 */
	public BocloudResult<String> remove(Long id, RequestContext context);

	/**
	 * 详情
	 *
	 * @param id
	 * @return
	 */
	public BocloudResult<SecurityGroupRule> detail(Long id);

	/**
	 * 批量删除
	 *
	 * @param params
	 * @param user
	 * @return
	 */
	public BocloudResult<String> batchRemove(List<Long> idArray, RequestContext context);

}
