service

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractService

type AbstractService struct {
	Endpoint      *config.Endpoint
	ServiceClient *utils.ServiceClient
}

AbstractService ***

type AccessTokenService

type AccessTokenService struct {
	AbstractService //base class

	Credential         *config.Credential
	AccessTokenStorage *config.AccessTokenStorage
}

AccessTokenService ***

func NewAccessTokenService

func NewAccessTokenService(serviceClient *utils.ServiceClient,
	endpoint *config.Endpoint, credential *config.Credential) *AccessTokenService

NewAccessTokenService 获取AccessToken http://static.bimface.com/book/restful/articles/api/accesstoken.html

func (*AccessTokenService) Get

Get ***

func (*AccessTokenService) Grant

Grant ***

type ViewTokenService

type ViewTokenService struct {
	AbstractService    //base class
	AccessTokenService *AccessTokenService
}

ViewTokenService ***

func NewViewTokenService

func NewViewTokenService(serviceClient *utils.ServiceClient, endpoint *config.Endpoint,
	credential *config.Credential, accessTokenService *AccessTokenService) *ViewTokenService

NewViewTokenService ***

func (*ViewTokenService) GrantSubfileViewToken

func (o *ViewTokenService) GrantSubfileViewToken(integrateId int64, fileId int64) (string, error)

获取子文件的View Token 注:一般使用在获取不随着模型集成而集成的模型信息,如图纸,视图等

func (*ViewTokenService) GrantViewTokenByCompareId

func (o *ViewTokenService) GrantViewTokenByCompareId(compareId int64) (string, error)

根据compareId获取viewToke,然后把viewToken传入JavaScript组件提供的接口中,即可显示工程文件。 注:只有在转换或集成任务成功以后,才能获取viewToken,有效期为12小时。

func (*ViewTokenService) GrantViewTokenByFileId

func (o *ViewTokenService) GrantViewTokenByFileId(fileId int64) (string, error)

根据fileId获取viewToke,然后把viewToken传入JavaScript组件提供的接口中,即可显示工程文件。 注:只有在转换或集成任务成功以后,才能获取viewToken,有效期为12小时。

func (*ViewTokenService) GrantViewTokenByIntegrateId

func (o *ViewTokenService) GrantViewTokenByIntegrateId(integrateId int64) (string, error)

根据integrateId获取viewToke,然后把viewToken传入JavaScript组件提供的接口中,即可显示工程文件。 注:只有在转换或集成任务成功以后,才能获取viewToken,有效期为12小时。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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