gqtypes

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expense

type Expense struct {
	Amount      float64 `json:"amount"`
	Description string  `json:"description"`
}

type FieldCost

type FieldCost struct {
	Name   string
	Amount float64
}

type LoginParams

type LoginParams struct {
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
}

type RegisterParams

type RegisterParams struct {
	FirstName string `json:"firstName" form:"firstName"`
	LastName  string `json:"lastName" form:"lastName"`

	Username string `json:"username" form:"username"`
	Email    string `json:"email" form:"email"`
	Password string `json:"password" form:"password"`
}

type Report

type Report struct {
	Name         string
	Transactions []Transaction
	Summary      SummaryGroups
}

type Summary

type Summary struct {
	Income  float64
	Expense float64
}

func (Summary) String

func (s Summary) String() string

type SummaryGroups

type SummaryGroups struct {
	Type        map[string]FieldCost
	Category    map[string]FieldCost
	Subcategory map[string]FieldCost
}

func (SummaryGroups) MarkdownString

func (s SummaryGroups) MarkdownString() string

func (SummaryGroups) String

func (s SummaryGroups) String() string

type Transaction

type Transaction struct {
	Date        time.Time
	Type        string
	Amount      float64
	Source      string
	Destination string
	Person      string
	Category    string
	Subcategory string
	Remarks     string
}

type User

type User struct {
	ID        string `json:"id"`
	Username  string `json:"username"`
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Bio       string `json:"bio"`
	Location  string `json:"location"`
	Avatar    string `json:"avatar"`
	IsActive  bool   `json:"isActive"`
	IsAdmin   bool   `json:"isAdmin"`
}

type UserParams

type UserParams struct {
	ID        string `json:"id"`
	Username  string `json:"username"`
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Bio       string `json:"bio"`
	Location  string `json:"location"`
	Avatar    string `json:"avatar"`
}

Jump to

Keyboard shortcuts

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