services

package
v0.0.0-...-32b758b Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: GPL-2.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddElectricityBill

func AddElectricityBill(dto AddElectricityBillDTO) error

Types

type AddElectricityBillDTO

type AddElectricityBillDTO struct {
	Id               string                       `bson:"id"` // Id do documento no banco de dados da aplicação principal
	Year             uint16                       `bson:"year"`
	Month            uint8                        `bson:"month"`
	PeakKWH          float32                      `bson:"peak_kWh"`
	PeakUnitPrice    float32                      `bson:"peak_unit_price"`
	PeakTotal        float32                      `bson:"peak_total"`
	OffpeakKWH       float32                      `bson:"offpeak_kWh"`
	OffpeakUnitPrice float32                      `bson:"offpeak_unit_price"`
	OffpeakTotal     float32                      `bson:"offpeak_total"`
	TotalPrice       float32                      `bson:"total_price"`
	Items            []models.ElectricityBillItem `bson:"items"`
}

type GetElectricityBillsDTO

type GetElectricityBillsDTO struct {
	ServiceID string `bson:"service_id,omitempty"`
	Year      uint16 `bson:"year,omitempty"`
	Month     uint8  `bson:"month,omitempty"`
}

type GetElectricityBillsFilters

type GetElectricityBillsFilters struct {
	Limit uint16 `bson:"limit,omitempty"`
	Page  uint16 `bson:"page,omitempty"`
}

Jump to

Keyboard shortcuts

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