package com.quoted.web.controller.product;

import com.quoted.common.core.controller.BaseController;
import com.quoted.common.core.domain.AjaxResult;
import com.quoted.common.core.domain.entity.SysMenu;
import com.quoted.system.domain.vo.ProductPriceRequestVo;
import com.quoted.system.service.IProductPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

/**
 * 缓存监控
 * <p>
 * quoted
 */
@RestController
@RequestMapping("/product")
public class ProductController extends BaseController {

    @Autowired
    IProductPriceService productPriceService;

    @PostMapping("/getPrice")
    public AjaxResult getPrice(@RequestBody ProductPriceRequestVo product) {
        return success(productPriceService.getProductPrice(product));
    }
}
