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

import com.bocloud.common.annotations.Log;
import com.bocloud.common.enums.BoCloudService;
import com.bocloud.common.model.BocloudResult;
import com.bocloud.common.model.Pager;
import com.bocloud.common.model.RequestContext;
import com.bocloud.common.utils.Common;
import com.bocloud.ims.interfaces.resource.fusionsphere.FusionSphereUpLinkPortService;
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;

/**
 * @ClassName: FusionSphereUpLinkPortController
 * @Description:上行链路组2 -废弃
 * @author: zhenpingLi/李振平
 * @date: 2021/11/2 16:34
 */
@Api(value = "FusionSphereUpLinkPort", tags = "FusionSphereUpLinkPort管理")
@RestController
@RequestMapping("/v1/fc/uplinkports")
public class FusionSphereUpLinkPortController {

    @Autowired
    private FusionSphereUpLinkPortService service;

    /**
     * 查询列表
     *
     * @param pager
     * @return
     */
    @ApiOperation(tags = {"CMC", "CSC"}, value = "列表FusionSphereUpLinkPort", httpMethod = "GET")
    @Log(module = BoCloudService.IMS, target = "FusionSphereUpLinkPort", operation = "列表FusionSphereUpLinkPort")
    @GetMapping
    public BocloudResult list(Pager pager,
                              @Value(Common.REQ_CONTEXT) RequestContext context) {
        return service.list(pager, context);
    }


}