models

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseLink struct {
	Code int         `json:"code"`
	Msg  interface{} `json:"msg"`
	Data struct {
		ShareID interface{} `json:"shareId"`
		Version int64       `json:"version"`
	} `json:"data"`
}
type CreateLink struct {
	Code int         `json:"code"`
	Msg  interface{} `json:"msg"`
	Data struct {
		Version    int64  `json:"version"`
		ShareID    string `json:"shareId"`
		SetVersion bool   `json:"setVersion"`
		SetShareID bool   `json:"setShareId"`
	} `json:"data"`
}

type Dir added in v0.0.3

type Dir struct {
	CommitClient string `json:"commitClient"`
	CreateTime   int    `json:"createTime"`
	DeleteTime   int    `json:"deleteTime"`
	Deleted      int    `json:"deleted"`
	Encrypted    int    `json:"encrypted"`
	FolderID     string `json:"folderId"`
	ID           string `json:"id"`
	MetaVersion  int    `json:"metaVersion"`
	Name         string `json:"name"`
	StarIndex    int    `json:"starIndex"`
	Stared       int    `json:"stared"`
	UpdateTime   int    `json:"updateTime"`
	UserID       int    `json:"userId"`
	Version      int    `json:"version"`
}

type Document added in v0.0.3

type Document struct {
	Deleted    int    `json:"deleted"`
	Encrypted  int    `json:"encrypted"`
	FolderID   string `json:"folderId"`
	ID         string `json:"id"`
	Name       string `json:"name"`
	Role       int    `json:"role"`
	ShareID    string `json:"shareId"`
	Stared     int    `json:"stared"`
	UpdateTime int    `json:"updateTime"`
	UserID     int    `json:"userId"`
	UserName   string `json:"userName"`
}

type Folder added in v0.0.3

type Folder struct {
	CommitClient string `json:"commitClient"`
	CreateTime   int    `json:"createTime"`
	DeleteTime   int    `json:"deleteTime"`
	Deleted      int    `json:"deleted"`
	Encrypted    int    `json:"encrypted"`
	FolderID     string `json:"folderId"`
	ID           string `json:"id"`
	MetaVersion  int    `json:"metaVersion"`
	Name         string `json:"name"`
	StarIndex    int    `json:"starIndex"`
	Stared       int    `json:"stared"`
	UpdateTime   int    `json:"updateTime"`
	UserID       int    `json:"userId"`
	Version      int    `json:"version"`
}

type GetDoc

type GetDoc struct {
	Code int `json:"code"`
	Data struct {
		BaseVersion int    `json:"baseVersion"`
		Definition  string `json:"definition"`
		Name        string `json:"name"`
		Role        int    `json:"role"`
	} `json:"data"`
	Msg string `json:"msg"`
	// contains filtered or unexported fields
}

func (*GetDoc) Html added in v0.0.3

func (t *GetDoc) Html() string

func (*GetDoc) Markdown added in v0.0.3

func (t *GetDoc) Markdown() string

func (*GetDoc) Nodes added in v0.0.3

func (t *GetDoc) Nodes() (nodes *Nodes, _ error)

func (*GetDoc) Role added in v0.0.3

func (t *GetDoc) Role() int

func (*GetDoc) Title added in v0.0.3

func (t *GetDoc) Title() string

func (*GetDoc) Version added in v0.0.3

func (t *GetDoc) Version() int

type ListDoc

type ListDoc struct {
	Code int `json:"code"`
	Data struct {
		Dir       []Dir      `json:"dir"`
		Documents []Document `json:"documents"`
		FolderID  string     `json:"folderId"`
		Folders   []Folder   `json:"folders"`
	} `json:"data"`
	Msg interface{} `json:"msg"`
}

type Node added in v0.0.3

type Node struct {
	Collapsed bool   `json:"collapsed,omitempty"`
	Finish    bool   `json:"finish,omitempty"`
	ID        string `json:"id,omitempty"`
	Color     string `json:"color,omitempty"`
	Heading   int    `json:"heading,omitempty"`
	Modified  int    `json:"modified,omitempty"`
	Text      string `json:"text,omitempty"`
	Children  []Node `json:"children,omitempty"`
	// bold italic underline
	// font-weight: bold; font-style: italic; text-decoration: underline; text-decoration: line-through;
	Class  []string               `json:"-"`
	Style  map[string]interface{} `json:"-"`
	Images []struct {
		ID  string `json:"id"`
		Oh  int    `json:"oh"`
		Ow  int    `json:"ow"`
		URI string `json:"uri"`
		W   int    `json:"w"`
	} `json:"images,omitempty"`
}

type Nodes added in v0.0.3

type Nodes struct {
	Nodes []Node `json:"nodes,omitempty"`
}
type RefreshLink struct {
	Code int `json:"code"`
	Data struct {
		SetShareID bool   `json:"setShareId"`
		SetVersion bool   `json:"setVersion"`
		ShareID    string `json:"shareId"`
		Version    int    `json:"version"`
	} `json:"data"`
	Msg interface{} `json:"msg"`
}

Jump to

Keyboard shortcuts

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