package com.qnfhq.modules.business.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qnfhq.common.ApiBaseController;
import com.qnfhq.common.utils.Result;
import com.qnfhq.modules.business.entity.MingProduct;
import com.qnfhq.modules.business.params.MingProductParams;
import com.qnfhq.modules.business.service.ITMingProductService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;
/**
 * 挖矿Controller
 *
 * @author ruoyi
 * @date 2023-07-17
 */
@RestController
@RequestMapping("/api/mingProduct")
public class TMingProductController extends ApiBaseController {
    @Resource
    private ITMingProductService mingProductService;

    /**
     * 查询质押订单列表
     */
    @PostMapping("/list")
    public Result<IPage<MingProduct>> list(@RequestBody MingProductParams params) {
        IPage<MingProduct> mingProductIPage = mingProductService.selectTMingProductList(params);
        return new Result().ok(mingProductIPage);
    }



}
