Documentation ¶
Index ¶
- type AddEndpointTagReq
- type AgentReq
- type AiMeasurementCreateReq
- type ApplyProjectReq
- type AuditProjectPaginate
- type AuditProjectReq
- type BatchAddSchemaRootReq
- type BatchUpdateReq
- type Category
- type CategoryCount
- type CategoryCreateReq
- type CategoryEndpointCase
- type CategoryMoveReq
- type CategoryReq
- type ChangeServeReq
- type ConditionMoveReq
- type CreateExampleReq
- type DataCache
- type DataReq
- type DataSys
- type DatapoolReq
- type DatapoolReqPaginate
- type DatapoolUploadResp
- type DbConnReq
- type DiagnoseCurlImportReq
- type DiagnoseCurlLoadReq
- type DiagnoseInterface
- type DiagnoseInterfaceImportReq
- type DiagnoseInterfaceLoadReq
- type DiagnoseInterfaceMoveReq
- type DiagnoseInterfaceReq
- type DiagnoseInterfaceSaveReq
- type DocumentRep
- type DocumentReq
- type DocumentServe
- type DocumentShareReq
- type DocumentVersionListReq
- type DocumentVersionReq
- type EndpointCase
- type EndpointCaseAlternativeSaveReq
- type EndpointCaseBenchmarkCreateReq
- type EndpointCaseDetail
- type EndpointCaseFactorSaveReq
- type EndpointCaseReqPaginate
- type EndpointCaseSaveReq
- type EndpointCaseTree
- type EndpointCodeReq
- type EndpointCount
- type EndpointDiffReq
- type EndpointDiffRes
- type EndpointInterfaceReqPaginate
- type EndpointReq
- type EndpointReqPaginate
- type EndpointRes
- type EndpointTagReq
- type EndpointVersionReq
- type EndpointVersions
- type Endpoints
- type EnvironmentIdsReq
- type EnvironmentParam
- type EnvironmentParamsReq
- type EnvironmentReq
- type EnvironmentVariable
- type ExtractorConditionQuickCreateReq
- type FavoriteReq
- type GenerateFromRequestReq
- type GenerateFromResponseReq
- type GrpcMethod
- type GrpcParseResp
- type GrpcReq
- type GrpcService
- type HistoryServeAddServesReq
- type ImportEndpointDataReq
- type ImportThirdPartyEndpointReq
- type InterfaceCase
- type InterfaceImportReq
- type InterfaceMoveReq
- type InterfaceReq
- type InterfaceResp
- type InterfaceSimple
- type InterfaceYapiReq
- type InviteUserReq
- type JslibReq
- type JsonContent
- type LecangCronReq
- type LecangFuncLimit
- type LoginReq
- type LoginResp
- type McsApprovalRes
- type McsApprovalResData
- type MemberResp
- type MessageBase
- type MessageReadBase
- type MessageReadReq
- type MessageReq
- type MessageReqPaginate
- type MessageResp
- type MessageScope
- type MetaDataItem
- type MockExpectIdsReq
- type MockExpectRequestOption
- type MockExpectRequestOptions
- type MockJsExpression
- type MockReq
- type MockReqJson
- type MoveReq
- type NotRelationScenarioReqPaginate
- type OpenApiCookie
- type OpenApiHeader
- type OpenApiParam
- type ParserRequest
- type ParserResponse
- type PermBase
- type PermReq
- type PermReqPaginate
- type PermResp
- type PermStruct
- type PlanAddScenariosReq
- type PlanAndReportDetail
- type PlanReportReqPaginate
- type PlanReqPaginate
- type PlanScenariosReqPaginate
- type ProcessorDataUploadReq
- type ProcessorDataUploadResp
- type ProjectBase
- type ProjectCronReq
- type ProjectCronReqPaginate
- type ProjectListWithRole
- type ProjectMemberRemoveReq
- type ProjectMenuBase
- type ProjectMenuConfig
- type ProjectMenuReq
- type ProjectPermBase
- type ProjectRecentlyVisitedBase
- type ProjectRecentlyVisitedReq
- type ProjectReq
- type ProjectReqPaginate
- type ProjectResp
- type ProjectRoleMenuConfig
- type ProjectRolePermBase
- type ProjectRolePermPaginateReq
- type ProjectUserPermsPaginate
- type RecordItem
- type RecordReq
- type RecordRequest
- type RecordResponse
- type ReferBugReq
- type RegisterReq
- type ReportReqPaginate
- type ReqFavorite
- type ReqProjectId
- type ReqSummaryBugs
- type ResProjectId
- type ResRankingList
- type ResSummaryBugs
- type ResSummaryCard
- type ResSummaryDetail
- type ResSummaryDetails
- type ResUserIdAndName
- type ResUserRanking
- type ResetPasswordReq
- type RoleBase
- type RoleMenuConfig
- type RoleReq
- type RoleReqPaginate
- type RoleResp
- type RpcResult
- type SaveLcEndpointReq
- type SaveSchemaRes
- type SaveSpaceRelatedProjectsReq
- type ScenarioAddCasesFromTreeReq
- type ScenarioAddInterfacesFromTreeReq
- type ScenarioAddInterfacesReq
- type ScenarioAddScenarioReq
- type ScenarioCategory
- type ScenarioCategoryCreateReq
- type ScenarioCategoryMoveReq
- type ScenarioCategoryReq
- type ScenarioCurlImportReq
- type ScenarioNodeMoveReq
- type ScenarioNodeReq
- type ScenarioPlanReqPaginate
- type ScenarioProcessorInfo
- type ScenarioProcessorReq
- type ScenarioReqPaginate
- type ScenarioSimple
- type SchemaContent
- type SchemaReq
- type SecuritySchemaReq
- type ServeReq
- type ServeReqPaginate
- type ServeSchemaPaginate
- type ServeSchemaRefReq
- type ServeSchemaReq
- type ServeSecurityPaginate
- type ServeSecurityReq
- type ServeServer
- type ServeVersionBindEndpointReq
- type ServeVersionPaginate
- type ServeVersionReq
- type SnippetRes
- type StreamTestObj
- type SummaryReqPaginate
- type SwaggerSyncReq
- type TestExprRequest
- type TestExprResponse
- type UpdateDocumentVersionReq
- type UpdateNameReq
- type UpdateProjectMemberReq
- type UpdateUserReq
- type UpdateUserRoleReq
- type UserBase
- type UserReq
- type UserReqPaginate
- type UserResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddEndpointTagReq ¶
type AddEndpointTagReq struct {
Name string `json:"name"`
}
type AiMeasurementCreateReq ¶
type AiMeasurementCreateReq struct {
domain.AiMeasurement
}
type ApplyProjectReq ¶
type AuditProjectPaginate ¶
type AuditProjectReq ¶
type AuditProjectReq struct { Id uint `json:"id" validate:"required"` Status consts.AuditStatus `json:"status" validate:"required"` }
type BatchAddSchemaRootReq ¶
type BatchAddSchemaRootReq struct {
ProjectIds []uint `json:"projectIds"`
}
type BatchUpdateReq ¶
type Category ¶
type Category struct { Id int64 `json:"id"` Name string `json:"name"` Desc string `json:"desc"` ParentId int64 `json:"parentId"` Children []*Category `json:"children"` Slots iris.Map `json:"slots"` Count int64 `json:"count"` EntityId uint `json:"entityId"` EntityData interface{} `json:"entityData"` }
category
type CategoryCount ¶
type CategoryCreateReq ¶
type CategoryCreateReq struct { Name string `json:"name"` Mode string `json:"mode"` Type serverConsts.CategoryDiscriminator `json:"type"` ServeId uint `json:"serveId"` ModuleId string `json:"moduleId"` TargetId int `json:"targetId"` ProjectId uint `json:"projectId"` EntityId uint `json:"entityId"` IsEntity bool `json:"isEntity"` }
type CategoryEndpointCase ¶
type CategoryEndpointCase struct { CaseUniqueId string `json:"caseUniqueId"` EndpointUniqueId string `json:"endpoint_unique_id"` CaseId uint `json:"caseId"` CaseName string `json:"caseName"` Method string `json:"method"` CaseDesc string `json:"caseDesc"` CaseDebugInterfaceId uint `json:"caseDebugInterfaceId"` ServeId uint `json:"serveId"` ProjectId uint `json:"projectId"` EndpointId uint `json:"endpointId"` EndpointTitle string `json:"endpointTitle"` EndpointDescription string `json:"endpointDescription"` CategoryId int64 `json:"categoryId"` }
type CategoryMoveReq ¶
type CategoryMoveReq struct { Type serverConsts.CategoryDiscriminator `json:"type"` DragKey int `json:"dragKey"` DropKey int `json:"dropKey"` DropPos serverConsts.DropPos `json:"dropPos"` }
type CategoryReq ¶
type CategoryReq struct { Id int `json:"id"` Name string `json:"name"` Desc string `json:"desc"` Parent uint `json:"parent"` Type serverConsts.CategoryDiscriminator `json:"type"` }
type ChangeServeReq ¶
type ChangeServeReq struct {
Id uint
}
type ConditionMoveReq ¶
type CreateExampleReq ¶
type CreateExampleReq struct { EndpointId uint `json:"endpointId"` Method consts.HttpMethod `json:"method"` Code string `json:"code"` }
type DatapoolReq ¶
type DatapoolReqPaginate ¶
type DatapoolUploadResp ¶
type DatapoolUploadResp struct { Path string `json:"path"` Data [][]interface{} `json:"data"` }
type DiagnoseCurlImportReq ¶
type DiagnoseCurlLoadReq ¶
type DiagnoseCurlLoadReq struct { // from endpoint interface list EndpointId uint `json:"endpointId"` InterfaceMethod consts.HttpMethod `json:"interfaceMethod"` // from debug page DebugInterfaceId uint `json:"debugInterfaceId"` EndpointInterfaceId uint `json:"endpointInterfaceId"` CaseId uint `json:"caseId"` DiagnoseId uint `json:"diagnoseId"` EnvironmentId uint `json:"environmentId"` ProjectId int `json:"projectId"` UserId uint `json:"userId"` UsedBy consts.UsedBy `json:"usedBy"` FromDefine bool `json:"fromDefine"` }
type DiagnoseInterface ¶
type DiagnoseInterface struct { Id int64 `json:"id"` Title string `json:"title"` Desc string `json:"desc"` Type serverConsts.DiagnoseInterfaceType `json:"type"` IsDir bool `json:"isDir"` DebugInterfaceId uint `json:"debugInterfaceId"` ParentId int64 `json:"parentId"` ProjectId uint `json:"projectId"` ServeId uint `json:"serveId"` UseID uint `json:"useId"` Ordr int `json:"ordr"` Children []*DiagnoseInterface `json:"children"` Slots iris.Map `json:"slots"` Count int `json:"count"` Method consts.HttpMethod `json:"method"` }
type DiagnoseInterfaceMoveReq ¶
type DiagnoseInterfaceMoveReq struct { DragKey int `json:"dragKey"` DropKey int `json:"dropKey"` DropPos serverConsts.DropPos `json:"dropPos"` }
type DiagnoseInterfaceReq ¶
type DiagnoseInterfaceSaveReq ¶
type DiagnoseInterfaceSaveReq struct { ID uint `json:"id"` Title string `json:"title"` Mode string `json:"mode"` ParentId uint `json:"parentId"` ServeId uint `json:"serveId"` ProjectId uint `json:"projectId"` CreatedBy uint `json:"createdBy"` UpdatedBy uint `json:"updatedBy"` Type serverConsts.DiagnoseInterfaceType `json:"type"` }
type DocumentRep ¶
type DocumentRep struct { ProjectReq Environment []EnvironmentReq `json:"environment"` Serves []DocumentServe `json:"serves"` GlobalParams map[string]interface{} `json:"globalParams"` GlobalVars []EnvironmentParam `json:"globalVars"` Version string `json:"version"` DocumentId uint `json:"documentId"` Mock []interface{} `json:"mock"` Components []ServeSchemaReq `json:"components"` }
type DocumentReq ¶
type DocumentServe ¶
type DocumentServe struct { ServeReq Servers []ServeServer `json:"servers"` Component []ServeSchemaReq `json:"component"` Endpoints []EndpointReq `json:"endpoints"` Securities []ServeSecurityReq `json:"securities"` }
type DocumentShareReq ¶
type DocumentShareReq struct {}
type DocumentVersionListReq ¶
type DocumentVersionListReq struct {
NeedLatest bool `json:"needLatest"` //需要展示实时版本这条假数据
}
type DocumentVersionReq ¶
type EndpointCase ¶
type EndpointCaseAlternativeSaveReq ¶
type EndpointCaseAlternativeSaveReq struct { Type string `json:"type"` BaseId int `json:"baseId"` Values casesHelper.AlternativeCase `json:"values"` CreateUserId uint `json:"createUserId"` CreateUserName string `json:"createUserName"` }
type EndpointCaseBenchmarkCreateReq ¶
type EndpointCaseBenchmarkCreateReq struct { Type string `json:"type"` Name string `json:"name"` EndpointInterfaceId uint `json:"endpointInterfaceId"` // from a endpointInterface BaseCaseId int `json:"baseCaseId"` // from a exist case CreateUserId uint `json:"createUserId"` CreateUserName string `json:"createUserName"` }
type EndpointCaseDetail ¶
type EndpointCaseDetail struct { EndpointCase DebugData domain.DebugData `json:"debugData"` }
type EndpointCaseReqPaginate ¶
type EndpointCaseReqPaginate struct { _domain.PaginateReq EndpointId int `json:"endpointId"` Keywords string `json:"keywords"` Enabled string `json:"enabled"` }
type EndpointCaseSaveReq ¶
type EndpointCaseSaveReq struct { ID uint `json:"id"` Name string `json:"name"` Method consts.HttpMethod `json:"method"` Desc string `json:"desc"` EndpointId uint `json:"endpointId"` ServeId uint `json:"serveId"` ProjectId uint `json:"projectId"` CreateUserId uint `json:"createUserId"` CreateUserName string `json:"createUserName"` DebugInterfaceId int `json:"debugInterfaceId"` EndpointInterfaceId int `json:"endpointInterfaceId"` UsedBy string `json:"usedBy"` DebugData domain.DebugData `json:"debugData"` CaseType consts.CaseType `json:"caseType"` BaseCase uint `json:"baseCase"` }
type EndpointCaseTree ¶
type EndpointCaseTree struct { Key int64 `json:"key"` Id string `json:"id"` Name string `json:"name"` Method string `json:"method"` Desc string `json:"desc"` Type serverConsts.EndpointCaseTreeType `json:"type"` IsDir bool `json:"isDir"` CategoryId int64 `json:"categoryId"` EndpointId uint `json:"endpointId"` DebugInterfaceId uint `json:"debugInterfaceId"` CaseInterfaceId uint `json:"caseInterfaceId"` ParentId string `json:"parentId"` ProjectId uint `json:"projectId"` ServeId uint `json:"serveId"` UseID uint `json:"useId"` Children []*EndpointCaseTree `json:"children"` Slots iris.Map `json:"slots"` Count int64 `json:"count"` Ordr int `json:"ordr"` }
type EndpointCodeReq ¶
type EndpointCount ¶
type EndpointDiffReq ¶
type EndpointDiffRes ¶
type EndpointReq ¶
type EndpointReq struct { ID int64 `json:"id"` ProjectId uint `json:"projectId" validate:"required"` ServeId uint `json:"serveId" validate:"required"` ServerId uint `json:"serverId"` Status int64 `json:"status"` Title string `json:"title" validate:"required"` Path string `json:"path"` Version string `json:"version"` CreateUser string `json:"CreateUser"` UpdateUser string `json:"updateUser"` CategoryId int64 `json:"categoryId"` PathParams []OpenApiParam `gorm:"-" json:"pathParams"` Interfaces []InterfaceResp `gorm:"-" json:"interfaces"` GlobalParams []domain.GlobalParam `gorm:"-" json:"globalParams"` Description string `json:"description"` Curl string `json:"curl"` }
type EndpointReqPaginate ¶
type EndpointReqPaginate struct { _domain.PaginateReq ProjectId int64 `json:"projectId"` CategoryId int64 `json:"categoryId"` Status []int64 `json:"status"` CreateUser []string `json:"createUser"` Title string `json:"title"` ServeId uint `json:"serveId"` ServeVersion string `json:"serveVersion"` TagNames []string `json:"tagNames"` ServeIds []uint `json:"serveIds"` IsFavorite bool `json:"isFavorite"` UserId uint `json:"UserId"` }
type EndpointRes ¶
type EndpointRes struct { ProjectId int64 `json:"project_id"` Status int64 `json:"status"` Title string `json:"title"` Version string `json:"version"` PathParams []OpenApiParam `json:"pathParams"` Interfaces []InterfaceResp `json:"interfaces"` }
type EndpointTagReq ¶
type EndpointVersionReq ¶
type EndpointVersions ¶
type EnvironmentIdsReq ¶
type EnvironmentIdsReq []uint
type EnvironmentParam ¶
type EnvironmentParamsReq ¶
type EnvironmentParamsReq struct { ProjectId uint `json:"projectId"` Header []EnvironmentParam `json:"header"` Cookie []EnvironmentParam `json:"cookie"` Query []EnvironmentParam `json:"query"` Body []EnvironmentParam `json:"body"` Path []EnvironmentParam `json:"path"` }
type EnvironmentReq ¶
type EnvironmentReq struct { ID uint ProjectId uint `json:"projectId" validate:"required"` Name string `json:"name" validate:"required"` ServeServers []ServeServer `json:"serveServers"` Vars []EnvironmentVariable `json:"vars"` }
type EnvironmentVariable ¶
type ExtractorConditionQuickCreateReq ¶
type ExtractorConditionQuickCreateReq struct { Src consts.ExtractorSrc `json:"src"` ConditionSrc consts.ConditionSrc `json:"conditionSrc"` Config domain.ExtractorBase `json:"conf"` Info domain.DebugInfo `json:"info"` }
type FavoriteReq ¶
type GenerateFromRequestReq ¶
type GenerateFromResponseReq ¶
type GrpcMethod ¶
type GrpcMethod struct {
Name string `json:"name"`
}
type GrpcParseResp ¶
type GrpcParseResp struct { Services []GrpcService `json:"services"` Methods []GrpcMethod `json:"methods"` }
type GrpcReq ¶
type GrpcReq struct { Address string `json:"address"` Service string `json:"service"` Method string `json:"method"` UseTls bool `json:"useTls"` RestartConn bool `json:"restartConn"` MetaData []MetaDataItem `json:"metaData"` IsClientStreaming bool `json:"isClientStreaming"` IsServerStreaming bool `json:"isServerStreaming"` Message string `json:"message"` // for invoke ProtoSrc string `json:"protoSrc"` ProtoName string `json:"protoName"` ProtoPath string `json:"protoPath"` ExecUuid string `json:"execUuid"` }
type GrpcService ¶
type GrpcService struct {
Name string `json:"name"`
}
type ImportEndpointDataReq ¶
type ImportEndpointDataReq struct { ServeId uint `json:"serveId" validate:"required"` //服务ID DriverType convert.DriverType `json:"driverType" validate:"required"` //接口数据来源 CategoryId int64 `json:"categoryId"` //所属分类 DataSyncType consts.DataSyncType `json:"dataSyncType"` //数据同步方式 OpenUrlImport bool `json:"openUrlImport"` //开启url导入 FilePath string `json:"filePath" validate:"required"` ProjectId uint `json:"projectId"` UserId uint `json:"userId"` SourceType consts.SourceType `json:"sourceType"` ClassCode string `json:"classCode"` //模型类名 FunctionCodes []string `json:"functionCodes"` //要导入的方法 AddServicePrefix bool `json:"addServicePrefix"` }
type ImportThirdPartyEndpointReq ¶
type ImportThirdPartyEndpointReq struct { CategoryId int64 `json:"categoryId"` //所属分类 DataSyncType consts.DataSyncType `json:"dataSyncType"` //数据合并策略 FilePath string `json:"filePath" validate:"required"` //数据源的环境url ClassCode string `json:"classCode"` //模型类名 FunctionCodes []string `json:"functionCodes"` //要导入的方法 ProjectId uint `json:"projectId"` ServeId uint `json:"serveId"` UserId uint `json:"userId"` }
type InterfaceCase ¶
type InterfaceImportReq ¶
type InterfaceMoveReq ¶
type InterfaceMoveReq struct { DragKey int `json:"dragKey"` DropKey int `json:"dropKey"` DropPos serverConsts.DropPos `json:"dropPos"` }
type InterfaceReq ¶
type InterfaceReq struct { Mode serverConsts.NodeCreateMode `json:"mode"` Type serverConsts.NodeCreateType `json:"type"` Target int `json:"target"` Name string `json:"name"` Id int `json:"id"` ProjectId int `json:"projectId"` }
type InterfaceResp ¶
type InterfaceResp struct { ID int64 `json:"id"` Url string `json:"url"` Name string `json:"name"` OperationId string `json:"operationId"` Description string `json:"description"` Security string `json:"security"` Method string `gorm:"default:GET" json:"method"` Params []OpenApiParam `gorm:"-" json:"params"` Headers []OpenApiHeader `gorm:"-" json:"headers"` Cookies []OpenApiCookie `gorm:"-" json:"cookies"` RequestBody domain.RequestBody `gorm:"default:{}" json:"requestBody"` ResponseBodies []domain.ResponseBody `gorm:"default:{}" json:"responseBodies"` Body string `gorm:"default:{}" json:"body"` BodyType string `gorm:"default:''" json:"bodyType"` ResponseCodes string `json:"responseCodes"` Mock []interface{} `gorm:"-" json:"mock"` //BasicAuth domain.BasicAuth `gorm:"-" json:"basicAuth"` //BearerToken domain.BearerToken `gorm:"-" json:"bearerToken"` //OAuth20 domain.OAuth20 `gorm:"-" json:"oAuth20"` //ApiKey domain.ApiKey `gorm:"-" json:"apiKey"` ProjectId uint `json:"projectId"` GlobalParams []domain.GlobalParam `json:"globalParams"` }
type InterfaceSimple ¶
type InterfaceYapiReq ¶
type InviteUserReq ¶
type JsonContent ¶
type LecangCronReq ¶
type LecangCronReq struct { Token string `json:"token"` SyncType consts.DataSyncType `json:"syncType"` ProjectId uint `json:"projectId"` CategoryId int `json:"categoryId"` Url string `json:"url"` ServeId uint `json:"serveId"` CreateUserId uint `json:"createUserId"` ServiceCode string `json:"serviceCode"` //乐仓服务名 AddServicePrefix bool `json:"addServicePrefix"` LecangFuncLimit }
type LecangFuncLimit ¶
type LecangFuncLimit struct { MessageType consts.CronLecangMessageType `json:"messageType"` //消息类型 ExtendOverride consts.CronLecangIsExtendOverride `json:"extendOverride"` //继承父类 Overridable consts.IntegrationFuncOverridable `json:"overridable"` //是否允许重写 }
type LoginReq ¶
type LoginReq struct { Username string `json:"username" validate:"required"` Password string `json:"password" validate:"required"` }
LoginReq 登录请求字段
type McsApprovalRes ¶
type McsApprovalRes struct {
Data string `json:"data"`
}
type McsApprovalResData ¶
type McsApprovalResData struct { InstanceId string `json:"instanceId"` //审批id Status int `json:"status"` //审批状态 1拒绝 2同意 3终止 4取消 5进行中(企微审批创建成功会立即返回此状态) ApplyTime int `json:"applyTime"` //发起时间:时间戳 Comments string `json:"comments"` //审批备注 ProcessTime string `json:"processTime"` //处理时间 ApproveUser []string `json:"approveUser"` //审批人第三方账号 }
type MemberResp ¶
type MessageBase ¶
type MessageBase struct { MessageSource consts.MessageSource `json:"message_source"` //业务模块 Content string `gorm:"type:text" json:"content"` ReceiverRange uint `json:"receiver_range"` // 接收者范围 1:全部 2:个人 3:某角色 4:某项目 SenderId uint `json:"sender_id"` //消息发送者 ReceiverId uint `json:"receiver_id"` ReadStatus uint `gorm:"-" json:"read_status"` // 已读状态 1:未读 2:已读 SendStatus consts.MessageSendStatus `json:"send_status"` ServiceType consts.MessageServiceType `json:"service_type"` McsMessageId string `json:"mcs_message_id"` BusinessId uint `json:"business_id"` // 业务ID }
type MessageReadBase ¶
type MessageReadReq ¶
type MessageReadReq struct { _domain.Model MessageReadBase }
type MessageReq ¶
type MessageReq struct { _domain.Model MessageBase }
type MessageReqPaginate ¶
type MessageReqPaginate struct { _domain.PaginateReq ReadStatus uint `json:"read_status"` // 已读状态 0:全部 1:未读 2:已读 MessageScope }
type MessageResp ¶
type MessageResp struct { _domain.PaginateReq MessageBase }
type MessageScope ¶
type MetaDataItem ¶
type MockExpectIdsReq ¶
type MockExpectIdsReq []uint
type MockExpectRequestOption ¶
type MockExpectRequestOptions ¶
type MockExpectRequestOptions map[consts.ParamIn][]MockExpectRequestOption
type MockJsExpression ¶
type MockReq ¶
type MockReq struct { ID uint `json:"id"` Priority consts.MockPriority `json:"priority"` ProjectId uint `json:"projectId"` }
type MockReqJson ¶
type OpenApiCookie ¶
type OpenApiCookie OpenApiParam
type OpenApiHeader ¶
type OpenApiHeader OpenApiParam
type OpenApiParam ¶
type OpenApiParam struct { domain.Param Format string `json:"format"` Example string `json:"example"` Pattern string `json:"pattern"` MinLength int64 `json:"minLength"` MaxLength int64 `json:"maxLength"` Default string `json:"default"` MultipleOf int64 `json:"multipleOf"` MinItems int64 `json:"minItems"` MaxItems int64 `json:"maxItems"` UniqueItems bool `json:"uniqueItems"` Ref string `json:"ref"` Required bool `json:"required"` Type string `json:"type"` Description string `json:"description"` Minimum float64 `json:"minimum"` Maximum float64 `json:"maximum"` Enum pq.StringArray `json:"enum"` }
type ParserRequest ¶
type ParserResponse ¶
type PermBase ¶
type PermBase struct { Name string `gorm:"index:perm_index,unique;not null ;type:varchar(200)" json:"name" validate:"required,gte=4,lte=50"` DisplayName string `gorm:"type:varchar(256)" json:"displayName"` Description string `gorm:"type:text" json:"description"` Act string `gorm:"index:perm_index;type:varchar(50)" json:"act" validate:"required"` }
type PermReqPaginate ¶
type PermReqPaginate struct { _domain.PaginateReq Name string `json:"name"` }
type PermStruct ¶
type PlanAddScenariosReq ¶
type PlanAddScenariosReq struct {
ScenarioIds []uint `json:"scenarioIds"`
}
type PlanAndReportDetail ¶
type PlanAndReportDetail struct { Id uint `json:"id"` //计划ID AdminName string `json:"adminName"` //负责人姓名 CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdateUserName string `json:"updateUserName"` //最近更新人姓名 CreateUserName string `json:"createUserName"` //创建人姓名 Status consts.TestStatus `json:"status"` //状态 TestPassRate string `json:"testPassRate"` //执行通过率 ExecTimes int64 `json:"execTimes"` //执行次数 ExecutorName string `json:"executorName"` //执行人姓名 ExecTime *time.Time `json:"execTime"` //执行时间 ExecEnv string `json:"execEnv"` //执行环境 CurrEnvId uint `json:"currEnvId"` }
type PlanReportReqPaginate ¶
type PlanReqPaginate ¶
type ProcessorDataUploadReq ¶
type ProcessorDataUploadResp ¶
type ProjectBase ¶
type ProjectBase struct { Name string `json:"name"` Desc string `json:"desc" gorm:"column:descr;type:text"` Type serverConsts.ProjectType `json:"type"` SchemaId uint `json:"schemaId"` OrgId uint `json:"orgId"` Logo string `json:"logo"` ShortName string `json:"shortName"` IncludeExample bool `json:"includeExample"` AdminId uint `json:"adminId"` AdminName string `gorm:"-" json:"adminName"` Source serverConsts.ProjectSource `json:"source"` }
type ProjectCronReq ¶
type ProjectCronReq struct { Id uint `json:"id"` Name string `json:"name"` Cron string `json:"cron"` ProjectId uint `json:"projectId"` Source consts.CronSource `json:"source"` Switch consts.SwitchStatus `json:"switch"` ConfigId uint `json:"configId"` CreateUserId uint `json:"createUserId"` UpdateUserId uint `json:"updateUserId"` }
type ProjectCronReqPaginate ¶
type ProjectCronReqPaginate struct { _domain.PaginateReq ProjectId uint `json:"projectId"` Name string `json:"name"` Source consts.CronSource `json:"source"` Switch consts.SwitchStatus `json:"switch"` }
type ProjectListWithRole ¶
type ProjectMemberRemoveReq ¶
type ProjectMenuBase ¶
type ProjectMenuBase struct { Code string `gorm:"index:code_index,unique;not null;type:varchar(256)" json:"code"` Title string `gorm:"type:varchar(256)" json:"title"` Path string `gorm:"type:varchar(256)" json:"path"` Type string `gorm:"type:varchar(100)" json:"type"` ParentId uint `json:"parentId"` }
type ProjectMenuConfig ¶
type ProjectMenuReq ¶
type ProjectMenuReq struct { _domain.Model ProjectMenuBase }
type ProjectPermBase ¶
type ProjectPermBase struct { Name string `gorm:"index:perm_index,unique;not null ;type:varchar(200)" json:"name" validate:"required,gte=4,lte=50"` DisplayName string `gorm:"type:varchar(256)" json:"displayName"` Description string `gorm:"type:text" json:"description"` Act string `gorm:"index:perm_index;type:varchar(50)" json:"act" validate:"required"` }
type ProjectRecentlyVisitedReq ¶
type ProjectRecentlyVisitedReq struct { _domain.Model ProjectRecentlyVisitedBase }
type ProjectReq ¶
type ProjectReq struct { _domain.Model ProjectBase integrationDomain.ProjectReq }
type ProjectReqPaginate ¶
type ProjectResp ¶
type ProjectResp struct { _domain.PaginateReq ProjectBase }
type ProjectRoleMenuConfig ¶
type ProjectRolePermBase ¶
type ProjectRolePermPaginateReq ¶
type ProjectRolePermPaginateReq struct { _domain.PaginateReq RoleId uint `json:"role_id"` }
type ProjectUserPermsPaginate ¶
type ProjectUserPermsPaginate struct {
_domain.PaginateReq
}
type RecordItem ¶
type RecordItem struct { Request RecordRequest `json:"request"` Response RecordResponse `json:"response"` }
type RecordReq ¶
type RecordReq struct { TargetId uint `json:"targetId"` ServeId uint `json:"serveId"` UserId uint `json:"userId"` Items []RecordItem `json:"items"` }
type RecordRequest ¶
type RecordRequest struct { HasPostData bool `json:"hasPostData"` Headers map[string]string `json:"headers"` Cookies map[string]map[string]interface{} `json:"cookies"` InitialPriority string `json:"initialPriority"` IsSameSite bool `json:"isSameSite"` Method string `json:"method"` MixedContentType string `json:"mixedContentType"` PostData string `json:"postData"` Body string `json:"body"` ReferrerPolicy string `json:"referrerPolicy"` Url string `json:"url"` }
type RecordResponse ¶
type ReferBugReq ¶
type RegisterReq ¶
type ReportReqPaginate ¶
type ReqFavorite ¶
type ReqFavorite struct {
Id uint `json:"id"`
}
type ReqProjectId ¶
type ReqProjectId struct {
ProjectId int64 `json:"projectId" param:"projectId"`
}
type ReqSummaryBugs ¶
type ReqSummaryBugs struct { ProjectId int64 `json:"projectId"` BugId string `gorm:"type:text" json:"bugId"` Source string `gorm:"type:text" json:"source"` BugSeverity string `gorm:"type:text" json:"bugSeverity"` BugCreateDate string `gorm:"type:text" json:"bugCreatedAt"` BugClassify string `gorm:"type:text" json:"bugClassify"` BugState string `gorm:"type:text" json:"bugState"` }
type ResProjectId ¶
type ResProjectId struct {
ProjectId int64 `json:"projectId" param:"projectId"`
}
type ResRankingList ¶
type ResRankingList struct {
UserRankingList []ResUserRanking `json:"userRankingList"`
}
type ResSummaryBugs ¶
type ResSummaryBugs struct { Total int64 `gorm:"default:0" json:"total"` Critical float64 `gorm:"default:0" json:"critical"` Blocker float64 `gorm:"default:0" json:"blocker"` Deadly float64 `gorm:"default:0" json:"deadly"` Major float64 `gorm:"default:0" json:"major"` Minor float64 `gorm:"default:0" json:"minor"` Suggest float64 `gorm:"default:0" json:"suggest"` }
type ResSummaryCard ¶
type ResSummaryCard struct { ProjectTotal int64 `gorm:"default:0" json:"projectTotal"` InterfaceTotal int64 `gorm:"default:0" json:"interfaceTotal"` ScenarioTotal int64 `gorm:"default:0" json:"scenarioTotal"` ExecTotal int64 `gorm:"default:0" json:"execTotal"` UserTotal int64 `gorm:"default:0" json:"userTotal"` PassRate float64 `gorm:"default:0" json:"passRate"` Coverage float64 `gorm:"default:0" json:"coverage"` InterfaceHb float64 `gorm:"default:0" json:"interfaceHb"` ScenarioHb float64 `gorm:"default:0" json:"scenarioHb"` CoverageHb float64 `gorm:"default:0" json:"coverageHb"` }
type ResSummaryDetail ¶
type ResSummaryDetail struct { UserProjectTotal int64 `gorm:"default:0" json:"userProjectTotal"` ProjectTotal int64 `gorm:"default:0" json:"projectTotal"` UserProjectList []ResSummaryDetails `json:"userProjectList"` ProjectList []ResSummaryDetails `json:"projectList"` }
type ResSummaryDetails ¶
type ResSummaryDetails struct { Id uint `gorm:"default:0" json:"id"` ProjectId int64 `gorm:"default:0" json:"projectId"` ProjectName string `gorm:"default:" json:"projectName"` ProjectDescr string `gorm:"default:" json:"projectDescr"` ProjectShortName string `gorm:"default:" json:"projectShortName"` ScenarioTotal int64 `gorm:"default:0" json:"scenarioTotal"` InterfaceTotal int64 `gorm:"default:0" json:"interfaceTotal"` ExecTotal int64 `gorm:"default:0" json:"execTotal"` PassRate float64 `gorm:"default:0" json:"passRate"` Coverage float64 `gorm:"default:0" json:"coverage"` Disabled bool `gorm:"default:false" json:"disabled"` AdminId int64 `gorm:"default:0" json:"adminId"` AdminName string `gorm:"default:" json:"adminName"` CreatedAt string `gorm:"default:" json:"createdAt"` BugTotal int64 `gorm:"default:0" json:"bugTotal"` UserList []ResUserIdAndName `json:"userList"` Accessible int `json:"accessible"` Products []uint `json:"products"` Spaces []string `json:"spaces"` }
type ResUserIdAndName ¶
type ResUserRanking ¶
type ResUserRanking struct { Sort int64 `gorm:"default:0" json:"sort"` UserId int64 `gorm:"default:0" json:"userId"` UserName string `json:"userName"` ScenarioTotal int64 `gorm:"default:0" json:"scenarioTotal"` TestCaseTotal int64 `gorm:"default:0" json:"testCaseTotal"` Hb int64 `gorm:"default:0" json:"hb"` UpdatedAt string `json:"updatedAt"` }
type ResetPasswordReq ¶
type RoleBase ¶
type RoleBase struct { Name string `gorm:"uniqueIndex;not null; type:varchar(256)" json:"name" validate:"required,gte=4,lte=50" comment:"名称"` DisplayName string `gorm:"type:varchar(256)" json:"displayName" comment:"显示名称"` Description string `gorm:"type:text" json:"description" comment:"描述"` Perms [][]string `gorm:"-" json:"perms"` }
type RoleMenuConfig ¶
type RoleReqPaginate ¶
type RoleReqPaginate struct { _domain.PaginateReq Name string `json:"name"` }
type RpcResult ¶
type RpcResult struct { Code _consts.ResultCode `json:"code"` Msg string `json:"msg"` Payload interface{} `json:"payload"` }
type SaveLcEndpointReq ¶
type SaveLcEndpointReq struct { Title string `json:"title"` ProjectId uint `json:"projectId"` ServeId uint `json:"serveId"` UserId uint `json:"userId"` OldEndpointId uint `json:"oldEndpointId"` Path string `json:"path"` Snapshot string `json:"snapshot"` DataSyncType consts.DataSyncType `json:"dataSyncType"` CategoryId int64 `json:"categoryId"` }
type SaveSchemaRes ¶
type ScenarioAddCasesFromTreeReq ¶
type ScenarioAddCasesFromTreeReq struct { SelectedNodes []EndpointCaseTree `json:"selectedNodes"` TargetId uint `json:"targetId"` CreateBy uint `json:"createBy"` }
type ScenarioAddInterfacesFromTreeReq ¶
type ScenarioAddInterfacesFromTreeReq struct { SelectedNodes []DiagnoseInterface `json:"selectedNodes"` TargetId uint `json:"targetId"` CreateBy uint `json:"createBy"` }
type ScenarioAddScenarioReq ¶
type ScenarioAddScenarioReq struct { Name string `json:"name"` Mode string `json:"mode"` ProcessorCategory consts.ProcessorCategory `json:"processorCategory"` ProcessorType consts.ProcessorType `json:"processorType"` ProcessorInterfaceSrc consts.ProcessorInterfaceSrc `json:"processorInterfaceSrc"` TargetProcessorCategory consts.ProcessorCategory `json:"targetProcessorCategory"` TargetProcessorType consts.ProcessorType `json:"targetProcessorType"` TargetProcessorId int `json:"targetProcessorId"` ProjectId uint `json:"projectId"` CreateBy uint `json:"createBy"` Comments string `json:"comments"` Method consts.HttpMethod `json:"method"` SrcProcessorId uint `json:"srcProcessorId"` }
type ScenarioCategory ¶
type ScenarioCategory struct { Id uint `json:"id"` Name string `json:"name"` Desc string `json:"desc"` ParentId uint `json:"parentId"` Children []*ScenarioCategory `json:"children"` Slots iris.Map `json:"slots"` }
category
type ScenarioCategoryMoveReq ¶
type ScenarioCategoryMoveReq struct { DragKey int `json:"dragKey"` DropKey int `json:"dropKey"` DropPos serverConsts.DropPos `json:"dropPos"` }
type ScenarioCategoryReq ¶
type ScenarioCurlImportReq ¶
type ScenarioNodeMoveReq ¶
type ScenarioNodeMoveReq struct { DragKey int `json:"dragKey"` DropKey int `json:"dropKey"` DropPos serverConsts.DropPos `json:"dropPos"` }
type ScenarioNodeReq ¶
type ScenarioNodeReq struct { Mode serverConsts.NodeCreateMode `json:"mode"` Type serverConsts.NodeCreateType `json:"type"` Target int `json:"target"` Name string `json:"name"` Id int `json:"id"` ProjectId int `json:"projectId"` }
type ScenarioPlanReqPaginate ¶
type ScenarioProcessorInfo ¶
type ScenarioProcessorReq ¶
type ScenarioProcessorReq struct { ProcessorCategory consts.ProcessorCategory `json:"processorCategory"` ProcessorType consts.ProcessorType `json:"processorType"` ProcessorId uint `json:"processorId"` InterfaceId uint `json:"interfaceId"` Id int `json:"id"` Name string `json:"name"` }
type ScenarioReqPaginate ¶
type ScenarioSimple ¶
type SchemaContent ¶
type SchemaContent struct {
Data string
}
type SecuritySchemaReq ¶
type ServeReqPaginate ¶
type ServeReqPaginate struct { _domain.PaginateReq ProjectId int64 `json:"projectId"` Name string `json:"name"` }
type ServeSchemaPaginate ¶
type ServeSchemaRefReq ¶
type ServeSchemaReq ¶
type ServeSchemaReq struct { ID uint `json:"id"` ServeId int64 `json:"serveId"` Name string `json:"name" validate:"required"` Tag string `json:"tag"` Content string `json:"content"` Examples string `json:"examples"` Type string `json:"type"` Tags string `json:"tags"` Description string `json:"description"` Ref string `json:"ref"` ProjectId uint `json:"projectId"` TargetId int `json:"targetId"` }
type ServeSecurityPaginate ¶
type ServeSecurityPaginate struct { _domain.PaginateReq ServeId int64 `json:"serveId"` Name string `json:"name"` }
type ServeSecurityReq ¶
type ServeSecurityReq struct { ID uint `json:"id"` Name string `json:"name" validate:"required"` Type serverConsts.AuthType `json:"type" validate:"required"` ProjectId int64 `json:"projectId" validate:"required"` ServeId int64 `json:"serveId" validate:"required"` Description string `json:"description"` In string `json:"in"` Key string `json:"key"` Value string `json:"value"` Token string `json:"token"` Username string `json:"username"` Password string `json:"password"` Default bool `json:"default"` }
type ServeServer ¶
type ServeVersionBindEndpointReq ¶
type ServeVersionBindEndpointReq struct { ServeId int64 `json:"serveId"` ServeVersion string `json:"serveVersion"` EndpointVersions []EndpointVersions `json:"endpointVersions"` }
type ServeVersionPaginate ¶
type ServeVersionPaginate struct { _domain.PaginateReq ServeId int64 `json:"serveId"` Version string `json:"version"` CreateUser string `json:"createUser"` }
type ServeVersionReq ¶
type SnippetRes ¶
type SnippetRes struct { Label string `json:"label""` Value string `json:"value""` Desc string `json:"desc""` Children []SnippetRes `json:"children""` }
type StreamTestObj ¶
type SummaryReqPaginate ¶
type SummaryReqPaginate struct { _domain.PaginateReq ProjectId int64 `json:"projectId"` Name string `json:"name"` }
type SwaggerSyncReq ¶
type SwaggerSyncReq struct { ID int `json:"id"` Switch consts.SwitchStatus `json:"switch"` SyncType consts.DataSyncType `json:"syncType"` CategoryId int `json:"categoryId"` Url string `json:"url"` Cron string `json:"cron"` ProjectId uint `json:"projectId"` }
type TestExprRequest ¶
type TestExprRequest struct { Expr string `json:"expr" validate:"required"` ExprType string `json:"exprType" validate:"required"` Content string `json:"content" validate:"required"` Type consts.HttpRespLangType `json:"type" validate:"required"` }
type TestExprResponse ¶
type TestExprResponse struct { Result string `json:"result"` ResultType consts.ExtractorResultType `json:"resultType"` }
type UpdateNameReq ¶
type UpdateProjectMemberReq ¶
type UpdateUserReq ¶
type UpdateUserRoleReq ¶
type UserBase ¶
type UserBase struct { Username string `gorm:"uniqueIndex;not null;type:varchar(60)" json:"username" validate:"required"` Name string `gorm:"index;not null; type:varchar(60)" json:"name"` Email string `gorm:"index;not null; type:varchar(60)" json:"email"` Intro string `gorm:"not null; type:varchar(512)" json:"intro"` Avatar string `gorm:"type:varchar(1024)" json:"avatar"` ImAccount string `json:"imAccount"` Password string `json:"password"` RoleIds []uint `gorm:"-" json:"role_ids"` Type bool `json:"type"` }
type UserReqPaginate ¶
Source Files ¶
- account.go
- agent.go
- ai-measurement.go
- category.go
- compoment.go
- condition.go
- data.go
- datapool.go
- dataprocessor.go
- db-conn.go
- debug.go
- diagnose-interface.go
- document.go
- endpoint-case.go
- endpoint-code.go
- endpoint-diff.go
- endpoint-tag.go
- endpoint.go
- favorite.go
- interface-grpc.go
- interface-websocket.go
- interface.go
- jslib.go
- message.go
- mock.go
- open.go
- parser.go
- perm.go
- plan-report.go
- plan.go
- project-cron.go
- project-menu.go
- project-perm.go
- project-recently-visited.go
- project-role-perm.go
- project.go
- record.go
- report.go
- role.go
- rpc.go
- scenario.go
- serve.go
- snippet.go
- summary.go
- tests.go
- user.go
Click to show internal directories.
Click to hide internal directories.