Compare commits

..

No commits in common. "31b4b91bc69169d3c2fe586db75cc9d0ef4e0acf" and "28396b1bcf7be814fd27f7931b8cb0c94c7dc48d" have entirely different histories.

5 changed files with 0 additions and 51 deletions

View File

@ -17,10 +17,4 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<dependencies>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
</dependency>
</dependencies>
</project> </project>

View File

@ -1,8 +0,0 @@
package net.rzdata.demo.domain;
public record Id(String id) {
public static Id of(String id) {
return new Id(id);
}
}

View File

@ -1,16 +0,0 @@
package net.rzdata.demo.trait;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
public abstract class BaseRepository<T, M extends BaseMapper<T>> {
private final transient M mapper;
public BaseRepository(M mapper) {
this.mapper = mapper;
}
public M get() {
return this.mapper;
}
}

View File

@ -1,11 +0,0 @@
package net.rzdata.demo.trait;
/**
* 实体转换类
* @param <S> 源类型
* @param <T> 目标类型
*/
public interface IConverter<S, T> {
T convert(S source);
}

View File

@ -1,10 +0,0 @@
package net.rzdata.demo.trait;
/**
* 请求实体类
* @param <T> 核心模型类型
*/
public interface IQuery<T> {
T into();
}