model

package
v0.0.0-...-c687c81 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Street     `json:"-"`
	NomDom     string `json:"nom_dom" db:"nom_dom"`
	NomDomSort string `json:"nom_dom_sort" db:"nom_dom_sort"`
}

Build Дом

type Builds

type Builds struct {
	StreetName string  `json:"street_name,omitempty"`
	DataBuilds []Build `json:"dataBuilds,omitempty"`
}

Builds Дома

type CounterValue

type CounterValue struct {
	Occ            int     `json:"occ" db:"occ"`
	CounterID      int     `json:"counter_id" db:"counter_id"`
	InspectorDate  string  `json:"inspector_date" db:"inspector_date"`
	InspectorValue float64 `json:"inspector_value" db:"inspector_value"`
	ActualValue    float64 `json:"actual_value" db:"actual_value"`
	FinStr         string  `json:"fin_str" db:"fin_str"`
	ID             int     `json:"id" db:"id"`
	SerialNumber   string  `json:"serial_number" db:"serial_number"`
	ServName       string  `json:"serv_name" db:"serv_name"`
	FinID          int     `json:"fin_id" db:"fin_id"`
	Sysuser        string  `json:"sysuser,omitempty" db:"sysuser"`
}

CounterValue Показание прибора учёта

type CounterValueTip

type CounterValueTip struct {
	Occ                int                 `json:"occ" db:"occ"`
	StreetName         sqltype.NullString  `json:"street_name" db:"street_name"`
	NomDom             sqltype.NullString  `json:"nom_dom" db:"nom_dom"`
	NomKvr             sqltype.NullString  `json:"nom_kvr" db:"nom_kvr"`
	FinStr             string              `json:"fin_str" db:"fin_str"`
	FinID              int                 `json:"fin_id" db:"fin_id"`
	CounterID          int                 `json:"counter_id" db:"counter_id"`
	SerialNumber       string              `json:"serial_number" db:"serial_number"`
	ServName           string              `json:"serv_name" db:"serv_name"`
	DateCreate         sqltype.NullTime    `json:"date_create" db:"date_create"`
	PeriodCheck        sqltype.NullTime    `json:"period_check" db:"period_check"`
	InspectorDate      sqltype.NullTime    `json:"inspector_date" db:"inspector_date"`
	InspectorValue     sqltype.NullFloat64 `json:"inspector_value" db:"inspector_value"`
	ActualValue        sqltype.NullFloat64 `json:"actual_value" db:"actual_value"`
	PredInspectorDate  sqltype.NullTime    `json:"pred_inspector_date" db:"pred_inspector_date"`
	PredInspectorValue sqltype.NullFloat64 `json:"pred_inspector_value" db:"pred_inspector_value"`
	PredActualValue    sqltype.NullFloat64 `json:"pred_actual_value" db:"pred_actual_value"`
}

CounterValueTip Показания приборов учёта по типу фонда(список)

type DataCounter

type DataCounter struct {
	Occ          int     `json:"lic,omitempty" db:"lic"`
	CounterID    int     `json:"counter_id,omitempty" db:"counter_id"`
	ServName     string  `json:"serv_name,omitempty" db:"serv_name"`
	ServiceId    string  `json:"service_id,omitempty" db:"service_id"`
	SerialNumber string  `json:"serial_number,omitempty" db:"serial_number"`
	CounterType  string  `json:"counter_type,omitempty" db:"type"`
	MaxValue     int     `json:"max_value,omitempty" db:"max_value"`
	UnitID       string  `json:"unit_id,omitempty" db:"unit_id"`
	CountValue   float64 `json:"count_value,omitempty" db:"count_value"`
	DateCreate   string  `json:"date_create,omitempty" db:"date_create"`
	PeriodCheck  string  `json:"periodCheck,omitempty" db:"PeriodCheck"`
	ValueDate    string  `json:"value_date,omitempty" db:"value_date"`
	LastValue    float64 `json:"last_value,omitempty" db:"last_value"`
	ActualValue  float64 `json:"actual_value,omitempty" db:"actual_value"`
	AvgMonth     float64 `json:"avg_month,omitempty" db:"avg_month"`
	Tarif        float64 `json:"tarif,omitempty" db:"tarif"`
	NormaSingle  float64 `json:"normaSingle,omitempty" db:"NormaSingle"`
	AvgItog      float64 `json:"avg_itog,omitempty" db:"avg_itog"`
	KolNorma     float64 `json:"kol_norma,omitempty" db:"kol_norma"`
}

DataCounter Прибор учёта

func (*DataCounter) String

func (zap *DataCounter) String() string

String Строковое представление ПУ

func (*DataCounter) ToStringMoreLines

func (zap *DataCounter) ToStringMoreLines() string

ToStringMoreLines Строковое представление ПУ в несколько строк

type DataCounters

type DataCounters struct {
	DataSet []DataCounter
}

DataCounters список приборов учёта

type DataOcc

type DataOcc struct {
	Occ           int     `json:"occ,omitempty" db:"occ"`
	BasaName      string  `json:"basa_name,omitempty" db:"basa_name"`
	Address       string  `json:"address,omitempty" db:"adres"`
	TipName       string  `json:"tip_name,omitempty" db:"tip_name"`
	TotalSq       float64 `json:"total_sq,omitempty" db:"total_sq"`
	OccSup        int     `json:"occ_sup,omitempty" db:"occ_sup"`
	FinCurrent    int     `json:"fin_current,omitempty" db:"fin_current"`
	FinCurrentStr string  `json:"fin_current_str,omitempty" db:"fin_current_str"`
	KolPeople     int     `json:"kol_people,omitempty" db:"kol_people"`
	CV1           int     `json:"CV1,omitempty" db:"CV1"`
	CV2           int     `json:"CV2,omitempty" db:"CV2"`
	Rejim         string  `json:"rejim,omitempty" db:"Rejim"`
	TownName      string  `json:"town_name,omitempty" db:"town_name"`
	StreetName    string  `json:"street_name,omitempty" db:"street_name"`
	NomDom        string  `json:"nom_dom,omitempty" db:"nom_dom"`
	Nomkvr        string  `json:"nom_kvr,omitempty" db:"nom_kvr"`
}

DataOcc Информация по лицевому счёту

func (*DataOcc) String

func (zap *DataOcc) String() string

ToString Строковое представление

type DataPaym

type DataPaym struct {
	FinStr          string  `json:"fin_str,omitempty" db:"fin_str"`
	Occ             int     `json:"lic,omitempty" db:"lic"`
	Date            string  `json:"date,omitempty" db:"date"`
	Summa           float64 `json:"summa,omitempty" db:"summa"`
	PaymaccountPeny float64 `json:"paymaccount_peny,omitempty" db:"paymaccount_peny"`
	SupName         string  `json:"sup_name,omitempty" db:"sup_name"`
}

DataPaym Платежи

func (*DataPaym) String

func (zap *DataPaym) String() string

ToString Строковое представление Платежа

type DataValue

type DataValue struct {
	FinStr          string  `json:"fin_str,omitempty" db:"fin_str"`
	Occ             int     `json:"lic,omitempty" db:"lic"`
	Saldo           float64 `json:"saldo,omitempty" db:"saldo"`
	Value           float64 `json:"value,omitempty" db:"value"`
	Added           float64 `json:"added,omitempty" db:"added"`
	Paid            float64 `json:"paid,omitempty" db:"paid"`
	Paymaccount     float64 `json:"paymaccount,omitempty" db:"paymaccount"`
	PaymaccountPeny float64 `json:"paymaccount_peny,omitempty" db:"paymaccount_peny"`
	PaymaccountServ float64 `json:"paymaccount_serv,omitempty" db:"paymaccount_serv"`
	Debt            float64 `json:"debt,omitempty" db:"debt"`
	SupName         string  `json:"sup_name,omitempty" db:"sup_name"`
}

DataValue Начисления

func (*DataValue) String

func (zap *DataValue) String() string

ToString Строковое представление Начисления

type Flat

type Flat struct {
	Build      `json:"-"`
	NomKvr     string `json:"nom_kvr" db:"nom_kvr"`
	NomKvrSort string `json:"nom_kvr_sort" db:"nom_kvr_sort"`
}

Flat Квартира

type Flats

type Flats struct {
	StreetName string `json:"street_name,omitempty" db:"street_name"`
	NomDom     string `json:"nom_dom,omitempty" db:"nom_dom"`
	DataKvr    []Flat `json:"dataKvr,omitempty"`
}

Flats Квартиры

type Lic

type Lic struct {
	Occ int `json:"occ" db:"occ"`
}

Lic Лицевой

type Lics

type Lics struct {
	StreetName string `json:"street_name,omitempty" db:"street_name"`
	NomDom     string `json:"nom_dom,omitempty" db:"nom_dom"`
	NomKvr     string `json:"nom_kvr,omitempty" db:"nom_kvr"`
	DataKvrLic []Lic  `json:"dataKvrLic,omitempty"`
}

Lics Лицевые

type Result

type Result struct {
	Res      bool   `json:"res" db:"res"`
	Strerror string `json:"strerror" db:"strerror"`
	IDNew    int    `json:"id_new" db:"id_new"`
}

Result структура возврата

type Street

type Street struct {
	StreetName string `json:"name" db:"name"`
}

Street Улица

func (*Street) String

func (zap *Street) String() string

String Строковое представление

Jump to

Keyboard shortcuts

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