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

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.ResourceAccount;
import com.bocloud.ims.interfaces.resource.ResourceAccountService;
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.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/v1/resources/account")
@Api(value = "平台资源账号", tags = "平台资源账号")
public class ResourceAccountController {

    @Autowired
    private ResourceAccountService resourceAccountService;

    @ApiOperation(tags={"CMC","CSC"},value = "查询平台资源账号列表",  httpMethod = "GET")
    @Log(module = BoCloudService.IMS, target = "平台资源账号", operation = "查询平台资源账号列表")
    @GetMapping
    public BocloudResult<GridBean<ResourceAccount>>  list(Pager pager) {
        return resourceAccountService.list(pager);
    }
}
