- Added Oauth2LogLoginService for managing user authorization logs. - Implemented methods for inserting logs, cleaning logs, and exporting log data. - Created a new file for Oauth2 login log service. refactor: Remove unused open_api module - Deleted the open_api.go file as it was not utilized in the project. fix: Update error codes in SysProfileController - Changed error codes for binding errors and user authentication errors to more descriptive values. fix: Update cache handling in SysConfig and SysDictType services - Modified Redis set operations to include expiration time for cached values. refactor: Update middleware authorization checks - Replaced PreAuthorize middleware with AuthorizeUser across multiple routes in system and tool modules for consistency. chore: Clean up trace and ws modules - Updated middleware authorization in trace and ws modules to use AuthorizeUser.
18 lines
421 B
Go
18 lines
421 B
Go
package constants
|
|
|
|
const (
|
|
// STATUS_YES 通用状态标识-正常/成功/是
|
|
STATUS_YES = "1"
|
|
// STATUS_NO 通用状态标识-停用/失败/否
|
|
STATUS_NO = "0"
|
|
)
|
|
|
|
// CTX_LOGIN_USER 上下文信息-登录用户
|
|
const CTX_LOGIN_USER = "ctx:login_user"
|
|
|
|
// CTX_LOGIN_OAUTH2 上下文信息-认证客户端
|
|
const CTX_LOGIN_OAUTH2 = "ctx:login_oauth2"
|
|
|
|
// 启动-引导系统初始
|
|
const LAUNCH_BOOTLOADER = "bootloader"
|