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

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.f5.BiDnsResolvers;
import com.bocloud.ims.interfaces.resource.f5.F5BiDnsResolversService;
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;

@Api(value = "BiDnsResolvers", tags = "BiDnsResolvers")
@RestController
@RequestMapping("/v1/f5/dnsresolvers")
public class F5BiDnsResolversController {

    @Autowired
    private F5BiDnsResolversService f5BiDnsResolversService;

    /**
     * 列表
     *
     * @param pager
     * @return
     */
    @ApiOperation(tags={"CMC","CSC"},value = "查看BiDnsResolvers列表",  httpMethod = "GET")
    @GetMapping
    public BocloudResult<GridBean<BiDnsResolvers>> list(Pager pager) {
        return f5BiDnsResolversService.list(pager);
    }

}
