feat: 项目集成mybatis-plus-generator 代码生成器

Closes https://gitee.com/youlaiorg/youlai-boot/issues/I80MH1
This commit is contained in:
haoxr
2024-04-10 22:35:07 +08:00
parent 58d30d56ca
commit 4b4bee4cd8
14 changed files with 1126 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
package ${package.Mapper};
import ${package.Entity}.${entity};
import ${superMapperClassPackage};
#if(${mapperAnnotationClass})
import ${mapperAnnotationClass.name};
#end
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
* $!{table.comment} Mapper 接口
*
* @author ${author}
* @since ${date}
*/
#if(${mapperAnnotationClass})
@${mapperAnnotationClass.simpleName}
#end
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
/**
* 获取用户分页列表
*
* @param page
* @param queryParams 查询参数
* @return
*/
Page<${entity}BO> listPaged${entity}s(Page<${entity}BO> page, ${entity}PageQuery queryParams);
}