-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/User.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
11 changes: 11 additions & 0 deletions
11
_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<User> { | ||
} |
9 changes: 9 additions & 0 deletions
9
_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package demo1; | ||
|
||
import com.baomidou.mybatisplus.solon.service.IService; | ||
|
||
/** | ||
* @author noear 2022/10/5 created | ||
*/ | ||
public interface UserService extends IService<User> { | ||
} |
13 changes: 13 additions & 0 deletions
13
_solon_plugin/mybatis-plus-extension-solon-plugin/src/test/java/demo1/UserServiceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<UserMapper, User> implements UserService { | ||
|
||
} |