|
@@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.trade.controller.app.brokerage;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.framework.security.core.annotations.PreAuthenticated;
|
|
|
+import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.record.AppBrokerageProductPriceRespVO;
|
|
|
import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.record.AppBrokerageRecordPageReqVO;
|
|
|
import cn.iocoder.yudao.module.trade.controller.app.brokerage.vo.record.AppBrokerageRecordRespVO;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
@@ -11,6 +12,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
@@ -40,4 +42,14 @@ public class AppBrokerageRecordController {
|
|
|
return success(new PageResult<>(asList(vo1, vo2), 10L));
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/get-product-brokerage-price")
|
|
|
+ @Operation(summary = "获得商品的分销金额")
|
|
|
+ public CommonResult<AppBrokerageProductPriceRespVO> getProductBrokeragePrice(@RequestParam("spuId") Long spuId) {
|
|
|
+ AppBrokerageProductPriceRespVO respVO = new AppBrokerageProductPriceRespVO();
|
|
|
+ respVO.setEnabled(true); // TODO @疯狂:需要开启分销 + 人允许分销
|
|
|
+ respVO.setBrokerageMinPrice(1);
|
|
|
+ respVO.setBrokerageMaxPrice(2);
|
|
|
+ return success(respVO);
|
|
|
+ }
|
|
|
+
|
|
|
}
|