package com.shinsoft.stoapi.service;

import com.shinsoft.tools.model.common.ResultJSON;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sto", contextId = "sto-api")
public interface StoService {


//    @RequestMapping(value = "/api/SysUser/queryUserById", method = RequestMethod.GET)
//    ResultJSON queryUserById(@RequestParam(value = "id") String id);


//    @RequestMapping(value = "/api/TablePersonal/add", method = RequestMethod.POST)
//    ResultJSON add(@RequestBody String json);

    /**
     * 修改 库存现有量，并添加库存变更记录
     * 根据  不同的业务类型
     * @param json
     * @return
     */
    @RequestMapping(value = "/TransRecord/add", method = RequestMethod.GET)
    ResultJSON add(@RequestParam(value = "json" , required = false) String json);

    /**
     * 根据物料，查询库存现有量。
     * @param params
     * @return
     */
    @RequestMapping(value = "/Onhand/queryOnhand", method = RequestMethod.GET)
    ResultJSON queryOnhand(@RequestParam(value = "params" , required = false) String params);


    @RequestMapping(value = "sto/Onhand/queryDelvOut", method = RequestMethod.GET)
    ResultJSON queryDelvOut(@RequestParam(value = "params" , required = false) String params);


    @RequestMapping(value = "/sto/Customer/query", method = RequestMethod.GET)
    ResultJSON ConfigQuery(@RequestParam(value = "params" , required = false) String params);
}
