package com.cf.imes.module.executor.util.fileConversion.admin.api.webcad;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;



@FeignClient(url = "https://chenfeng.tech:7779", name = "apiOrderService")
public interface ApiDataProduction {

//    登陆token
    @RequestMapping(value = "/Api-Oauth-token",method = RequestMethod.GET)
    JSONObject getApiTokenMessage(@RequestParam("appid") String appid, @RequestParam("appsecret") String appsecret);

//    订单板件生产数据
    @RequestMapping(value = "/Api-erpOrders-orderPlanData",method = RequestMethod.POST)
    JSONObject getApiOrderMessage(@RequestParam("token") String token, @RequestBody JSONObject json);

//    配件生产数据
    @RequestMapping(value = "/Api-erpOrders-partsList",method = RequestMethod.POST)
    JSONObject getApiOrderPartsMessage(@RequestParam("token") String token, @RequestBody JSONObject json);

//    房间柜体
    @RequestMapping(value = "/Api-erpOrders-boxsList",method = RequestMethod.POST)
    JSONObject getApiOrderBodyMessage(@RequestParam("token") String token, @RequestBody JSONObject json);

//    商品数据
    @RequestMapping(value = "/Api-erpOrders-goodsList",method = RequestMethod.POST)
    JSONObject getApiOrderGoodsMessage(@RequestParam("token") String token, @RequestBody JSONObject json);

//    加工组数据
    @RequestMapping(value = "/Api-erpOrders-getModuleTypeList",method = RequestMethod.POST)
    JSONObject getApiModuleTypeDataMessage(@RequestParam("token") String token, @RequestBody JSONObject json);

//    板材明细
    @RequestMapping(value = "/Api-erpOrders-blocksList",method = RequestMethod.POST)
    JSONObject getApiBlocksDataMessage(@RequestParam("token") String token, @RequestBody JSONObject json);

//    板件数据
    @RequestMapping(value = "/Api-erpOrders-getBlocks",method = RequestMethod.POST)
    JSONObject getApiBlocksMessage(@RequestParam("token") String token, @RequestBody JSONObject json);
}
