package cn.qinys.platform.admin.mapper;

import cn.qinys.platform.admin.resp.WishingTreePageResp;
import cn.qinys.platform.entity.wishing.WishingTree;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author lie tan
 * @description
 * @date 2026-05-23 12:41
 **/
@Mapper
public interface WishingTreeMapper extends BaseMapper<WishingTree> {


    /**
     * 用户分页
     *
     * @param page
     * @param wrapper
     * @return
     */
    @Select("SELECT * FROM wishing_tree ${ew.customSqlSegment}")
    Page<WishingTreePageResp> selectTreePage(Page<WishingTree> page, @Param(Constants.WRAPPER) Wrapper<WishingTree> wrapper);

}
