-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature]: Support fast SQL auditing
- Loading branch information
Showing
33 changed files
with
2,135 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { getSQLAuditRecordsV1FilterSqlAuditStatusEnum } from './index.enum'; | ||
|
||
import { | ||
IGetSQLAuditRecordsResV1, | ||
ICreateSQLAuditRecordResV1, | ||
IGetSQLAuditRecordTagTipsResV1, | ||
IGetSQLAuditRecordResV1, | ||
IUpdateSQLAuditRecordReqV1, | ||
IBaseRes | ||
} from '../common.d'; | ||
|
||
export interface IGetSQLAuditRecordsV1Params { | ||
fuzzy_search_tags?: string; | ||
|
||
filter_sql_audit_status?: getSQLAuditRecordsV1FilterSqlAuditStatusEnum; | ||
|
||
filter_instance_name?: string; | ||
|
||
filter_create_time_from?: string; | ||
|
||
filter_create_time_to?: string; | ||
|
||
page_index: number; | ||
|
||
page_size: number; | ||
|
||
project_name: string; | ||
} | ||
|
||
export interface IGetSQLAuditRecordsV1Return extends IGetSQLAuditRecordsResV1 {} | ||
|
||
export interface ICreateSQLAuditRecordV1Params { | ||
project_name: string; | ||
|
||
instance_name?: string; | ||
|
||
instance_schema?: string; | ||
|
||
db_type?: string; | ||
|
||
sql?: string; | ||
|
||
input_sql_file?: any; | ||
|
||
input_mybatis_xml_file?: any; | ||
|
||
input_zip_file?: any; | ||
} | ||
|
||
export interface ICreateSQLAuditRecordV1Return | ||
extends ICreateSQLAuditRecordResV1 {} | ||
|
||
export interface IGetSQLAuditRecordTagTipsV1Params { | ||
project_name: string; | ||
} | ||
|
||
export interface IGetSQLAuditRecordTagTipsV1Return | ||
extends IGetSQLAuditRecordTagTipsResV1 {} | ||
|
||
export interface IGetSQLAuditRecordV1Params { | ||
project_name: string; | ||
|
||
sql_audit_record_id: string; | ||
} | ||
|
||
export interface IGetSQLAuditRecordV1Return extends IGetSQLAuditRecordResV1 {} | ||
|
||
export interface IUpdateSQLAuditRecordV1Params | ||
extends IUpdateSQLAuditRecordReqV1 { | ||
project_name: string; | ||
} | ||
|
||
export interface IUpdateSQLAuditRecordV1Return extends IBaseRes {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* tslint:disable no-duplicate-string */ | ||
|
||
export enum getSQLAuditRecordsV1FilterSqlAuditStatusEnum { | ||
'auditing' = 'auditing', | ||
|
||
'successfully' = 'successfully' | ||
} |
Oops, something went wrong.