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.Environment;

/**
 * 环境实体类Service
 *
 * @author wangshuai
 * @version 4.1.0-SNAPSHOT
 * @since 2018/12/24
 */
public interface EnvironmentService {


    BocloudResult<GridBean<Environment>> list(Pager pager, RequestContext context);

    /**
     * 移除所属环境
     *
     * @param id
     * @param context
     * @return
     */
    BocloudResult remove(Long id, RequestContext context);

    /**
     * 查询环境详情
     *
     * @param id
     * @return
     */
    BocloudResult<Environment> detail(Long id);

    /**
     * 创建环境
     *
     * @param environment
     * @param context
     * @return
     */
    BocloudResult<Environment> create(Environment environment, RequestContext context);

    /**
     * 修改环境
     *
     * @param bean
     * @param context
     * @return
     */
    BocloudResult<Environment> modify(Environment bean, RequestContext context);

}
