
package com.kxs.store.api.feign;

import com.kxs.common.core.constant.SecurityConstants;
import com.kxs.common.core.util.R;
import com.kxs.store.api.model.KxsWarehouseLimit;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.PostExchange;

import java.util.List;

/**
 * @author Lxq
 * @date 2021/6/22
 */
public interface RemoteKxsStoreService {

	/**
	 * 用户小分仓额度初始化
	 *
	 * @param limit 用户额度
	 * @param from    调用标志
	 * @return {@link R}<{@link Boolean}>
	 */
	@PostExchange("/userAdvance/addUserAdvanceLimit")
	R<Boolean> addUserAdvanceLimit(@RequestBody KxsWarehouseLimit limit, @RequestHeader(SecurityConstants.FROM) String from);

	/**
	 * 用户机具回收列表
	 *
	 * @param from    调用标志
	 * @return {@link R}<{@link Boolean}>
	 */
	@GetExchange("/storeRecycle/recycleSnList")
	R<List<String>> recycleSnList(@RequestHeader(SecurityConstants.FROM) String from);


	/**
	 * 添加仓库/小分仓临时额度
	 *
	 * @param kxsWarehouseLimit KXS 仓库限制
	 * @return {@link R}<{@link Boolean}>
	 */
	@PostExchange("storeLimit/addForAmount")
	R<Boolean> addForAmount(@RequestBody KxsWarehouseLimit kxsWarehouseLimit, @RequestHeader(SecurityConstants.FROM) String from);
}
