添加就餐模式接口
This commit is contained in:
@@ -4,6 +4,7 @@ package com.chaozhanggui.system.cashierservice.controller;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseCountDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseEatModelDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.QuerySpecDTO;
|
||||
import com.chaozhanggui.system.cashierservice.service.CartService;
|
||||
import com.chaozhanggui.system.cashierservice.service.ProductService;
|
||||
@@ -107,6 +108,13 @@ public class ProductController {
|
||||
return Result.success(CodeEnum.SUCCESS, productService.choseCount(choseCountDTO));
|
||||
}
|
||||
|
||||
@PostMapping("/choseEatModel")
|
||||
public Result choseEatModel(
|
||||
@Validated @RequestBody ChoseEatModelDTO choseEatModelDTO
|
||||
) {
|
||||
return Result.success(CodeEnum.SUCCESS, productService.choseEatModel(choseEatModelDTO));
|
||||
}
|
||||
|
||||
@PostMapping("cleanCart")
|
||||
public Result cleanCart(@RequestBody JSONObject jsonObject) {
|
||||
log.info("清空购物车数据:{}", jsonObject);
|
||||
|
||||
Reference in New Issue
Block a user