domain

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DocumentTypeWord  = "word"
	DocumentTypeCell  = "cell"
	DocumentTypeSlide = "slide"
)
View Source
const (
	EditConfigTypeDesktop  = "desktop"
	EditConfigTypeMobile   = "mobile"
	EditConfigTypeEmbedded = "embedded"
)
View Source
const (
	EditConfigModeEdit = "edit"
	EditConfigModeView = "view"
)
View Source
const (
	EditConfigLangZhCn = "zh-CN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentGroups

type CommentGroups struct {
	Edit   []string `json:"edit"`
	Remove []string `json:"remove"`
	View   string   `json:"view"`
}

type Document

type Document struct {
	FileType    string      `json:"fileType"`
	Key         string      `json:"key"`
	Title       string      `json:"title"`
	Url         string      `json:"url"`
	Permissions Permissions `json:"permissions"`
}

type EditConfig

type EditConfig struct {
	Document     Document `json:"document"`
	DocumentType string   `json:"documentType"`
	Token        string   `json:"token"`
	Type         string   `json:"type"`
	EditorConfig Editor   `json:"editorConfig"`
}

func (EditConfig) Valid

func (e EditConfig) Valid() error

type Editor

type Editor struct {
	CallbackUrl string `json:"callbackUrl"`
	Mode        string `json:"mode"`
	Lang        string `json:"lang"`
	User        User   `json:"user"`
}

type Image

type Image struct {
	FileType string `json:"fileType"`
	Url      string `json:"url"`
}

type InsertImage

type InsertImage struct {
	C      string  `json:"c"` // add
	Images []Image `json:"images"`
}

InsertImage

type Permissions

type Permissions struct {
	Comment                 bool          `json:"comment"`
	CommentGroups           CommentGroups `json:"commentGroups"`
	Copy                    bool          `json:"copy"`
	DeleteCommentAuthorOnly bool          `json:"deleteCommentAuthorOnly"`
	Download                bool          `json:"download"`
	Edit                    bool          `json:"edit"`
	EditCommentAuthorOnly   bool          `json:"editCommentAuthorOnly"`
	FillForms               bool          `json:"fillForms"`
	ModifyContentControl    bool          `json:"modifyContentControl"`
	ModifyFilter            bool          `json:"modifyFilter"`
	Print                   bool          `json:"print"`
	Review                  bool          `json:"review"`
	ReviewGroups            []string      `json:"reviewGroups"`
}

type Previous

type Previous struct {
	Key string `json:"key"`
	Url string `json:"url"`
}

type ReferenceData

type ReferenceData struct {
	FileKey    string `json:"fileKey"`
	InstanceID string `json:"instanceId"`
}

type Response

type Response struct {
	Error int `json:"error"`
}

type SetHistoryData

type SetHistoryData struct {
	ChangesUrl string   `json:"changesUrl"`
	Key        string   `json:"key"`
	Url        string   `json:"url"`
	Version    int      `json:"version"`
	Previous   Previous `json:"previous"`
}

SetHistoryData

type SetMailMergeRecipients

type SetMailMergeRecipients struct {
	FileType string `json:"fileType"`
	Url      string `json:"url"`
}

SetMailMergeRecipients

type SetReferenceData

type SetReferenceData struct {
	FileType      string        `json:"fileType"`
	Path          string        `json:"path"`
	ReferenceData ReferenceData `json:"referenceData"`
	Url           string        `json:"url"`
}

SetReferenceData

type SetRevisedFile

type SetRevisedFile struct {
	FileType string `json:"fileType"`
	Url      string `json:"url"`
}

SetRevisedFile

type User

type User struct {
	Group string `json:"group"`
	ID    uint64 `json:"id,string"`
	Name  string `json:"name"`
}

Jump to

Keyboard shortcuts

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