package com.xyw.console.config;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import com.baomidou.mybatisplus.annotation.DbType;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class MybatisPlusConfig {
  /** 代码作用（白话）：启用数据库分页，让列表不会一次读取全部手机号。关联文件：PhoneAssetService.java。关联逻辑（调用链/数据流）：Controller -> Service Page -> Mapper SQL。 */
  @Bean public MybatisPlusInterceptor paginationInterceptor() { MybatisPlusInterceptor i=new MybatisPlusInterceptor(); i.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); return i; }
}