package com.diagbot.web;

import com.diagbot.dto.RespDTO;
import com.diagbot.entity.ServiceFilter;
import com.diagbot.facade.ServiceFilterFacade;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/**
 * @Description: 产品服务过滤
 * @Author: ztg
 * @Date: 2018/9/18 14:40
 */
@RestController
@ApiIgnore
@RequestMapping("/service_filter")
public class ServiceFilterController {

    @Autowired
    ServiceFilterFacade serviceFilterFacade;


    @PostMapping("/getAll")
    @ApiOperation(value = "获取需要appkey和secret的服务信息[by:zhoutg]",
            notes = "接口未用，直接从配置项中读取服务")
    @ApiIgnore
    public RespDTO<List<ServiceFilter>> getServiceFilter() {
        return serviceFilterFacade.getAll();
    }




}

