common

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: BSD-2-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 Attribute

type Attribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
	Unit  string `json:"unit"`
}

type BoundingBox

type BoundingBox struct {
	Min *Coordinate `json:"min"`
	Max *Coordinate `json:"max"`
}

func NewBoundingBox

func NewBoundingBox() *BoundingBox

type ChangeAttribute

type ChangeAttribute struct {
	A *Attribute `json:"_A"`
	B *Attribute `json:"_B"`
}

type ChangeQuantity

type ChangeQuantity struct {
	A *Quantity `json:"_A"`
	B *Quantity `json:"_B"`
}

type Coordinate

type Coordinate struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
	Z float64 `json:"z"`
}

func NewCoordinate

func NewCoordinate(x, y, z float64) *Coordinate

func (*Coordinate) Equals

func (o *Coordinate) Equals(d *Coordinate) bool

Equals ***

func (*Coordinate) ToString

func (o *Coordinate) ToString() string

ToString get the string

type Diff

type Diff struct {
	Prev int64 `json:"prev"`
	Next int64 `json:"next"`
}

type ElementPropertyOverride

type ElementPropertyOverride struct {
	KeyToMatch    string `json:"keyToMatch"`
	KeyToOverride string `json:"keyToOverride"`

	TargetFileIds  []interface{}           `json:"targetFileIds"`
	ValueOverrides []PropertyValueOverride `json:"valueOverrides"` //
}

type ElementPropertyValueOverride

type ElementPropertyValueOverride struct {
	ValueToMatch    string `json:"valueToMatch"`
	ValueToOverride string `json:"valueToOverride"`
}

type Page

type Page struct {
	StartIndex int `json:"startIndex"` //起始索引数
	PageNo     int `json:"pageNo"`     //当前页码
	PrePage    int `json:"prePage "`   //上一页码
	NextPage   int `json:"nextPage"`   //下一页码

	PageSize   int `json:"pageSize"`    //每页条目数
	TotalCount int `json:"totalCount "` //条目总数
	TotalPages int `json:"totalPages "` //页码总数

	HtmlDisplay int `json:"htmlDisplay "` //
}

type PageList

type PageList struct {
	Page *Page `json:"page"`
}

type PropertyGroup

type PropertyGroup struct {
	Group string          `json:"group"`
	Items []*PropertyItem `json:"items"`
}

type PropertyItem

type PropertyItem struct {
	Code      string `json:"code"`
	Extension string `json:"extension"`
	Key       string `json:"key"`
	Value     string `json:"value"`
	Unit      string `json:"unit,omitempty"`
	ValueType int    `json:"valueType,omitempty"`
}

func (*PropertyItem) ToString

func (o *PropertyItem) ToString() string

type PropertyOverride

type PropertyOverride ElementPropertyOverride

type PropertyValueOverride

type PropertyValueOverride ElementPropertyValueOverride

type Quantity

type Quantity struct {
	Code string `json:"code"`
	Name string `json:"name"`
	Qty  int    `json:"qty"`
	Unit string `json:"unit"`
	Desc string `json:"decs,omitempty"`
}

type Tree

type Tree struct {
	Root  string      `json:"root"`
	Items []*TreeNode `json:"items"`
}

type TreeNode

type TreeNode struct {
	Id           string      `json:"id"`
	Type         string      `json:"type"`
	Name         string      `json:"name"`
	ActualName   string      `json:"actualName"`
	Data         interface{} `json:"data,omitempty"`
	ElementCount int64       `json:"elementCount"`
	Items        []TreeNode
}

TreeNode ***

func NewTreeNode

func NewTreeNode() *TreeNode

NewTreeNode ***

Jump to

Keyboard shortcuts

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