request

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: BSD-3-Clause Imports: 1 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"`     //用户指定对比后的模型的名字
	Priority int              `json:"priority"` //[1,2,3] 数字越大,优先级越低
	Callback string           `json:"callback,omitempty"`
	SourceID string           `json:"sourceID,omitempty"` //第三方应用自己的ID
	Sources  []*CompareSource `json:"sources"`
}

CompareRequest ***

func NewCompareRequest

func NewCompareRequest() *CompareRequest

NewCompareRequest ***

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 ***

func NewDatabagRequest

func NewDatabagRequest() *DatabagRequest

NewDatabagRequest ***

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 ***

func NewIntgrRequest

func NewIntgrRequest(name string) *IntgrRequest

NewIntgrRequest ***

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 ***

type UploadRequest

type UploadRequest struct {
	Name      string `json:"name"`
	SourceID  string `json:"sourceId,omitempty"`
	URL       string `json:"url,omitempt"`
	Buffer    bytes.Buffer
	Bucket    string `json:"bucket,omitempty"`
	ObjectKey string `json:"objectKey,omitempty"`
}

UploadRequest ***

func (*UploadRequest) IsByOSS

func (o *UploadRequest) IsByOSS() bool

IsByOSS ***

func (*UploadRequest) IsByURL

func (o *UploadRequest) IsByURL() bool

IsByURL ***

Jump to

Keyboard shortcuts

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