service

package
v0.0.0-...-9fc0c88 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MPL-2.0 Imports: 37 Imported by: 0

README

apiserver服务提供登录和注册系统的接口和实现 apiserver服务调用auth服务完成授权相关的实现

Documentation

Overview

Package docs dms api.

Documentation of our dms API.

Schemes: http, https
BasePath: /
Version: 0.1.0

Consumes:
- application/json

Produces:
- application/json

Security:
- basic

SecurityDefinitions:
basic:
 type: apiKey
 in: header
 name: Authorization

swagger:meta

Index

Constants

View Source
const (
	HardwareInfoFileName   = "collected.infos"
	LicenseFileParamKey    = "license_file"
	ProjectsFileParamKey   = "projects_file"
	DBServicesFileParamKey = "db_services_file"
)
View Source
const CronManager = "dms.cronmanager"
View Source
const (
	DatabaseSourceService = "database_source_service"
)

Variables

This section is empty.

Functions

func NewErrResp

func NewErrResp(c echo.Context, err error, code apiError.ErrorCode) error

func NewOkResp

func NewOkResp(c echo.Context) error

func NewOkRespWithReply

func NewOkRespWithReply(c echo.Context, reply bV1.GenericResper) error

func ReadFileContent

func ReadFileContent(c echo.Context, name string) (content string, fileExist bool, err error)

ReadFileContent read content from http body by name if file exist, the name is a http form data key, not file name.

func StartAllCronJob

func StartAllCronJob(server *APIServer, groupCtx context.Context)

func StopAllCronJob

func StopAllCronJob()

func SwaggerMiddleWare

func SwaggerMiddleWare(next echo.HandlerFunc) echo.HandlerFunc

Types

type APIServer

type APIServer struct {
	DMSController          *DMSController
	SqlWorkbenchController *SqlWorkbenchController
	// contains filtered or unexported fields
}

func NewAPIServer

func NewAPIServer(logger utilLog.Logger, opts *conf.DMSOptions) (*APIServer, error)

func (*APIServer) DeprecatedBy

func (s *APIServer) DeprecatedBy(version string) func(echo.Context) error

DeprecatedBy is a controller used to mark deprecated and used to replace the original controller.

func (*APIServer) RunHttpServer

func (s *APIServer) RunHttpServer(logger utilLog.Logger) error

func (*APIServer) Shutdown

func (s *APIServer) Shutdown() error

type DMSController

type DMSController struct {
	DMS                *service.DMSService
	CloudbeaverService *service.CloudbeaverService
	// contains filtered or unexported fields
}

func NewDMSController

func NewDMSController(logger utilLog.Logger, opts *conf.DMSOptions, cbService *service.CloudbeaverService) (*DMSController, error)

func (*DMSController) AddDBService

func (ctl *DMSController) AddDBService(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/db_services DBService AddDBService

Add DB Service.

--- deprecated: true parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: db_service description: Add new db service in: body required: true schema: "$ref": "#/definitions/AddDBServiceReq"

responses:

'200':
  description: AddDBServiceReply
  schema:
    "$ref": "#/definitions/AddDBServiceReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddDBServiceSyncTask

func (ctl *DMSController) AddDBServiceSyncTask(c echo.Context) error

swagger:operation POST /v1/dms/db_service_sync_tasks DBServiceSyncTask AddDBServiceSyncTask

Add database synchronization task.

--- parameters:

  • name: db_service_sync_task description: Add new db service sync task in: body required: true schema: "$ref": "#/definitions/AddDBServiceSyncTaskReq"

responses:

'200':
  description: AddDBServiceReply
  schema:
    "$ref": "#/definitions/AddDBServiceReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddDBServiceV2

func (ctl *DMSController) AddDBServiceV2(c echo.Context) error

swagger:operation POST /v2/dms/projects/{project_uid}/db_services DBService AddDBServiceV2

Add DB Service.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: db_service description: Add new db service in: body required: true schema: "$ref": "#/definitions/AddDBServiceReqV2"

responses:

'200':
  description: AddDBServiceReply
  schema:
    "$ref": "#/definitions/AddDBServiceReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddDataExportTask

func (ctl *DMSController) AddDataExportTask(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/data_export_tasks DataExportTask AddDataExportTask

Add data_export task.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: data_export_tasks description: add data export workflow in: body schema: "$ref": "#/definitions/AddDataExportTaskReq"

responses:

'200':
  description: AddDataExportTaskReply
  schema:
    "$ref": "#/definitions/AddDataExportTaskReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddDataExportWorkflow

func (ctl *DMSController) AddDataExportWorkflow(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/data_export_workflows DataExportWorkflows AddDataExportWorkflow

Add data_export workflow.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: data_export_workflow description: add data export workflow in: body schema: "$ref": "#/definitions/AddDataExportWorkflowReq"

responses:

'200':
  description: AddDataExportWorkflowReply
  schema:
    "$ref": "#/definitions/AddDataExportWorkflowReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddGateway

func (ctl *DMSController) AddGateway(c echo.Context) error

swagger:operation POST /v1/dms/gateways Gateway AddGateway

Add gateways.

--- parameters:

  • name: add_gateway description: add gateway in: body required: true schema: "$ref": "#/definitions/AddGatewayReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddMember

func (ctl *DMSController) AddMember(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/members Member AddMember

Add member.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: member description: Add new member in: body required: true schema: "$ref": "#/definitions/AddMemberReq"

responses:

'200':
  description: AddMemberReply
  schema:
    "$ref": "#/definitions/AddMemberReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddMemberGroup

func (ctl *DMSController) AddMemberGroup(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/member_groups MemberGroup AddMemberGroup

Add member group.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: member_group description: Add new member group in: body required: true schema: "$ref": "#/definitions/AddMemberGroupReq"

responses:

'200':
  description: AddMemberGroupReply
  schema:
    "$ref": "#/definitions/AddMemberGroupReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddProject

func (ctl *DMSController) AddProject(c echo.Context) error

swagger:operation POST /v1/dms/projects Project AddProject

Add project.

--- deprecated: true parameters:

  • name: project description: Add new Project in: body required: true schema: "$ref": "#/definitions/AddProjectReq"

responses:

'200':
  description: AddProjectReply
  schema:
    "$ref": "#/definitions/AddProjectReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddProjectV2

func (ctl *DMSController) AddProjectV2(c echo.Context) error

swagger:operation POST /v2/dms/projects Project AddProjectV2

Add project.

--- parameters:

  • name: project description: Add new Project in: body required: true schema: "$ref": "#/definitions/AddProjectReqV2"

responses:

'200':
  description: AddProjectReplyV2
  schema:
    "$ref": "#/definitions/AddProjectReplyV2"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddRole

func (ctl *DMSController) AddRole(c echo.Context) error

swagger:operation POST /v1/dms/roles Role AddRole

Add role.

--- parameters:

  • name: role description: Add new role in: body required: true schema: "$ref": "#/definitions/AddRoleReq"

responses:

'200':
  description: AddRoleReply
  schema:
    "$ref": "#/definitions/AddRoleReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddSession

func (ctl *DMSController) AddSession(c echo.Context) error

swagger:operation POST /v1/dms/sessions Session AddSession

Add a session.

--- parameters:

  • name: session in: body required: true description: Add a new session schema: "$ref": "#/definitions/AddSessionReq"

responses:

'200':
  description: AddSessionReply
  schema:
    "$ref": "#/definitions/AddSessionReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddUser

func (ctl *DMSController) AddUser(c echo.Context) error

swagger:operation POST /v1/dms/users User AddUser

Add user.

--- parameters:

  • name: user in: body required: true description: Add new user schema: "$ref": "#/definitions/AddUserReq"

responses:

'200':
  description: AddUserReply
  schema:
    "$ref": "#/definitions/AddUserReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) AddUserGroup

func (ctl *DMSController) AddUserGroup(c echo.Context) error

swagger:operation POST /v1/dms/user_groups UserGroup AddUserGroup

Add user group.

--- parameters:

  • name: user_group description: Add new user group in: body required: true schema: "$ref": "#/definitions/AddUserGroupReq"

responses:

'200':
  description: AddUserGroupReply
  schema:
    "$ref": "#/definitions/AddUserGroupReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) ApproveDataExportWorkflow

func (ctl *DMSController) ApproveDataExportWorkflow(c echo.Context) error

swagger:route POST /v1/dms/projects/{project_uid}/data_export_workflows/{data_export_workflow_uid}/approve DataExportWorkflows ApproveDataExportWorkflow

Approve data_export workflow.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) ArchiveProject

func (ctl *DMSController) ArchiveProject(c echo.Context) error

swagger:route PUT /v1/dms/projects/{project_uid}/archive Project ArchiveProject

Archive a project.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) BackChannelLogout

func (ctl *DMSController) BackChannelLogout(c echo.Context) error

BackChannelLogout is a hidden interface for third-party platform callbacks for logout event https://openid.net/specs/openid-connect-backchannel-1_0.html#BCRequest

func (*DMSController) BatchGetDataExportTask

func (ctl *DMSController) BatchGetDataExportTask(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/data_export_tasks DataExportTask BatchGetDataExportTask

Batch get data_export task.

responses:
  200: body:BatchGetDataExportTaskReply
  default: body:GenericResp

func (*DMSController) BindOauth2User

func (ctl *DMSController) BindOauth2User(c echo.Context) error

swagger:operation POST /v1/dms/oauth2/user/bind OAuth2 BindOauth2User

Bind Oauth2 User.

--- parameters:

  • name: BindOauth2UserReq required: true in: body schema: "$ref": "#/definitions/BindOauth2UserReq"

responses:

'200':
  description: BindOauth2UserReply
  schema:
    "$ref": "#/definitions/BindOauth2UserReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) CancelDataExportWorkflow

func (ctl *DMSController) CancelDataExportWorkflow(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/data_export_workflows/cancel DataExportWorkflows CancelDataExportWorkflow

Cancel data export workflows.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: payload required: true in: body schema: "$ref": "#/definitions/CancelDataExportWorkflowReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) CheckDBServiceIsConnectable

func (ctl *DMSController) CheckDBServiceIsConnectable(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/db_services/connection DBService CheckDBServiceIsConnectable

check if the db_service is connectable.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: db_service in: body description: check db_service is connectable schema: "$ref": "#/definitions/CheckDBServiceIsConnectableReq"

responses:

'200':
  description: CheckDBServiceIsConnectableReply
  schema:
    "$ref": "#/definitions/CheckDBServiceIsConnectableReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) CheckDBServiceIsConnectableById

func (ctl *DMSController) CheckDBServiceIsConnectableById(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/db_services/{db_service_uid}/connection DBService CheckDBServiceIsConnectableById

check if the db_service is connectable.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: db_service_uid description: db service uid in: path required: true type: string

responses:

'200':
  description: CheckDBServiceIsConnectableReply
  schema:
    "$ref": "#/definitions/CheckDBServiceIsConnectableReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) CheckDBServicesPrivileges

func (ctl *DMSController) CheckDBServicesPrivileges(c echo.Context) error

swagger:operation POST /v1/dms/projects/check_db_services_privileges Project CheckDBServicesPrivileges

check if the db_services hava enough privileges.

--- parameters:

  • name: db_services in: body description: check db_services have enough privileges schema: "$ref": "#/definitions/CheckDBServicesPrivilegesReq"

responses:

'200':
  description: CheckDBServicesPrivilegesReply
  schema:
    "$ref": "#/definitions/CheckDBServicesPrivilegesReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) CheckGlobalDBServicesConnections

func (ctl *DMSController) CheckGlobalDBServicesConnections(c echo.Context) error

swagger:operation POST /v1/dms/projects/db_services_connections Project CheckGlobalDBServicesConnections

check if the global db_services is connectable.

--- parameters:

  • name: db_services description: check db_services is connectable in: body schema: "$ref": "#/definitions/DBServicesConnectionReq"

responses:

'200':
  description: DBServicesConnectionReqReply
  schema:
    "$ref": "#/definitions/DBServicesConnectionReqReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) CheckLicense

func (ctl *DMSController) CheckLicense(c echo.Context) error

swagger:route POST /v1/dms/configurations/license/check Configuration CheckLicense

notify message.

 Consumes:
 - multipart/form-data

responses:
  200: body:CheckLicenseReply
  default: body:GenericResp

func (*DMSController) CheckProjectDBServicesConnections

func (ctl *DMSController) CheckProjectDBServicesConnections(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/db_services/connections DBService CheckProjectDBServicesConnections

check if the project db_services is connectable.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: db_services description: check db_services is connectable in: body schema: "$ref": "#/definitions/CheckDBServicesIsConnectableReq"

responses:

'200':
  description: CheckDBServicesIsConnectableReply
  schema:
    "$ref": "#/definitions/CheckDBServicesIsConnectableReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) CreateBusinessTag

func (ctl *DMSController) CreateBusinessTag(c echo.Context) error

swagger:operation POST /v1/dms/projects/business_tags Project CreateBusinessTag

Create a new business tag.

--- parameters:

  • name: business_tag description: business tag to be created in: body required: true schema: "$ref": "#/definitions/CreateBusinessTagReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) CreateEnvironmentTag

func (ctl *DMSController) CreateEnvironmentTag(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/environment_tags Project CreateEnvironmentTag

Create a new environment tag.

--- parameters:

  • name: project_uid description: project uid in: path required: true type: string
  • name: environment_name description: the name of environment tag to be created in: body required: true type: string

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) DBServicesConnection

func (ctl *DMSController) DBServicesConnection(c echo.Context) error

todo 该接口已废弃 swagger:operation POST /v1/dms/projects/db_services_connection Project DBServicesConnection

DBServices Connection.

--- parameters:

  • name: db_services description: check db_service is connectable in: body schema: "$ref": "#/definitions/DBServiceConnectionReq"

responses:

'200':
  description: DBServicesConnectionReply
  schema:
    "$ref": "#/definitions/DBServicesConnectionReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) DelDBService

func (ctl *DMSController) DelDBService(c echo.Context) error

swagger:route DELETE /v1/dms/projects/{project_uid}/db_services/{db_service_uid} DBService DelDBService

Delete a DB Service.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DelMember

func (ctl *DMSController) DelMember(c echo.Context) error

swagger:route DELETE /v1/dms/projects/{project_uid}/members/{member_uid} Member DelMember

Delete a member.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DelProject

func (ctl *DMSController) DelProject(c echo.Context) error

swagger:route DELETE /v1/dms/projects/{project_uid} Project DelProject

Delete a project

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DelRole

func (ctl *DMSController) DelRole(c echo.Context) error

swagger:route DELETE /v1/dms/roles/{role_uid} Role DelRole

Delete a role.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DelSession

func (ctl *DMSController) DelSession(c echo.Context) error

swagger:route DELETE /v1/dms/sessions Session DelSession

del a session.

responses:
  200: body:DelSessionReply
  default: body:GenericResp

func (*DMSController) DelUser

func (ctl *DMSController) DelUser(c echo.Context) error

swagger:route DELETE /v1/dms/users/{user_uid} User DelUser

Delete a user.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DelUserGroup

func (ctl *DMSController) DelUserGroup(c echo.Context) error

swagger:route DELETE /v1/dms/user_groups/{user_group_uid} UserGroup DelUserGroup

Delete a user group.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DeleteBusinessTag

func (ctl *DMSController) DeleteBusinessTag(c echo.Context) error

swagger:route DELETE /v1/dms/projects/business_tags/{business_tag_uid} Project DeleteBusinessTag

Delete an existing business tag.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DeleteDBServiceSyncTask

func (ctl *DMSController) DeleteDBServiceSyncTask(c echo.Context) error

swagger:operation DELETE /v1/dms/db_service_sync_tasks/{db_service_sync_task_uid} DBServiceSyncTask DeleteDBServiceSyncTask

Delete database synchronization task.

--- parameters:

  • name: db_service_sync_task_uid description: db service sync task uid in: path required: true type: string

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) DeleteEnvironmentTag

func (ctl *DMSController) DeleteEnvironmentTag(c echo.Context) error

swagger:route DELETE /v1/dms/projects/{project_uid}/environment_tags/{environment_tag_uid} Project DeleteEnvironmentTag

Delete an existing environment tag.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DeleteGateway

func (ctl *DMSController) DeleteGateway(c echo.Context) error

swagger:route DELETE /v1/dms/gateways/{gateway_id} Gateway DeleteGateway

Delete gateways.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DeleteMemberGroup

func (ctl *DMSController) DeleteMemberGroup(c echo.Context) error

swagger:route DELETE /v1/dms/projects/{project_uid}/member_groups/{member_group_uid} MemberGroup DeleteMemberGroup

delete member group, for front page.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) DownloadDataExportTask

func (ctl *DMSController) DownloadDataExportTask(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/data_export_tasks/{data_export_task_uid}/download DataExportTask DownloadDataExportTask

download task file.

responses:
  200: DownloadDataExportTaskReply
  default: body:GenericResp

func (*DMSController) DownloadDataExportTaskSQLs

func (ctl *DMSController) DownloadDataExportTaskSQLs(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/data_export_tasks/{data_export_task_uid}/data_export_task_sqls/download DataExportTask DownloadDataExportTaskSQLs

dowload data_export sqls.

responses:
  200: DownloadDataExportTaskSQLsReply
  default: body:GenericResp

func (*DMSController) DownloadResourceOverviewList

func (d *DMSController) DownloadResourceOverviewList(c echo.Context) error

swagger:route GET /v1/dms/resource_overview/download ResourceOverview DownloadResourceOverviewList

download resource overview list csv file.

responses:
  200: DownloadResourceOverviewListRes
  default: body:GenericResp

func (*DMSController) ExportCBOperationLogs

func (ctl *DMSController) ExportCBOperationLogs(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/cb_operation_logs/export CBOperationLogs ExportCBOperationLogs

Export cb operation logs.

responses:
  200: ExportCBOperationLogsReply
  default: body:GenericResp

func (*DMSController) ExportDataExportWorkflow

func (ctl *DMSController) ExportDataExportWorkflow(c echo.Context) error

swagger:route POST /v1/dms/projects/{project_uid}/data_export_workflows/{data_export_workflow_uid}/export DataExportWorkflows ExportDataExportWorkflow

exec data_export workflow.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) ExportProjects

func (ctl *DMSController) ExportProjects(c echo.Context) error

swagger:route GET /v1/dms/projects/export Project ExportProjects

Export projects file.

responses:
  200: ExportProjectsReply
  default: body:GenericResp

func (*DMSController) GenAccessToken

func (ctl *DMSController) GenAccessToken(c echo.Context) error

swagger:operation POST /v1/dms/users/gen_token User GenAccessToken

Gen user access token.

--- parameters:

  • name: expiration_days in: body required: true schema: "$ref": "#/definitions/GenAccessToken"

responses:

'200':
  description: GenAccessTokenReply
  schema:
    "$ref": "#/definitions/GenAccessTokenReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) GetBasicInfo

func (ctl *DMSController) GetBasicInfo(c echo.Context) error

swagger:route GET /v1/dms/basic_info BasicInfo GetBasicInfo

get basic info.

responses:
  200: body:GetBasicInfoReply
  default: body:GenericResp

func (*DMSController) GetCBOperationLogTips

func (ctl *DMSController) GetCBOperationLogTips(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/cb_operation_logs/tips CBOperationLogs GetCBOperationLogTips

Get cb operation log tips.

responses:
  200: GetCBOperationLogTipsReply
  default: body:GenericResp

func (*DMSController) GetCompanyNotice

func (ctl *DMSController) GetCompanyNotice(c echo.Context) error

swagger:route GET /v1/dms/company_notice CompanyNotice GetCompanyNotice

get company notice info

responses:
  200: body:GetCompanyNoticeReply
  default: body:GenericResp

func (*DMSController) GetDBServiceSyncTask

func (ctl *DMSController) GetDBServiceSyncTask(c echo.Context) error

swagger:operation GET /v1/dms/db_service_sync_tasks/{db_service_sync_task_uid} DBServiceSyncTask GetDBServiceSyncTask

Get database synchronization task.

--- parameters:

  • name: db_service_sync_task_uid description: db service sync task uid in: path required: true type: string

responses:

'200':
  description: GetDBServiceSyncTaskReply
  schema:
    "$ref": "#/definitions/GetDBServiceSyncTaskReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) GetDataExportWorkflow

func (ctl *DMSController) GetDataExportWorkflow(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/data_export_workflows/{data_export_workflow_uid} DataExportWorkflows GetDataExportWorkflow

Get data_export workflow.

responses:
  200: body:GetDataExportWorkflowReply
  default: body:GenericResp

func (*DMSController) GetFeishuConfiguration

func (ctl *DMSController) GetFeishuConfiguration(c echo.Context) error

swagger:route GET /v1/dms/configurations/feishu Configuration GetFeishuConfiguration

get feishu configuration.

responses:
  200: body:GetFeishuConfigurationReply
  default: body:GenericResp

func (*DMSController) GetGateway

func (ctl *DMSController) GetGateway(c echo.Context) error

swagger:route GET /v1/dms/gateways/{gateway_id} Gateway GetGateway

Get gateways.

responses:
  200: body:GetGatewayReply
  default: body:GenericResp

func (*DMSController) GetGatewayTips

func (ctl *DMSController) GetGatewayTips(c echo.Context) error

swagger:route GET /v1/dms/gateways/tips Gateway GetGatewayTips

Get gateway tips.

responses:
  200: body:GetGatewayTipsReply
  default: body:GenericResp

func (*DMSController) GetImportDBServicesTemplate

func (ctl *DMSController) GetImportDBServicesTemplate(c echo.Context) error

swagger:route GET /v1/dms/projects/import_db_services_template Project GetImportDBServicesTemplate

Get import DBServices template.

responses:
  200: GetImportDBServicesTemplateReply
  default: body:GenericResp

func (*DMSController) GetImportProjectsTemplate

func (ctl *DMSController) GetImportProjectsTemplate(c echo.Context) error

swagger:route GET /v1/dms/projects/import_template Project GetImportProjectsTemplate

Get import projects template.

responses:
  200: GetImportProjectsTemplateReply
  default: body:GenericResp

func (*DMSController) GetLDAPConfiguration

func (ctl *DMSController) GetLDAPConfiguration(c echo.Context) error

swagger:route GET /v1/dms/configurations/ldap Configuration GetLDAPConfiguration

Get ldap configuration.

responses:
  200: body:GetLDAPConfigurationResDataReply
  default: body:GenericResp

func (*DMSController) GetLicense

func (ctl *DMSController) GetLicense(c echo.Context) error

swagger:route GET /v1/dms/configurations/license Configuration GetLicense

get license.

responses:
  200: body:GetLicenseReply
  default: body:GenericResp

func (*DMSController) GetLicenseInfo

func (ctl *DMSController) GetLicenseInfo(c echo.Context) error

swagger:route GET /v1/dms/configurations/license/info Configuration GetLicenseInfo

get generate license info.

responses:
  200: GetLicenseInfoReply
  default: body:GenericResp

func (*DMSController) GetLicenseUsage

func (ctl *DMSController) GetLicenseUsage(c echo.Context) error

swagger:route GET /v1/dms/configurations/license/usage Configuration GetLicenseUsage

get license usage.

responses:
  200: body:GetLicenseUsageReply
  default: body:GenericResp

func (*DMSController) GetLoginTips

func (ctl *DMSController) GetLoginTips(c echo.Context) error

swagger:route GET /v1/dms/configurations/login/tips Configuration GetLoginTips

get login configuration.

responses:
  200: body:GetLoginTipsReply
  default: body:GenericResp

func (*DMSController) GetMemberGroup

func (ctl *DMSController) GetMemberGroup(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/member_groups/{member_group_uid} MemberGroup GetMemberGroup

Get member group, for front page.

responses:
  200: body:GetMemberGroupReply
  default: body:GenericResp

func (*DMSController) GetOauth2Configuration

func (ctl *DMSController) GetOauth2Configuration(c echo.Context) error

swagger:route GET /v1/dms/configurations/oauth2 Configuration GetOauth2Configuration

Get Oauth2 configuration.

responses:
  200: body:GetOauth2ConfigurationResDataReply
  default: body:GenericResp

func (*DMSController) GetOauth2Tips

func (ctl *DMSController) GetOauth2Tips(c echo.Context) error

swagger:route GET /v1/dms/oauth2/tips OAuth2 GetOauth2Tips

Get Oauth2 Tips.

responses:
  200: body:GetOauth2TipsReply
  default: body:GenericResp

func (*DMSController) GetProjectTips

func (ctl *DMSController) GetProjectTips(c echo.Context) error

swagger:route GET /v1/dms/projects/tips Project GetProjectTips

Get project tips.

responses:
  200: body:GetProjectTipsReply
  default: body:GenericResp

deprecated: true

func (*DMSController) GetResourceOverviewResourceList

func (d *DMSController) GetResourceOverviewResourceList(c echo.Context) error

swagger:operation GET /v1/dms/resource_overview/resource_list ResourceOverview GetResourceOverviewResourceListV1

Get resource overview resource list.

--- responses:

'200':
  description: resource overview resource list response body
  schema:
    "$ref": "#/definitions/ResourceOverviewResourceListResV1"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) GetResourceOverviewResourceTypeDistribution

func (d *DMSController) GetResourceOverviewResourceTypeDistribution(c echo.Context) error

swagger:operation GET /v1/dms/resource_overview/resource_type_distribution ResourceOverview GetResourceOverviewResourceTypeDistributionV1

Get resource overview resource type distribution.

--- responses:

'200':
  description: resource overview resource type distribution response body
  schema:
    "$ref": "#/definitions/ResourceOverviewResourceTypeDistributionResV1"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) GetResourceOverviewStatistics

func (d *DMSController) GetResourceOverviewStatistics(c echo.Context) error

swagger:operation GET /v1/dms/resource_overview/statistics ResourceOverview GetResourceOverviewStatisticsV1

Get resource overview statistics.

--- responses:

'200':
  description: resource overview statistics response body
  schema:
    "$ref": "#/definitions/ResourceOverviewStatisticsResV1"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) GetResourceOverviewTopology

func (d *DMSController) GetResourceOverviewTopology(c echo.Context) error

swagger:operation GET /v1/dms/resource_overview/topology ResourceOverview GetResourceOverviewTopologyV1

Get resource overview topology.

--- responses:

'200':
  description: resource overview topology response body
  schema:
    "$ref": "#/definitions/ResourceOverviewTopologyResV1"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) GetSMTPConfiguration

func (ctl *DMSController) GetSMTPConfiguration(c echo.Context) error

swagger:route GET /v1/dms/configurations/smtp Configuration GetSMTPConfiguration

get smtp configuration.

responses:
  200: body:GetSMTPConfigurationReply
  default: body:GenericResp

func (*DMSController) GetSmsConfiguration

func (ctl *DMSController) GetSmsConfiguration(c echo.Context) error

swagger:route GET /v1/dms/configurations/sms Configuration GetSmsConfiguration

get sms configuration.

responses:
  200: body:GetSmsConfigurationReply
  default: body:GenericResp
func (ctl *DMSController) GetStaticLogo(c echo.Context) error

swagger:route GET /v1/dms/personalization/logo BasicInfo GetStaticLogo

get logo

Produces:
- application/octet-stream

responses:
  200: GetStaticLogoReply
  default: body:GenericResp

func (*DMSController) GetSystemVariables

func (ctl *DMSController) GetSystemVariables(c echo.Context) error

swagger:route GET /v1/dms/configurations/system_variables Configuration GetSystemVariables

获取系统变量配置

responses:
  200: body:GetSystemVariablesReply
  default: body:GenericResp

func (*DMSController) GetUser

func (ctl *DMSController) GetUser(c echo.Context) error

swagger:route GET /v1/dms/users/{user_uid} User GetUser

Get user info, This API is used by other component such as sqle&auth to get user info.

responses:
  200: body:GetUserReply
  default: body:GenericResp

func (*DMSController) GetUserBySession

func (ctl *DMSController) GetUserBySession(c echo.Context) error

swagger:route GET /v1/dms/sessions/user Session GetUserBySession

Get current user.

responses:
  200: body:GetUserBySessionReply
  default: body:GenericResp

func (*DMSController) GetUserOpPermission

func (ctl *DMSController) GetUserOpPermission(c echo.Context) error

swagger:route GET /v1/dms/users/{user_uid}/op_permission User GetUserOpPermission

Get user op permission info, This API is used by other component such as sqle&auth to check user permissions.

responses:
  200: body:GetUserOpPermissionReply
  default: body:GenericResp

func (*DMSController) GetWeChatConfiguration

func (ctl *DMSController) GetWeChatConfiguration(c echo.Context) error

swagger:route GET /v1/dms/configurations/wechat Configuration GetWeChatConfiguration

get wechat configuration.

responses:
  200: body:GetWeChatConfigurationReply
  default: body:GenericResp

func (*DMSController) GetWebHookConfiguration

func (ctl *DMSController) GetWebHookConfiguration(c echo.Context) error

swagger:route GET /v1/dms/configurations/webhook Configuration GetWebHookConfiguration

get webhook configuration.

responses:
  200: body:GetWebHookConfigurationReply
  default: body:GenericResp

func (*DMSController) ImportDBServicesOfOneProject

func (ctl *DMSController) ImportDBServicesOfOneProject(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/db_services/import DBService ImportDBServicesOfOneProject

Import DBServices.

--- deprecated: true parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: db_services description: new db services in: body required: true schema: "$ref": "#/definitions/ImportDBServicesOfOneProjectReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) ImportDBServicesOfOneProjectCheck

func (ctl *DMSController) ImportDBServicesOfOneProjectCheck(c echo.Context) error

swagger:route POST /v1/dms/projects/{project_uid}/db_services/import_check DBService ImportDBServicesOfOneProjectCheck

Import DBServices.

Consumes:
- multipart/form-data

Produces:
- application/json
- text/csv

responses:
  200: ImportDBServicesCheckCsvReply
  default: body:ImportDBServicesCheckReply

deprecated: true

func (*DMSController) ImportDBServicesOfOneProjectCheckV2

func (ctl *DMSController) ImportDBServicesOfOneProjectCheckV2(c echo.Context) error

swagger:route POST /v2/dms/projects/{project_uid}/db_services/import_check DBService ImportDBServicesOfOneProjectCheckV2

Import DBServices.

Consumes:
- multipart/form-data

Produces:
- application/json
- text/csv

responses:
  200: ImportDBServicesCheckCsvReply
  default: body:ImportDBServicesCheckReply

func (*DMSController) ImportDBServicesOfOneProjectV2

func (ctl *DMSController) ImportDBServicesOfOneProjectV2(c echo.Context) error

swagger:operation POST /v2/dms/projects/{project_uid}/db_services/import DBService ImportDBServicesOfOneProjectV2

Import DBServices.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: db_services description: new db services in: body required: true schema: "$ref": "#/definitions/ImportDBServicesOfOneProjectReqV2"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) ImportDBServicesOfProjects

func (ctl *DMSController) ImportDBServicesOfProjects(c echo.Context) error

swagger:operation POST /v1/dms/projects/import_db_services Project ImportDBServicesOfProjects

Import DBServices.

--- parameters:

  • name: db_services description: new db services in: body required: true schema: "$ref": "#/definitions/ImportDBServicesOfProjectsReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

deprecated: true

func (*DMSController) ImportDBServicesOfProjectsCheck

func (ctl *DMSController) ImportDBServicesOfProjectsCheck(c echo.Context) error

swagger:route POST /v1/dms/projects/import_db_services_check Project ImportDBServicesOfProjectsCheck

Import DBServices.

	Consumes:
	- multipart/form-data

	Produces:
	- application/json
	- text/csv

responses:
  200: ImportDBServicesCheckCsvReply
  default: body:ImportDBServicesCheckReply

deprecated: true

func (*DMSController) ImportDBServicesOfProjectsCheckV2

func (ctl *DMSController) ImportDBServicesOfProjectsCheckV2(c echo.Context) error

swagger:route POST /v2/dms/projects/import_db_services_check Project ImportDBServicesOfProjectsCheckV2

Import DBServices.

	Consumes:
	- multipart/form-data

	Produces:
	- application/json
	- text/csv

responses:
  200: ImportDBServicesCheckCsvReply
  default: body:ImportDBServicesCheckReply

func (*DMSController) ImportDBServicesOfProjectsV2

func (ctl *DMSController) ImportDBServicesOfProjectsV2(c echo.Context) error

swagger:operation POST /v2/dms/projects/import_db_services Project ImportDBServicesOfProjectsV2

Import DBServices.

--- parameters:

  • name: db_services description: new db services in: body required: true schema: "$ref": "#/definitions/ImportDBServicesOfProjectsReqV2"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) ImportProjects

func (ctl *DMSController) ImportProjects(c echo.Context) error

swagger:operation POST /v1/dms/projects/import Project ImportProjects

Import projects.

--- deprecated: true parameters:

  • name: projects description: import projects in: body required: true schema: "$ref": "#/definitions/ImportProjectsReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) ImportProjectsV2

func (ctl *DMSController) ImportProjectsV2(c echo.Context) error

swagger:operation POST /v2/dms/projects/import Project ImportProjectsV2

Import projects.

--- parameters:

  • name: projects description: import projects in: body required: true schema: "$ref": "#/definitions/ImportProjectsReqV2"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) ListAllDataExportWorkflows

func (ctl *DMSController) ListAllDataExportWorkflows(c echo.Context) error

swagger:route GET /v1/dms/projects/data_export_workflows DataExportWorkflows ListAllDataExportWorkflows

List all data_export workflow.

responses:
  200: body:ListDataExportWorkflowsReply
  default: body:GenericResp

func (*DMSController) ListBusinessTags

func (ctl *DMSController) ListBusinessTags(c echo.Context) error

swagger:route GET /v1/dms/projects/business_tags Project ListBusinessTags

List business tags.

responses:
  200: body:ListBusinessTagsReply
  default: body:GenericResp

func (*DMSController) ListCBOperationLogs

func (ctl *DMSController) ListCBOperationLogs(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/cb_operation_logs CBOperationLogs ListCBOperationLogs

List cb operation logs.

responses:
  200: body:ListCBOperationLogsReply
  default: body:GenericResp

func (*DMSController) ListDBServiceDriverOption

func (ctl *DMSController) ListDBServiceDriverOption(c echo.Context) error

swagger:route GET /v1/dms/db_services/driver_options DBService ListDBServiceDriverOption

List db service driver option.

responses:
  200: body:ListDBServiceDriverOptionReply
  default: body:GenericResp

func (*DMSController) ListDBServiceSyncTaskTips

func (ctl *DMSController) ListDBServiceSyncTaskTips(c echo.Context) error

swagger:operation GET /v1/dms/db_service_sync_tasks/tips DBServiceSyncTask ListDBServiceSyncTaskTips

List database synchronization task tips.

--- responses:

'200':
  description: ListDBServiceSyncTaskTipsReply
  schema:
    "$ref": "#/definitions/ListDBServiceSyncTaskTipsReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) ListDBServiceSyncTasks

func (ctl *DMSController) ListDBServiceSyncTasks(c echo.Context) error

swagger:operation GET /v1/dms/db_service_sync_tasks DBServiceSyncTask ListDBServiceSyncTasks

List database synchronization tasks.

--- responses:

'200':
  description: ListDBServiceSyncTasksReply
  schema:
    "$ref": "#/definitions/ListDBServiceSyncTasksReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) ListDBServiceTips

func (ctl *DMSController) ListDBServiceTips(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/db_services/tips DBService ListDBServiceTips

List db service tip.

responses:
  200: body:ListDBServiceTipsReply
  default: body:GenericResp

func (*DMSController) ListDBServices

func (ctl *DMSController) ListDBServices(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/db_services DBService ListDBServices

List db service.

responses:
  200: body:ListDBServiceReply
  default: body:GenericResp

deprecated: true

func (*DMSController) ListDBServicesV2

func (ctl *DMSController) ListDBServicesV2(c echo.Context) error

swagger:route GET /v2/dms/projects/{project_uid}/db_services DBService ListDBServicesV2

List db service.

responses:
  200: body:ListDBServiceReplyV2
  default: body:GenericResp

func (*DMSController) ListDataExportTaskSQLs

func (ctl *DMSController) ListDataExportTaskSQLs(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/data_export_tasks/{data_export_task_uid}/data_export_task_sqls DataExportTask ListDataExportTaskSQLs

List data_export workflow.

responses:
  200: body:ListDataExportTaskSQLsReply
  default: body:GenericResp

func (*DMSController) ListDataExportWorkflows

func (ctl *DMSController) ListDataExportWorkflows(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/data_export_workflows DataExportWorkflows ListDataExportWorkflows

List data_export workflow.

responses:
  200: body:ListDataExportWorkflowsReply
  default: body:GenericResp

func (*DMSController) ListEnvironmentTags

func (ctl *DMSController) ListEnvironmentTags(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/environment_tags Project ListEnvironmentTags

List environment tags.

responses:
  200: body:ListEnvironmentTagsReply
  default: body:GenericResp

func (*DMSController) ListGateways

func (ctl *DMSController) ListGateways(c echo.Context) error

swagger:route GET /v1/dms/gateways Gateway ListGateways

List gateways.

responses:
  200: body:ListGatewaysReply
  default: body:GenericResp

func (*DMSController) ListGlobalDBServices

func (ctl *DMSController) ListGlobalDBServices(c echo.Context) error

swagger:route GET /v1/dms/db_services DBService ListGlobalDBServices

list global DBServices

responses:
  200: body:ListGlobalDBServicesReply
  default: body:GenericResp

deprecated: true

func (*DMSController) ListGlobalDBServicesTips

func (ctl *DMSController) ListGlobalDBServicesTips(c echo.Context) error

swagger:route GET /v1/dms/db_services/tips DBService ListGlobalDBServicesTips

list global DBServices tips

responses:
  200: body:ListGlobalDBServicesTipsReply
  default: body:GenericResp

func (*DMSController) ListGlobalDBServicesV2

func (ctl *DMSController) ListGlobalDBServicesV2(c echo.Context) error

swagger:route GET /v2/dms/db_services DBService ListGlobalDBServicesV2

list global DBServices

responses:
  200: body:ListGlobalDBServicesReplyV2
  default: body:GenericResp

func (*DMSController) ListMaskingRules

func (ctl *DMSController) ListMaskingRules(c echo.Context) error

swagger:route GET /v1/dms/masking/rules Masking ListMaskingRules

List masking rules.

responses:
  200: body:ListMaskingRulesReply
  default: body:GenericResp

func (*DMSController) ListMemberGroupTips

func (ctl *DMSController) ListMemberGroupTips(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/member_groups/tips MemberGroup ListMemberGroupTips

List member group tips.

responses:
  200: body:ListMemberGroupTipsReply
  default: body:GenericResp

func (*DMSController) ListMemberGroups

func (ctl *DMSController) ListMemberGroups(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/member_groups MemberGroup ListMemberGroups

List member group, for front page.

responses:
  200: body:ListMemberGroupsReply
  default: body:GenericResp

func (*DMSController) ListMemberTips

func (ctl *DMSController) ListMemberTips(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/members/tips Member ListMemberTips

List member tips.

responses:
  200: body:ListMemberTipsReply
  default: body:GenericResp

func (*DMSController) ListMembers

func (ctl *DMSController) ListMembers(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/members Member ListMembers

List member, for front page.

responses:
  200: body:ListMemberReply
  default: body:GenericResp

func (*DMSController) ListMembersForInternal

func (ctl *DMSController) ListMembersForInternal(c echo.Context) error

swagger:route GET /v1/dms/projects/{project_uid}/members/internal Member ListMembersForInternal

List members, for internal backend service.

responses:
  200: body:ListMembersForInternalReply
  default: body:GenericResp

func (*DMSController) ListOpPermissions

func (ctl *DMSController) ListOpPermissions(c echo.Context) error

swagger:route GET /v1/dms/op_permissions OpPermission ListOpPermissions

List op permission.

responses:
  200: body:ListOpPermissionReply
  default: body:GenericResp

func (*DMSController) ListProjects

func (ctl *DMSController) ListProjects(c echo.Context) error

swagger:route GET /v1/dms/projects Project ListProjects

List projects.

responses:
  200: body:ListProjectReply
  default: body:GenericResp

deprecated: true

func (*DMSController) ListProjectsV2

func (ctl *DMSController) ListProjectsV2(c echo.Context) error

swagger:route GET /v2/dms/projects Project ListProjectsV2

List projects.

responses:
  200: body:ListProjectReplyV2
  default: body:GenericResp

func (*DMSController) ListRoles

func (ctl *DMSController) ListRoles(c echo.Context) error

swagger:route GET /v1/dms/roles Role ListRoles

List roles.

responses:
  200: body:ListRoleReply
  default: body:GenericResp

func (*DMSController) ListUserGroups

func (ctl *DMSController) ListUserGroups(c echo.Context) error

swagger:route GET /v1/dms/user_groups UserGroup ListUserGroups

List user groups.

responses:
  200: body:ListUserGroupReply
  default: body:GenericResp

func (*DMSController) ListUsers

func (ctl *DMSController) ListUsers(c echo.Context) error

swagger:route GET /v1/dms/users User ListUsers

List users.

responses:
  200: body:ListUserReply
  default: body:GenericResp

func (*DMSController) Notify

func (ctl *DMSController) Notify(c echo.Context) error

swagger:route POST /v1/dms/notifications Notification Notification

notify message.

responses:
  200: body:NotificationReply
  default: body:GenericResp

func (*DMSController) Oauth2LinkOrCallback

func (ctl *DMSController) Oauth2LinkOrCallback(c echo.Context) error

swagger:route GET /v1/dms/oauth2/link OAuth2 Oauth2LinkOrCallback

Oauth2 Link or Callback.

func (*DMSController) Personalization

func (ctl *DMSController) Personalization(c echo.Context) error

swagger:operation POST /v1/dms/personalization BasicInfo Personalization

personalize [title, logo].

--- parameters:

  • name: title description: title in: formData required: false type: string
  • name: file description: file upload in: formData required: false type: file

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) PreviewImportProjects

func (ctl *DMSController) PreviewImportProjects(c echo.Context) error

swagger:route POST /v1/dms/projects/preview_import Project PreviewImportProjects

Preview import projects.

Consumes:
- multipart/form-data

responses:
  200: PreviewImportProjectsReply
  default: body:GenericResp

deprecated: true

func (*DMSController) PreviewImportProjectsV2

func (ctl *DMSController) PreviewImportProjectsV2(c echo.Context) error

swagger:route POST /v2/dms/projects/preview_import Project PreviewImportProjectsV2

Preview import projects.

Consumes:
- multipart/form-data

responses:
  200: PreviewImportProjectsReplyV2
  default: body:GenericResp

func (*DMSController) RefreshSession

func (ctl *DMSController) RefreshSession(c echo.Context) error

swagger:operation POST /v1/dms/sessions/refresh Session RefreshSession

refresh a session.

--- responses:

'200':
  description: RefreshSession reply
  schema:
    "$ref": "#/definitions/AddSessionReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) RegisterDMSPlugin

func (ctl *DMSController) RegisterDMSPlugin(c echo.Context) error

swagger:operation POST /v1/dms/plugins DMSPlugin RegisterDMSPlugin

Register dms plugin.

--- parameters:

  • name: plugin description: Register dms plugin required: true in: body schema: "$ref": "#/definitions/RegisterDMSPluginReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) RegisterDMSProxyTarget

func (ctl *DMSController) RegisterDMSProxyTarget(c echo.Context) error

swagger:operation POST /v1/dms/proxys DMSProxy RegisterDMSProxyTarget

Register dms proxy target.

--- parameters:

  • name: dms_proxy_target description: register dms proxy required: true in: body schema: "$ref": "#/definitions/RegisterDMSProxyTargetReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) RejectDataExportWorkflow

func (ctl *DMSController) RejectDataExportWorkflow(c echo.Context) error

swagger:operation POST /v1/dms/projects/{project_uid}/data_export_workflows/{data_export_workflow_uid}/reject DataExportWorkflows RejectDataExportWorkflow

Reject data_export workflow.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: data_export_workflow_uid in: path required: true type: string
  • name: payload required: true in: body schema: "$ref": "#/definitions/RejectDataExportWorkflowReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) SendSmsCode

func (ctl *DMSController) SendSmsCode(context echo.Context) error

swagger:operation POST /v1/dms/configurations/sms/send_code SMS SendSmsCode

send sms code.

--- parameters:

  • name: username description: user name required: true in: body schema: "$ref": "#/definitions/SendSmsCodeReq"

responses:

'200':
  description: SendSmsCodeReply
  schema:
    "$ref": "#/definitions/SendSmsCodeReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) SetLicense

func (ctl *DMSController) SetLicense(c echo.Context) error

swagger:route POST /v1/dms/configurations/license Configuration SetLicense

import license.

 Consumes:
 - multipart/form-data

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) Shutdown

func (ctl *DMSController) Shutdown() error

func (*DMSController) SwaggerHandler

func (ctl *DMSController) SwaggerHandler(c echo.Context) error

func (*DMSController) SyncDBServices

func (ctl *DMSController) SyncDBServices(c echo.Context) error

swagger:operation POST /v1/dms/db_service_sync_tasks/{db_service_sync_task_uid}/sync DBServiceSyncTask SyncDBServices

Sync db service.

--- parameters:

  • name: db_service_sync_task_uid description: db service sync task uid in: path required: true type: string

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) SyncGateways

func (ctl *DMSController) SyncGateways(c echo.Context) error

func (*DMSController) TestFeishuConfig

func (ctl *DMSController) TestFeishuConfig(c echo.Context) error

swagger:operation POST /v1/dms/configurations/feishu/test Configuration TestFeishuConfiguration

test feishu configuration.

--- parameters:

  • name: test_feishu_configuration description: test feishu configuration required: true in: body schema: "$ref": "#/definitions/TestFeishuConfigurationReq"

responses:

'200':
  description: TestFeishuConfigurationReply
  schema:
    "$ref": "#/definitions/TestFeishuConfigurationReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) TestSMTPConfiguration

func (ctl *DMSController) TestSMTPConfiguration(c echo.Context) error

swagger:operation POST /v1/dms/configurations/smtp/test Configuration TestSMTPConfiguration

test smtp configuration.

--- parameters:

  • name: test_smtp_configuration description: test smtp configuration required: true in: body schema: "$ref": "#/definitions/TestSMTPConfigurationReq"

responses:

'200':
  description: TestSMTPConfigurationReply
  schema:
    "$ref": "#/definitions/TestSMTPConfigurationReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) TestSmsConfiguration

func (ctl *DMSController) TestSmsConfiguration(context echo.Context) error

swagger:operation POST /v1/dms/configurations/sms/test Configuration TestSmsConfiguration

test smtp configuration.

--- parameters:

  • name: test_sms_configuration description: test sms configuration required: true in: body schema: "$ref": "#/definitions/TestSmsConfigurationReq"

responses:

'200':
  description: TestSmsConfigurationReply
  schema:
    "$ref": "#/definitions/TestSmsConfigurationReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) TestWeChatConfiguration

func (ctl *DMSController) TestWeChatConfiguration(c echo.Context) error

swagger:operation POST /v1/dms/configurations/wechat/test Configuration TestWeChatConfiguration

test wechat configuration.

--- parameters:

  • name: test_wechat_configuration description: test wechat configuration in: body schema: "$ref": "#/definitions/TestWeChatConfigurationReq"

responses:

'200':
  description: TestWeChatConfigurationReply
  schema:
    "$ref": "#/definitions/TestWeChatConfigurationReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) TestWebHookConfiguration

func (ctl *DMSController) TestWebHookConfiguration(c echo.Context) error

swagger:route POST /v1/dms/configurations/webhook/test Configuration TestWebHookConfiguration

test webhook configuration.

responses:
  200: body:TestWebHookConfigurationReply
  default: body:GenericResp

func (*DMSController) UnarchiveProject

func (ctl *DMSController) UnarchiveProject(c echo.Context) error

swagger:route PUT /v1/dms/projects/{project_uid}/unarchive Project UnarchiveProject

Unarchive a project.

responses:
  200: body:GenericResp
  default: body:GenericResp

func (*DMSController) UpdateBusinessTag

func (ctl *DMSController) UpdateBusinessTag(c echo.Context) error

swagger:operation PUT /v1/dms/projects/business_tags/{business_tag_uid} Project UpdateBusinessTag

Update an existing business tag.

--- parameters:

  • name: business_tag_uid description: business tag id in: path required: true type: string
  • name: business_tag description: the business tag to be updated required: true in: body schema: "$ref": "#/definitions/UpdateBusinessTagReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateCompanyNotice

func (ctl *DMSController) UpdateCompanyNotice(c echo.Context) error

swagger:operation PATCH /v1/dms/company_notice CompanyNotice UpdateCompanyNotice

update company notice info

--- parameters:

  • name: company_notice description: Update a companynotice required: true in: body schema: "$ref": "#/definitions/UpdateCompanyNoticeReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateCurrentUser

func (ctl *DMSController) UpdateCurrentUser(c echo.Context) error

swagger:operation PUT /v1/dms/users User UpdateCurrentUser

Update current user.

--- parameters:

  • name: current_user description: Update current user required: true in: body schema: "$ref": "#/definitions/UpdateCurrentUserReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateDBService

func (ctl *DMSController) UpdateDBService(c echo.Context) error

swagger:operation PUT /v1/dms/projects/{project_uid}/db_services/{db_service_uid} DBService UpdateDBService

update a DB Service.

--- deprecated: true parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: db_service_uid description: db_service_uid id in: path required: true type: string
  • name: db_service description: Update a DB service in: body schema: "$ref": "#/definitions/UpdateDBServiceReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateDBServiceSyncTask

func (ctl *DMSController) UpdateDBServiceSyncTask(c echo.Context) error

swagger:operation PUT /v1/dms/db_service_sync_tasks/{db_service_sync_task_uid} DBServiceSyncTask UpdateDBServiceSyncTask

update database synchronization task.

--- parameters:

  • name: db_service_sync_task_uid description: db service sync task uid in: path required: true type: string
  • name: db_service_sync_task description: update db service sync task in: body required: true schema: "$ref": "#/definitions/UpdateDBServiceSyncTaskReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateDBServiceV2

func (ctl *DMSController) UpdateDBServiceV2(c echo.Context) error

swagger:operation PUT /v2/dms/projects/{project_uid}/db_services/{db_service_uid} DBService UpdateDBServiceV2

update a DB Service.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: db_service_uid description: db_service_uid id in: path required: true type: string
  • name: db_service description: Update a DB service in: body schema: "$ref": "#/definitions/UpdateDBServiceReqV2"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateEnvironmentTag

func (ctl *DMSController) UpdateEnvironmentTag(c echo.Context) error

swagger:operation PUT /v1/dms/projects/{project_uid}/environment_tags/{environment_tag_uid} Project UpdateEnvironmentTag

Update an existing environment tag.

--- parameters:

  • name: project_uid description: project uid in: path required: true type: string
  • name: environment_tag_uid description: environment tag id in: path required: true type: string
  • name: environment_name description: the name of environment tag to be updated required: true in: body type: string

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateFeishuConfiguration

func (ctl *DMSController) UpdateFeishuConfiguration(c echo.Context) error

swagger:operation PATCH /v1/dms/configurations/feishu Configuration UpdateFeishuConfiguration

update feishu configuration.

--- parameters:

  • name: update_feishu_configuration description: update feishu configuration in: body schema: "$ref": "#/definitions/UpdateFeishuConfigurationReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateGateway

func (ctl *DMSController) UpdateGateway(c echo.Context) error

swagger:operation PUT /v1/dms/gateways/{gateway_id} Gateway UpdateGateway

update gateways.

--- parameters:

  • name: gateway_id description: gateway id in: path required: true type: string
  • name: update_gateway description: update gateway in: body required: true schema: "$ref": "#/definitions/UpdateGatewayReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateLDAPConfiguration

func (ctl *DMSController) UpdateLDAPConfiguration(c echo.Context) error

swagger:operation PATCH /v1/dms/configurations/ldap Configuration UpdateLDAPConfiguration

Update ldap configuration.

--- parameters:

  • name: ldap description: update ldap configuration required: true in: body schema: "$ref": "#/definitions/UpdateLDAPConfigurationReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateLoginConfiguration

func (ctl *DMSController) UpdateLoginConfiguration(c echo.Context) error

swagger:operation PATCH /v1/dms/configurations/login Configuration UpdateLoginConfiguration

Update login configuration.

--- parameters:

  • name: login description: update login configuration required: true in: body schema: "$ref": "#/definitions/UpdateLoginConfigurationReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateMember

func (ctl *DMSController) UpdateMember(c echo.Context) error

swagger:operation PUT /v1/dms/projects/{project_uid}/members/{member_uid} Member UpdateMember

Update a member.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: member_uid description: Member uid in: path required: true type: string
  • name: member description: Update a member required: true in: body schema: "$ref": "#/definitions/UpdateMemberReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateMemberGroup

func (ctl *DMSController) UpdateMemberGroup(c echo.Context) error

swagger:operation PUT /v1/dms/projects/{project_uid}/member_groups/{member_group_uid} MemberGroup UpdateMemberGroup

update member group, for front page.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: member_group_uid description: Member group id in: path required: true type: string
  • name: member_group description: Update a member group required: true in: body schema: "$ref": "#/definitions/UpdateMemberGroupReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateOauth2Configuration

func (ctl *DMSController) UpdateOauth2Configuration(c echo.Context) error

swagger:operation PATCH /v1/dms/configurations/oauth2 Configuration UpdateOauth2Configuration

Update Oauth2 configuration..

--- parameters:

  • name: oauth2 description: update oauth2 configuration required: true in: body schema: "$ref": "#/definitions/Oauth2ConfigurationReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateProject

func (ctl *DMSController) UpdateProject(c echo.Context) error

swagger:operation PUT /v1/dms/projects/{project_uid} Project UpdateProject

update a project.

--- deprecated: true parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: project description: Update a project required: true in: body schema: "$ref": "#/definitions/UpdateProjectReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateProjectV2

func (ctl *DMSController) UpdateProjectV2(c echo.Context) error

swagger:operation PUT /v2/dms/projects/{project_uid} Project UpdateProjectV2

update a project.

--- parameters:

  • name: project_uid description: project id in: path required: true type: string
  • name: project description: Update a project required: true in: body schema: "$ref": "#/definitions/UpdateProjectReqV2"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateRole

func (ctl *DMSController) UpdateRole(c echo.Context) error

swagger:operation PUT /v1/dms/roles/{role_uid} Role UpdateRole

Update a role.

--- parameters:

  • name: role_uid description: Role uid in: path required: true type: string
  • name: role description: Update a role required: true in: body schema: "$ref": "#/definitions/UpdateRoleReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateSMTPConfiguration

func (ctl *DMSController) UpdateSMTPConfiguration(c echo.Context) error

swagger:operation PATCH /v1/dms/configurations/smtp Configuration UpdateSMTPConfiguration

Update smtp configuration.

--- parameters:

  • name: smtp_configuration description: update smtp configuration required: true in: body schema: "$ref": "#/definitions/UpdateSMTPConfigurationReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateSmsConfiguration

func (ctl *DMSController) UpdateSmsConfiguration(context echo.Context) error

swagger:operation PATCH /v1/dms/configurations/sms Configuration UpdateSmsConfiguration

update sms configuration.

--- parameters:

  • name: update_sms_configuration description: update sms configuration required: true in: body schema: "$ref": "#/definitions/UpdateSmsConfigurationReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateSystemVariables

func (ctl *DMSController) UpdateSystemVariables(c echo.Context) error

swagger:operation PATCH /v1/dms/configurations/system_variables Configuration UpdateSystemVariables

更新系统变量配置

--- parameters:

  • name: system_variables description: 更新系统变量配置 required: true in: body schema: "$ref": "#/definitions/UpdateSystemVariablesReqV1"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateUser

func (ctl *DMSController) UpdateUser(c echo.Context) error

swagger:operation PUT /v1/dms/users/{user_uid} User UpdateUser

Update a user.

--- parameters:

  • name: user_uid description: User uid in: path required: true type: string
  • name: user description: Update a user in: body schema: "$ref": "#/definitions/UpdateUserReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateUserGroup

func (ctl *DMSController) UpdateUserGroup(c echo.Context) error

swagger:operation PUT /v1/dms/user_groups/{user_group_uid} UserGroup UpdateUserGroup

Update a user group.

--- parameters:

  • name: user_group_uid description: UserGroup uid in: path required: true type: string
  • name: user_group description: Update a user group required: true in: body schema: "$ref": "#/definitions/UpdateUserGroupReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateWeChatConfiguration

func (ctl *DMSController) UpdateWeChatConfiguration(c echo.Context) error

swagger:operation PATCH /v1/dms/configurations/wechat Configuration UpdateWeChatConfiguration

update wechat configuration.

--- parameters:

  • name: update_wechat_configuration description: update wechat configuration in: body schema: "$ref": "#/definitions/UpdateWeChatConfigurationReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) UpdateWebHookConfiguration

func (ctl *DMSController) UpdateWebHookConfiguration(c echo.Context) error

swagger:operation PATCH /v1/dms/configurations/webhook Configuration UpdateWebHookConfiguration

update webhook configuration.

--- parameters:

  • name: webhook_config description: webhook configuration in: body schema: "$ref": "#/definitions/UpdateWebHookConfigurationReq"

responses:

'200':
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) VerifySmsCode

func (ctl *DMSController) VerifySmsCode(context echo.Context) error

swagger:operation POST /v1/dms/configurations/sms/verify_code SMS VerifySmsCode

verify sms code.

--- parameters:

  • name: code description: verify sms code required: true in: body schema: "$ref": "#/definitions/VerifySmsCodeReq"
  • name: username description: user name required: true in: body schema: "$ref": "#/definitions/VerifySmsCodeReq"

responses:

'200':
  description: VerifySmsCodeReply
  schema:
    "$ref": "#/definitions/VerifySmsCodeReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) VerifyUserLogin

func (ctl *DMSController) VerifyUserLogin(c echo.Context) error

swagger:operation POST /v1/dms/users/verify_user_login User VerifyUserLogin

Verify user login.

--- parameters:

  • name: session in: body required: true description: Add a new session schema: "$ref": "#/definitions/AddSessionReq"

responses:

'200':
  description: VerifyUserLoginReply
  schema:
    "$ref": "#/definitions/VerifyUserLoginReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

func (*DMSController) WebHookSendMessage

func (ctl *DMSController) WebHookSendMessage(c echo.Context) error

swagger:operation POST /v1/dms/webhooks Webhook WebHookSendMessage

webhook send message.

--- parameters:

  • name: webhook_message description: webhooks required: true in: body schema: "$ref": "#/definitions/WebHookSendMessageReq"

responses:

'200':
  description: WebHookSendMessageReply
  schema:
    "$ref": "#/definitions/WebHookSendMessageReply"
default:
  description: GenericResp
  schema:
    "$ref": "#/definitions/GenericResp"

type SqlWorkbenchController

type SqlWorkbenchController struct {
	CloudbeaverService  *service.CloudbeaverService
	SqlWorkbenchService *sql_workbench.SqlWorkbenchService
	// contains filtered or unexported fields
}

func NewSqlWorkbenchController

func NewSqlWorkbenchController(logger utilLog.Logger, opts *conf.DMSOptions) (*SqlWorkbenchController, error)

func (*SqlWorkbenchController) GetSQLQueryConfiguration

func (cc *SqlWorkbenchController) GetSQLQueryConfiguration(c echo.Context) error

swagger:route GET /v1/dms/configurations/sql_query CloudBeaver GetSQLQueryConfiguration

get sql_query configuration.

responses:
  200: body:GetSQLQueryConfigurationReply
  default: body:GenericResp

func (*SqlWorkbenchController) Shutdown

func (cc *SqlWorkbenchController) Shutdown() error

Jump to

Keyboard shortcuts

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