Merge branch 'master' of https://codeup.aliyun.com/bsdtec/biz-api-cloud
This commit is contained in:
commit
a932190426
2 files changed
+20
No files matched your search
+9
@@ -51,6 +51,15 @@ public interface RemoteOnlineCanteenSpuService {
|
||||
@RequestParam(value = "merchantId") String merchantId);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取详情接口
|
||||
* @param id spuid
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/canteenOnlineSpu/app/getCanteenSpuDetails")
|
||||
R<APPOnlineSpuVO> getCanteenSpuDetails(@RequestParam(value = "id") Long id);
|
||||
|
||||
/**
|
||||
* 扣减菜品库存
|
||||
* @param updateStockReqDTO
|
||||
|
||||
+11
@@ -141,6 +141,17 @@ public class CanteenOnlineSpuController {
|
||||
return canteenOnlineSpuService.getCanteenOnlineSpuList(categoryId,merchantId);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/app/getCanteenSpuDetails")
|
||||
@Operation(summary = "获取详情接口" , description = "通过spu的id" )
|
||||
public R<APPOnlineSpuVO> getCanteenSpuDetails(@RequestParam(value = "id") Long id ) {
|
||||
CanteenOnlineSpuEntity canteenOnlineSpuEntity = canteenOnlineSpuService.getById(id);
|
||||
APPOnlineSpuVO bean = BeanUtils.toBean(canteenOnlineSpuEntity, APPOnlineSpuVO.class);
|
||||
return R.ok(bean);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@PostMapping("/app/updateSkuStock")
|
||||
@SysLog("更新菜品库存")
|
||||
public R updateSkuStock(@RequestBody CanteenOnlineSpuUpdateStockReqDTO canteenOnlineSpuUpdateStockReqDTO) {
|
||||
|
||||
Reference in new issue
Block a user