package com.bocloud.ims.interfaces.resource.powervc;

import com.bocloud.common.model.BocloudResult;
import com.bocloud.common.model.Param;
import com.bocloud.common.model.RequestContext;
import com.bocloud.ims.entity.resource.SanFabric;

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

/**
 * @author luyanchao
 * @since 2019/2/22 15:32
 */
public interface SanFabricService {

    /**
     * 列表展示
     *
     * @param page
     * @param rows
     * @param params
     * @param sorter
     * @param context
     * @return
     */
    public BocloudResult list(int page, int rows, List<Param> params, Map<String, String> sorter, RequestContext context);

    /**
     * 创建
     *
     * @param sanFabric
     * @param context
     * @return
     */
    public BocloudResult create(SanFabric sanFabric, RequestContext context);

    /**
     * 修改
     *
     * @param sanFabric
     * @param context
     * @return
     */
    public BocloudResult modify(SanFabric sanFabric, RequestContext context);

    /**
     * 删除
     *
     * @param id
     * @param context
     * @return
     */
    public BocloudResult remove(long id, RequestContext context);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    public BocloudResult detail(long id);

}
