| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package zs.payment.controller;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import zs.payment.req.ProductDetailReq;
- import zs.payment.req.ProductPageReq;
- import zs.payment.req.storage.StoragePageReq;
- import zs.payment.resp.Result;
- import zs.payment.service.supply.product.ProductSupplyService;
- import javax.validation.Valid;
- /**
- * 供应链的商品
- */
- @Slf4j
- @RestController
- @RequestMapping("/supply/product")
- public class YxSupplyProductController {
- @Autowired
- private ProductSupplyService productSupplyService;
- /**
- * 选品列表API
- */
- @PostMapping("/cursorList")
- public Result cursorList(@Valid @RequestBody ProductPageReq req) {
- return productSupplyService.cursorList(req);
- }
- //支持多个商品详情查看
- @PostMapping("/detailList")
- public Result detailList(@Valid @RequestBody ProductDetailReq req) {
- return productSupplyService.detailList(req);
- }
- //我的选品库
- @PostMapping("/getMyStorageIdsList")
- public Result getMyStorageIdsList(@Valid @RequestBody StoragePageReq req){
- return productSupplyService.getMyStorageIdsList(req);
- }
- /**
- * 同步到自研系统上
- * @param uniacid 商户ID,仅允许 uniacid=463 调用
- * @return
- */
- @GetMapping("/syncToQiyun")
- public Result syncToQiyun(@RequestParam(required = false) Integer uniacid) {
- return productSupplyService.syncToQiyun(uniacid);
- }
- }
|