Compare commits

...

3 Commits

Author SHA1 Message Date
yang 10d944174d style:调整 2024-12-30 17:20:20 +08:00
yang 6ebed7b289 Merge branch 'feature/my-invitation' into preview 2024-12-30 17:09:30 +08:00
yang 13e5bf5bae docs:添加mybatis-plus配置 2024-12-30 17:07:27 +08:00
2 changed files with 18 additions and 1 deletions

View File

@ -23,7 +23,6 @@ public class InvitationController {
@GetMapping("/getInvitationCode")
@Anonymous
public AjaxResult getInvitationCode() {
// 获取当前用户
Long userId = SecurityUtils.getUserId();

View File

@ -59,3 +59,21 @@ spring:
wall:
config:
multi-statement-allow: true
mybatis-plus:
# Mapper XML文件位置
mapper-locations: classpath:mapper/**/*.xml
# 配置实体类所在的包名MyBatis-Plus会自动扫描并注册为别名
type-aliases-package: com.mcwl.**.mapper
# 全局配置
global-config:
db-config:
# 主键生成策略
id-type: auto
# 开启驼峰命名规则转换
capital-mode: true
# 配置逻辑删除相关属性
logic-delete-field: del_flag
logic-delete-value: '2'
logic-not-delete-value: '0'
# 数据库字段下划线命名规则
table-underline: true