From c35bc11de70825343db791b2993e2b17ded0d53f Mon Sep 17 00:00:00 2001 From: noear Date: Wed, 5 Oct 2022 15:48:43 +0800 Subject: [PATCH] 1.10.5 --- .../src/test/java/demo1/User.java | 14 ++++++++++++++ .../src/test/java/demo1/UserMapper.java | 11 +++++++++++ .../src/test/java/demo1/UserService.java | 9 +++++++++ .../src/test/java/demo1/UserServiceImpl.java | 13 +++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 _solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/User.java create mode 100644 _solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserMapper.java create mode 100644 _solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserService.java create mode 100644 _solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserServiceImpl.java diff --git a/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/User.java b/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/User.java new file mode 100644 index 0000000000..372e9230f8 --- /dev/null +++ b/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/User.java @@ -0,0 +1,14 @@ +package demo1; + +import lombok.Getter; +import lombok.Setter; + +/** + * @author noear 2022/10/5 created + */ +@Getter +@Setter +public class User { + long userId; + String nickname; +} diff --git a/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserMapper.java b/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserMapper.java new file mode 100644 index 0000000000..cb212c4e86 --- /dev/null +++ b/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserMapper.java @@ -0,0 +1,11 @@ +package demo1; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * @author noear 2022/10/5 created + */ +@Mapper +public interface UserMapper extends BaseMapper { +} diff --git a/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserService.java b/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserService.java new file mode 100644 index 0000000000..400bc044be --- /dev/null +++ b/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserService.java @@ -0,0 +1,9 @@ +package demo1; + +import com.baomidou.mybatisplus.solon.service.IService; + +/** + * @author noear 2022/10/5 created + */ +public interface UserService extends IService { +} diff --git a/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserServiceImpl.java b/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserServiceImpl.java new file mode 100644 index 0000000000..5e555be2d1 --- /dev/null +++ b/_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserServiceImpl.java @@ -0,0 +1,13 @@ +package demo1; + +import com.baomidou.mybatisplus.solon.service.impl.ServiceImpl; +import org.noear.solon.aspect.annotation.Service; + + +/** + * @author noear 2022/10/5 created + */ +@Service +public class UserServiceImpl extends ServiceImpl implements UserService { + +}