package com.chaozhanggui.admin.system.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chaozhanggui.admin.system.service.MerOrderDetailService;
import com.chaozhanggui.common.system.config.RespBody;
import com.chaozhanggui.dao.system.entity.TbPlussMercOrderDetail;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lyf
 */
@CrossOrigin(origins = "*")
@RestController
@RequestMapping("/mercOrderDetail")
@Slf4j
public class MerOrderDetailController {

    @Resource
    private MerOrderDetailService merOrderDetailService;

    /**
     * 设备列表
     * @param merOrderDetail
     * @param current
     * @param size
     * @return
     */
    @GetMapping("/pageInfo")
    public RespBody pageInfo(TbPlussMercOrderDetail merOrderDetail, @RequestParam("current") Integer current,
                             @RequestParam("size") Integer size) {
        return merOrderDetailService.merOrderDetail(current, size, merOrderDetail);
    }
}
