request

package
v2.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareRequest

type CompareRequest struct {
	Name     string `json:"Name"`               //用户指定对比后的模型的名字
	SourceId string `json:"sourceId,omitempty"` //第三方应用自己的ID

	ComparedEntityType string `json:"comparedEntityType"` //"file"或"integration"
	PreviousId         int64  `json:"previousId"`         //变更前文件ID
	FollowingId        int64  `json:"followingId"`        //变更后文件ID

	Config   map[string]string `json:"config"` //发起模型对比支持的配置
	Callback string            `json:"callback"`
}

func NewCompareRequest

func NewCompareRequest(entityType string, previousId, followingId int64) *CompareRequest

type DataBagDerivativeRequest

type DataBagDerivativeRequest struct {
	Config map[string]string `json:"config"`
}

func NewDataBagDerivativeRequest

func NewDataBagDerivativeRequest() *DataBagDerivativeRequest

type DataBagRequest

type DataBagRequest struct {
	FileId         *int64 `json:"fileId,omitempty"` // FileId IntegrateId CompareId 三者只能有一个填写
	IntegrateId    *int64 `json:"integrateId,omitempty"`
	CompareId      *int64 `json:"compareId,omitempty"`
	Callback       string `json:"callback,omitempty"`
	DataBagVersion string `json:"databagVersion,omitempty"`
}

DataBagRequest ***

func NewDataBagRequest

func NewDataBagRequest() *DataBagRequest

type FileElementIdsRequest

type FileElementIdsRequest []*FileIdHashWithElementIds

type FileIdHashWithElementIds

type FileIdHashWithElementIds struct {
	FileIdHash string   `json:"fileIdHash"`
	ElementIds []string `json:"elementIds"`
}

type FileIntegrateRequest

type FileIntegrateRequest struct {
	Name              string `json:"name"`
	ParentIntegrateId int64  `json:"parentIntegrateId"`

	SourceId string             `json:"sourceId,omitempty"`
	Sources  []*IntegrateSource `json:"sources,omitempty"`

	FloorMapping []*FloorMappingItem `json:"floorMapping,omitempty"`

	FloorSort     []string `json:"floorSort,omitempty"`
	SpecialtySort []string `json:"specialtySort,omitempty"`

	PropertyOverrides []*common.PropertyOverride `json:"propertyOverrides,omitempty"`

	RuleFileIds []interface{} `json:"ruleFileIds,omitempty"`

	Config            map[string]string `json:"config,omitempty"`
	InternalConfigMap map[string]string `json:"internalConfigMap,omitempty"`

	Callback string `json:"callback,omitempty"`
}

func NewFileIntegrateRequest

func NewFileIntegrateRequest(name string) *FileIntegrateRequest

type FileTranslateRequest

type FileTranslateRequest struct {
	Source *TranslateSource `json:"source"`

	//转换引擎自定义参数,config参数跟转换引擎相关,不同的转换引擎支持不同的config格式。
	//例如转换时添加内置材质,则添加参数值{"texture":true},添加外部材质时参考“使用模型外置材质场景”请求报文
	//详见:http://static.bimface.com/restful-apidoc/dist/translateSingleModel.html#_translateusingput_1
	Config interface{} `json:"config,omitempty"` //Json Object

	Callback string `json:"callback,omitempty"`
}

func NewFileTranslateRequest

func NewFileTranslateRequest(sourceFileId int64) *FileTranslateRequest

type FileTreeRequest

type FileTreeRequest struct {
	DesiredHierarchy   []string          `json:"desiredHierarchy,omitempty"`
	CustomizedNodeKeys map[string]string `json:"customizedNodeKeys,omitempty"`
}

func NewFileTreeRequest

func NewFileTreeRequest() *FileTreeRequest

type FileUploadRequest

type FileUploadRequest struct {
	Name     string `json:"name"`
	URL      string `json:"url,omitempty"`
	Buffer   bytes.Buffer
	SourceId string `json:"sourceId,omitempty"`
}

func NewFileUploadRequest

func NewFileUploadRequest() *FileUploadRequest

func (*FileUploadRequest) IsByURL

func (o *FileUploadRequest) IsByURL() bool

IsByURL ***

type FloorMappingItem

type FloorMappingItem struct {
	FileFloorId      string `json:"fileFloorId"`
	ProjectFloorId   string `json:"projectFloorId"`
	ProjectFloorName string `json:"projectFloorName"`
}

type GroupAndKeysPair

type GroupAndKeysPair struct {
	Group string   `json:"group"`
	Keys  []string `json:"keys,omitempty"`
}

type IntegrateQueryRequest

type IntegrateQueryRequest struct {
	AppKey    string `json:"appKey,omitempty"` //应用的appKey 可选
	ProjectId int64  `json:"projectId,omitempty"`

	FileName      string `json:"fileName,omitempty"` //单模型的名称 可选
	SourceId      string `json:"sourceId,omitempty"`
	IntegrateId   string `json:"integrateId,omitempty"`
	IntegrateType string `json:"integrateType,omitempty"`

	PageNo   int `json:"pageNo,omitempty"`   //页码 可选
	PageSize int `json:"pageSize,omitempty"` //应用的appKey 可选

	Status   int    `json:"status,omitempty"`   //模型状态码:1(处理中); 99(成功); -1(失败; 可选
	SortType string `json:"sortType,omitempty"` //筛选类型 示例:create_time desc 可选

	StartDate string `json:"startDate,omitempty"` //开始日期 示例:2019-05-01 desc 可选
	EndDate   string `json:"endDate,omitempty"`   //截止日期 示例:2019-05-01 desc 可选
}

func NewIntegrateQueryRequest

func NewIntegrateQueryRequest() *IntegrateQueryRequest

type IntegrateSource

type IntegrateSource struct {
	FileId   int64  `json:"fileId"` //必填
	FileName string `json:"fileName,omitempty"`

	Building  string `json:"building,omitempty"`
	DatabagId string `json:"databagId,omitempty"`

	Specialty     string  `json:"specialty,omitempty"`
	SpecialtySort float64 `json:"specialtySort,omitempty"`

	Floor     string  `json:"floor,omitempty"`
	FloorSort float64 `json:"floorSort,omitempty"`

	Transform []float64 `json:"transform,omitempty"`
}

func NewIntegrateSource

func NewIntegrateSource(fileId int64, floor, specialty string) *IntegrateSource

type IntegrationTreeOptionalRequest

type IntegrationTreeOptionalRequest struct {
	CustomizedNodeKeys   map[string]string           `json:"customizedNodeKeys,omitempty"`
	FileIdElementIds     []*FileIdHashWithElementIds `json:"fileIdElementIds,omitempty"`
	Sorts                []*TreeNodeSort             `json:"Sorts,omitempty"`
	SortedNamesHierarchy [][]string                  `json:"sortedNamesHierarchy,omitempty"`
}

func NewIntegrationTreeOptionalRequest

func NewIntegrationTreeOptionalRequest() *IntegrationTreeOptionalRequest

type PropertyFilterRequest

type PropertyFilterRequest struct {
	ElementIds []string           `json:"elementIds"`
	Filter     []GroupAndKeysPair `json:"filter,omitempty"`
}

func NewPropertyFilterRequest

func NewPropertyFilterRequest() *PropertyFilterRequest

type TranslateQueryRequest

type TranslateQueryRequest struct {
	AppKey string `json:"appKey,omitempty"` //应用的appKey 可选

	FileId   string `json:"fileId,omitempty"`   //单模型对应的id 可选
	FileName string `json:"fileName,omitempty"` //单模型的名称 可选
	Suffix   string `json:"suffix,omitempty"`   //单模型的文件类型	rvt(或者igms,dwg…) 可选
	SourceId string `json:"sourceId,omitempty"` //模型对应的sourceId 可选

	PageNo   int `json:"pageNo,omitempty"`   //页码 可选
	PageSize int `json:"pageSize,omitempty"` //应用的appKey 可选

	Status   int    `json:"status,omitempty"`   //模型状态码:1(处理中); 99(成功); -1(失败; 可选
	SortType string `json:"sortType,omitempty"` //筛选类型 示例:create_time desc 可选

	StartDate string `json:"startDate,omitempty"` //开始日期 示例:2019-05-01 desc 可选
	EndDate   string `json:"endDate,omitempty"`   //截止日期 示例:2019-05-01 desc 可选
}

func NewTranslateQueryRequest

func NewTranslateQueryRequest() *TranslateQueryRequest

type TranslateSource

type TranslateSource struct {
	FileId     int64  `json:"fileId"`               //必填
	Compressed bool   `json:"compressed,omitempty"` //是否为压缩文件 默认为false
	RootName   string `json:"rootName,omitempty"`   //如果是压缩文件,必须指定压缩包中哪一个是主文件
}

func NewTranslateSource

func NewTranslateSource(fileId int64) *TranslateSource

NewTranslateSource ***

type TreeNodeSort

type TreeNodeSort struct {
	//enum (specialty, systemType, floor, category, family, familyType, building, unit, roomType, room, subFamilyType)
	NodeType int `json:"nodeType"` //样例 : "3"

	SortBy       string   `json:"sortBy"`
	SortedValues []string `json:"sortedValues"`
}

Jump to

Keyboard shortcuts

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