package com.sckw.product.controller;

import com.sckw.core.web.response.HttpResult;
import com.sckw.product.service.KwpGoodsStatisticsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc: 工作台商品统计相关接口
 * @author: yzc
 * @date: 2023-07-03 8:28
 */
@RestController
@RequestMapping(value = "/kwpGoodsStatistics")
@RequiredArgsConstructor
public class KwpGoodsStatisticsController {

    private final KwpGoodsStatisticsService service;

    /**
     * @desc: 获取工作台商品列表
     * @author: yzc
     * @date: 2023-09-13 18:55
     * @return: com.sckw.core.web.response.HttpResult
     */
    @GetMapping(value = "/workbenchList")
    public HttpResult workbenchList() {
        return HttpResult.ok(service.workbenchList());
    }

}
