interfaces

package
v0.0.0-...-d3a2b01 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 0 Imported by: 0

README

Требования к внешним слоям. Чтобы абстрагироваться от конкретных реализаций, можно использовать паттерн dependency injection (внедрение зависимостей). Желательно дробить интерфейсы.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextDTO

type ContextDTO struct {
	ID   int    `json:"id"`
	Text string `json:"text"`
}

type LayersDTO

type LayersDTO struct {
	Layers []string `json:"layers,omitempty"`
}

type ModelElementNamesDTO

type ModelElementNamesDTO struct {
	ModelElements []string `json:"model_element_names,omitempty"`
}

type ModelElementsIdDTO

type ModelElementsIdDTO struct {
	ModelElements []int `json:"model_elements_id,omitempty"`
}

type ModelNamesDTO

type ModelNamesDTO struct {
	Models []string `json:"model_names,omitempty"`
}

type ModelsIdDTO

type ModelsIdDTO struct {
	Models []int `json:"models_id,omitempty"`
}

type OutputModelDTO

type OutputModelDTO struct {
	ID   int    `json:"id,omitempty"`
	Name string `json:"name"`
}

type OutputModelElementDTO

type OutputModelElementDTO struct {
	ID   int    `json:"id,omitempty"`
	Name string `json:"name"`
}

type OutputModelElementsDTO

type OutputModelElementsDTO struct {
	Elements []OutputModelElementDTO `json:"elements,omitempty"`
}

type OutputModelsDTO

type OutputModelsDTO struct {
	Models []OutputModelDTO `json:"models,omitempty"`
}

type OutputPropertiesDTO

type OutputPropertiesDTO struct {
	Properties []OutputPropertyDTO `json:"properties,omitempty"`
}

type OutputPropertyDTO

type OutputPropertyDTO struct {
	ID   int    `json:"id,omitempty"`
	Name string `json:"name"`
}

type OutputUnitDTO

type OutputUnitDTO struct {
	ModelID      int    `json:"model_id"`
	RegDate      string `json:"reg_date"`
	Text         string `json:"text"`
	PropertiesID []int  `json:"properties_id,omitempty"`
	ContextsID   []int  `json:"contexts_id,omitempty"`
}

type OutputUnitsDTO

type OutputUnitsDTO struct {
	Units    []map[string]OutputUnitDTO `json:"units,omitempty"`
	Contexts []ContextDTO               `json:"contexts,omitempty"`
}

type PropertiesIdDTO

type PropertiesIdDTO struct {
	Properties []int `json:"properties_id,omitempty"`
}

type PropertyNamesDTO

type PropertyNamesDTO struct {
	Properties []string `json:"property_names,omitempty"`
}

type SaveUnitDTO

type SaveUnitDTO struct {
	Text         string `json:"text"`
	ModelID      int    `json:"model_id"`
	PropertiesID []int  `json:"properties_id,omitempty"`
}

type SaveUnitsDTO

type SaveUnitsDTO struct {
	Contexts map[string]string        `json:"contexts,omitempty"`
	Units    []map[string]SaveUnitDTO `json:"units,omitempty"`
}

type SearchUnitDTO

type SearchUnitDTO struct {
	Lang string `json:"lang"`
	Text string `json:"text"`
}

type UnitDtoMaps

type UnitDtoMaps []map[string]OutputUnitDTO

type UpdateUnitDTO

type UpdateUnitDTO struct {
	Lang         string  `json:"lang"`
	OldText      string  `json:"old_text"`
	NewText      *string `json:"new_text,omitempty"`
	PropertiesID []int   `json:"properties_id,omitempty"`
}

type UpdateUnitsDTO

type UpdateUnitsDTO struct {
	Units []UpdateUnitDTO `json:"units,omitempty"`
}

type UserDTO

type UserDTO struct {
	Name     string `json:"name"`
	Password string `json:"password"`
	Role     string `json:"role"`
}

Jump to

Keyboard shortcuts

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