package org.springblade.third.iotdevice.feign;

import com.ctg.ag.sdk.biz.AepProductManagementClient;
import com.ctg.ag.sdk.biz.aep_product_management.QueryProductListRequest;
import com.ctg.ag.sdk.biz.aep_product_management.QueryProductListResponse;
import lombok.SneakyThrows;
import org.springblade.common.constant.AepConstant;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lidexi
 * @date 2021/5/29 17:02
 */
@RequestMapping("/feign/third/aep/productbutt")
@RestController
public class AepProductButtClient implements IAepProductButtClient {
	@SneakyThrows
	@Override
	@PostMapping("/productList")
	public Object productList() {
//		AepProductManagementClient client = AepProductManagementClient.newClient()
//			.appKey(AepConstant.APPKEY).appSecret(AepConstant.APPSECRET)
//			.build();
//
//		QueryProductListRequest request = new QueryProductListRequest();
//		request.setParamPageNow(1);
//		request.setParamPageSize(20000);
//// set your request params here
//// request.setParamSearchValue(searchValue);	// single value
//// request.addParamSearchValue(searchValue);	// or multi values
//// request.setParamPageNow(pageNow);	// single value
//// request.addParamPageNow(pageNow);	// or multi values
//// request.setParamPageSize(pageSize);	// single value
//// request.addParamPageSize(pageSize);	// or multi values
//		QueryProductListResponse queryProductListResponse = client.QueryProductList(request);
//
//// more requests
//
//		client.shutdown();
		return null;
	}
}
