Documentation ¶
Index ¶
- type AbstractService
- type AccessTokenService
- type ViewTokenService
- func (o *ViewTokenService) GrantSubfileViewToken(integrateId int64, fileId int64) (string, error)
- func (o *ViewTokenService) GrantViewTokenByCompareId(compareId int64) (string, error)
- func (o *ViewTokenService) GrantViewTokenByFileId(fileId int64) (string, error)
- func (o *ViewTokenService) GrantViewTokenByIntegrateId(integrateId int64) (string, error)
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 ¶
func (o *AccessTokenService) Get() (*response.AccessTokenBean, error)
Get ***
func (*AccessTokenService) Grant ¶
func (o *AccessTokenService) Grant() (*response.AccessTokenBean, error)
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小时。
Source Files ¶
Click to show internal directories.
Click to hide internal directories.