package com.bocloud.ims.booter.controller.resource.hmc;

import com.bocloud.common.annotations.Log;
import com.bocloud.common.enums.BoCloudService;
import com.bocloud.common.model.BocloudResult;
import com.bocloud.common.model.GridBean;
import com.bocloud.common.model.Pager;
import com.bocloud.ims.entity.resource.hmc.HmcIoAdapter;
import com.bocloud.ims.interfaces.resource.hmc.HmcIoAdapterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * HMC输入输出适配器Controller(booter)
 * 
 * @author sxp
 * @since Jun 20, 2018
 */
@RestController
@RequestMapping("/v1/hmc/ioadapters")
@Api(value = "HMC主机IO适配器", tags = "HMC主机IO适配器")
public class HmcIoAdapterController {
	@Autowired
	private HmcIoAdapterService hmcIoAdapterService;

	/**
	 * 查询IO适配器
	 *
	 * @param pager
	 *            分页参数
	 * @return 数据结果集
	 * @author sxp
	 * @since 2018-06-20
	 */
	@Log(module = BoCloudService.IMS, target = "HMC主机IO适配器", operation = "查询")
	@RequestMapping(method = { RequestMethod.GET })
	@ApiOperation(tags={"CMC","CSC"},value = "查询IO适配器",  httpMethod = "GET")
	public BocloudResult<GridBean<HmcIoAdapter>> list(Pager pager) {
		return hmcIoAdapterService.list(pager);
	}

}
