package cn.ysk.cashier.controller.shop;

import cn.ysk.cashier.service.shop.ShopPrintLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
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 java.util.Map;

/**
 * 店铺小票打印记录
 *
 * @author tankaikai
 * @since 2024-10-8 17:51:38
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@Api(tags = "店铺小票打印记录")
@RequestMapping("/api/shop/print/log")
public class ShopPrintLogController {

    private final ShopPrintLogService shopPrintLogService;

    @GetMapping("page")
    @ApiOperation("分页")
    public ResponseEntity page(@RequestParam Map<String, Object> params) {
        Map<String, Object> page = shopPrintLogService.page(params);
        return ResponseEntity.ok().body(page);
    }
}
