package com.sptg.gateway.controller.iot;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.common.security.annotation.Security;
import com.sptg.common.security.enums.DataFormatEnum;
import com.sptg.iot.api.constant.IotSecurityToken;
import com.sptg.iot.api.dto.IotDeviceDto;
import com.sptg.iot.api.feigns.IotAepProductFeign;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zwx
 * @create 2020/12/14 22:55
 */
@RestController
@RequestMapping(value = "/iot/aepProduct")
@RequiredArgsConstructor
public class IotAepProductController {

    private final IotAepProductFeign iotAepProductFeign;

    /**
     * 功能描述: 根据prefix条件分页查询iot设备列表
     * @return ResultBean<Page>
     */
    @GetMapping(value = "/sync/device/productList")
    public ResultBean<String> syncDeviceListByPrefix(){
        return this.iotAepProductFeign.syncAepProductList();
    }


}
