package com.corewing.app.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.corewing.app.common.page.PageContext;
import com.corewing.app.dto.ResourcePageRequest;
import com.corewing.app.entity.AppModel;
import com.corewing.app.entity.BizResource;
import com.corewing.app.entity.BizResourceCategory;
import com.corewing.app.mapper.BizResourceCategoryMapper;
import com.corewing.app.mapper.BizResourceMapper;
import com.corewing.app.service.BizProductService;
import com.corewing.app.service.BizResourceCategoryService;
import com.corewing.app.service.BizResourceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BizResourceServiceImpl extends ServiceImpl<BizResourceMapper, BizResource> implements BizResourceService {

    @Resource
    private BizResourceMapper bizResourceMapper;

    @Override
    public Page<BizResource> page(ResourcePageRequest resourcePageRequest) {
        Page<BizResource> page = PageContext.getDefaultPage(BizResource.class);
        return bizResourceMapper.page(page, resourcePageRequest);
    }
}
