portfolio

package
v2.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalPortfoliosCount

func GetTotalPortfoliosCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertPortfolio

func InsertPortfolio(dbConnPgx utils.PgxIface, portfolio *Portfolio) (int, string, error)

func InsertPortfolios

func InsertPortfolios(dbConnPgx utils.PgxIface, portfolios []Portfolio) error

func RemovePortfolio

func RemovePortfolio(dbConnPgx utils.PgxIface, portfolioID *int) error

func UpdatePortfolio

func UpdatePortfolio(dbConnPgx utils.PgxIface, portfolio *Portfolio) error

Types

type Portfolio

type Portfolio struct {
	ID              *int       `json:"id" db:"id"`                             //1
	UUID            string     `json:"uuid" db:"uuid"`                         //2
	Name            string     `json:"name" db:"name"`                         //3
	AlternateName   string     `json:"alternateName" db:"alternate_name"`      //4
	StartDate       *time.Time `json:"startDate" db:"start_date"`              //5
	EndDate         *time.Time `json:"endDate" db:"end_date"`                  //6
	UserEmail       string     `json:"userEmail"  db:"user_email"`             //7
	Description     string     `json:"description" db:"description"`           //8
	BaseAssetID     *int       `json:"baseAssetId" db:"base_asset_id"`         //9
	PortfolioTypeID *int       `json:"portfolioTypeId" db:"portfolio_type_id"` //10
	ParentID        *int       `json:"parentId" db:"parent_id"`                //11
	CreatedBy       string     `json:"createdBy" db:"created_by"`              //12
	CreatedAt       time.Time  `json:"createdAt" db:"created_at"`              //13
	UpdatedBy       string     `json:"updatedBy" db:"updated_by"`              //14
	UpdatedAt       time.Time  `json:"updatedAt" db:"updated_at"`              //15
}

Portfolio

func GetPortfolio

func GetPortfolio(dbConnPgx utils.PgxIface, portfolioID *int) (*Portfolio, error)

func GetPortfolioListByPagination

func GetPortfolioListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]Portfolio, error)

for refinedev

func GetPortfolios

func GetPortfolios(dbConnPgx utils.PgxIface, ids []int) ([]Portfolio, error)

Jump to

Keyboard shortcuts

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