package com.yd.base.service.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yd.base.feign.request.category.ApiCategoryPageRequest;
import com.yd.base.feign.response.category.ApiCategoryPageResponse;
import com.yd.base.service.dto.CategoryDto;
import com.yd.base.service.model.Category;

import java.util.List;

/**
 * <p>
 * 分类表 服务类
 * </p>
 *
 * @author zxm
 * @since 2025-11-20
 */
public interface ICategoryService extends IService<Category> {

    IPage<ApiCategoryPageResponse> page(Page<ApiCategoryPageResponse> page,
                                        ApiCategoryPageRequest request);

    List<Category> queryList(CategoryDto dto);

    Category queryOne(CategoryDto dto);
}
