handler

package
v0.0.0-...-08474b0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCtrl

type AccountCtrl struct {
	BaseCtrl
	AccountService *service.AccountService `inject:""`
	UserRepo       *repo.UserRepo          `inject:""`
}

func (*AccountCtrl) ForgotPassword

func (c *AccountCtrl) ForgotPassword(ctx iris.Context)

ForgotPassword @Tags 认证模块 @summary 忘记密码 @accept application/json @Produce application/json @Param usernameOrPassword query string true "用户名或者密码" @success 200 {object} _domain.Response @Router /api/v1/account/forgotPassword [post] @x-creator "wangzhen"

func (*AccountCtrl) Login

func (c *AccountCtrl) Login(ctx iris.Context)

Login @Tags 认证模块 @summary 登录 @accept application/json @Produce application/json @Param LoginReq body serverDomain.LoginReq true "登录的请求体" @success 200 {object} _domain.Response{data=serverDomain.LoginResp} @Router /api/v1/account/login [post]

func (*AccountCtrl) Register

func (c *AccountCtrl) Register(ctx iris.Context)

Register @Tags 认证模块 @summary 注册 @accept application/json @Produce application/json @Param RegisterReq body serverDomain.RegisterReq true "注册的请求体" @success 200 {object} _domain.Response @Router /api/v1/account/register [post]

func (*AccountCtrl) ResetPassword

func (c *AccountCtrl) ResetPassword(ctx iris.Context)

ResetPassword @Tags 认证模块 @summary 重置密码 @accept application/json @Produce application/json @Param ResetPasswordReq body serverDomain.ResetPasswordReq true "重置密码的参数" @success 200 {object} _domain.Response @Router /api/v1/account/resetPassword [post]

type AuthCtrl

type AuthCtrl struct {
	AuthService      *service2.AuthService      `inject:""`
	WebSocketService *service2.WebSocketService `inject:""`
	BaseCtrl
}

func (*AuthCtrl) GetOAuth2AccessToken

func (c *AuthCtrl) GetOAuth2AccessToken(ctx iris.Context)

GetOAuth2AccessToken @Tags 授权模块 @summary 调用认证服务生成访问令牌 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param accessTokenURL query string true "accessTokenURL" @Param clientId query string true "clientId" @Param clientSecret query string true "clientSecret" @Param code query string true "code" @success 200 {object} _domain.Response{data=iris.Map{}} @Router /api/v1/auth/getOAuth2AccessToken [post]

func (*AuthCtrl) ListOAuth2Token

func (c *AuthCtrl) ListOAuth2Token(ctx iris.Context)

ListOAuth2Token @Tags 授权模块 @summary 加载访问令牌到接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=[]model.Auth2Token} @Router /api/v1/auth/listOAuth2Token [get]

func (*AuthCtrl) OAuth2Authorization

func (c *AuthCtrl) OAuth2Authorization(ctx iris.Context)

OAuth2Authorization @Tags 授权模块 @summary 生成OAuth认证信息 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugInterfaceOAuth20 body model.DebugInterfaceOAuth20 true "生成OAuth认证信息的请求体" @success 200 {object} _domain.Response{data=object{url=string}} @Router /api/v1/auth/oauth2Authorization [post]

func (*AuthCtrl) RemoveToken

func (c *AuthCtrl) RemoveToken(ctx iris.Context)

RemoveToken @Tags 授权模块 @summary 删除访问令牌 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "token id" @success 200 {object} _domain.Response @Router /api/v1/auth/removeToken [get]

func (*AuthCtrl) UseOAuth2AccessToken

func (c *AuthCtrl) UseOAuth2AccessToken(ctx iris.Context)

UseOAuth2AccessToken @Tags 授权模块 @summary 加载访问令牌到接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param interfaceId query int true "接口ID" @Param name query string true "name" @Param token query string true "token" @Param tokenType query string true "tokenType" @success 200 {object} _domain.Response{data=object{token=string,tokenType=string}} @Router /api/v1/auth/useOAuth2AccessToken [post]

type BaseCtrl

type BaseCtrl struct {
}

func (*BaseCtrl) WriteRespByContentType

func (c *BaseCtrl) WriteRespByContentType(resp mockGenerator.Response, ctx iris.Context)

type CategoryCtrl

type CategoryCtrl struct {
	CategoryService *service.CategoryService `inject:""`
	BaseCtrl
}

func (*CategoryCtrl) BatchAddSchemaRoot

func (c *CategoryCtrl) BatchAddSchemaRoot(ctx iris.Context)

func (*CategoryCtrl) Copy

func (c *CategoryCtrl) Copy(ctx iris.Context)

Copy 详情 @Tags 分类管理 @summary 复制分类 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param id path int true "分类ID" @success 200 {object} _domain.Response{} @Router /api/v1/categories/copy/{id} [get]

func (*CategoryCtrl) Create

func (c *CategoryCtrl) Create(ctx iris.Context)

Create 添加 @Tags 分类管理 @summary 新建分类 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param CategoryCreateReq body serverDomain.CategoryCreateReq true "新建分类的请求体" @success 200 {object} _domain.Response{data=model.Category} @Router /api/v1/categories [post]

func (*CategoryCtrl) Delete

func (c *CategoryCtrl) Delete(ctx iris.Context)

Delete 删除 @Tags 分类管理 @summary 删除节点 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "分类ID" @Param type query serverConsts.CategoryDiscriminator true "类型" @success 200 {object} _domain.Response @Router /api/v1/categories/{id} [delete]

func (*CategoryCtrl) Get

func (c *CategoryCtrl) Get(ctx iris.Context)

Get 详情 LoadTree @Tags 分类管理 @summary 分类详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "分类ID" @success 200 {object} _domain.Response{data=model.Category} @Router /api/v1/categories/{id} [get]

func (*CategoryCtrl) LoadChildren

func (c *CategoryCtrl) LoadChildren(ctx iris.Context)

func (*CategoryCtrl) LoadTree

func (c *CategoryCtrl) LoadTree(ctx iris.Context)

LoadTree @Tags 分类管理 @summary 分类树状数据 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param type query int true "类型" @Param serveId query int true "服务ID" @success 200 {object} _domain.Response{data=serverDomain.Category} @Router /api/v1/categories/load [get]

func (*CategoryCtrl) Move

func (c *CategoryCtrl) Move(ctx iris.Context)

Move 移动 @Tags 分类管理 @summary 移动节点 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param CategoryMoveReq body serverDomain.CategoryMoveReq true "移动节点的请求体" @success 200 {object} _domain.Response @Router /api/v1/categories/move [post]

func (*CategoryCtrl) Update

func (c *CategoryCtrl) Update(ctx iris.Context)

Update 更新 @Tags 分类管理 @summary 更新分类 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param CategoryReq body serverDomain.CategoryReq true "新建分类的请求体" @success 200 {object} _domain.Response{data=serverDomain.CategoryReq} @Router /api/v1/categories [put]

func (*CategoryCtrl) UpdateName

func (c *CategoryCtrl) UpdateName(ctx iris.Context)

UpdateName 更新 @Tags 分类管理 @summary 更新节点名称 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "分类ID" @Param CategoryReq body serverDomain.CategoryReq true "更新节点名称的请求体" @success 200 {object} _domain.Response @Router /api/v1/categories/{id}/updateName [put]

type CheckpointCtrl

type CheckpointCtrl struct {
	CheckpointService *service.CheckpointService `inject:""`
	BaseCtrl
}

func (*CheckpointCtrl) Get

func (c *CheckpointCtrl) Get(ctx iris.Context)

Get 详情 @Tags 检查点 @summary 检查点详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "检查点ID" @success 200 {object} _domain.Response{data=model.DebugConditionCheckpoint} @Router /api/v1/checkpoints/{id} [get]

func (*CheckpointCtrl) Update

func (c *CheckpointCtrl) Update(ctx iris.Context)

Update 更新 @Tags 检查点 @summary 更新检查点 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugInterfaceCheckpoint body model.DebugConditionCheckpoint true "更新检查点的请求体" @success 200 {object} _domain.Response @Router /api/v1/checkpoints [put]

type ComponentCtrl

type ComponentCtrl struct {
}

func (*ComponentCtrl) Detail

func (c *ComponentCtrl) Detail(ctx iris.Context)

func (*ComponentCtrl) Save

func (c *ComponentCtrl) Save(ctx iris.Context)

type ConditionCtrl

type ConditionCtrl struct {
	ConditionService *service.ConditionService `inject:""`
	BaseCtrl
}

func (*ConditionCtrl) Create

func (c *ConditionCtrl) Create(ctx iris.Context)

Create 添加

func (*ConditionCtrl) Delete

func (c *ConditionCtrl) Delete(ctx iris.Context)

Delete 删除

func (*ConditionCtrl) Disable

func (c *ConditionCtrl) Disable(ctx iris.Context)

Disable 禁用

func (*ConditionCtrl) List

func (c *ConditionCtrl) List(ctx iris.Context)

List

func (*ConditionCtrl) Move

func (c *ConditionCtrl) Move(ctx iris.Context)

Move 移动

func (*ConditionCtrl) ResetForCase

func (c *ConditionCtrl) ResetForCase(ctx iris.Context)

type ConfigCtrl

type ConfigCtrl struct {
	BaseCtrl
	ConfigService *service.ConfigService `inject:""`
}

func (*ConfigCtrl) Get

func (c *ConfigCtrl) Get(ctx iris.Context)

Get @Tags 配置 @summary 获取服务端配置 @accept application/json @Produce application/json @success 200 {object} _domain.Response{data=object{demoTestSite=string}} @Router /api/v1/configs [get]

func (*ConfigCtrl) GetValue

func (c *ConfigCtrl) GetValue(ctx iris.Context)

func (*ConfigCtrl) Save

func (c *ConfigCtrl) Save(ctx iris.Context)

type DataCtrl

type DataCtrl struct {
	BaseCtrl
	DataService *service.DataService `inject:""`
}

func (*DataCtrl) Check

func (c *DataCtrl) Check(ctx iris.Context)

Check 检测是否需要初始化项目 @Tags 初始化模块 @summary 检测是否需要初始化项目 @accept application/json @Produce application/json @success 200 {object} _domain.Response{data=object{needInit=bool}} @Router /api/v1/init/checkdb [get]

func (*DataCtrl) Init

func (c *DataCtrl) Init(ctx iris.Context)

Init 初始化项目接口 @Tags 初始化模块 @summary 初始化项目 @accept application/json @Produce application/json @Param DataReq body serverDomain.DataReq true "初始化项目的请求体" @success 200 {object} _domain.Response @Router /api/v1/init/initdb [post]

type DatabaseConnCtrl

type DatabaseConnCtrl struct {
	DatabaseConnService *service.DatabaseConnService `inject:""`
	BaseCtrl
}

func (*DatabaseConnCtrl) Delete

func (c *DatabaseConnCtrl) Delete(ctx iris.Context)

Delete 删除 @Tags 数据库连接 @summary 删除数据库连接 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param id path int true "数据库连接ID" @success 200 {object} _domain.Response @Router /api/v1/dbconns/{id} [delete]

func (*DatabaseConnCtrl) Disable

func (c *DatabaseConnCtrl) Disable(ctx iris.Context)

Disable 禁用 @Tags 数据库连接 @summary 禁用数据库连接 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "数据库连接ID" @success 200 {object} _domain.Response @Router /api/v1/dbconns/{id}/disable [put]

func (*DatabaseConnCtrl) Get

func (c *DatabaseConnCtrl) Get(ctx iris.Context)

Get 详情 @Tags 数据库连接 @summary 数据库连接详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param id path int true "数据库连接ID" @success 200 {object} _domain.Response{data=model.DatabaseConn} @Router /api/v1/dbconns/{id} [get]

func (*DatabaseConnCtrl) List

func (c *DatabaseConnCtrl) List(ctx iris.Context)

List @Tags 数据库连接 @summary 数据库连接列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param envId query int true "当前环境ID" @success 200 {object} _domain.Response{data=[]model.DatabaseConn} @Router /api/v1/dbconns [get]

func (*DatabaseConnCtrl) Save

func (c *DatabaseConnCtrl) Save(ctx iris.Context)

Save 保存 @Tags 数据库连接 @summary 保存数据库连接 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param DatabaseConn body model.DatabaseConn true "更新数据库连接的请求体" @success 200 {object} _domain.Response @Router /api/v1/dbconns [post]

func (*DatabaseConnCtrl) UpdateName

func (c *DatabaseConnCtrl) UpdateName(ctx iris.Context)

type DatabaseOptCtrl

type DatabaseOptCtrl struct {
	DatabaseOptService *service.DatabaseOptService `inject:""`
	BaseCtrl
}

func (*DatabaseOptCtrl) Get

func (c *DatabaseOptCtrl) Get(ctx iris.Context)

Get 详情 @Tags 数据库操作 @summary 数据库操作详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param id path int true "数据库操作ID" @success 200 {object} _domain.Response{data=model.DebugConditionDatabaseOpt} @Router /api/v1/databaseOpts/{id} [get]

func (*DatabaseOptCtrl) Update

func (c *DatabaseOptCtrl) Update(ctx iris.Context)

Update 更新 @Tags 数据库连接 @summary 更新数据库连接 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param DebugInterfaceCheckpoint body model.DebugConditionDatabaseOpt true "更新数据库连接的请求体" @success 200 {object} _domain.Response @Router /api/v1/checkpoints [put]

type DatapoolCtrl

type DatapoolCtrl struct {
	DatapoolService *service.DatapoolService `inject:""`
	BaseCtrl
}

func (*DatapoolCtrl) Delete

func (c *DatapoolCtrl) Delete(ctx iris.Context)

Delete @Tags 数据池 @summary 删除数据池 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "数据池ID" @success 200 {object} _domain.Response @Router /api/v1/datapools/{id} [delete]

func (*DatapoolCtrl) Disable

func (c *DatapoolCtrl) Disable(ctx iris.Context)

Disable @Tags 数据池 @summary 禁用数据池 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "数据池ID" @Param Datapool body model.Datapool true "保存数据池的请求体" @success 200 {object} _domain.Response @Router /api/v1/datapools/{id}/disable [put]

func (*DatapoolCtrl) Get

func (c *DatapoolCtrl) Get(ctx iris.Context)

Get @Tags 数据池 @summary 数据池详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "数据池ID" @success 200 {object} _domain.Response{data=model.Datapool} @Router /api/v1/datapools/{id} [get]

func (*DatapoolCtrl) Index

func (c *DatapoolCtrl) Index(ctx iris.Context)

Index @Tags 数据池 @summary 数据池列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DatapoolReqPaginate body serverDomain.DatapoolReqPaginate true "获取数据池列表的请求体" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.Datapool}} @Router /api/v1/datapools/index [post]

func (*DatapoolCtrl) Save

func (c *DatapoolCtrl) Save(ctx iris.Context)

Save @Tags 数据池 @summary 保存数据池 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param Datapool body model.Datapool true "保存数据池的请求体" @success 200 {object} _domain.Response @Router /api/v1/datapools/save [post]

type DebugInterfaceCtrl

type DebugInterfaceCtrl struct {
	EndpointCaseService   *service.EndpointCaseService   `inject:""`
	DebugInterfaceService *service.DebugInterfaceService `inject:""`
	ExtractorService      *service.ExtractorService      `inject:""`
	CheckpointService     *service.CheckpointService     `inject:""`

	BaseCtrl
}

func (*DebugInterfaceCtrl) Load

func (c *DebugInterfaceCtrl) Load(ctx iris.Context)

Load @Tags 接口调试 @summary 获取调试接口请求 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugReq body domain.DebugInfo true "获取调试接口请求的请求体" @success 200 {object} _domain.Response{data=domain.DebugData} @Router /api/v1/debugs/interface/load [post]

func (*DebugInterfaceCtrl) LoadCurl

func (c *DebugInterfaceCtrl) LoadCurl(ctx iris.Context)

LoadCurl 导入cURL命令 @Tags 快捷调试 @summary 获取cURL命令 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DiagnoseCurlLoadReq body serverDomain.DiagnoseCurlLoadReq true "导入cURL命令的请求体" @success 200 {object} _domain.Response{data=string} @Router /api/v1/debugs/interface/loadCurl [post]

func (*DebugInterfaceCtrl) LoadForExec

func (c *DebugInterfaceCtrl) LoadForExec(ctx iris.Context)

LoadForExec @Tags 接口调试 @summary 获取调试接口用于执行 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugReq body domain.DebugInfo true "获取调试接口用于执行的请求体" @success 200 {object} _domain.Response{data=agentExec.InterfaceExecObj} @Router /api/v1/debugs/interface/loadForExec [post]

func (*DebugInterfaceCtrl) Save

func (c *DebugInterfaceCtrl) Save(ctx iris.Context)

Save @Tags 接口调试 @summary 保存调试接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugReq body domain.DebugData true "保存调试接口的请求体" @success 200 {object} _domain.Response{data=agentExec.InterfaceExecObj} @Router /api/v1/debugs/interface/save [post]

func (*DebugInterfaceCtrl) SaveAsCase

func (c *DebugInterfaceCtrl) SaveAsCase(ctx iris.Context)

SaveAsCase

type DebugInvokeCtrl

type DebugInvokeCtrl struct {
	DebugInvokeService *service.DebugInvokeService `inject:""`
	ExtractorService   *service.ExtractorService   `inject:""`
	CheckpointService  *service.CheckpointService  `inject:""`
	BaseCtrl
}

func (*DebugInvokeCtrl) Delete

func (c *DebugInvokeCtrl) Delete(ctx iris.Context)

Delete 删除 @Tags 接口调试 @summary 删除调试记录 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "id" @success 200 {object} _domain.Response @Router /api/v1/debugs/invoke/{id} [delete]

func (*DebugInvokeCtrl) GetAsInterface

func (c *DebugInvokeCtrl) GetAsInterface(ctx iris.Context)

GetAsInterface 详情 @Tags 接口调试 @summary 调试记录详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "id" @success 200 {object} _domain.Response{data=object{debugData=domain.DebugData,resp=domain.DebugResponse}} @Router /api/v1/debugs/invoke/{id} [get]

func (*DebugInvokeCtrl) GetLastResp

func (c *DebugInvokeCtrl) GetLastResp(ctx iris.Context)

GetLastResp @Tags 接口调试 @summary 获取最后调试记录响应 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param debugInterfaceId query int true "debugInterfaceId" @Param endpointInterfaceId query int true "endpointInterfaceId" @success 200 {object} _domain.Response{data=domain.DebugResponse} @Router /api/v1/debugs/invoke/getLastResp [get]

func (*DebugInvokeCtrl) GetLog

func (c *DebugInvokeCtrl) GetLog(ctx iris.Context)

GetLog 获取调用日志

func (*DebugInvokeCtrl) GetResult

func (c *DebugInvokeCtrl) GetResult(ctx iris.Context)

GetResult 获取调用结果细节

func (*DebugInvokeCtrl) List

func (c *DebugInvokeCtrl) List(ctx iris.Context)

List @Tags 接口调试 @summary 调试记录列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param debugInterfaceId query int true "debugInterfaceId" @Param endpointInterfaceId query int true "endpointInterfaceId" @success 200 {object} _domain.Response{data=[]model.DebugInvoke} @Router /api/v1/debugs/invoke [get]

func (*DebugInvokeCtrl) SubmitResult

func (c *DebugInvokeCtrl) SubmitResult(ctx iris.Context)

SubmitResult @Tags 接口调试 @summary Agent提交接口执行结果 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param SubmitDebugResultRequest body domain.SubmitDebugResultRequest true "Agent提交接口执行结果的请求体" @success 200 {object} _domain.Response @Router /api/v1/debugs/invoke/submitResult [post]

type DiagnoseInterfaceCtrl

type DiagnoseInterfaceCtrl struct {
	DiagnoseInterfaceService *service.DiagnoseInterfaceService `inject:""`
	ExtractorService         *service.ExtractorService         `inject:""`
	CheckpointService        *service.CheckpointService        `inject:""`

	DebugInterfaceService *service.DebugInterfaceService `inject:""`

	BaseCtrl
}

func (*DiagnoseInterfaceCtrl) Delete

func (c *DiagnoseInterfaceCtrl) Delete(ctx iris.Context)

Delete @Tags 快捷调试 @summary 删除测试接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "调试接口的id" @Param type query string true "type" @success 200 {object} _domain.Response @Router /api/v1/diagnoseInterfaces/{id} [delete]

func (*DiagnoseInterfaceCtrl) Get

func (c *DiagnoseInterfaceCtrl) Get(ctx iris.Context)

Get @Tags 快捷调试 @summary 获取测试接口详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "调试接口的id" @success 200 {object} _domain.Response{data=model.DiagnoseInterface} @Router /api/v1/diagnoseInterfaces/{id} [get]

func (*DiagnoseInterfaceCtrl) ImportCurl

func (c *DiagnoseInterfaceCtrl) ImportCurl(ctx iris.Context)

ImportCurl 导入cURL命令 @Tags 快捷调试 @summary 导入cURL命令 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DiagnoseCurlImportReq body serverDomain.DiagnoseCurlImportReq true "导入cURL命令的请求体" @success 200 {object} _domain.Response{data=model.DiagnoseInterface} @Router /api/v1/diagnoseInterfaces/importCurl [post]

func (*DiagnoseInterfaceCtrl) ImportInterfaces

func (c *DiagnoseInterfaceCtrl) ImportInterfaces(ctx iris.Context)

ImportInterfaces 导入接口 @Tags 快捷调试 @summary 导入接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DiagnoseInterfaceImportReq body serverDomain.DiagnoseInterfaceImportReq true "导入接口的请求体" @success 200 {object} _domain.Response{data=model.DiagnoseInterface} @Router /api/v1/diagnoseInterfaces/importInterfaces [post]

func (*DiagnoseInterfaceCtrl) ImportRecordData

func (c *DiagnoseInterfaceCtrl) ImportRecordData(ctx iris.Context)

Index @Tags 请求录制 @summary 录制的请求转调试接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param RecordReq body serverDomain.RecordReq true "录制的请求列表" @success 200 {object} _domain.Response{}} @Router /api/v1/records/importRecordData [post]

func (*DiagnoseInterfaceCtrl) Load

func (c *DiagnoseInterfaceCtrl) Load(ctx iris.Context)

Load @Tags 快捷调试 @summary 获取测试接口列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param projectId query int true "项目ID" @success 200 {object} _domain.Response{data=[]serverDomain.DiagnoseInterface} @Router /api/v1/diagnoseInterfaces [get]

func (*DiagnoseInterfaceCtrl) Move

func (c *DiagnoseInterfaceCtrl) Move(ctx iris.Context)

Move 移动 @Tags 快捷调试 @summary 移动节点 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DiagnoseInterfaceMoveReq body serverDomain.DiagnoseInterfaceMoveReq true "移动节点的请求体" @success 200 {object} _domain.Response @Router /api/v1/diagnoseInterfaces/move [post]

func (*DiagnoseInterfaceCtrl) Save

func (c *DiagnoseInterfaceCtrl) Save(ctx iris.Context)

Save @Tags 快捷调试 @summary 新建测试接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DiagnoseInterfaceSaveReq body serverDomain.DiagnoseInterfaceSaveReq true "新建测试接口的请求体" @success 200 {object} _domain.Response{data=[]serverDomain.DiagnoseInterface} @Router /api/v1/diagnoseInterfaces [post]

func (*DiagnoseInterfaceCtrl) SaveDebugData

func (c *DiagnoseInterfaceCtrl) SaveDebugData(ctx iris.Context)

SaveDebugData @Tags 快捷调试 @summary 保存测试调试接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugData body domain.DebugData true "保存测试调试接口的请求体" @success 200 {object} _domain.Response{data=domain.DebugData} @Router /api/v1/diagnoseInterfaces/saveDebugData [post]

func (*DiagnoseInterfaceCtrl) Update

func (c *DiagnoseInterfaceCtrl) Update(ctx iris.Context)

Update @Tags 快捷调试 @summary 更新测试接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DiagnoseInterfaceSaveReq body serverDomain.DiagnoseInterfaceSaveReq true "更新测试接口的请求体" @success 200 {object} _domain.Response{data=[]serverDomain.DiagnoseInterface} @Router /api/v1/diagnoseInterfaces [put]

type DocumentCtrl

type DocumentCtrl struct {
	BaseCtrl
	DocumentService *service.DocumentService `inject:""`
}

func (*DocumentCtrl) DeleteSnapshot

func (c *DocumentCtrl) DeleteSnapshot(ctx iris.Context)

DeleteSnapshot @Tags 接口文档 @summary 删除接口文档 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "文档ID" @success 200 {object} _domain.Response @Router /api/v1/document/delete [delete]

func (*DocumentCtrl) DocumentVersionList

func (c *DocumentCtrl) DocumentVersionList(ctx iris.Context)

DocumentVersionList @Tags 接口文档 @summary 接口文档版本列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DocumentVersionListReq body serverDomain.DocumentVersionListReq true "接口文档版本列表的请求参数" @success 200 {object} _domain.Response{data=[]model.EndpointDocument} @Router /api/v1/document/version_list [post]

func (c *DocumentCtrl) GetContentsByShareLink(ctx iris.Context)

GetContentsByShareLink @Tags 接口文档 @summary 查看分享的文档 @accept application/json @Produce application/json @Param code query string true "查看接口文档的链接" @success 200 {object} _domain.Response{data=serverDomain.DocumentRep} @Router /api/v1/document/get_share_content [get]

func (*DocumentCtrl) GetDocumentDetail

func (c *DocumentCtrl) GetDocumentDetail(ctx iris.Context)

GetDocumentDetail @Tags 接口文档 @summary 查看文档详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param documentId query int true "文档ID" @Param endpointId query int true "endpointId" @Param interfaceId query int true "interfaceId" @success 200 {object} _domain.Response{data=object{interface=model.EndpointInterface,servers=[]model.ServeServer}} @Router /api/v1/document/share_detail [get]

func (c *DocumentCtrl) GetShareLink(ctx iris.Context)

GetShareLink @Tags 接口文档 @summary 生成分享接口文档的链接 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DocumentShareReq body serverDomain.DocumentShareReq true "生成分享接口文档的链接的请求参数" @success 200 {object} _domain.Response{data=object{code=string}} @Router /api/v1/document/share [post]

func (*DocumentCtrl) Index

func (c *DocumentCtrl) Index(ctx iris.Context)

Index @Tags 接口文档 @summary 接口文档列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DocumentReq body serverDomain.DocumentReq true "查看接口文档列表的请求参数" @success 200 {object} _domain.Response{data=serverDomain.DocumentRep} @Router /api/v1/document [post]

func (*DocumentCtrl) Publish

func (c *DocumentCtrl) Publish(ctx iris.Context)

Publish @Tags 接口文档 @summary 发布接口文档 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DocumentVersionReq body serverDomain.DocumentVersionReq true "发布接口文档的请求参数" @success 200 {object} _domain.Response @Router /api/v1/document/publish [post]

func (*DocumentCtrl) UpdateDocument

func (c *DocumentCtrl) UpdateDocument(ctx iris.Context)

UpdateDocument @Tags 接口文档 @summary 更新文档版本信息 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param UpdateDocumentVersionReq body serverDomain.UpdateDocumentVersionReq true "更新文档版本信息的请求参数" @success 200 {object} _domain.Response @Router /api/v1/document/update_version [post]

type EndpointCaseAlternativeCtrl

type EndpointCaseAlternativeCtrl struct {
	BaseCtrl
	EndpointCaseAlternativeService *service.EndpointCaseAlternativeService `inject:""`
	DebugInterfaceService          *service.DebugInterfaceService          `inject:""`
}

func (*EndpointCaseAlternativeCtrl) CreateBenchmark

func (c *EndpointCaseAlternativeCtrl) CreateBenchmark(ctx iris.Context)

CreateBenchmark

func (*EndpointCaseAlternativeCtrl) LoadAlternative

func (c *EndpointCaseAlternativeCtrl) LoadAlternative(ctx iris.Context)

LoadAlternative

func (*EndpointCaseAlternativeCtrl) LoadCasesForExec

func (c *EndpointCaseAlternativeCtrl) LoadCasesForExec(ctx iris.Context)

LoadCasesForExec

func (*EndpointCaseAlternativeCtrl) LoadFactor

func (c *EndpointCaseAlternativeCtrl) LoadFactor(ctx iris.Context)

LoadFactor

func (*EndpointCaseAlternativeCtrl) SaveCase

func (c *EndpointCaseAlternativeCtrl) SaveCase(ctx iris.Context)

SaveCase

func (*EndpointCaseAlternativeCtrl) SaveFactor

func (c *EndpointCaseAlternativeCtrl) SaveFactor(ctx iris.Context)

SaveFactor

type EndpointCaseCtrl

type EndpointCaseCtrl struct {
	BaseCtrl
	EndpointCaseService   *service.EndpointCaseService   `inject:""`
	DebugInterfaceService *service.DebugInterfaceService `inject:""`
}

func (*EndpointCaseCtrl) Copy

func (c *EndpointCaseCtrl) Copy(ctx iris.Context)

Copy @Tags 设计器/接口用例 @summary 用例复制 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param id query int true "用例ID" @success 200 {object} _domain.Response{data=model.EndpointCase} @Router /api/v1/endpoints/cases/copy [post]

func (*EndpointCaseCtrl) Create

func (c *EndpointCaseCtrl) Create(ctx iris.Context)

Create @Tags 设计器/接口用例 @summary 保存用例 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "用例ID" @Param EndpointCaseSaveReq body serverDomain.EndpointCaseSaveReq true "保存用例的请求参数" @success 200 {object} _domain.Response{data=[]model.EndpointCase} @Router /api/v1/endpoints/cases/{id} [post]

func (*EndpointCaseCtrl) Get

func (c *EndpointCaseCtrl) Get(ctx iris.Context)

Get @Tags 设计器/接口用例 @summary 用例详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "用例ID" @success 200 {object} _domain.Response{data=model.EndpointCase} @Router /api/v1/endpoints/cases/{id} [get]

func (*EndpointCaseCtrl) ListForBenchmark

func (c *EndpointCaseCtrl) ListForBenchmark(ctx iris.Context)

ListForBenchmark @Tags 设计器/接口用例 @summary 自动生成用例-选择已有用例-用例列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param endpointId query int true "endpointId" @success 200 {object} _domain.Response{data=[]serverDomain.EndpointCaseTree} @Router /api/v1/endpoints/cases/listForBenchmark [get]

func (*EndpointCaseCtrl) LoadTree

func (c *EndpointCaseCtrl) LoadTree(ctx iris.Context)

LoadTree @Tags 设计器/接口用例 @summary 分类接口用例树 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param serveId query int true "服务ID" @success 200 {object} _domain.Response{data=[]serverDomain.EndpointCaseTree} @Router /api/v1/endpoints/cases/loadTree [get]

func (*EndpointCaseCtrl) Paginate

func (c *EndpointCaseCtrl) Paginate(ctx iris.Context)

Paginate @Tags 设计器/接口用例 @summary 用例列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param endpointId query int true "endpointId" @success 200 {object} _domain.Response{data=[]model.EndpointCase} @Router /api/v1/endpoints/cases/list [get]

func (*EndpointCaseCtrl) Remove

func (c *EndpointCaseCtrl) Remove(ctx iris.Context)

Remove @Tags 设计器/接口用例 @summary 删除用例 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "用例ID" @Param EndpointCaseSaveReq body serverDomain.EndpointCaseSaveReq true "删除用例的请求参数" @success 200 {object} _domain.Response @Router /api/v1/endpoints/cases/{id} [delete]

func (*EndpointCaseCtrl) SaveDebugData

func (c *EndpointCaseCtrl) SaveDebugData(ctx iris.Context)

SaveDebugData @Tags 设计器/接口用例 @summary 保存调试数据 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugData body domain.DebugData true "保存调试数据的请求参数" @success 200 {object} _domain.Response{data=[]model.EndpointCase} @Router /api/v1/endpoints/cases/saveDebugData [post]

func (*EndpointCaseCtrl) UpdateName

func (c *EndpointCaseCtrl) UpdateName(ctx iris.Context)

UpdateName @Tags 设计器/接口用例 @summary 保存用例名称 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "用例ID" @Param EndpointCaseSaveReq body serverDomain.EndpointCaseSaveReq true "保存用例名称的请求参数" @success 200 {object} _domain.Response{data=[]model.EndpointCase} @Router /api/v1/endpoints/cases/{id} [put]

type EndpointCodeCtrl

type EndpointCodeCtrl struct {
	BaseCtrl
	EndpointCodeService *service.EndpointCodeService `inject:""`
}

func (*EndpointCodeCtrl) Index

func (c *EndpointCodeCtrl) Index(ctx iris.Context)

type EndpointCtrl

type EndpointCtrl struct {
	BaseCtrl
	EndpointService       *service.EndpointService       `inject:""`
	ServeService          *service.ServeService          `inject:""`
	ThirdPartySyncService *service.ThirdPartySyncService `inject:""`
}

func (*EndpointCtrl) AddVersion

func (c *EndpointCtrl) AddVersion(ctx iris.Context)

AddVersion @Tags 设计器 @summary 添加设计器版本 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EndpointVersionReq body serverDomain.EndpointVersionReq true "添加设计器版本的请求参数" @success 200 {object} _domain.Response{data=string} @Router /api/v1/endpoint/version/add [post]

func (*EndpointCtrl) BatchDelete

func (c *EndpointCtrl) BatchDelete(ctx iris.Context)

BatchDelete @Tags 设计器 @summary 批量删除设计器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param req query []int true "设计器id" @success 200 {object} _domain.Response @Router /api/v1/endpoint/batchDelete [delete]

func (*EndpointCtrl) BatchUpdateField

func (c *EndpointCtrl) BatchUpdateField(ctx iris.Context)

BatchUpdateField @Tags 设计器 @summary 批量更新字段内容 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param BatchUpdateReq body serverDomain.BatchUpdateReq true "批量更新字段内容的请求参数" @success 200 {object} _domain.Response @Router /api/v1/endpoint/batchUpdateField [post]

func (*EndpointCtrl) Copy

func (c *EndpointCtrl) Copy(ctx iris.Context)

Copy @Tags 设计器 @summary 复制设计器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "设计器id" @Param version query string false "设计器版本" @success 200 {object} _domain.Response{data=int} @Router /api/v1/endpoint/copy [get]

func (*EndpointCtrl) Delete

func (c *EndpointCtrl) Delete(ctx iris.Context)

Delete @Tags 设计器 @summary 删除设计器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "设计器id" @success 200 {object} _domain.Response @Router /api/v1/endpoint/delete [delete]

func (*EndpointCtrl) Detail

func (c *EndpointCtrl) Detail(ctx iris.Context)

Detail @Tags 设计器 @summary 设计器详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "设计器id" @Param version query string false "设计器版本" @success 200 {object} _domain.Response{data=model.Endpoint} @Router /api/v1/endpoint/detail [get]

func (*EndpointCtrl) Develop

func (c *EndpointCtrl) Develop(ctx iris.Context)

Develop @Tags 设计器 @summary 开发设计器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "设计器id" @success 200 {object} _domain.Response @Router /api/v1/endpoint/develop [put]

func (*EndpointCtrl) Expire

func (c *EndpointCtrl) Expire(ctx iris.Context)

Expire @Tags 设计器 @summary 禁用设计器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "设计器id" @success 200 {object} _domain.Response @Router /api/v1/endpoint/expire [put]

func (*EndpointCtrl) GetDiff

func (c *EndpointCtrl) GetDiff(ctx iris.Context)

func (*EndpointCtrl) Index

func (c *EndpointCtrl) Index(ctx iris.Context)

Index @Tags 设计器 @summary 设计器列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EndpointReqPaginate body serverDomain.EndpointReqPaginate true "设计器列表的请求体" @success 200 {object} _domain.Response{data=object{result=[]model.Endpoint}} @Router /api/v1/endpoint/index [post]

func (*EndpointCtrl) ListFunctionsByThirdPartyClass

func (c *EndpointCtrl) ListFunctionsByThirdPartyClass(ctx iris.Context)

func (*EndpointCtrl) ListVersions

func (c *EndpointCtrl) ListVersions(ctx iris.Context)

ListVersions @Tags 设计器 @summary 设计器版本列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "设计器id" @success 200 {object} _domain.Response{data=[]model.EndpointVersion} @Router /api/v1/endpoint/version/list [get]

func (*EndpointCtrl) Publish

func (c *EndpointCtrl) Publish(ctx iris.Context)

Publish @Tags 设计器 @summary 发布设计器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "设计器id" @success 200 {object} _domain.Response @Router /api/v1/endpoint/publish [put]

func (*EndpointCtrl) Save

func (c *EndpointCtrl) Save(ctx iris.Context)

Save @Tags 设计器 @summary 保存设计器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EndpointReq body serverDomain.EndpointReq true "保存设计器的请求参数" @success 200 {object} _domain.Response{data=int} @Router /api/v1/endpoint/save [post]

func (*EndpointCtrl) SaveDiff

func (c *EndpointCtrl) SaveDiff(ctx iris.Context)

func (*EndpointCtrl) SyncFromThirdParty

func (c *EndpointCtrl) SyncFromThirdParty(ctx iris.Context)

func (*EndpointCtrl) UpdateAdvancedMockDisabled

func (c *EndpointCtrl) UpdateAdvancedMockDisabled(ctx iris.Context)

UpdateAdvancedMockDisabled @Tags 设计器 @summary 启用或者禁用接口所有期望 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id body int true "endpoint_id" @Param advancedMockDisabled body bool true "接口的mock禁用状态 true:禁用 false:启用" @success 200 {object} _domain.Response @Router /api/v1/endpoint/updateMockStatus [post]

func (*EndpointCtrl) UpdateName

func (c *EndpointCtrl) UpdateName(ctx iris.Context)

UpdateName @Tags 设计器 @summary 更新设计器名称 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "设计器id" @Param name query string true "设计器状态" @success 200 {object} _domain.Response @Router /api/v1/endpoint/updateName [put]

func (*EndpointCtrl) UpdateStatus

func (c *EndpointCtrl) UpdateStatus(ctx iris.Context)

UpdateStatus @Tags 设计器 @summary 更新设计器状态 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "设计器id" @Param status query int true "设计器状态" @success 200 {object} _domain.Response @Router /api/v1/endpoint/updateStatus [put]

func (*EndpointCtrl) UpdateTag

func (c *EndpointCtrl) UpdateTag(ctx iris.Context)

UpdateTag @Tags 设计器 @summary 更新标签 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EndpointTagReq body serverDomain.EndpointTagReq true "更新标签的请求参数" @success 200 {object} _domain.Response @Router /api/v1/endpoint/updateTag [put]

func (*EndpointCtrl) Yaml

func (c *EndpointCtrl) Yaml(ctx iris.Context)

Yaml @Tags 设计器 @summary 设计器信息转yaml @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EndpointReq body serverDomain.EndpointReq true "设计器信息转yaml的请求参数" @success 200 {object} _domain.Response{data=string} @Router /api/v1/endpoint/yaml [post]

type EndpointFavoriteCtrl

type EndpointFavoriteCtrl struct {
	BaseCtrl
	EndpointService *service.EndpointService `inject:""`
}

func (*EndpointFavoriteCtrl) Favorite

func (c *EndpointFavoriteCtrl) Favorite(ctx iris.Context)

func (*EndpointFavoriteCtrl) Index

func (c *EndpointFavoriteCtrl) Index(ctx iris.Context)

type EndpointInterfaceCtrl

type EndpointInterfaceCtrl struct {
	BaseCtrl
	EndpointInterfaceService *service.EndpointInterfaceService `inject:""`
	ThirdPartySyncService    *service.ThirdPartySyncService    `inject:""`
}

func (*EndpointInterfaceCtrl) GenerateFromResponse

func (c *EndpointInterfaceCtrl) GenerateFromResponse(ctx iris.Context)

func (*EndpointInterfaceCtrl) ImportEndpointData

func (c *EndpointInterfaceCtrl) ImportEndpointData(ctx iris.Context)

ImportEndpointData @Tags 设计器/接口 @summary 导入接口数据 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ImportEndpointDataReq body serverDomain.ImportEndpointDataReq true "导入接口数据的请求参数" @success 200 {object} _domain.Response @Router /api/v1/endpoints/interfaces/importEndpointData [post]

func (*EndpointInterfaceCtrl) ListForSelection

func (c *EndpointInterfaceCtrl) ListForSelection(ctx iris.Context)

ListForSelection @Tags 设计器/接口 @summary 接口列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EndpointInterfaceReqPaginate body serverDomain.EndpointInterfaceReqPaginate true "获取接口列表的请求参数" @success 200 {object} _domain.Response{data=object{result=[]model.EndpointInterface}} @Router /api/v1/endpoints/interfaces/listForSelection [post]

type EndpointMockExpectCtrl

type EndpointMockExpectCtrl struct {
	BaseCtrl
	EndpointMockExpectService *service.EndpointMockExpectService `inject:""`
	EndpointService           *service.EndpointService           `inject:""`
}

func (*EndpointMockExpectCtrl) Copy

func (c *EndpointMockExpectCtrl) Copy(ctx iris.Context)

Copy @Tags Mock期望 @summary 复制期望 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "期望ID" @success 200 {object} _domain.Response{data=int} @Router /api/v1/mockExpect/copy [get]

func (*EndpointMockExpectCtrl) CreateExample

func (c *EndpointMockExpectCtrl) CreateExample(ctx iris.Context)

CreateExample @Tags Mock期望 @summary 生成响应体 @accept application/json @Produce application/json @Param createExampleReq body serverDomain.CreateExampleReq true "生成响应体" @success 200 {object} _domain.Response @Router /api/v1/mockExpect/createExample [post]

func (*EndpointMockExpectCtrl) Delete

func (c *EndpointMockExpectCtrl) Delete(ctx iris.Context)

Delete @Tags Mock期望 @summary 删除期望 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "期望ID" @success 200 {object} _domain.Response{data=int} @Router /api/v1/mockExpect [delete]

func (*EndpointMockExpectCtrl) Detail

func (c *EndpointMockExpectCtrl) Detail(ctx iris.Context)

Detail @Tags Mock期望 @summary 期望详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "期望ID" @success 200 {object} _domain.Response{data=model.EndpointMockExpect} @Router /api/v1/mockExpect [get]

func (*EndpointMockExpectCtrl) Disable

func (c *EndpointMockExpectCtrl) Disable(ctx iris.Context)

func (*EndpointMockExpectCtrl) GetExpectRequestOptions

func (c *EndpointMockExpectCtrl) GetExpectRequestOptions(ctx iris.Context)

GetExpectRequestOptions @Tags Mock期望 @summary 获取请求参数下拉选项 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param endpointId query int true "endpointId" @Param endpointInterfaceId query int true "endpointInterfaceId" @success 200 {object} _domain.Response{data=serverDomain.MockExpectRequestOptions} @Router /api/v1/mockExpect/requestOptions [get]

func (*EndpointMockExpectCtrl) List

func (c *EndpointMockExpectCtrl) List(ctx iris.Context)

List @Tags Mock期望 @summary 期望列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param endpointId query int true "endpointId" @success 200 {object} _domain.Response{data=[]model.EndpointMockExpect} @Router /api/v1/mockExpect/list [get]

func (*EndpointMockExpectCtrl) Order

func (c *EndpointMockExpectCtrl) Order(ctx iris.Context)

Order @Tags Mock期望 @summary 对期望排序 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param MockExpectIdsReq body serverDomain.MockExpectIdsReq true "对期望排序的请求体" @success 200 {object} _domain.Response @Router /api/v1/mockExpect/order [post]

func (*EndpointMockExpectCtrl) Save

func (c *EndpointMockExpectCtrl) Save(ctx iris.Context)

Save @Tags Mock期望 @summary 保存期望 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EndpointMockExpect body model.EndpointMockExpect true "保存期望的请求体" @success 200 {object} _domain.Response{data=int} @Router /api/v1/mockExpect/save [post]

func (*EndpointMockExpectCtrl) UpdateExpectDisabled

func (c *EndpointMockExpectCtrl) UpdateExpectDisabled(ctx iris.Context)

UpdateExpectDisabled @Tags Mock期望 @summary 启用或者禁用单个期望 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id body int true "期望ID" @Param disabled body bool true "是否禁用" @success 200 {object} _domain.Response @Router /api/v1/mockExpect/updateExpectDisabled [post]

func (*EndpointMockExpectCtrl) UpdateExpectName

func (c *EndpointMockExpectCtrl) UpdateExpectName(ctx iris.Context)

UpdateExpectName @Tags Mock期望 @summary 修改期望名字 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id body int true "期望ID" @Param name body string true "期望名字" @success 200 {object} _domain.Response @Router /api/v1/mockExpect/updateName [post]

type EndpointMockScriptCtrl

type EndpointMockScriptCtrl struct {
	EndpointMockScriptService *service.EndpointMockScriptService `inject:""`
	BaseCtrl
}

func (*EndpointMockScriptCtrl) Disable

func (c *EndpointMockScriptCtrl) Disable(ctx iris.Context)

func (*EndpointMockScriptCtrl) Get

func (c *EndpointMockScriptCtrl) Get(ctx iris.Context)

Get @Tags Mock脚本管理 @summary 脚本详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param endpointId path int true "Endpoint ID" @success 200 {object} _domain.Response{data=model.EndpointMockScript} @Router /api/v1/mockScripts/{id} [get]

func (*EndpointMockScriptCtrl) Update

func (c *EndpointMockScriptCtrl) Update(ctx iris.Context)

Update @Tags Mock脚本管理 @summary 更新脚本 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param EndpointMockScript body model.EndpointMockScript true "update Mock Script Object" @success 200 {object} _domain.Response @Router /api/v1/mockScripts [put]

type EndpointTagCtrl

type EndpointTagCtrl struct {
	BaseCtrl
	EndpointTagService *service.EndpointTagService `inject:""`
}

func (*EndpointTagCtrl) ListTags

func (c *EndpointTagCtrl) ListTags(ctx iris.Context)

ListTags @Tags 设计器/标签 @summary 用例详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=[]model.EndpointTagRel} @Router /api/v1/endpoint/tags [get]

type EnvironmentCtrl

type EnvironmentCtrl struct {
	EnvironmentService *service.EnvironmentService `inject:""`
	BaseCtrl
}

func (*EnvironmentCtrl) Change

func (c *EnvironmentCtrl) Change(ctx iris.Context)

Change 修改 @Tags 环境管理 @summary 修改环境 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "环境id" @success 200 {object} _domain.Response @Router /api/v1/environments/changeEnvironment [post]

func (*EnvironmentCtrl) ClearShareVar

func (c *EnvironmentCtrl) ClearShareVar(ctx iris.Context)

ClearShareVar 清除 @Tags 环境管理/共享变量 @summary 清空共享变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param interfaceId query int true "interfaceId" @success 200 {object} _domain.Response{data=model.Environment} @Router /api/v1/environments/shareVars/clear [post]

func (*EnvironmentCtrl) ClearVar

func (c *EnvironmentCtrl) ClearVar(ctx iris.Context)

ClearVar 清除 @Tags 环境管理/全局变量 @summary 清空环境变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param environmentId query int true "环境ID" @success 200 {object} _domain.Response{data=model.Environment} @Router /api/v1/environments/vars/clear [post]

func (*EnvironmentCtrl) Clone

func (c *EnvironmentCtrl) Clone(ctx iris.Context)

Clone @Tags 环境管理 @summary 复制环境 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int false "环境ID" @success 200 {object} _domain.Response{data=int} @Router /api/v1/environments/copy [get]

func (*EnvironmentCtrl) Copy

func (c *EnvironmentCtrl) Copy(ctx iris.Context)

Copy 复制 @Tags 环境管理 @summary 复制环境 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "环境id" @success 200 {object} _domain.Response @Router /api/v1/environments/copyEnvironment [post]

func (*EnvironmentCtrl) Create

func (c *EnvironmentCtrl) Create(ctx iris.Context)

Create 添加 @Tags 环境管理 @summary 新建环境 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param Environment body model.Environment true "新建环境的请求参数" @success 200 {object} _domain.Response{data=model.Environment} @Router /api/v1/environments [post]

func (*EnvironmentCtrl) CreateVar

func (c *EnvironmentCtrl) CreateVar(ctx iris.Context)

CreateVar 添加 @Tags 环境管理/全局变量 @summary 新建环境变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EnvironmentVar body model.EnvironmentVar true "新建环境变量的请求参数" @success 200 {object} _domain.Response{data=model.Environment} @Router /api/v1/environments/vars [post]

func (*EnvironmentCtrl) Delete

func (c *EnvironmentCtrl) Delete(ctx iris.Context)

Delete 删除 @Tags 环境管理 @summary 删除环境(路径传参) @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "环境ID" @success 200 {object} _domain.Response @Router /api/v1/environments/{id} [delete]

func (*EnvironmentCtrl) DeleteEnvironment

func (c *EnvironmentCtrl) DeleteEnvironment(ctx iris.Context)

DeleteEnvironment @Tags 环境管理 @summary 删除环境(param传参) @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int false "环境ID" @success 200 {object} _domain.Response @Router /api/v1/environments/delete [delete]

func (*EnvironmentCtrl) DeleteShareVar

func (c *EnvironmentCtrl) DeleteShareVar(ctx iris.Context)

DeleteShareVar 删除 @Tags 环境管理/共享变量 @summary 删除共享变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "环境变量ID" @success 200 {object} _domain.Response{data=model.Environment} @Router /api/v1/environments/shareVars/{id} [delete]

func (*EnvironmentCtrl) DeleteVar

func (c *EnvironmentCtrl) DeleteVar(ctx iris.Context)

DeleteVar 删除

func (*EnvironmentCtrl) Get

func (c *EnvironmentCtrl) Get(ctx iris.Context)

Get 详情 @Tags 环境管理 @summary 环境详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "环境ID" @success 200 {object} _domain.Response{data=model.Environment} @Router /api/v1/environments{id} [get]

func (*EnvironmentCtrl) List

func (c *EnvironmentCtrl) List(ctx iris.Context)

List @Tags 环境管理 @summary 环境列表(List) @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=[]model.Environment} @Router /api/v1/environments [get]

func (*EnvironmentCtrl) ListAll

func (c *EnvironmentCtrl) ListAll(ctx iris.Context)

ListAll @Tags 环境管理 @summary 环境列表(ListAll) @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param projectId query int false "项目ID" @success 200 {object} _domain.Response{data=[]model.Environment} @Router /api/v1/environments/list [get]

func (*EnvironmentCtrl) ListGlobal

func (c *EnvironmentCtrl) ListGlobal(ctx iris.Context)

ListGlobal @Tags 环境管理/全局变量 @summary 列出全局变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=[]model.EnvironmentVar} @Router /api/v1/environments/vars/global [get]

func (*EnvironmentCtrl) ListParams

func (c *EnvironmentCtrl) ListParams(ctx iris.Context)

ListParams @Tags 环境管理/全局参数 @summary 全局参数列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param projectId query int false "项目ID" @success 200 {object} _domain.Response @Router /api/v1/environments/param [get]

func (*EnvironmentCtrl) Order

func (c *EnvironmentCtrl) Order(ctx iris.Context)

Order @Tags 环境管理 @summary 修改环境的顺序 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EnvironmentIdsReq body serverDomain.EnvironmentIdsReq true "修改环境顺序的请求参数" @success 200 {object} _domain.Response @Router /api/v1/environments/order [post]

func (*EnvironmentCtrl) Save

func (c *EnvironmentCtrl) Save(ctx iris.Context)

Save @Tags 环境管理 @summary 保存环境 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EnvironmentReq body serverDomain.EnvironmentReq true "保存环境的请求参数" @success 200 {object} _domain.Response{data=int} @Router /api/v1/environments/save [post]

func (*EnvironmentCtrl) SaveGlobal

func (c *EnvironmentCtrl) SaveGlobal(ctx iris.Context)

SaveGlobal @Tags 环境管理/全局变量 @summary 保存全局变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EnvironmentVariable body []serverDomain.EnvironmentVariable true "保存全局变量的请求参数" @success 200 {object} _domain.Response @Router /api/v1/environments/vars/global [post]

func (*EnvironmentCtrl) SaveParams

func (c *EnvironmentCtrl) SaveParams(ctx iris.Context)

SaveParams @Tags 环境管理/全局参数 @summary 保存全局参数 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EnvironmentParamsReq body serverDomain.EnvironmentParamsReq true "保保存全局参数的请求参数" @success 200 {object} _domain.Response @Router /api/v1/environments/param [post]

func (*EnvironmentCtrl) Update

func (c *EnvironmentCtrl) Update(ctx iris.Context)

Update 更新 @Tags 环境管理 @summary 更新环境 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param Environment body model.Environment true "更新环境的请求参数" @success 200 {object} _domain.Response @Router /api/v1/environments [put]

func (*EnvironmentCtrl) UpdateVar

func (c *EnvironmentCtrl) UpdateVar(ctx iris.Context)

UpdateVar 更新 @Tags 环境管理/全局变量 @summary 更新环境变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param EnvironmentVar body model.EnvironmentVar true "更新环境变量的请求参数" @success 200 {object} _domain.Response{data=model.Environment} @Router /api/v1/environments/vars [put]

type EnvironmentVarCtrl

type EnvironmentVarCtrl struct {
	EnvironmentService *service.EnvironmentService `inject:""`
	BaseCtrl
}

func (*EnvironmentVarCtrl) List

func (c *EnvironmentVarCtrl) List(ctx iris.Context)

List @Tags 环境管理/全局变量 @summary 列出环境变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param serverId query int true "serverId" @success 200 {object} _domain.Response{data=[]domain.GlobalVar} @Router /api/v1/environments/envVars [get]

func (*EnvironmentVarCtrl) ListByEnvId

func (c *EnvironmentVarCtrl) ListByEnvId(ctx iris.Context)

ListByEnvId @Tags 环境管理/全局变量 @summary 根据环境列出环境变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param envId query int true "环境ID" @success 200 {object} _domain.Response{data=[]domain.GlobalVar} @Router /api/v1/environments/varsByEnv [get]

type ExtractorCtrl

type ExtractorCtrl struct {
	ExtractorService *service.ExtractorService `inject:""`
	BaseCtrl
}

func (*ExtractorCtrl) Get

func (c *ExtractorCtrl) Get(ctx iris.Context)

Get 详情 @Tags 提取器 @summary 提取器详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "提取器ID" @success 200 {object} _domain.Response{data=model.DebugConditionExtractor} @Router /api/v1/extractors/{id} [get]

func (*ExtractorCtrl) ListExtractorVariableForCheckpoint

func (c *ExtractorCtrl) ListExtractorVariableForCheckpoint(ctx iris.Context)

ListExtractorVariableForCheckpoint @Tags 提取器 @summary 提取器变量列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugInfo body domain.DebugInfo true "提取器变量列表的请求参数" @success 200 {object} _domain.Response{data=[]domain.Variable} @Router /api/v1/extractors/listExtractorVariableForCheckpoint [post]

func (*ExtractorCtrl) QuickCreate

func (c *ExtractorCtrl) QuickCreate(ctx iris.Context)

QuickCreate 添加 @Tags 提取器 @summary 新建提取器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ExtractorConditionQuickCreateReq body serverDomain.ExtractorConditionQuickCreateReq true "新建提取器的请求参数" @success 200 {object} _domain.Response @Router /api/v1/extractors [post]

func (*ExtractorCtrl) Update

func (c *ExtractorCtrl) Update(ctx iris.Context)

Update 更新 @Tags 提取器 @summary 更新提取器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugConditionExtractor body model.DebugConditionExtractor true "更新提取器的请求参数" @success 200 {object} _domain.Response @Router /api/v1/extractors [put]

type FileCtrl

type FileCtrl struct {
	FileService     *commService.FileService `inject:""`
	DatapoolService *service.DatapoolService `inject:""`
}

func (*FileCtrl) Do

func (c *FileCtrl) Do(ctx iris.Context)

func (*FileCtrl) Upload

func (c *FileCtrl) Upload(ctx iris.Context)

Upload 上传文件 @Tags 上传文件模块 @summary 上传文件 @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param isDatapool query bool true "是否是数据池" @Param file formData string true "文件" @success 200 {object} _domain.Response{data=object{path=string,data=interface{}}} @Router /api/v1/upload [post]

type GrpcInterfaceCtrl

type GrpcInterfaceCtrl struct {
	GrpcInterfaceService *service.GrpcInterfaceService `inject:""`

	BaseCtrl
}

func (*GrpcInterfaceCtrl) DeleteHandle

func (c *GrpcInterfaceCtrl) DeleteHandle(ctx iris.Context)

func (*GrpcInterfaceCtrl) DescribeFunc

func (c *GrpcInterfaceCtrl) DescribeFunc(ctx iris.Context)

func (*GrpcInterfaceCtrl) GetDebugData

func (c *GrpcInterfaceCtrl) GetDebugData(ctx iris.Context)

func (*GrpcInterfaceCtrl) InvokeFunc

func (c *GrpcInterfaceCtrl) InvokeFunc(ctx iris.Context)

func (*GrpcInterfaceCtrl) ListConn

func (c *GrpcInterfaceCtrl) ListConn(ctx iris.Context)

func (*GrpcInterfaceCtrl) ParseProto

func (c *GrpcInterfaceCtrl) ParseProto(ctx iris.Context)

func (*GrpcInterfaceCtrl) SaveDebugData

func (c *GrpcInterfaceCtrl) SaveDebugData(ctx iris.Context)

type HealthzCtrl

type HealthzCtrl struct {
}

func (*HealthzCtrl) Get

func (c *HealthzCtrl) Get(ctx iris.Context)

type ImportCtrl

type ImportCtrl struct {
	ImportService *service.ImportService   `inject:""`
	YapiService   *service.YapiService     `inject:""`
	FileService   *commService.FileService `inject:""`

	BaseCtrl
}

func (*ImportCtrl) ImportSpec

func (c *ImportCtrl) ImportSpec(ctx iris.Context)

ImportSpec @Tags 导入模块 @summary 导入OpenApi文件 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param targetId query int true "targetId" @success 200 {object} _domain.Response @Router /api/v1/import/importSpec [post]

func (*ImportCtrl) ImportYapi

func (c *ImportCtrl) ImportYapi(ctx iris.Context)

ImportYapi @Tags 导入模块 @summary 导入yapi项目接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param InterfaceYapiReq body serverDomain.InterfaceYapiReq true "导入yapi项目接口的请求参数" @success 200 {object} _domain.Response @Router /api/v1/import/importYapi [post]

type JslibCtrl

type JslibCtrl struct {
	JslibService *service.JslibService `inject:""`
	BaseCtrl
}

func (*JslibCtrl) Delete

func (c *JslibCtrl) Delete(ctx iris.Context)

func (*JslibCtrl) Disable

func (c *JslibCtrl) Disable(ctx iris.Context)

func (*JslibCtrl) Get

func (c *JslibCtrl) Get(ctx iris.Context)

func (*JslibCtrl) List

func (c *JslibCtrl) List(ctx iris.Context)

func (*JslibCtrl) Save

func (c *JslibCtrl) Save(ctx iris.Context)

func (*JslibCtrl) UpdateName

func (c *JslibCtrl) UpdateName(ctx iris.Context)

type LlmToolCtrl

type LlmToolCtrl struct {
	LlmToolService *service.LlmToolService `inject:""`
	BaseCtrl
}

func (*LlmToolCtrl) Delete

func (c *LlmToolCtrl) Delete(ctx iris.Context)

func (*LlmToolCtrl) Disable

func (c *LlmToolCtrl) Disable(ctx iris.Context)

func (*LlmToolCtrl) Get

func (c *LlmToolCtrl) Get(ctx iris.Context)

func (*LlmToolCtrl) List

func (c *LlmToolCtrl) List(ctx iris.Context)

func (*LlmToolCtrl) Save

func (c *LlmToolCtrl) Save(ctx iris.Context)

func (*LlmToolCtrl) SetDefault

func (c *LlmToolCtrl) SetDefault(ctx iris.Context)

func (*LlmToolCtrl) UpdateName

func (c *LlmToolCtrl) UpdateName(ctx iris.Context)

type MessageCtrl

type MessageCtrl struct {
	MessageService            *service.MessageService            `inject:""`
	WebSocketService          *service.WebSocketService          `inject:""`
	IntegrationMessageService *integrationService.MessageService `inject:""`
	BaseCtrl
}

func (*MessageCtrl) InitThirdPartySyncCron

func (c *MessageCtrl) InitThirdPartySyncCron(ctx iris.Context)

func (*MessageCtrl) List

func (c *MessageCtrl) List(ctx iris.Context)

List @Tags 消息管理 @summary 消息列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param MessageReqPaginate query serverDomain.MessageReqPaginate true "获取消息列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.Message}} @Router /api/v1/message [get]

func (*MessageCtrl) OperateRead

func (c *MessageCtrl) OperateRead(ctx iris.Context)

OperateRead @Tags 消息管理 @summary 已读操作 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param MessageReadReq body serverDomain.MessageReadReq true "已读操作的请求参数" @success 200 {object} _domain.Response{data=object{id=int}} @Router /api/v1/message/operateRead [post]

func (*MessageCtrl) ReceiveMcsApprovalData

func (c *MessageCtrl) ReceiveMcsApprovalData(ctx iris.Context)

func (*MessageCtrl) UnreadCount

func (c *MessageCtrl) UnreadCount(ctx iris.Context)

UnreadCount @Tags 消息管理 @summary 未读消息数 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=object{count=int}} @Router /api/v1/message/unreadCount [get]

type MetricsCtrl

type MetricsCtrl struct {
	MetricsService *service.MetricsService `inject:""`
	BaseCtrl
}

func (*MetricsCtrl) Create

func (c *MetricsCtrl) Create(ctx iris.Context)

Create 添加

func (*MetricsCtrl) Delete

func (c *MetricsCtrl) Delete(ctx iris.Context)

Delete 删除

func (*MetricsCtrl) Disable

func (c *MetricsCtrl) Disable(ctx iris.Context)

Disable 禁用

func (*MetricsCtrl) Get

func (c *MetricsCtrl) Get(ctx iris.Context)

Get 详情

func (*MetricsCtrl) List

func (c *MetricsCtrl) List(ctx iris.Context)

List 列表

func (*MetricsCtrl) Move

func (c *MetricsCtrl) Move(ctx iris.Context)

Move 移动

func (*MetricsCtrl) Update

func (c *MetricsCtrl) Update(ctx iris.Context)

Update 更新

type MockCtrl

type MockCtrl struct {
	MockService *service.MockService `inject:""`
	BaseCtrl
}

func (*MockCtrl) Mock

func (c *MockCtrl) Mock(ctx iris.Context)

func (*MockCtrl) OAuth2Callback

func (c *MockCtrl) OAuth2Callback(ctx iris.Context)

type MockJsCtrl

type MockJsCtrl struct {
	MockJsService *service.MockJsService `inject:""`
	BaseCtrl
}

func (*MockJsCtrl) EvaluateExpression

func (c *MockJsCtrl) EvaluateExpression(ctx iris.Context)

func (*MockJsCtrl) ListExpressions

func (c *MockJsCtrl) ListExpressions(ctx iris.Context)

ListExpressions @Tags mock @summary mockJs规则列表 @Produce application/json @success 200 {object} _domain.Response{data=[]serverDomain.MockJsExpression} @Router /api/v1/mockjs/expressions [get]

type OpenCtrl

type OpenCtrl struct {
	ProjectService            *service.ProjectService            `inject:""`
	IntegrationProjectService *integrationService.ProjectService `inject:""`
	UserService               *thirdparty.User                   `inject:""`
	BaseCtrl
}

func (*OpenCtrl) AllProjectList

func (c *OpenCtrl) AllProjectList(ctx iris.Context)

func (*OpenCtrl) GetProjectRole

func (c *OpenCtrl) GetProjectRole(ctx iris.Context)

func (*OpenCtrl) GetProjectsBySpace

func (c *OpenCtrl) GetProjectsBySpace(ctx iris.Context)

func (*OpenCtrl) SaveSpaceRelatedProjects

func (c *OpenCtrl) SaveSpaceRelatedProjects(ctx iris.Context)

type ParserCtrl

type ParserCtrl struct {
	ParserService     *service.ParserService     `inject:""`
	ParserHtmlService *service.ParserHtmlService `inject:""`
	ParserXmlService  *service.ParserXmlService  `inject:""`
	ParserJsonService *service.ParserJsonService `inject:""`
	ParserRegxService *service.ParserRegxService `inject:""`
	BaseCtrl
}

func (*ParserCtrl) ParseHtml

func (c *ParserCtrl) ParseHtml(ctx iris.Context)

ParseHtml @Tags 解析模块 @summary 解析HTML @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ParserRequest body serverDomain.ParserRequest true "解析HTML的请求参数" @success 200 {object} _domain.Response{data=serverDomain.ParserResponse} @Router /api/v1/parser/parseHtml [post]

func (*ParserCtrl) ParseJson

func (c *ParserCtrl) ParseJson(ctx iris.Context)

ParseJson @Tags 解析模块 @summary 解析JSON @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ParserRequest body serverDomain.ParserRequest true "解析JSON的请求参数" @success 200 {object} _domain.Response{data=serverDomain.ParserResponse} @Router /api/v1/parser/parseJson [post]

func (*ParserCtrl) ParseText

func (c *ParserCtrl) ParseText(ctx iris.Context)

ParseText @Tags 解析模块 @summary 解析TEXT @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ParserRequest body serverDomain.ParserRequest true "解析TEXT的请求参数" @success 200 {object} _domain.Response{data=serverDomain.ParserResponse} @Router /api/v1/parser/parseText [post]

func (*ParserCtrl) ParseXml

func (c *ParserCtrl) ParseXml(ctx iris.Context)

ParseXml @Tags 解析模块 @summary 解析XML @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ParserRequest body serverDomain.ParserRequest true "解析XML的请求参数" @success 200 {object} _domain.Response{data=serverDomain.ParserResponse} @Router /api/v1/parser/parseXml [post]

func (*ParserCtrl) TestExpr

func (c *ParserCtrl) TestExpr(ctx iris.Context)

TestExpr @Tags 解析模块 @summary 测试XPath或正则表达式 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param TestExprRequest body serverDomain.TestExprRequest true "测试XPath或正则表达式的请求参数" @success 200 {object} _domain.Response{data=serverDomain.TestExprResponse} @Router /api/v1/parser/testExpr [post]

type PermCtrl

type PermCtrl struct {
	BaseCtrl
	PermService *service.PermService `inject:""`
}

func (*PermCtrl) CreatePerm

func (c *PermCtrl) CreatePerm(ctx iris.Context)

CreatePerm 添加 @Tags 权限模块 @summary 新建权限 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param PermReq body serverDomain.PermReq true "新建权限的请求参数" @success 200 {object} _domain.Response{data=object{id=int}} @Router /api/v1/perms [post]

func (*PermCtrl) DeletePerm

func (c *PermCtrl) DeletePerm(ctx iris.Context)

DeletePerm 删除 @Tags 权限模块 @summary 删除权限 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "权限ID" @success 200 {object} _domain.Response @Router /api/v1/perms/{id} [delete]

func (*PermCtrl) GetAllPerms

func (c *PermCtrl) GetAllPerms(ctx iris.Context)

GetAllPerms 分页列表 @Tags 权限模块 @summary 权限列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param PermReqPaginate query serverDomain.PermReqPaginate true "权限列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]serverDomain.PermResp}} @Router /api/v1/perms [get]

func (*PermCtrl) GetPerm

func (c *PermCtrl) GetPerm(ctx iris.Context)

GetPerm 详情 @Tags 权限模块 @summary 权限详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "权限ID" @success 200 {object} _domain.Response{data=serverDomain.PermResp} @Router /api/v1/perms/{id} [get]

func (*PermCtrl) UpdatePerm

func (c *PermCtrl) UpdatePerm(ctx iris.Context)

UpdatePerm 更新 @Tags 权限模块 @summary 编辑权限 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "权限ID" @Param PermReq body serverDomain.PermReq true "编辑权限的请求参数" @success 200 {object} _domain.Response @Router /api/v1/perms/{id} [post]

type PlanCtrl

type PlanCtrl struct {
	PlanService *service.PlanService `inject:""`
	UserService *service.UserService `inject:""`
	BaseCtrl
}

func (*PlanCtrl) AddScenarios

func (c *PlanCtrl) AddScenarios(ctx iris.Context)

AddScenarios @Tags 测试计划 @summary 添加场景 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "计划ID" @Param PlanAddScenariosReq body serverDomain.PlanAddScenariosReq true "添加场景的请求参数" @success 200 {object} _domain.Response @Router /api/v1/plans/{id}/addScenarios [post]

func (*PlanCtrl) Clone

func (c *PlanCtrl) Clone(ctx iris.Context)

Clone @Tags 测试计划 @summary 克隆计划 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "计划ID" @success 200 {object} _domain.Response @Router /api/v1/plans/{id}/clone [post]

func (*PlanCtrl) Create

func (c *PlanCtrl) Create(ctx iris.Context)

Create @Tags 测试计划 @summary 新建计划 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param Plan body model.Plan true "新建计划的请求参数" @success 200 {object} _domain.Response{data=model.Plan} @Router /api/v1/plans [post]

func (*PlanCtrl) Delete

func (c *PlanCtrl) Delete(ctx iris.Context)

Delete @Tags 测试计划 @summary 删除计划 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "计划ID" @success 200 {object} _domain.Response @Router /api/v1/plans/{id} [delete]

func (*PlanCtrl) Get

func (c *PlanCtrl) Get(ctx iris.Context)

Get @Tags 测试计划 @summary 计划详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "计划ID" @Param detail query bool true "是否需要详情" @success 200 {object} _domain.Response{data=model.Plan} @Router /api/v1/plans/{id} [get]

func (*PlanCtrl) List

func (c *PlanCtrl) List(ctx iris.Context)

List @Tags 测试计划 @summary 计划列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param PlanReqPaginate query serverDomain.PlanReqPaginate true "计划列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.Plan}} @Router /api/v1/plans [get]

func (*PlanCtrl) Move

func (c *PlanCtrl) Move(ctx iris.Context)

func (*PlanCtrl) NotRelationScenarioList

func (c *PlanCtrl) NotRelationScenarioList(ctx iris.Context)

NotRelationScenarioList @Tags 测试计划 @summary 计划中未绑定的场景列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param NotRelationScenarioReqPaginate query serverDomain.NotRelationScenarioReqPaginate true "计划中未绑定的场景列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.Scenario}} @Router /api/v1/notRelationScenarioList [get]

func (*PlanCtrl) PlanScenariosList

func (c *PlanCtrl) PlanScenariosList(ctx iris.Context)

PlanScenariosList @Tags 测试计划 @summary 计划中的场景列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param planId query int true "计划ID" @Param PlanScenariosReqPaginate query serverDomain.PlanScenariosReqPaginate true "计划中的场景列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ScenarioDetail}} @Router /api/v1/planScenariosList [get]

func (*PlanCtrl) RemoveScenario

func (c *PlanCtrl) RemoveScenario(ctx iris.Context)

RemoveScenario @Tags 测试计划 @summary 移除场景 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "计划ID" @Param scenarioId query int true "场景ID" @success 200 {object} _domain.Response @Router /api/v1/plans/{id}/removeScenario [post]

func (*PlanCtrl) RemoveScenarios

func (c *PlanCtrl) RemoveScenarios(ctx iris.Context)

RemoveScenarios @Tags 测试计划 @summary 批量移除场景 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "计划ID" @Param PlanAddScenariosReq body serverDomain.PlanAddScenariosReq true "批量移除场景的请求参数" @success 200 {object} _domain.Response @Router /api/v1/plans/{id}/removeScenarios [post]

func (*PlanCtrl) StatusDropDownOptions

func (c *PlanCtrl) StatusDropDownOptions(ctx iris.Context)

StatusDropDownOptions @Tags 测试计划 @summary 计划状态下拉选项 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=map[consts.TestStatus]string} @Router /api/v1/plans/statusDropDownOptions [get]

func (*PlanCtrl) TestStageDropDownOptions

func (c *PlanCtrl) TestStageDropDownOptions(ctx iris.Context)

TestStageDropDownOptions @Tags 测试计划 @summary 计划测试阶段下拉选项 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=map[consts.TestStage]string} @Router /api/v1/plans/testStageDropDownOptions [get]

func (*PlanCtrl) Update

func (c *PlanCtrl) Update(ctx iris.Context)

Update @Tags 测试计划 @summary 更新计划 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param Plan body model.Plan true "更新计划的请求参数" @success 200 {object} _domain.Response @Router /api/v1/plans [put]

type PlanExecCtrl

type PlanExecCtrl struct {
	PlanExecService *service.PlanExecService `inject:""`

	BaseCtrl
}

func (*PlanExecCtrl) GetPlanReportNormalData

func (c *PlanExecCtrl) GetPlanReportNormalData(ctx iris.Context)

GetPlanReportNormalData @Tags 测试计划/执行计划 @summary 获取计划执行中的静态内容 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "计划ID" @Param environmentId query int true "环境ID" @success 200 {object} _domain.Response{data=agentDomain.Report} @Router /api/v1/plans/exec/getPlanReportNormalData [get]

func (*PlanExecCtrl) LoadExecData

func (c *PlanExecCtrl) LoadExecData(ctx iris.Context)

LoadExecData @Tags 测试计划/执行计划 @summary 加载执行计划 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "计划ID" @Param environmentId query int true "环境ID" @success 200 {object} _domain.Response{data=agentExec.PlanExecObj} @Router /api/v1/plans/exec/loadExecPlan [get]

func (*PlanExecCtrl) LoadExecResult

func (c *PlanExecCtrl) LoadExecResult(ctx iris.Context)

LoadExecResult @Tags 测试计划/执行计划 @summary 加载执行结果 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param planId query int true "计划ID" @success 200 {object} _domain.Response{data=domain.Report} @Router /api/v1/plans/exec/loadExecResult [get]

func (*PlanExecCtrl) SubmitResult

func (c *PlanExecCtrl) SubmitResult(ctx iris.Context)

SubmitResult @Tags 测试计划/执行计划 @summary 提交测试结果 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "计划ID" @Param PlanExecResult body agentDomain.PlanExecResult true "提交计划测试结果的请求参数" @success 200 {object} _domain.Response{data=model.PlanReport} @Router /api/v1/plans/exec/submitResult/{id} [post]

type PlanReportCtrl

type PlanReportCtrl struct {
	ReportService            *service.PlanReportService        `inject:""`
	IntegrationReportService *integrationService.ReportService `inject:""`
	BaseCtrl
}

func (*PlanReportCtrl) Delete

func (c *PlanReportCtrl) Delete(ctx iris.Context)

Delete @Tags 测试报告 @summary 删除计划报告 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "测试报告ID" @success 200 {object} _domain.Response @Router /api/v1/plans/reports/{id} [delete]

func (*PlanReportCtrl) Get

func (c *PlanReportCtrl) Get(ctx iris.Context)

Get @Tags 测试报告 @summary 结果详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "测试报告ID" @success 200 {object} _domain.Response{data=model.PlanReportDetail} @Router /api/v1/plans/reports/{id} [get]

func (*PlanReportCtrl) List

func (c *PlanReportCtrl) List(ctx iris.Context)

List @Tags 测试报告 @summary 结果列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param PlanReportReqPaginate query serverDomain.PlanReportReqPaginate true "测试报告列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.PlanReportDetail}} @Router /api/v1/plans/reports [get]

type ProjectCronCtrl

type ProjectCronCtrl struct {
	ProjectCronService *service.ProjectCronService `inject:""`
	LecangCronService  *service.LecangCronService  `inject:""`
	ProjectCronRepo    *repo.ProjectCronRepo       `inject:""`
	DB                 *gorm.DB                    `inject:""`
	Proxy              *task.Proxy                 `inject:""`
	BaseCtrl
	EngineerService *lecang.EngineeringService `inject:""`
}

func (*ProjectCronCtrl) AllServiceList

func (c *ProjectCronCtrl) AllServiceList(ctx iris.Context)

AllServiceList @Tags 定时任务 @summary 获取所有服务列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param url query string true "环境URL" @success 200 {object} _domain.Response{data=int} @Router /api/v1/project/cron/allServiceList [get]

func (*ProjectCronCtrl) Clone

func (c *ProjectCronCtrl) Clone(ctx iris.Context)

Clone @Tags 定时任务 @summary 克隆定时任务 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "任务ID" @success 200 {object} _domain.Response{data=int} @Router /api/v1/project/cron/{id}/clone [get]

func (*ProjectCronCtrl) Delete

func (c *ProjectCronCtrl) Delete(ctx iris.Context)

Delete @Tags 定时任务 @summary 删除定时任务 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "任务ID" @success 200 {object} _domain.Response @Router /api/v1/project/cron/{id} [delete]

func (*ProjectCronCtrl) EngineeringOptions

func (c *ProjectCronCtrl) EngineeringOptions(ctx iris.Context)

EngineeringOptions @Tags 定时任务 @summary 获取工程下拉选项 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param url query string true "环境URL" @success 200 {object} _domain.Response{data=int} @Router /api/v1/project/cron/engineeringOptions [get]

func (*ProjectCronCtrl) Get

func (c *ProjectCronCtrl) Get(ctx iris.Context)

Get @Tags 定时任务 @summary 定时任务详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "任务ID" @success 200 {object} _domain.Response{data=model.ProjectCronReq} @Router /api/v1/project/cron/{id} [get]

func (*ProjectCronCtrl) InitProjectCron

func (c *ProjectCronCtrl) InitProjectCron()

func (*ProjectCronCtrl) List

func (c *ProjectCronCtrl) List(ctx iris.Context)

List @Tags 定时任务 @summary 定时任务列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ProjectCronReqPaginate query serverDomain.ProjectCronReqPaginate true "定时任务列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ProjectCron}} @Router /api/v1/project/cron [get]

func (*ProjectCronCtrl) RemoveCron

func (c *ProjectCronCtrl) RemoveCron(tenantId consts.TenantId, cron model.ProjectCron)

func (*ProjectCronCtrl) Run

func (c *ProjectCronCtrl) Run(ctx iris.Context)

func (*ProjectCronCtrl) RunAtOnce

func (c *ProjectCronCtrl) RunAtOnce(tenantId consts.TenantId, id uint)

func (*ProjectCronCtrl) Save

func (c *ProjectCronCtrl) Save(ctx iris.Context)

Save @Tags 定时任务 @summary 保存定时任务 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ProjectCronReq body model.ProjectCron true "保存定时任务的请求参数" @success 200 {object} _domain.Response{data=int} @Router /api/v1/project/cron [post]

func (*ProjectCronCtrl) ServiceOptions

func (c *ProjectCronCtrl) ServiceOptions(ctx iris.Context)

ServiceOptions @Tags 定时任务 @summary 获取服务下拉选项 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param url query string true "环境URL" @Param engineering query string true "工程code" @success 200 {object} _domain.Response{data=int} @Router /api/v1/project/cron/serviceOptions [get]

func (*ProjectCronCtrl) UpdateSwitchStatus

func (c *ProjectCronCtrl) UpdateSwitchStatus(ctx iris.Context)

UpdateSwitchStatus @Tags 定时任务 @summary 更新定时任务状态 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id body number true "任务id" @Param switch body number true "开关状态" @success 200 {object} _domain.Response @Router /api/v1/project/cron/updateStatus [post]

type ProjectCtrl

type ProjectCtrl struct {
	ProjectService                *service.ProjectService                `inject:""`
	ProjectRecentlyVisitedService *service.ProjectRecentlyVisitedService `inject:""`
	IntegrationProjectService     *integrationService.ProjectService     `inject:""`
	EngineerService               *lecang.EngineeringService             `inject:""`
	BaseCtrl
}

func (*ProjectCtrl) Apply

func (c *ProjectCtrl) Apply(ctx iris.Context)

Apply @Tags 项目管理 @summary 申请项目成员 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ApplyProjectReq body serverDomain.ApplyProjectReq true "申请项目成员的请求体" @success 200 {object} _domain.Response @Router /api/v1/projects/apply [post]

func (*ProjectCtrl) Audit

func (c *ProjectCtrl) Audit(ctx iris.Context)

Audit @Tags 项目管理 @summary 审批操作 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param AuditProjectReq body serverDomain.AuditProjectReq true "审批操作的请求体" @success 200 {object} _domain.Response @Router /api/v1/projects/audit [post]

func (*ProjectCtrl) AuditList

func (c *ProjectCtrl) AuditList(ctx iris.Context)

AuditList @Tags 项目管理 @summary 申请加入审批列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param AuditProjectPaginate body serverDomain.AuditProjectPaginate true "申请加入审批列表的请求体" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ProjectMemberAudit}} @Router /api/v1/projects/auditList [post]

func (*ProjectCtrl) AuditUsers

func (c *ProjectCtrl) AuditUsers(ctx iris.Context)

AuditUsers @Tags 项目管理 @summary 申请加入项目的审批人 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param projectId query int true "要申请的项目ID" @success 200 {object} _domain.Response{data=[]model.SysUser} @Router /api/v1/projects/auditUsers [get]

func (*ProjectCtrl) ChangeProject

func (c *ProjectCtrl) ChangeProject(ctx iris.Context)

ChangeProject @Tags 项目管理 @summary 切换用户默认项目 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id body int true "项目ID" @success 200 {object} _domain.Response{data=object{id=int}} @Router /api/v1/projects/changeProject [post]

func (*ProjectCtrl) ChangeUserRole

func (c *ProjectCtrl) ChangeUserRole(ctx iris.Context)

ChangeUserRole @Tags 项目管理 @summary 更新项目成员的角色 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param UpdateProjectMemberReq body serverDomain.UpdateProjectMemberReq true "更新项目成员角色的请求体" @success 200 {object} _domain.Response @Router /api/v1/projects/changeUserRole [post]

func (*ProjectCtrl) CheckProjectAndUser

func (c *ProjectCtrl) CheckProjectAndUser(ctx iris.Context)

CheckProjectAndUser @Tags 项目管理 @summary 校验项目和成员是否存在 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param project_code query string true "项目缩写" @success 200 {object} _domain.Response{data=model.Project} @Router /api/v1/projects/checkProjectAndUser [get]

func (*ProjectCtrl) Create

func (c *ProjectCtrl) Create(ctx iris.Context)

Create @Tags 项目管理 @summary 创建项目 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ProjectReq body serverDomain.ProjectReq true "CreateExpression project Request Object" @success 200 {object} _domain.Response{data=object{id=int}} @Router /api/v1/projects [post]

func (*ProjectCtrl) Delete

func (c *ProjectCtrl) Delete(ctx iris.Context)

Delete @Tags 项目管理 @summary 删除项目 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "项目ID" @Param _domain.ReqId query _domain.ReqId true "请求参数" @success 200 {object} _domain.Response @Router /api/v1/projects/{id} [delete]

func (*ProjectCtrl) Get

func (c *ProjectCtrl) Get(ctx iris.Context)

Get @Tags 项目管理 @summary 项目详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "项目ID" @success 200 {object} _domain.Response{data=model.Project} @Router /api/v1/projects/{id} [get]

func (*ProjectCtrl) GetByUser

func (c *ProjectCtrl) GetByUser(ctx iris.Context)

GetByUser @Tags 项目管理 @summary 获取用户参与的项目 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=object{projects=[]model.ProjectMemberRole, currProject=model.Project, recentProjects=[]model.Project}} @Router /api/v1/projects/getByUser [get]

func (*ProjectCtrl) GetEngineeringByProject

func (c *ProjectCtrl) GetEngineeringByProject(ctx iris.Context)

func (*ProjectCtrl) GetIntegrationDetail

func (c *ProjectCtrl) GetIntegrationDetail(ctx iris.Context)

func (*ProjectCtrl) GetMyEngineeringList

func (c *ProjectCtrl) GetMyEngineeringList(ctx iris.Context)

func (*ProjectCtrl) GetUserProducts

func (c *ProjectCtrl) GetUserProducts(ctx iris.Context)

func (*ProjectCtrl) GetUserSpaces

func (c *ProjectCtrl) GetUserSpaces(ctx iris.Context)

func (*ProjectCtrl) List

func (c *ProjectCtrl) List(ctx iris.Context)

List @Tags 项目管理 @summary 项目列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ProjectReq query serverDomain.ProjectReqPaginate true "项目列表" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.Project}} @Router /api/v1/projects [get]

func (*ProjectCtrl) Members

func (c *ProjectCtrl) Members(ctx iris.Context)

Members @Tags 项目管理 @summary 获取项目成员 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ProjectReqPaginate query serverDomain.ProjectReqPaginate true "获取项目成员的分页参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]serverDomain.MemberResp}} @Router /api/v1/projects/members [get]

func (*ProjectCtrl) RemoveMember

func (c *ProjectCtrl) RemoveMember(ctx iris.Context)

RemoveMember @Tags 项目管理 @summary 删除项目成员 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ProjectMemberRemoveReq body serverDomain.ProjectMemberRemoveReq true "删除项目成员的请求体" @success 200 {object} _domain.Response @Router /api/v1/projects/removeMember [post]

func (*ProjectCtrl) Update

func (c *ProjectCtrl) Update(ctx iris.Context)

Update @Tags 项目管理 @summary 更新项目 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ProjectReq body serverDomain.ProjectReq true "update project Request Object" @success 200 {object} _domain.Response @Router /api/v1/projects [put]

type ProjectMenuCtrl

type ProjectMenuCtrl struct {
	ProjectMenuService *service.ProjectMenuService `inject:""`
	BaseCtrl
}

func (*ProjectMenuCtrl) UserMenuList

func (c *ProjectMenuCtrl) UserMenuList(ctx iris.Context)

UserMenuList @Tags 项目菜单 @summary 项目中用户的左侧菜单栏列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=object{result=[]model.ProjectMenu}} @Router /api/v1/projects/menus/userMenuList [get]

func (*ProjectMenuCtrl) UserMenuListNew

func (c *ProjectMenuCtrl) UserMenuListNew(ctx iris.Context)

type ProjectRolePermCtrl

type ProjectRolePermCtrl struct {
	ProjectRolePermService *service.ProjectRolePermService `inject:""`
	BaseCtrl
}

func (*ProjectRolePermCtrl) AllRoleList

func (c *ProjectRolePermCtrl) AllRoleList(ctx iris.Context)

AllRoleList @Tags 项目权限 @summary 所有项目角色列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ProjectRole}} @Router /api/v1/projects/perms/rolesList [get]

func (*ProjectRolePermCtrl) GetProjectUserRole

func (c *ProjectRolePermCtrl) GetProjectUserRole(ctx iris.Context)

GetProjectUserRole @Tags 项目权限 @summary 获取项目中用户的角色 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=_domain.PageData{result=model.ProjectRole}} @Router /api/v1/projects/perms/userRole [get]

func (*ProjectRolePermCtrl) RolePermList

func (c *ProjectRolePermCtrl) RolePermList(ctx iris.Context)

RolePermList @Tags 项目权限 @summary 项目角色的权限列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ProjectRolePermPaginateReq query serverDomain.ProjectRolePermPaginateReq true "获取项目角色的权限列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ProjectPerm}} @Router /api/v1/projects/perms/rolePermList [get]

func (*ProjectRolePermCtrl) UserPermList

func (c *ProjectRolePermCtrl) UserPermList(ctx iris.Context)

UserPermList @Tags 项目权限 @summary 项目中用户的权限列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ProjectUserPermsPaginate query serverDomain.ProjectUserPermsPaginate true "获取项目中用户的权限列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ProjectPerm}} @Router /api/v1/projects/perms/userPermList [get]

type ProjectSettingsCtrl

type ProjectSettingsCtrl struct {
	BaseCtrl
	Cron                   *cron.ServerCron                `inject:""`
	ProjectSettingsService *service.ProjectSettingsService `inject:""`
	ThirdPartySyncService  *service.ThirdPartySyncService  `inject:""`
}

func (*ProjectSettingsCtrl) GetMock

func (c *ProjectSettingsCtrl) GetMock(ctx iris.Context)

GetMock - Get Project Mock Settings

func (*ProjectSettingsCtrl) InitSwaggerCron

func (c *ProjectSettingsCtrl) InitSwaggerCron()

func (*ProjectSettingsCtrl) InitThirdPartySyncCron

func (c *ProjectSettingsCtrl) InitThirdPartySyncCron()

func (*ProjectSettingsCtrl) SaveMock

func (c *ProjectSettingsCtrl) SaveMock(ctx iris.Context)

SaveMock - Save Project Mock Settings

func (*ProjectSettingsCtrl) SaveSwaggerSync

func (c *ProjectSettingsCtrl) SaveSwaggerSync(ctx iris.Context)

SaveSwaggerSync @Tags 自动同步 @summary 保存同步信息 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param SwaggerSyncReq body serverDomain.SwaggerSyncReq true "保存同步信息的请求参数" @success 200 {object} _domain.Response{data=model.SwaggerSync} @Router /api/v1/serves/saveSwaggerSync [post]

type ResponseDefineCtrl

type ResponseDefineCtrl struct {
	BaseCtrl
	ResponseDefineService *service.ResponseDefineService `inject:""`
}

func (*ResponseDefineCtrl) Update

func (c *ResponseDefineCtrl) Update(ctx iris.Context)

type RoleCtrl

type RoleCtrl struct {
	BaseCtrl
	RoleService *service.RoleService `inject:""`
}

func (*RoleCtrl) AllRoleList

func (c *RoleCtrl) AllRoleList(ctx iris.Context)

AllRoleList @Tags 角色模块 @summary 无分页的角色列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=object{result=[]serverDomain.RoleResp}} @Router /api/v1/roles/all [get]

func (*RoleCtrl) CreateRole

func (c *RoleCtrl) CreateRole(ctx iris.Context)

CreateRole 添加 @Tags 角色模块 @summary 新建角色 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param RoleReq body serverDomain.RoleReq true "新建角色的请求参数" @success 200 {object} _domain.Response{data=object{id=int}} @Router /api/v1/roles [post]

func (*RoleCtrl) DeleteRole

func (c *RoleCtrl) DeleteRole(ctx iris.Context)

DeleteRole 删除 @Tags 角色模块 @summary 删除角色 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "角色ID" @success 200 {object} _domain.Response{data=serverDomain.RoleResp} @Router /api/v1/roles/{id} [delete]

func (*RoleCtrl) GetAllRoles

func (c *RoleCtrl) GetAllRoles(ctx iris.Context)

GetAllRoles 分页列表 @Tags 角色模块 @summary 角色列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param RoleReqPaginate query serverDomain.RoleReqPaginate true "获取角色列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]serverDomain.RoleResp}} @Router /api/v1/roles [get]

func (*RoleCtrl) GetAuthByEnv

func (c *RoleCtrl) GetAuthByEnv(ctx iris.Context)

func (*RoleCtrl) GetRole

func (c *RoleCtrl) GetRole(ctx iris.Context)

GetRole 详情 @Tags 角色模块 @summary 角色列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "角色ID" @success 200 {object} _domain.Response{data=serverDomain.RoleResp} @Router /api/v1/roles/{id} [get]

func (*RoleCtrl) UpdateRole

func (c *RoleCtrl) UpdateRole(ctx iris.Context)

UpdateRole 更新 @Tags 角色模块 @summary 编辑角色 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "角色ID" @Param RoleReq body serverDomain.RoleReq true "编辑角色的请求参数" @success 200 {object} _domain.Response @Router /api/v1/roles/{id} [post]

type SaasCtrl

type SaasCtrl struct {
	SassService *service.SaasService `inject:""`
	*BaseCtrl   `inject:""`
}

func (*SaasCtrl) GetUserList

func (c *SaasCtrl) GetUserList(ctx iris.Context)

type ScenarioCtrl

type ScenarioCtrl struct {
	ScenarioService *service.ScenarioService `inject:""`
	BaseCtrl
}

func (*ScenarioCtrl) AddPlans

func (c *ScenarioCtrl) AddPlans(ctx iris.Context)

AddPlans @Tags 场景模块 @summary 关联计划 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "场景ID" @success 200 {object} _domain.Response @Router /api/v1/scenarios/{id}/addPlans [post]

func (*ScenarioCtrl) Create

func (c *ScenarioCtrl) Create(ctx iris.Context)

Create @Tags 场景模块 @summary 新建场景 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param Scenario body model.Scenario true "新建场景的请求参数" @success 200 {object} _domain.Response{data=model.Scenario} @Router /api/v1/scenarios [post]

func (*ScenarioCtrl) Delete

func (c *ScenarioCtrl) Delete(ctx iris.Context)

Delete @Tags 场景模块 @summary 删除场景 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "场景ID" @success 200 {object} _domain.Response @Router /api/v1/scenarios/{id} [delete]

func (*ScenarioCtrl) Get

func (c *ScenarioCtrl) Get(ctx iris.Context)

Get @Tags 场景模块 @summary 场景详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "场景ID" @success 200 {object} _domain.Response{data=model.Scenario} @Router /api/v1/scenarios/{id} [get]

func (*ScenarioCtrl) List

func (c *ScenarioCtrl) List(ctx iris.Context)

List @Tags 场景模块 @summary 场景列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ScenarioReqPaginate query serverDomain.ScenarioReqPaginate true "获取场景列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.Scenario}} @Router /api/v1/scenarios [get]

func (*ScenarioCtrl) ListByProject

func (c *ScenarioCtrl) ListByProject(ctx iris.Context)

ListByProject @Tags 场景模块 @summary 当前项目下的所有场景 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=[]model.Scenario} @Router /api/v1/scenarios/listByProject [get]

func (*ScenarioCtrl) Plans

func (c *ScenarioCtrl) Plans(ctx iris.Context)

Plans @Tags 场景模块 @summary 关联计划列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "场景ID" @Param ScenarioPlanReqPaginate body serverDomain.ScenarioPlanReqPaginate true "查询关联计划列表的参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.Plan}} @Router /api/v1/scenarios/{id}/plans [post]

func (*ScenarioCtrl) RemovePlans

func (c *ScenarioCtrl) RemovePlans(ctx iris.Context)

RemovePlans @Tags 场景模块 @summary 取消计划关联 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "场景ID" @Param "" body []int true "计划ID" @success 200 {object} _domain.Response @Router /api/v1/scenarios/{id}/removePlans [post]

func (*ScenarioCtrl) Update

func (c *ScenarioCtrl) Update(ctx iris.Context)

Update @Tags 场景模块 @summary 更新场景 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param Scenario body model.Scenario true "更新场景的请求参数" @success 200 {object} _domain.Response @Router /api/v1/scenarios [put]

func (*ScenarioCtrl) UpdatePriority

func (c *ScenarioCtrl) UpdatePriority(ctx iris.Context)

UpdatePriority @Tags 场景模块 @summary 更新优先级 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "场景ID" @Param priority query string false "场景优先级" @success 200 {object} _domain.Response @Router /api/v1/scenarios/{id}/updatePriority [put]

func (*ScenarioCtrl) UpdateStatus

func (c *ScenarioCtrl) UpdateStatus(ctx iris.Context)

UpdateStatus @Tags 场景模块 @summary 更新计划状态 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "场景ID" @Param status query string false "场景状态" @success 200 {object} _domain.Response @Router /api/v1/scenarios/{id}/updateStatus [put]

type ScenarioExecCtrl

type ScenarioExecCtrl struct {
	ScenarioExecService *service.ScenarioExecService `inject:""`

	BaseCtrl
}

func (*ScenarioExecCtrl) GetScenarioNormalData

func (c *ScenarioExecCtrl) GetScenarioNormalData(ctx iris.Context)

GetScenarioNormalData @Tags 场景模块/场景执行 @summary 获取场景执行初始化信息 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "场景ID" @Param environmentId query int true "环境ID" @success 200 {object} _domain.Response{data=agentDomain.Report} @Router /api/v1/scenarios/exec/getScenarioNormalData [get]

func (*ScenarioExecCtrl) LoadExecData

func (c *ScenarioExecCtrl) LoadExecData(ctx iris.Context)

LoadExecData @Tags 场景模块/场景执行 @summary 加载执行场景 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "场景ID" @Param environmentId query int true "环境ID" @success 200 {object} _domain.Response{data=agentExec.ScenarioExecObjMsg} @Router /api/v1/scenarios/exec/loadExecScenario [get]

func (*ScenarioExecCtrl) LoadExecResult

func (c *ScenarioExecCtrl) LoadExecResult(ctx iris.Context)

LoadExecResult @Tags 场景模块/场景执行 @summary 加载执行结果 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param scenarioId query int true "场景ID" @success 200 {object} _domain.Response{data=domain.Report} @Router /api/v1/scenarios/exec/loadExecResult [get]

func (*ScenarioExecCtrl) SubmitResult

func (c *ScenarioExecCtrl) SubmitResult(ctx iris.Context)

SubmitResult @Tags 场景模块/场景执行 @summary 提交测试结果 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "场景ID" @Param ScenarioExecResult body agentDomain.ScenarioExecResult true "场景执行结果" @success 200 {object} _domain.Response{data=model.ScenarioReport} @Router /api/v1/scenarios/exec/submitResult/{id} [post]

type ScenarioInterfaceCtrl

type ScenarioInterfaceCtrl struct {
	DebugInterfaceService    *service.DebugInterfaceService    `inject:""`
	ScenarioInterfaceService *service.ScenarioInterfaceService `inject:""`
	ExtractorService         *service.ExtractorService         `inject:""`
	CheckpointService        *service.CheckpointService        `inject:""`
	BaseCtrl
}

func (*ScenarioInterfaceCtrl) ResetDebugData

func (c *ScenarioInterfaceCtrl) ResetDebugData(ctx iris.Context)

ResetDebugData @Tags 场景模块/场景调试 @summary 重置场景调试接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param scenarioProcessorId query int true "scenarioProcessorId" @success 200 {object} _domain.Response{data=model.Processor} @Router /api/v1/scenarios/interface/resetDebugData [post]

func (*ScenarioInterfaceCtrl) SaveDebugData

func (c *ScenarioInterfaceCtrl) SaveDebugData(ctx iris.Context)

SaveDebugData @Tags 场景模块/场景调试 @summary 保存场景调试接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugData body domain.DebugData true "保存场景调试接口的请求参数" @success 200 {object} _domain.Response @Router /api/v1/scenarios/interface/saveDebugData [post]

type ScenarioNodeCtrl

type ScenarioNodeCtrl struct {
	ScenarioNodeService *service.ScenarioNodeService `inject:""`
	ScenarioService     *service.ScenarioService     `inject:""`
	BaseCtrl
}

func (*ScenarioNodeCtrl) AddInterfacesFromCase

func (c *ScenarioNodeCtrl) AddInterfacesFromCase(ctx iris.Context)

AddInterfacesFromCase 添加接口用例 @Tags 场景模块/编排节点 @summary 添加接口用例 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ScenarioAddCasesFromTreeReq body serverDomain.ScenarioAddCasesFromTreeReq true "添加调接口用例的请求参数" @success 200 {object} _domain.Response{data=model.Processor} @Router /api/v1/scenarios/nodes/addInterfacesFromCase [post]

func (*ScenarioNodeCtrl) AddInterfacesFromDefine

func (c *ScenarioNodeCtrl) AddInterfacesFromDefine(ctx iris.Context)

AddInterfacesFromDefine 添加接口 @Tags 场景模块/编排节点 @summary 添加定义接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ScenarioAddInterfacesReq body serverDomain.ScenarioAddInterfacesReq true "添加定义接口的请求参数" @success 200 {object} _domain.Response{data=model.Processor} @Router /api/v1/scenarios/nodes/addInterfacesFromDefine [post]

func (*ScenarioNodeCtrl) AddInterfacesFromDiagnose

func (c *ScenarioNodeCtrl) AddInterfacesFromDiagnose(ctx iris.Context)

AddInterfacesFromDiagnose 添加接口 @Tags 场景模块/编排节点 @summary 添加调试接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ScenarioAddInterfacesFromTreeReq body serverDomain.ScenarioAddInterfacesFromTreeReq true "添加调试接口的请求参数" @success 200 {object} _domain.Response{data=model.Processor} @Router /api/v1/scenarios/nodes/addInterfacesFromTest [post]

func (*ScenarioNodeCtrl) AddProcessor

func (c *ScenarioNodeCtrl) AddProcessor(ctx iris.Context)

AddProcessor 添加 @Tags 场景模块/编排节点 @summary 新建处理器 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ScenarioAddScenarioReq body serverDomain.ScenarioAddScenarioReq true "新建处理器的请求参数" @success 200 {object} _domain.Response{data=model.Processor} @Router /api/v1/scenarios/nodes/addProcessor [post]

func (*ScenarioNodeCtrl) CopyProcessor

func (c *ScenarioNodeCtrl) CopyProcessor(ctx iris.Context)

func (*ScenarioNodeCtrl) Delete

func (c *ScenarioNodeCtrl) Delete(ctx iris.Context)

Delete 删除 @Tags 场景模块/编排节点 @summary 删除节点 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "节点ID" @success 200 {object} _domain.Response @Router /api/v1/scenarios/nodes/{id} [delete]

func (*ScenarioNodeCtrl) DisableOrNot

func (c *ScenarioNodeCtrl) DisableOrNot(ctx iris.Context)

DisableOrNot 禁用 @Tags 场景模块/编排节点 @summary 禁用节点 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "节点ID" @success 200 {object} _domain.Response @Router /api/v1/scenarios/nodes/{id}/disableOrNot [post]

func (*ScenarioNodeCtrl) ImportCurl

func (c *ScenarioNodeCtrl) ImportCurl(ctx iris.Context)

ImportCurl 导入cURL命令 @Tags 场景模块/编排节点 @summary 导入cURL命令 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param DiagnoseCurlImportReq body serverDomain.ScenarioCurlImportReq true "导入cURL命令的请求体" @success 200 {object} _domain.Response{data=model.Processor} @Router /api/v1/scenarios/nodes/importCurl [post]

func (*ScenarioNodeCtrl) LoadTree

func (c *ScenarioNodeCtrl) LoadTree(ctx iris.Context)

LoadTree @Tags 场景模块 @summary 场景树状数据 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param scenarioId query int true "场景ID" @success 200 {object} _domain.Response{data=agentExec.Processor} @Router /api/v1/scenarios/load [get]

func (*ScenarioNodeCtrl) Move

func (c *ScenarioNodeCtrl) Move(ctx iris.Context)

Move 移动 @Tags 场景模块/编排节点 @summary 移动节点 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ScenarioNodeMoveReq body serverDomain.ScenarioNodeMoveReq true "移动节点的请求参数" @success 200 {object} _domain.Response @Router /api/v1/scenarios/nodes/move [put]

func (*ScenarioNodeCtrl) UpdateName

func (c *ScenarioNodeCtrl) UpdateName(ctx iris.Context)

UpdateName 更新 @Tags 场景模块/编排节点 @summary 更新节点名称 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "节点ID" @Param ScenarioNodeReq body serverDomain.ScenarioNodeReq true "更新节点名称的请求参数" @success 200 {object} _domain.Response @Router /api/v1/scenarios/nodes/{id}/updateName [put]

type ScenarioProcessorCtrl

type ScenarioProcessorCtrl struct {
	ScenarioProcessorService *service.ScenarioProcessorService `inject:""`
	BaseCtrl
}

func (*ScenarioProcessorCtrl) Get

func (c *ScenarioProcessorCtrl) Get(ctx iris.Context)

Get 详情 @Tags 场景模块/处理器 @summary 场景节点详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "节点ID" @success 200 {object} _domain.Response @Router /api/v1/scenarios/processors/{id} [get]

func (*ScenarioProcessorCtrl) Save

func (c *ScenarioProcessorCtrl) Save(ctx iris.Context)

Save 保存 @Tags 场景模块/处理器 @summary 保存配置信息 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param category path string true "category" @success 200 {object} _domain.Response{data=model.ProcessorData} @Router /api/v1/scenarios/processors/{category}/save [put]

func (*ScenarioProcessorCtrl) SaveBasicInfo

func (c *ScenarioProcessorCtrl) SaveBasicInfo(ctx iris.Context)

SaveBasicInfo 更新 @Tags 场景模块/处理器 @summary 保存基本信息 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ScenarioProcessorInfo body domain.ScenarioProcessorInfo true "保存基本信息的请求参数" @success 200 {object} _domain.Response{data=object{name=string}} @Router /api/v1/scenarios/processors/saveProcessorInfo [put]

type ScenarioReportCtrl

type ScenarioReportCtrl struct {
	ScenarioReportService *service.ScenarioReportService `inject:""`
	BaseCtrl
}

func (*ScenarioReportCtrl) Create

func (c *ScenarioReportCtrl) Create(ctx iris.Context)

Create @Tags 场景模块/场景报告 @summary 创建报告 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "报告ID" @success 200 {object} _domain.Response @Router /api/v1/scenarios/reports/{id} [put]

func (*ScenarioReportCtrl) Delete

func (c *ScenarioReportCtrl) Delete(ctx iris.Context)

Delete @Tags 场景模块/场景报告 @summary 删除报告 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "报告ID" @success 200 {object} _domain.Response @Router /api/v1/scenarios/reports/{id} [delete]

func (*ScenarioReportCtrl) Get

func (c *ScenarioReportCtrl) Get(ctx iris.Context)

Get @Tags 场景模块/场景报告 @summary 结果详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "报告ID" @success 200 {object} _domain.Response{data=model.ScenarioReport} @Router /api/v1/scenarios/reports/{id} [get]

func (*ScenarioReportCtrl) List

func (c *ScenarioReportCtrl) List(ctx iris.Context)

List @Tags 场景模块/场景报告 @summary 结果列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ReportReqPaginate body serverDomain.ReportReqPaginate true "获取结果列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ScenarioReport}} @Router /api/v1/scenarios/reports [post]

func (*ScenarioReportCtrl) ReferBug

func (c *ScenarioReportCtrl) ReferBug(ctx iris.Context)

type ScriptCtrl

type ScriptCtrl struct {
	ScriptService *service.ScriptService `inject:""`
	BaseCtrl
}

func (*ScriptCtrl) Get

func (c *ScriptCtrl) Get(ctx iris.Context)

Get 详情

func (*ScriptCtrl) Update

func (c *ScriptCtrl) Update(ctx iris.Context)

Update 更新

type ServeCtrl

type ServeCtrl struct {
	BaseCtrl
	Cron                     *cron.ServerCron                  `inject:""`
	ServeService             *service.ServeService             `inject:""`
	EndpointInterfaceService *service.EndpointInterfaceService `inject:""`
}

func (*ServeCtrl) AddServerForHistory

func (c *ServeCtrl) AddServerForHistory(ctx iris.Context)

func (*ServeCtrl) BindEndpoint

func (c *ServeCtrl) BindEndpoint(ctx iris.Context)

BindEndpoint @Tags 服务管理/版本 @summary 关联接口 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeVersionBindEndpointReq body serverDomain.ServeVersionBindEndpointReq true "服务版本关联接口的请求参数" @success 200 {object} _domain.Response @Router /api/v1/serves/version/bindEndpoint [post]

func (*ServeCtrl) ChangeServe

func (c *ServeCtrl) ChangeServe(ctx iris.Context)

ChangeServe @Tags 服务管理 @summary 切换用户当前服务 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ChangeServeReq body serverDomain.ChangeServeReq true "切换用户当前服务的请求参数" @success 200 {object} _domain.Response{data=model.Serve} @Router /api/v1/serves/changeServe [post]

func (*ServeCtrl) ChangeServer

func (c *ServeCtrl) ChangeServer(ctx iris.Context)

ChangeServer @Tags 服务管理 @summary 切换环境 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeServer body serverDomain.ServeServer true "服务列表的请求参数" @success 200 {object} _domain.Response{data=model.ServeServer} @Router /api/v1/serves/server/changeServer [post]

func (*ServeCtrl) Copy

func (c *ServeCtrl) Copy(ctx iris.Context)

Copy 克隆服务 @Tags 服务管理 @summary 复制服务 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "服务ID" @success 200 {object} _domain.Response @Router /api/v1/serves/copy [get]

func (*ServeCtrl) CopySchema

func (c *ServeCtrl) CopySchema(ctx iris.Context)

CopySchema @Tags 服务管理/schema @summary 复制Schema @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "Schema ID" @success 200 {object} _domain.Response{data=int} @Router /api/v1/serves/schema/copy [put]

func (*ServeCtrl) Delete

func (c *ServeCtrl) Delete(ctx iris.Context)

Delete 删除服务 @Tags 服务管理 @summary 删除服务 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "服务ID" @success 200 {object} _domain.Response @Router /api/v1/serves/delete [delete]

func (*ServeCtrl) DeleteSchema

func (c *ServeCtrl) DeleteSchema(ctx iris.Context)

DeleteSchema @Tags 服务管理/schema @summary 删除Schema @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "schema ID" @success 200 {object} _domain.Response @Router /api/v1/serves/schema/delete [delete]

func (*ServeCtrl) DeleteSecurity

func (c *ServeCtrl) DeleteSecurity(ctx iris.Context)

DeleteSecurity @Tags 服务管理/授权 @summary 删除授权 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "授权ID" @success 200 {object} _domain.Response @Router /api/v1/serves/security/delete [delete]

func (*ServeCtrl) DeleteVersion

func (c *ServeCtrl) DeleteVersion(ctx iris.Context)

DeleteVersion @Tags 服务管理/版本 @summary 删除版本 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "服务版本ID" @success 200 {object} _domain.Response @Router /api/v1/serves/version/delete [delete]

func (*ServeCtrl) Detail

func (c *ServeCtrl) Detail(ctx iris.Context)

Detail 服务详情 @Tags 服务管理 @summary 服务详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "服务ID" @success 200 {object} _domain.Response{data=model.Serve} @Router /api/v1/serves/detail [get]

func (*ServeCtrl) ExampleToSchema

func (c *ServeCtrl) ExampleToSchema(ctx iris.Context)

ExampleToSchema @Tags 服务管理/schema @summary example转schema @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param JsonContent body serverDomain.JsonContent true "example转schema的请求参数" @success 200 {object} _domain.Response{data=openapi.Schema} @Router /api/v1/serves/schema/example2schema [post]

func (*ServeCtrl) Expire

func (c *ServeCtrl) Expire(ctx iris.Context)

Expire 禁用服务 @Tags 服务管理 @summary 禁用服务 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "服务ID" @success 200 {object} _domain.Response @Router /api/v1/serves/expire [put]

func (*ServeCtrl) ExpireVersion

func (c *ServeCtrl) ExpireVersion(ctx iris.Context)

ExpireVersion @Tags 服务管理/版本 @summary 禁用版本 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id query int true "服务版本ID" @success 200 {object} _domain.Response @Router /api/v1/serves/version/expire [put]

func (*ServeCtrl) GetSchemaByRef

func (c *ServeCtrl) GetSchemaByRef(ctx iris.Context)

GetSchemaByRef @Tags 服务管理/schema @summary 获取Schema @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeSchemaRefReq body serverDomain.ServeSchemaRefReq true "获取Schema的请求参数" @success 200 {object} _domain.Response{data=model.ComponentSchema} @Router /api/v1/serves/schema/detail [get]

func (*ServeCtrl) Index

func (c *ServeCtrl) Index(ctx iris.Context)

Index 服务列表 @Tags 服务管理 @summary 服务列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeReqPaginate body serverDomain.ServeReqPaginate true "服务列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.Serve}} @Router /api/v1/serves/index [post]

func (*ServeCtrl) ListByProject

func (c *ServeCtrl) ListByProject(ctx iris.Context)

ListByProject 项目服务列表 @Tags 服务管理 @summary 获取项目下的服务 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=object{serves=[]model.Serve,currServe=model.Serve}} @Router /api/v1/serves/listByProject [get]

func (*ServeCtrl) ListSchema

func (c *ServeCtrl) ListSchema(ctx iris.Context)

ListSchema Schema列表 @Tags 服务管理/schema @summary Schema列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeSchemaPaginate body serverDomain.ServeSchemaPaginate true "Schema列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ComponentSchema}} @Router /api/v1/serves/schema/list [post]

func (*ServeCtrl) ListSecurity

func (c *ServeCtrl) ListSecurity(ctx iris.Context)

ListSecurity @Tags 服务管理/授权 @summary 授权列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeSecurityPaginate body serverDomain.ServeSecurityPaginate true "授权列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ComponentSchemaSecurity}} @Router /api/v1/serves/security/list [post]

func (*ServeCtrl) ListServer

func (c *ServeCtrl) ListServer(ctx iris.Context)

ListServer @Tags 服务管理 @summary 环境列表(不分页) @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeServer body serverDomain.ServeServer true "环境列表的请求参数" @success 200 {object} _domain.Response{data=object{servers=[]model.ServeServer, currServer=model.ServeServer}} @Router /api/v1/serves/server/list [post]

func (*ServeCtrl) ListVersion

func (c *ServeCtrl) ListVersion(ctx iris.Context)

ListVersion 获取版本列表 @Tags 服务管理/版本 @summary 版本列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeVersionPaginate body serverDomain.ServeVersionPaginate true "服务版本列表的请求参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]model.ServeVersion}} @Router /api/v1/serves/version/list [post]

func (*ServeCtrl) Save

func (c *ServeCtrl) Save(ctx iris.Context)

Save 保存服务 @Tags 服务管理 @summary 保存服务 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeReq body serverDomain.ServeReq true "保存服务的请求参数" @success 200 {object} _domain.Response{data=int} @Router /api/v1/serves/save [post]

func (*ServeCtrl) SaveSchema

func (c *ServeCtrl) SaveSchema(ctx iris.Context)

SaveSchema @Tags 服务管理/schema @summary 保存Schema @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeSchemaReq body serverDomain.ServeSchemaReq true "保存Schema的请求参数" @success 200 {object} _domain.Response{data=int} @Router /api/v1/serves/schema/save [post]

func (*ServeCtrl) SaveSecurity

func (c *ServeCtrl) SaveSecurity(ctx iris.Context)

SaveSecurity @Tags 服务管理/授权 @summary 保存授权 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeSecurityReq body serverDomain.ServeSecurityReq true "保存授权的请求参数" @success 200 {object} _domain.Response{data=int} @Router /api/v1/serves/security/save [post]

func (*ServeCtrl) SaveServer

func (c *ServeCtrl) SaveServer(ctx iris.Context)

func (*ServeCtrl) SaveVersion

func (c *ServeCtrl) SaveVersion(ctx iris.Context)

SaveVersion 保存版本 @Tags 服务管理/版本 @summary 保存版本 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param ServeVersionReq body serverDomain.ServeVersionReq true "保存服务版本的请求参数" @success 200 {object} _domain.Response{data=int} @Router /api/v1/serves/version/save [post]

func (*ServeCtrl) SchemaToExample

func (c *ServeCtrl) SchemaToExample(ctx iris.Context)

SchemaToExample @Tags 服务管理/schema @summary Schema生成Example @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param JsonContent body serverDomain.JsonContent true "Schema生成Example的请求参数" @success 200 {object} _domain.Response @Router /api/v1/serves/schema/schema2example [post]

func (*ServeCtrl) SchemaToYaml

func (c *ServeCtrl) SchemaToYaml(ctx iris.Context)

SchemaToYaml @Tags 服务管理/schema @summary schema转yaml @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param JsonContent body serverDomain.JsonContent true "schema转yaml的请求参数" @success 200 {object} _domain.Response{data=string} @Router /api/v1/serves/schema/schema2yaml [post]

type ShareVarCtrl

type ShareVarCtrl struct {
	ShareVarService *service.ShareVarService `inject:""`
	BaseCtrl
}

func (*ShareVarCtrl) Clear

func (c *ShareVarCtrl) Clear(ctx iris.Context)

Clear 清除 @Tags 共享变量 @summary 清空共享变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugInfo body domain.DebugInfo true "清空共享变量的请求参数" @success 200 {object} _domain.Response @Router /api/v1/shareVars/clear [post]

func (*ShareVarCtrl) Delete

func (c *ShareVarCtrl) Delete(ctx iris.Context)

Delete 删除 @Tags 共享变量 @summary 删除共享变量 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "变量ID" @success 200 {object} _domain.Response @Router /api/v1/shareVars/{id} [delete]

func (*ShareVarCtrl) List

func (c *ShareVarCtrl) List(ctx iris.Context)

List @Tags 共享变量 @summary 列出变量列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param DebugInfo body domain.DebugInfo true "列出变量列表的请求参数" @success 200 {object} _domain.Response{data=[]domain.GlobalVar} @Router /api/v1/shareVars/list [post]

type SnippetCtrl

type SnippetCtrl struct {
	SnippetService        *service.SnippetService        `inject:""`
	DebugInterfaceService *service.DebugInterfaceService `inject:""`
	BaseCtrl
}

func (*SnippetCtrl) Get

func (c *SnippetCtrl) Get(ctx iris.Context)

Get 详情 @Tags 脚本 @summary 获取详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param name query string true "脚本名" @success 200 {object} _domain.Response{data=model.Snippet} @Router /api/v1/snippets [get]

func (*SnippetCtrl) GetJslibs

func (c *SnippetCtrl) GetJslibs(ctx iris.Context)

func (*SnippetCtrl) GetJslibsForAgent

func (c *SnippetCtrl) GetJslibsForAgent(ctx iris.Context)

func (*SnippetCtrl) ListCustomFunc

func (c *SnippetCtrl) ListCustomFunc(ctx iris.Context)

func (*SnippetCtrl) ListJslibNames

func (c *SnippetCtrl) ListJslibNames(ctx iris.Context)

func (*SnippetCtrl) ListMock

func (c *SnippetCtrl) ListMock(ctx iris.Context)

func (*SnippetCtrl) ListSysFunc

func (c *SnippetCtrl) ListSysFunc(ctx iris.Context)

func (*SnippetCtrl) ListVar

func (c *SnippetCtrl) ListVar(ctx iris.Context)

type SummaryCtrl

type SummaryCtrl struct {
	SummaryService *service.SummaryService `inject:""`
	BaseCtrl
}

func (*SummaryCtrl) Bugs

func (c *SummaryCtrl) Bugs(ctx iris.Context)

Bugs @Tags 汇总 @summary 汇总bug信息 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param projectId path int true "项目ID" @success 200 {object} _domain.Response{data=serverDomain.ResSummaryBugs} @Router /api/v1/summary/bugs/{projectId} [get]

func (*SummaryCtrl) Card

func (c *SummaryCtrl) Card(ctx iris.Context)

Card @Tags 汇总 @summary 汇总卡片位信息 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param projectId path int true "项目ID" @success 200 {object} _domain.Response{data=serverDomain.ResSummaryCard} @Router /api/v1/summary/card/{projectId} [get]

func (*SummaryCtrl) Collection

func (c *SummaryCtrl) Collection(ctx iris.Context)

Collection @Tags 汇总 @summary 汇总数据 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param store path string true "string" @success 200 {object} _domain.Response @Router /api/v1/summary/collection/{store} [get]

func (*SummaryCtrl) Details

func (c *SummaryCtrl) Details(ctx iris.Context)

Details @Tags 汇总 @summary 汇总项目详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=serverDomain.ResSummaryDetail} @Router /api/v1/summary/details [get]

func (*SummaryCtrl) ProjectUserRanking

func (c *SummaryCtrl) ProjectUserRanking(ctx iris.Context)

ProjectUserRanking @Tags 汇总 @summary 汇总项目用户排行数据 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param cycle path int true "cycle" @Param projectId path int true "项目ID" @success 200 {object} _domain.Response{data=serverDomain.ResRankingList} @Router /api/v1/summary/projectUserRanking/{cycle}/{projectId} [get]

func (*SummaryCtrl) Summary

func (c *SummaryCtrl) Summary()

type SysAgentCtrl

type SysAgentCtrl struct {
	BaseCtrl
	SysAgentService *service.SysAgentService `inject:""`
}

func (*SysAgentCtrl) Delete

func (c *SysAgentCtrl) Delete(ctx iris.Context)

func (*SysAgentCtrl) Disable

func (c *SysAgentCtrl) Disable(ctx iris.Context)

func (*SysAgentCtrl) Get

func (c *SysAgentCtrl) Get(ctx iris.Context)

func (*SysAgentCtrl) List

func (c *SysAgentCtrl) List(ctx iris.Context)

func (*SysAgentCtrl) Save

func (c *SysAgentCtrl) Save(ctx iris.Context)

func (*SysAgentCtrl) UpdateName

func (c *SysAgentCtrl) UpdateName(ctx iris.Context)

type TestsCtrl

type TestsCtrl struct {
	BaseCtrl

	StreamTestService *service.StreamTestService `inject:""`
}

func (*TestsCtrl) Connect

func (c *TestsCtrl) Connect(ctx iris.Context)

func (*TestsCtrl) Gets

func (c *TestsCtrl) Gets(ctx iris.Context)

func (*TestsCtrl) Head

func (c *TestsCtrl) Head(ctx iris.Context)

func (*TestsCtrl) Options

func (c *TestsCtrl) Options(ctx iris.Context)

func (*TestsCtrl) Posts

func (c *TestsCtrl) Posts(ctx iris.Context)

func (*TestsCtrl) Stream

func (c *TestsCtrl) Stream(ctx iris.Context)

func (*TestsCtrl) Trace

func (c *TestsCtrl) Trace(ctx iris.Context)

type UserCtrl

type UserCtrl struct {
	BaseCtrl
	UserService               *service.UserService               `inject:""`
	UserRepo                  *repo.UserRepo                     `inject:""`
	IntegrationProjectService *integrationService.ProjectService `inject:""`
}

func (*UserCtrl) ChangeAvatar

func (c *UserCtrl) ChangeAvatar(ctx iris.Context)

ChangeAvatar 修改头像 @Tags 用户管理 @summary 修改头像 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param Avatar body model.Avatar true "头像" @success 200 {object} _domain.Response @Router /api/v1/users/change_avatar [post]

func (*UserCtrl) ChangeUserSysRole

func (c *UserCtrl) ChangeUserSysRole(ctx iris.Context)

ChangeUserSysRole @Tags 用户管理 @summary 更新用户系统角色 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param UpdateUserRoleReq body serverDomain.UpdateUserRoleReq true "更新用户系统角色的请求参数" @success 200 {object} _domain.Response @Router /api/v1/users/changeUserSysRole [post]

func (*UserCtrl) Clear

func (c *UserCtrl) Clear(ctx iris.Context)

Clear 清空 token @Tags 用户管理 @summary 清空 token @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response @Router /api/v1/users/clear [get]

func (*UserCtrl) CreateUser

func (c *UserCtrl) CreateUser(ctx iris.Context)

CreateUser 添加 @Tags 用户管理 @summary 新建用户 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param UserReq body serverDomain.UserReq true "新建用户的请求参数" @success 200 {object} _domain.Response @Router /api/v1/users [post]

func (*UserCtrl) DeleteUser

func (c *UserCtrl) DeleteUser(ctx iris.Context)

DeleteUser 删除 @Tags 用户管理 @summary 删除用户 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "用户ID" @success 200 {object} _domain.Response @Router /api/v1/users/{id} [delete]

func (*UserCtrl) GetUser

func (c *UserCtrl) GetUser(ctx iris.Context)

GetUser 详情 @Tags 用户管理 @summary 用户详情 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "用户ID" @success 200 {object} _domain.Response{data=serverDomain.UserResp} @Router /api/v1/users/{id} [get]

func (*UserCtrl) GetUsersNotExistedInProject

func (c *UserCtrl) GetUsersNotExistedInProject(ctx iris.Context)

GetUsersNotExistedInProject @Tags 用户管理 @summary 获取项目中没有的用户列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=object{result=[]serverDomain.UserResp}} @Router /api/v1/users/usersNotExistedInProject [get]

func (*UserCtrl) Invite

func (c *UserCtrl) Invite(ctx iris.Context)

Invite 邀请用户 @Tags 用户管理 @summary 邀请用户 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param InviteUserReq body serverDomain.InviteUserReq true "邀请用户的请求参数" @success 200 {object} _domain.Response @Router /api/v1/users/invite [post]

func (*UserCtrl) ListAll

func (c *UserCtrl) ListAll(ctx iris.Context)

ListAll @Tags 用户管理 @summary 用户列表 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param UserReqPaginate query serverDomain.UserReqPaginate true "查询参数" @success 200 {object} _domain.Response{data=_domain.PageData{result=[]serverDomain.UserResp}} @Router /api/v1/users [get]

func (*UserCtrl) Logout

func (c *UserCtrl) Logout(ctx iris.Context)

Logout 退出 @Tags 用户管理 @summary 退出登录 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response @Router /api/v1/users/logout [get]

func (*UserCtrl) Message

func (c *UserCtrl) Message(ctx iris.Context)

Message 消息

func (*UserCtrl) Profile

func (c *UserCtrl) Profile(ctx iris.Context)

Profile 个人信息 @Tags 用户管理 @summary 个人信息 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @success 200 {object} _domain.Response{data=serverDomain.UserResp} @Router /api/v1/users/profile [get]

func (*UserCtrl) UpdateEmail

func (c *UserCtrl) UpdateEmail(ctx iris.Context)

UpdateEmail 修改邮箱 @Tags 用户管理 @summary 修改邮箱 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param UpdateUserReq body serverDomain.UpdateUserReq true "修改邮箱的请求参数" @success 200 {object} _domain.Response @Router /api/v1/users/updateEmail [post]

func (*UserCtrl) UpdateName

func (c *UserCtrl) UpdateName(ctx iris.Context)

UpdateName 修改名称 @Tags 用户管理 @summary 修改名称 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param UpdateUserReq body serverDomain.UpdateUserReq true "修改名称的请求参数" @success 200 {object} _domain.Response{data=serverDomain.UserResp} @Router /api/v1/users/updateName [post]

func (*UserCtrl) UpdatePassword

func (c *UserCtrl) UpdatePassword(ctx iris.Context)

UpdatePassword 修改密码 @Tags 用户管理 @summary 修改密码 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param UpdateUserReq body serverDomain.UpdateUserReq true "修改密码的请求参数" @success 200 {object} _domain.Response{data=serverDomain.UserResp} @Router /api/v1/users/updatePassword [post]

func (*UserCtrl) UpdateUser

func (c *UserCtrl) UpdateUser(ctx iris.Context)

UpdateUser 更新 @Tags 用户管理 @summary 编辑用户 @accept application/json @Produce application/json @Param Authorization header string true "Authentication header" @Param currProjectId query int true "当前项目ID" @Param id path int true "用户ID" @Param UserReq body serverDomain.UserReq true "编辑用户的请求参数" @success 200 {object} _domain.Response @Router /api/v1/users/{id} [post]

type WebSocketCtrl

type WebSocketCtrl struct {
	Namespace         string
	*websocket.NSConn `stateless:"true"`

	ScenarioExecService *service.ScenarioExecService `inject:""`
}

func NewWebsocketCtrl

func NewWebsocketCtrl() *WebSocketCtrl

func (*WebSocketCtrl) OnChat

func (c *WebSocketCtrl) OnChat(wsMsg websocket.Message) (err error)

OnChat This will call the "OnVisit" event on all clients, including the current one, with the 'newCount' variable.

func (*WebSocketCtrl) OnNamespaceConnected

func (c *WebSocketCtrl) OnNamespaceConnected(wsMsg websocket.Message) error

func (*WebSocketCtrl) OnNamespaceDisconnect

func (c *WebSocketCtrl) OnNamespaceDisconnect(wsMsg websocket.Message) error

OnNamespaceDisconnect This will call the "OnVisit" event on all clients, except the current one, it can't because it's left but for any case use this type of design.

type WebsocketInterfaceCtrl

type WebsocketInterfaceCtrl struct {
	WebsocketInterfaceService *service.WebsocketInterfaceService `inject:""`

	BaseCtrl
}

func (*WebsocketInterfaceCtrl) GetDebugData

func (c *WebsocketInterfaceCtrl) GetDebugData(ctx iris.Context)

func (*WebsocketInterfaceCtrl) SaveDebugData

func (c *WebsocketInterfaceCtrl) SaveDebugData(ctx iris.Context)

Jump to

Keyboard shortcuts

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