- 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.
25 lines
616 B
SQL
25 lines
616 B
SQL
-- ----------------------------
|
|
-- Table structure for oauth2_client
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS "oauth2_client";
|
|
CREATE TABLE "oauth2_client" (
|
|
"id" integer NOT NULL,
|
|
"client_id" text(32) NOT NULL,
|
|
"client_secret" text(64) NOT NULL,
|
|
"title" text(64),
|
|
"ip_white" text(255),
|
|
"del_flag" text(1),
|
|
"login_ip" text(128),
|
|
"login_time" integer,
|
|
"create_by" text(64),
|
|
"create_time" integer,
|
|
"update_by" text(64),
|
|
"update_time" integer,
|
|
"remark" text(200),
|
|
PRIMARY KEY ("id")
|
|
);
|
|
|
|
-- ----------------------------
|
|
-- Records of oauth2_client
|
|
-- ----------------------------
|