Skip to content

Commit

Permalink
🎉 init
Browse files Browse the repository at this point in the history
  • Loading branch information
yxx2 committed Aug 26, 2023
1 parent 0b1ae04 commit 776f87e
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
import jakarta.validation.Valid;

/**
* 管理员身份验证控制器
*
* @author yxx
* @since 2023-05-17 10:02
* @classname AdminAuthController
* @since 2023/08/26
*/
@Slf4j
@Validated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
import org.springframework.web.bind.annotation.*;

/**
* 管理用户控制器
*
* @author yxx
* @since 2022-11-12 02:07
* @classname AdminUserController
* @since 2023/08/26
*/
@Slf4j
@Validated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
import jakarta.validation.Valid;

/**
* 运营管理日志控制器
*
* @author yxx
* @description 注:@SaCheckRole("super_admin")
* 表示只有 super_admin 角色的用户才可访问此controller。
* 该注解亦可放在具体的方法上
* @since 2023-05-17 15:39
* @classname OperateAdminLogController
* @since 2023/08/26
*/
@Slf4j
@Validated
@ResponseResult
@RestController
@RequestMapping("/log")
@RequiredArgsConstructor
@SaAdminCheckRole("super_admin")
@SaAdminCheckRole("super_admin1")
public class OperateAdminLogController {
private final OperateAdminLogService operateAdminLogService;

Expand Down
6 changes: 3 additions & 3 deletions admin/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spring:
# mysql 通用配置信息内容 使用HikariDataSource连接池
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/base_springboot?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
url: jdbc:mysql://127.0.0.1:3306/cemetery?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: admin123
type: com.zaxxer.hikari.HikariDataSource
Expand All @@ -29,7 +29,7 @@ spring:
data:
redis:
# 设置初始数据库的数据为8
database: 14
database: 6
host: 127.0.0.1
port: 6379
# password:
Expand Down Expand Up @@ -248,7 +248,7 @@ sa-token:
# 登录逻辑缓存和业务逻辑缓存分离
alone-redis:
# Redis数据库索引(默认为0)
database: 13
database: 5
# Redis服务器地址
host: 127.0.0.1
# Redis服务器连接端口
Expand Down
2 changes: 2 additions & 0 deletions admin/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
server:
port: 6060
servlet:
context-path: /admin

spring:
profiles:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
import jakarta.validation.Valid;

/**
* 身份验证控制器
*
* @author yxx
* @since 2023-05-17 10:02
* @classname AuthController
* @since 2023/08/26
*/
@Slf4j
@Validated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
import jakarta.validation.Valid;

/**
* 操作日志控制器
*
* @author yxx
* @description 注:@SaCheckRole("super_admin")
* 表示只有 super_admin 角色的用户才可访问此controller。
* 该注解亦可放在具体的方法上
* @since 2023-05-17 15:39
* @classname OperateLogController
* @since 2023/08/26
*/
@Slf4j
@Validated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
import org.springframework.web.bind.annotation.*;

/**
* 用户控制器
*
* @author yxx
* @since 2022-11-12 02:07
* @classname UserController
* @since 2023/08/26
*/
@Slf4j
@Validated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
"name": "web.domain",
"type": "java.lang.String",
"description": "Description for web.domain."
},
{
"name": "app.name",
"type": "java.lang.String",
"description": "Description for app.name."
}
]
}
}
4 changes: 2 additions & 2 deletions business/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spring:
data:
redis:
# 设置初始数据库的数据为8
database: 14
database: 6
host: 127.0.0.1
port: 6379
# password:
Expand Down Expand Up @@ -309,7 +309,7 @@ sa-token:
# 登录逻辑缓存和业务逻辑缓存分离
alone-redis:
# Redis数据库索引(默认为0)
database: 13
database: 5
# Redis服务器地址
host: 127.0.0.1
# Redis服务器连接端口
Expand Down
2 changes: 2 additions & 0 deletions business/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
server:
port: 6059
servlet:
context-path: /user

spring:
profiles:
Expand Down

0 comments on commit 776f87e

Please sign in to comment.