findV2

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: GPL-3.0 Imports: 3 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 {
	Name string `xml:"name,omitempty"`

	Value []string `xml:"value,omitempty"`
}

type BinOper

type BinOper struct {
	Field string `xml:"field,omitempty"`

	Oper string `xml:"oper,omitempty"`

	Value string `xml:"value,omitempty"`
}

type Condition

type Condition struct {
	BinOper *BinOper `xml:"binOper,omitempty"`

	LogicOper *LogicOper `xml:"logicOper,omitempty"`
}

type Filter

type Filter struct {
	LogicOper *LogicOper `xml:"logicOper,omitempty"`

	Relation []string `xml:"relation,omitempty"`
}

type Find

type Find interface {
	FindObjects(request *FindObjects) (*FindObjectsResponse, error)
}

func NewFind

func NewFind(client *soap.Client) Find

type FindObjects

type FindObjects struct {
	XMLName xml.Name `xml:"http://find2.ws.elk.itb.ru/ findObjects"`

	Select *Select `xml:"select,omitempty"`

	SystemInfo *SystemInfo `xml:"systemInfo,omitempty"`
}

type FindObjectsResponse

type FindObjectsResponse struct {
	XMLName xml.Name `xml:"http://find2.ws.elk.itb.ru/ findObjectsResponse"`

	Found *FindObjectsResult `xml:"found,omitempty"`
}

type FindObjectsResult

type FindObjectsResult struct {
	SystemInfo *SystemInfo `xml:"systemInfo,omitempty"`

	Response *Response `xml:"response,omitempty"`

	Objects *FoundObjects `xml:"objects,omitempty"`
}

type FoundObjects

type FoundObjects struct {
	Object []*MdmObject `xml:"object,omitempty"`
}

type LogicOper

type LogicOper struct {
	Oper *LogicOperation `xml:"oper,omitempty"`

	Cond []*Condition `xml:"cond,omitempty"`
}

type LogicOperation

type LogicOperation string
const (
	LogicOperationAND LogicOperation = "AND"

	LogicOperationOR LogicOperation = "OR"
)

type MdmObject

type MdmObject struct {
	ObjectType string `xml:"objectType,omitempty"`

	RelationType string `xml:"relationType,omitempty"`

	Attribute []*Attribute `xml:"attribute,omitempty"`

	Relations *Relations `xml:"relations,omitempty"`
}

type Reference

type Reference struct {
	ObjectType string `xml:"objectType,omitempty"`

	RelationType string `xml:"relationType,omitempty"`

	ObjectId string `xml:"objectId,omitempty"`
}

type Relations

type Relations struct {
	Object []*MdmObject `xml:"object,omitempty"`

	Ref []*Reference `xml:"ref,omitempty"`
}

type Response

type Response struct {
	Code int32 `xml:"code"`

	Description string `xml:"description,omitempty"`
}

type Select

type Select struct {
	ObjectType string `xml:"objectType,omitempty"`

	Field []string `xml:"field,omitempty"`

	Filter *Filter `xml:"filter,omitempty"`

	Offset int32 `xml:"offset,omitempty"`

	Limit int32 `xml:"limit,omitempty"`

	AttachObjTypes []string `xml:"attachObjTypes,omitempty"`

	AttachRefTypes []string `xml:"attachRefTypes,omitempty"`

	NoOtherValues bool `xml:"noOtherValues,omitempty"`
}

type SystemInfo

type SystemInfo struct {
	From string `xml:"from,omitempty"`

	To string `xml:"to,omitempty"`

	MessageId string `xml:"messageId,omitempty"`

	SrcMessageId string `xml:"srcMessageId,omitempty"`

	SentDateTime time.Time `xml:"sentDateTime,omitempty"`

	Priority int32 `xml:"priority,omitempty"`
}

Jump to

Keyboard shortcuts

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