Initial commit
This commit is contained in:
19
doc/开发标准/标准.md
Normal file
19
doc/开发标准/标准.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# controller 请求参数
|
||||
使用一个自定义的Request类来接收参数。
|
||||
|
||||
# controller 返回的类型
|
||||
现状:目前返回的类型有R,AjaxResult,PageDataInfo等
|
||||
标准:统一返回R<具体类型>类型。
|
||||
|
||||
# mapper
|
||||
mapper继承Mybatis-Plus的BaseMapper。
|
||||
```java
|
||||
@Mapper
|
||||
public interface AdminGameSugarUserMapper extends BaseMapper<GameSugarUser> {
|
||||
}
|
||||
```
|
||||
|
||||
单表查询时,使用mybatis-plus的Lambda查询方式。
|
||||
|
||||
要执行复杂的查询逻辑时,用Lambda查询不好实现,或者很复杂时,可以使用@Select注解,在mapper类中写sql实现。
|
||||
|
||||
Reference in New Issue
Block a user