transactionstep

package
v2.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalTransactionStepsCount

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

func InsertTransactionStep

func InsertTransactionStep(dbConnPgx utils.PgxIface, transactionStep *TransactionStep) (int, int, error)

func InsertTransactionSteps

func InsertTransactionSteps(dbConnPgx utils.PgxIface, transactionSteps []TransactionStep) error

func RemoveTransactionStep

func RemoveTransactionStep(dbConnPgx utils.PgxIface, transactionID, stepID *int) error

func RemoveTransactionStepByUUID

func RemoveTransactionStepByUUID(dbConnPgx utils.PgxIface, transactionStepUUID string) error

func UpdateTransactionStep

func UpdateTransactionStep(dbConnPgx utils.PgxIface, transactionStep *TransactionStep) error

func UpdateTransactionStepByUUID

func UpdateTransactionStepByUUID(dbConnPgx utils.PgxIface, transactionStep *TransactionStep) error

Types

type Attrs

type Attrs map[string]interface{}

func (*Attrs) Scan

func (a *Attrs) Scan(value interface{}) error

func (Attrs) Value

func (a Attrs) Value() (driver.Value, error)

type TransactionStep

type TransactionStep struct {
	TransactionID *int      `json:"transactionId" db:"transaction_id"` //1
	StepID        *int      `json:"stepId" db:"step_id"`               //2
	UUID          string    `json:"uuid" db:"uuid"`                    //3
	Name          string    `json:"name" db:"name"`                    //4
	AlternateName string    `json:"alternateName" db:"alternate_name"` //5
	Description   string    `json:"description" db:"description"`      //6
	CreatedBy     string    `json:"createdBy" db:"created_by"`         //7
	CreatedAt     time.Time `json:"createdAt" db:"created_at"`         //8
	UpdatedBy     string    `json:"updatedBy" db:"updated_by"`         //9
	UpdatedAt     time.Time `json:"updatedAt" db:"updated_at"`         //10
}

Asset

func GetTransactionStep

func GetTransactionStep(dbConnPgx utils.PgxIface, transactionID, stepID *int) (*TransactionStep, error)

func GetTransactionStepByUUID

func GetTransactionStepByUUID(dbConnPgx utils.PgxIface, transactionStepUUID string) (*TransactionStep, error)

func GetTransactionStepList

func GetTransactionStepList(dbConnPgx utils.PgxIface) ([]TransactionStep, error)

func GetTransactionStepListByPagination

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

for refinedev

func GetTransactionStepsByUUIDs

func GetTransactionStepsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]TransactionStep, error)

Jump to

Keyboard shortcuts

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