feat: 添加后端代码生成器模板

This commit is contained in:
Ray.Hao
2024-10-12 13:36:44 +08:00
parent e1f4707006
commit 5a190121c3
13 changed files with 1141 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
package ${package.Mapper};
import ${package.Entity}.${entity};
import ${superMapperClassPackage};
#if(${mapperAnnotationClass})
import ${mapperAnnotationClass.name};
#end
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${package.Parent}.model.bo.${entity}BO;
import ${package.Parent}.model.query.${entity}PageQuery;
import org.apache.ibatis.annotations.Mapper;
/**
* $!{table.comment} Mapper 接口
*
* @author ${author}
* @since ${date}
*/
#if(${mapperAnnotationClass})
@${mapperAnnotationClass.simpleName}
#end
@Mapper
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);
}