Skip to content

Commit

Permalink
feat: 增加api领域事件日志记录【auth服务代码重构完结】
Browse files Browse the repository at this point in the history
  • Loading branch information
KouShenhai committed Jul 20, 2024
1 parent 8707ea9 commit 424a47f
Show file tree
Hide file tree
Showing 24 changed files with 5,590 additions and 5,257 deletions.
57 changes: 55 additions & 2 deletions doc/db/kcloud_platform.sql
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ create table if not exists public.boot_sys_operate_log
address varchar(200) not null,
status smallint default 0 not null,
operator varchar(50) not null,
error_message text,
error_message varchar(500),
take_time bigint not null
);

Expand Down Expand Up @@ -769,7 +769,7 @@ create table if not exists public.boot_sys_oss_log
url varchar(200) not null,
size bigint not null,
status smallint default 0 not null,
error_message text
error_message varchar(500)
);

comment on table public.boot_sys_oss_log is 'OSS日志';
Expand Down Expand Up @@ -2503,3 +2503,56 @@ alter table public.seata_state_machine_inst

create unique index if not exists seata_state_machine_inst_business_key_tenant_id_idx
on public.seata_state_machine_inst (business_key, tenant_id);

create table boot_sys_api_log
(
id bigint generated by default as identity
primary key,
creator bigint default 0,
editor bigint default 0,
create_date timestamp(6) default CURRENT_TIMESTAMP not null,
update_date timestamp(6) default CURRENT_TIMESTAMP not null,
del_flag smallint default 0 not null,
version integer default 0 not null,
dept_id bigint default 0,
dept_path varchar(1000) default '0'::character varying,
tenant_id bigint default 0,
code varchar(100) not null,
name varchar(200) not null,
status smallserial,
error_message varchar(500) not null,
param json
);

comment on column boot_sys_api_log.id is 'ID';

comment on column boot_sys_api_log.creator is '创建人';

comment on column boot_sys_api_log.editor is '编辑人';

comment on column boot_sys_api_log.create_date is '创建时间';

comment on column boot_sys_api_log.update_date is '修改时间';

comment on column boot_sys_api_log.del_flag is '删除标识 0未删除 1已删除';

comment on column boot_sys_api_log.version is '版本号';

comment on column boot_sys_api_log.dept_id is '部门ID';

comment on column boot_sys_api_log.dept_path is '部门PATH';

comment on column boot_sys_api_log.tenant_id is '租户ID';

comment on column boot_sys_api_log.code is '编码';

comment on column boot_sys_api_log.name is '名称';

comment on column boot_sys_api_log.status is '状态 0成功 1失败';

comment on column boot_sys_api_log.error_message is '错误信息';

comment on column boot_sys_api_log.param is '参数';

alter table boot_sys_api_log
owner to root;
Loading

0 comments on commit 424a47f

Please sign in to comment.