v2

package
v1.2201.0-pre3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuditPlanReportSQLs

func GetAuditPlanReportSQLs(c echo.Context) error

@Summary 获取指定审核计划的SQL审核详情 @Description get audit plan report SQLs @Id getAuditPlanReportSQLsV2 @Tags audit_plan @Security ApiKeyAuth @Param audit_plan_name path string true "audit plan name" @Param audit_plan_report_id path string true "audit plan report id" @Param page_index query uint32 false "page index" @Param page_size query uint32 false "size of per page" @Success 200 {object} v2.GetAuditPlanReportSQLsResV2 @router /v2/audit_plans/{audit_plan_name}/report/{audit_plan_report_id}/ [get]

func GetAuditPlanSQLs

func GetAuditPlanSQLs(c echo.Context) error

@Summary 获取指定审核计划的SQLs信息(不包括审核结果) @Description get audit plan SQLs @Id getAuditPlanSQLsV2 @Tags audit_plan @Security ApiKeyAuth @Param audit_plan_name path string true "audit plan name" @Param page_index query uint32 false "page index" @Param page_size query uint32 false "size of per page" @Success 200 {object} v2.GetAuditPlanSQLsResV2 @router /v2/audit_plans/{audit_plan_name}/sqls [get]

Types

type AuditPlanReportSQLResV2

type AuditPlanReportSQLResV2 struct {
	SQL         string `json:"audit_plan_report_sql" example:"select * from t1 where id = 1"`
	AuditResult string `json:"audit_plan_report_sql_audit_result" example:"same format as task audit result"`
}

type AuditPlanSQLHeadV2

type AuditPlanSQLHeadV2 struct {
	Name string `json:"name"`
	Desc string `json:"desc"`
	Type string `json:"type,omitempty" enums:"sql"`
}

type AuditPlanSQLResV2

type AuditPlanSQLResV2 struct {
	Head []AuditPlanSQLHeadV2 `json:"head"`
	Rows []map[string]string  `json:"rows"`
}

type GetAuditPlanReportSQLsReqV2

type GetAuditPlanReportSQLsReqV2 struct {
	PageIndex uint32 `json:"page_index" query:"page_index" valid:"required"`
	PageSize  uint32 `json:"page_size" query:"page_size" valid:"required"`
}

type GetAuditPlanReportSQLsResV2

type GetAuditPlanReportSQLsResV2 struct {
	controller.BaseRes
	Data      []AuditPlanReportSQLResV2 `json:"data"`
	TotalNums uint64                    `json:"total_nums"`
}

type GetAuditPlanSQLsReqV2

type GetAuditPlanSQLsReqV2 struct {
	PageIndex uint32 `json:"page_index" query:"page_index" valid:"required"`
	PageSize  uint32 `json:"page_size" query:"page_size" valid:"required"`
}

type GetAuditPlanSQLsResV2

type GetAuditPlanSQLsResV2 struct {
	controller.BaseRes
	Data      AuditPlanSQLResV2 `json:"data"`
	TotalNums uint64            `json:"total_nums"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL