package cn.ysk.cashier.controller.product;

import cn.ysk.cashier.mybatis.service.TbPadLayoutService;
import cn.ysk.cashier.pojo.product.TbPadLayout;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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 javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Pad商品布局版式
 * @author tankaikai
 * @since 2024-10-22 16:38
 */
@RestController
@RequestMapping("/api/pad/layout")
@Api(tags="Pad商品布局版式")
public class TbPadLayoutController {

    @Resource
    private TbPadLayoutService mpPadLayoutService;

    @GetMapping("list")
    @ApiOperation("分页")
    public ResponseEntity list(@RequestParam Map<String, Object> params) {
        List<TbPadLayout> list = mpPadLayoutService.findList();
        return ResponseEntity.ok().body(list);
    }

}
