model

package
v0.0.0-...-46f0560 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	CompanyId int `json:"company_id"`
	Count     int `json:"count"`
}

type BidInfo

type BidInfo struct {
	UserId    int `json:"user_id"`
	CompanyId int `json:"company_id"`
	Price     int `json:"price"`
}

type Buy

type Buy struct {
	Id        int       `json:"id"`
	Price     int       `json:"price"`
	CreatedAt time.Time `json:"created_at"`
	UserId    int       `json:"user_id"`
	CompanyId int       `json:"company_id"`
}

type Company

type Company struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type Info

type Info struct {
	Account User    `json:"account"`
	Assets  []Asset `json:"assets"`
}

type Operation

type Operation struct {
	Id        int `json:"id"`
	Price     int `json:"price"`
	CreatedAt int `json:"created_at"`
	BuyerId   int `json:"user_id"`
	SellerId  int `json:"seller_id"`
	CompanyId int `json:"company_id"`
}

type Sale

type Sale struct {
	Id        int       `json:"id"`
	Price     int       `json:"price"`
	CreatedAt time.Time `json:"created_at"`
	UserId    int       `json:"user_id"`
	CompanyId int       `json:"company_id"`
}

type Secret

type Secret struct {
	UserId int    `json:"user_id"`
	Token  string `json:"token"`
}

type StockPortfolio

type StockPortfolio struct {
	Id        int `json:"id"`
	UserId    int `json:"user_id"`
	CompanyId int `json:"company_id"`
	Count     int `json:"count"`
}

type User

type User struct {
	Id     int    `json:"id"`
	Login  string `json:"login"`
	Wealth int    `json:"wealth"`
}

Jump to

Keyboard shortcuts

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