Compare commits
No commits in common. "bd015219984f4a59f11d8a34dc31524dc47df400" and "28396b1bcf7be814fd27f7931b8cb0c94c7dc48d" have entirely different histories.
bd01521998
...
28396b1bcf
@ -17,10 +17,4 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
@ -1,8 +0,0 @@
|
||||
package net.rzdata.demo.domain;
|
||||
|
||||
public record Id(String id) {
|
||||
|
||||
public static Id of(String id) {
|
||||
return new Id(id);
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
package net.rzdata.demo.trait;
|
||||
|
||||
/**
|
||||
* 实体转换类
|
||||
* @param <S> 源类型
|
||||
* @param <T> 目标类型
|
||||
*/
|
||||
public interface IConverter<S, T> {
|
||||
|
||||
T convert(S source);
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
package net.rzdata.demo.trait;
|
||||
|
||||
/**
|
||||
* 请求实体类
|
||||
* @param <T> 核心模型类型
|
||||
*/
|
||||
public interface IQuery<T> {
|
||||
|
||||
T into();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user