前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
package com.lcry.springcloudalibaba.service; import com.lcry.springcloudalibaba.domain.CommonResult; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import java.math.BigDecimal; /** * @author lcry * @date 2020/03/18 12:32 */ @FeignClient(value = "seata-storage-service") public interface StorageService { @PostMapping(value = "/storage/decrease") CommonResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count); }