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


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.common.model.RequestContext;
import com.bocloud.common.utils.Common;
import com.bocloud.ims.entity.resource.Storage;
import com.bocloud.ims.interfaces.resource.sangfor.SangforStorageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/sangfor/storage")
@Api(value = "深信服SCP存储管理", tags = "深信服SCP虚拟存储管理")
public class SangforStorageController {
    @Autowired
    private SangforStorageService sangforStorageService;

    @ApiOperation(tags = {"CMC",
            "CSC"}, value = "深信服SCP存储查询管理",  httpMethod = "GET")
    @Log(module = BoCloudService.IMS, target = "深信服SCP存储列表管理", operation = "深信服SCP存储列表管理")
    @GetMapping
    public BocloudResult<GridBean<Storage>> list(Pager pager, @Value(Common.REQ_CONTEXT) RequestContext context) {
        return sangforStorageService.list(pager, context);
    }

}
