mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 08:57:16 +08:00
refactor: 为 Mapper 接口增加 Mapper 注解,以消除 IDEA 警告标志(减少小白咨询)
实际它并不影响运行,但为了减少麻烦,加上不报警告,那就加上吧
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package top.continew.admin.generator.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import top.continew.admin.generator.model.entity.FieldConfigDO;
|
||||
@@ -29,6 +30,7 @@ import java.util.List;
|
||||
* @author Charles7c
|
||||
* @since 2023/4/12 23:56
|
||||
*/
|
||||
@Mapper
|
||||
public interface FieldConfigMapper extends BaseMapper<FieldConfigDO> {
|
||||
|
||||
/**
|
||||
|
@@ -16,6 +16,7 @@
|
||||
|
||||
package top.continew.admin.generator.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import top.continew.admin.generator.model.entity.GenConfigDO;
|
||||
import top.continew.starter.data.mp.base.BaseMapper;
|
||||
|
||||
@@ -25,5 +26,6 @@ import top.continew.starter.data.mp.base.BaseMapper;
|
||||
* @author Charles7c
|
||||
* @since 2023/4/12 23:56
|
||||
*/
|
||||
@Mapper
|
||||
public interface GenConfigMapper extends BaseMapper<GenConfigDO> {
|
||||
}
|
||||
|
@@ -1,7 +1,8 @@
|
||||
package ${packageName}.${subPackageName};
|
||||
|
||||
import top.continew.starter.data.mp.base.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import ${packageName}.model.entity.${classNamePrefix}DO;
|
||||
import top.continew.starter.data.mp.base.BaseMapper;
|
||||
|
||||
/**
|
||||
* ${businessName} Mapper
|
||||
@@ -9,4 +10,5 @@ import ${packageName}.model.entity.${classNamePrefix}DO;
|
||||
* @author ${author}
|
||||
* @since ${datetime}
|
||||
*/
|
||||
@Mapper
|
||||
public interface ${className} extends BaseMapper<${classNamePrefix}DO> {}
|
@@ -16,6 +16,7 @@
|
||||
|
||||
package top.continew.admin.open.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import top.continew.admin.open.model.entity.AppDO;
|
||||
@@ -28,6 +29,7 @@ import top.continew.starter.security.crypto.annotation.FieldEncrypt;
|
||||
* @author chengzi
|
||||
* @since 2024/10/17 16:03
|
||||
*/
|
||||
@Mapper
|
||||
public interface AppMapper extends BaseMapper<AppDO> {
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user