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"` //用户指定对比后的模型的名字
Priority int `json:"priority"` //[1,2,3] 数字越大,优先级越低
Callback string `json:"callback,omitempty"`
SourceID string `json:"sourceID,omitempty"` //第三方应用自己的ID
Sources []*CompareSource `json:"sources"`
}
CompareRequest ***
type CompareSource ¶
type CompareSource struct {
PreviousFileID int64 `json:"previousFileId"` //变更前文件ID,如果为新增文件,则为null
FollowingFileID int64 `json:"followingFileId"` //变更后文件ID,如果为删除文件,则为null
}
CompareSource ***
func NewCompareSource ¶
func NewCompareSource(previousFileID, followingFileID int64) *CompareSource
NewCompareSource ***
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 ***
type IntgrRequest ¶
type IntgrRequest struct {
Name string `json:"name"` // 必填
Priority byte `json:"priority"` // [1,2,3] 数字越大,优先级越低
Callback string `json:"callback,omitempty"`
SourceID string `json:"sourceID,omitempty"`
Sources []*IntgrSource `json:"sources"` //必填
}
IntgrRequest ***
type IntgrSource ¶
type IntgrSource struct {
FileID int64 `json:"fileId"` //必填
Specialty string `json:"specialty"`
SpecialtySort float64 `json:"specialtySort,omitempty"`
Floor string `json:"floor,omitempty"`
FloorSort float64 `json:"floorSort,omitempty"`
}
IntgrSource ***
func NewIntgrSource ¶
func NewIntgrSource(fileID int64, floor, specialty string) *IntgrSource
NewIntgrSource ***
type TranslateRequest ¶
type TranslateRequest struct {
Source *TranslateSource `json:"source"`
Priority int `json:"priority"` //[1,2,3] 数字越大,优先级越低
Callback string `json:"callback,omitempty"`
}
TranslateRequest ***
func NewTranslateRequest ¶
func NewTranslateRequest(sourceFileID int64) *TranslateRequest
NewTranslateRequest ***
type TranslateSource ¶
type TranslateSource struct {
FileID int64 `json:"fileId"` //必填
Compressed bool `json:"compressed,omitempty"` //是否为压缩文件 默认为false
RootName string `json:"rootName,omitempty"` //如果是压缩文件,必须指定压缩包中哪一个是主文件
}
TranslateSource ***
func NewTranslateSource ¶
func NewTranslateSource(fileID int64) *TranslateSource
NewTranslateSource ***
Click to show internal directories.
Click to hide internal directories.