stepasset

package
v2.0.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalStepAssetsCount

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

func InsertStepAsset

func InsertStepAsset(dbConnPgx utils.PgxIface, stepAsset *StepAsset) (int, error)

func InsertStepAssets

func InsertStepAssets(dbConnPgx utils.PgxIface, stepAssets []StepAsset) error

func RemoveStepAsset

func RemoveStepAsset(dbConnPgx utils.PgxIface, stepAssetID *int) error

func UpdateStepAsset

func UpdateStepAsset(dbConnPgx utils.PgxIface, stepAsset *StepAsset) error

Types

type StepAsset

type StepAsset struct {
	ID              *int      `json:"id" db:"id"`                            //1
	StepID          *int      `json:"stepId" db:"step_id"`                   //2
	AssetID         *int      `json:"assetId" db:"asset_id"`                 //3
	SwapAssetID     *int      `json:"swapAssetId" db:"swap_asset_id"`        //4
	TargetPoolID    *int      `json:"targetPoolId" db:"target_pool_id"`      //5
	UUID            string    `json:"uuid" db:"uuid"`                        //6
	Name            string    `json:"name" db:"name"`                        //7
	AlternateName   string    `json:"alternateName" db:"alternate_name"`     //8
	StartDate       time.Time `json:"startDate" db:"start_date"`             //9
	EndDate         time.Time `json:"endDate" db:"end_date"`                 //10
	Description     string    `json:"description" db:"description"`          //11
	ActionParameter *float64  `json:"actionParameter" db:"action_parameter"` //12
	CreatedBy       string    `json:"createdBy" db:"created_by"`             //13
	CreatedAt       time.Time `json:"createdAt" db:"created_at"`             //14
	UpdatedBy       string    `json:"updatedBy" db:"updated_by"`             //15
	UpdatedAt       time.Time `json:"updatedAt" db:"updated_at"`             //16
}

func GetStartAndEndDateDiffStepAssets

func GetStartAndEndDateDiffStepAssets(dbConnPgx utils.PgxIface, diffInDate *int) ([]StepAsset, error)

func GetStepAsset

func GetStepAsset(dbConnPgx utils.PgxIface, stepAssetID *int) (*StepAsset, error)

func GetStepAssetListByPagination

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

for refinedev

func GetStepAssets

func GetStepAssets(dbConnPgx utils.PgxIface, ids []int) ([]StepAsset, error)

func GetStepAssetsByUUIDs

func GetStepAssetsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]StepAsset, error)

Jump to

Keyboard shortcuts

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