integrationDomain

package
v0.0.0-...-f7a648d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalReq

type ApprovalReq struct {
	CreatorId    string   `json:"creatorId"`    //批发起人username 必需
	ApproveIds   []string `json:"approveIds"`   //json数组,审批人username 必需
	ApprovalType int      `json:"approvalType"` //审批类型 1或 2并,目前只支持1
	CcIds        []string `json:"ccIds"`        //抄送人username

	Title     string `json:"title"`     //审批标题 必需
	Content   string `json:"content"`   //童批内容 必需
	SourceIds []int  `json:"sourceIds"` //必需 来源id 关联表id,通常是主键,如果没有设置一个[0]
	Remark    string `json:"remark"`    //申请原因
	NotifyUrl string `json:"notifyUrl"` //通知地址
}

type ContainerQueryAgentRes

type ContainerQueryAgentRes struct {
	ThirdPartyCommonRes
	Data []EngineeringItem `json:"data"`
}

type CreateReport

type CreateReport struct {
	ApiPlanNumber   string `json:"apiPlanNumber"`
	ApiReportNumber string `json:"apiReportNumber"`
	CreatedBy       string `json:"createdBy"`
	Name            string `json:"name"`
	EnvName         string `json:"envName"`
	ExecUserName    string `json:"execUserName"`
	TestRate        uint   `json:"testRate"`
}

type EngineeringItem

type EngineeringItem struct {
	Code string `json:"code"`
	Name string `json:"name"`
}

type FindClassByServiceCodeReq

type FindClassByServiceCodeReq struct {
	ServiceCode string `json:"serviceCode"`
}

type FindClassByServiceCodeRes

type FindClassByServiceCodeRes struct {
	ThirdPartyCommonRes
	Data []FindClassByServiceCodeResData `json:"data"`
}

type FindClassByServiceCodeResData

type FindClassByServiceCodeResData struct {
	Code        string `json:"code"`
	Name        string `json:"name"`
	ObjId       string `json:"objId"`
	ParentCodes string `json:"parentCodes"`
	ServiceId   string `json:"serviceId"`
}

type GetFunctionDetailsByClassReq

type GetFunctionDetailsByClassReq struct {
	ClassCode string `json:"classCode"`
}

type GetFunctionDetailsByClassRes

type GetFunctionDetailsByClassRes struct {
	ThirdPartyCommonRes
	Data []GetFunctionDetailsByClassResData `json:"data"`
}

type GetFunctionDetailsByClassResData

type GetFunctionDetailsByClassResData struct {
	Code        string `json:"code"`
	Name        string `json:"name"`
	MessageType int    `json:"messageType"` // 0:内部方法,不能被前端调用 1:外部方法,可以被前端调用
}

type GetFunctionsByClassReq

type GetFunctionsByClassReq struct {
	ServiceCode string `json:"serviceCode"`
	ClassCode   string `json:"classCode"`
}

type GetFunctionsByClassRes

type GetFunctionsByClassRes struct {
	ThirdPartyCommonRes
	Data []GetFunctionsByClassResData `json:"data"`
}

type GetFunctionsByClassResData

type GetFunctionsByClassResData struct {
	Code           string                             `json:"code"`
	MessageType    int                                `json:"messageType"`    // 0:内部方法,不能被前端调用 1:外部方法,可以被前端调用
	IsExtend       consts.IntegrationFuncExtendStatus `json:"isExtend"`       // 是否是继承的消息 YES:是 NO:否
	Overridable    consts.IntegrationFuncOverridable  `json:"overridable"`    // 自身是否允许重写 YES:是 NO:否
	IsSelfOverride consts.IntegrationFuncOverridable  `json:"isSelfOverride"` // 是否重写父级方法 YES:是 NO:否
}

type GetTokenFromCodeReq

type GetTokenFromCodeReq struct {
	Code string `json:"code"`
}

type GetTokenFromCodeRes

type GetTokenFromCodeRes struct {
	ThirdPartyCommonRes
	Data GetTokenFromCodeResData `json:"data"`
}

type GetTokenFromCodeResData

type GetTokenFromCodeResData struct {
	Token      string `json:"token"`
	FreshToken string `json:"freshToken"`
	ExprieIn   string `json:"expriein"`
	CreateAt   string `json:"createAt"`
}

type LoginByOauthReq

type LoginByOauthReq struct {
	LoginName string `json:"loginName"`
	Password  string `json:"password"`
	TenantId  string `json:"tenantId"`
}

type LoginByOauthRes

type LoginByOauthRes struct {
	ThirdPartyCommonRes
	Data LoginByOauthResData `json:"data"`
}

type LoginByOauthResData

type LoginByOauthResData struct {
	Code     string `json:"code"`
	TenantId string `json:"tenantId"`
	UserId   string `json:"userId"`
}

type LovByCodeRes

type LovByCodeRes struct {
	ThirdPartyCommonRes
	Data struct {
		Details []struct {
			Code string `json:"internalValue"`
			Name string `json:"externalValue"`
		} `json:"details"`
	} `json:"data"`
}

type MetaGetMethodDetailReq

type MetaGetMethodDetailReq struct {
	ClassName   string `json:"className"`
	Method      string `json:"method"`
	IncludeSelf bool   `json:"includeSelf"`
}

type MetaGetMethodDetailRes

type MetaGetMethodDetailRes struct {
	ThirdPartyCommonRes
	Data MetaGetMethodDetailResData `json:"data"`
}

type MetaGetMethodDetailResData

type MetaGetMethodDetailResData struct {
	Code            string `json:"code"`
	ServiceCode     string `json:"serviceCode"`
	ClassCode       string `json:"classCode"`
	RequestType     string `json:"requestType"`   //JSON/FORM
	RequestMethod   string `json:"requestMethod"` //POST
	RequestFormBody string `json:"requestFormBody"`
	RequestBody     string `json:"requestBody"`
	ResponseType    string `json:"responseType"` //JSON
	ResponseBody    string `json:"responseBody"`
}

type MlClassQueryAgentRes

type MlClassQueryAgentRes struct {
	ThirdPartyCommonRes
	Data struct {
		Total int                             `json:"total"`
		Data  []FindClassByServiceCodeResData `json:"data"`
	}
}

type MlServiceQueryAgentRes

type MlServiceQueryAgentRes struct {
	ThirdPartyCommonRes
	Data []ServiceItem `json:"data"`
}

type OtherUserInfo

type OtherUserInfo struct {
	Username string `json:"loginName"`
	RealName string `json:"name"`
	Mail     string `json:"email"`
}

type ProductBaseItem

type ProductBaseItem struct {
	Id   uint   `json:"id"`
	Name string `json:"name"`
}

type ProductItem

type ProductItem struct {
	ProductBaseItem
	Children []*ProductItem `json:"children"`
}

type ProjectDetail

type ProjectDetail struct {
	Products    []ProductBaseItem `json:"products"`
	Spaces      []SpaceItem       `json:"spaces"`
	Engineering []EngineeringItem `json:"engineeringItem"`
}

type ProjectInfo

type ProjectInfo struct {
	Name        string     `json:"name"`        // 名称
	NameEngAbbr string     `json:"nameEngAbbr"` // 英文名称缩写
	SpaceAdmins []UserInfo `json:"spaceAdmins"` // 空间管理员
}

type ProjectReq

type ProjectReq struct {
	Products    []uint   `json:"products"`
	Spaces      []string `json:"spaces"`
	Engineering []string `json:"engineering"`
	SyncMembers bool     `json:"syncMembers"`
}

type QueryAgentConditionParam

type QueryAgentConditionParam struct {
	Key     string `json:"key"`
	Compare string `json:"compare"`
	Value   string `json:"value"`
}

type QueryAgentQueryArgs

type QueryAgentQueryArgs struct {
	AttrSet   []string                   `json:"attrSet"`
	Condition []QueryAgentConditionParam `json:"condition"`
	Sort      QueryAgentSortParam        `json:"sort"`
}

type QueryAgentReq

type QueryAgentReq struct {
	ClassName string              `json:"className"`
	QueryArgs QueryAgentQueryArgs `json:"queryArgs"`
}

type QueryAgentSortParam

type QueryAgentSortParam struct {
	SortBy    string `json:"sortBy"`
	SortOrder string `json:"sortOrder"`
}

type QueryMsgReq

type QueryMsgReq struct {
	ClassInfo struct {
		ParentCodes string `json:"parentCodes"`
		ObjId       string `json:"objId"`
		Code        string `json:"code"`
		ServiceId   string `json:"serviceId"`
	} `json:"classInfo"`
}

type ServiceItem

type ServiceItem struct {
	Code string `json:"code"`
	Name string `json:"name"`
}

type SpaceItem

type SpaceItem struct {
	Name        string `json:"name"`
	NameEngAbbr string `json:"nameEngAbbr"`
}

type SpaceMembersAndRolesItem

type SpaceMembersAndRolesItem struct {
	ProjectEngAbbr string         `json:"ProjectEngAbbr"`
	UserBaseInfo   []UserRoleInfo `json:"UserBaseInfo"`
}

type SpaceRole

type SpaceRole struct {
	Id        uint   `json:"id"`
	RoleName  string `json:"roleName"`
	RoleValue string `json:"roleValue"`
	Remark    string `json:"remark"`
}

type SyncPlan

type SyncPlan struct {
	Number   string `json:"number"`
	Status   uint   `json:"status"`
	Name     string `json:"name"`
	IsDelete bool   `json:"isDelete"`
}

type ThirdPartyCommonRes

type ThirdPartyCommonRes struct {
	Mfail  string      `json:"mfail"`
	Msg    string      `json:"msg"`
	Errors interface{} `json:"errors"`
}

type UserInfo

type UserInfo struct {
	Username string `json:"username"`
	WxName   string `json:"wxName"`
	RealName string `json:"realName"`
	Mail     string `json:"mail"`
	Password string `json:"password"`
}

type UserMenuPermission

type UserMenuPermission struct {
	Permission string               `json:"permission"`
	Children   []UserMenuPermission `json:"children"`
}

type UserRoleInfo

type UserRoleInfo struct {
	UserInfo
	Role []struct {
		Id    uint   `json:"Id"`
		Name  string `json:"name"`
		Value string `json:"value"`
	} `json:"role"`
	RoleValues []string `json:"roleValues"`
}

type UserRoleItem

type UserRoleItem struct {
	Id        uint   `json:"id"`
	RoleName  string `json:"roleName"`
	RoleValue string `json:"roleValue"`
}

Jump to

Keyboard shortcuts

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