step

package
v2.0.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalStepsCount

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

func InsertStep

func InsertStep(dbConnPgx utils.PgxIface, step *Step) (int, error)

func InsertSteps

func InsertSteps(dbConnPgx utils.PgxIface, steps []Step) error

func RemoveStep

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

func UpdateStep

func UpdateStep(dbConnPgx utils.PgxIface, step *Step) error

Types

type Step

type Step struct {
	ID            *int       `json:"id" db:"id"`                        //1
	PoolID        *int       `json:"poolId" db:"pool_id"`               //2
	ParentStepId  *int       `json:"parentStepId" db:"parent_step_id"`  //3
	UUID          string     `json:"uuid" db:"uuid"`                    //4
	Name          string     `json:"name" db:"name"`                    //5
	AlternateName string     `json:"alternateName" db:"alternate_name"` //6
	StartDate     *time.Time `json:"startDate" db:"start_date"`         //7
	EndDate       *time.Time `json:"endDate" db:"end_date"`             //8
	Description   string     `json:"description" db:"description"`      //9
	ActionTypeID  *int       `json:"actionTypeId" db:"action_type_id"`  //10
	FunctionName  string     `json:"functionName" db:"function_name"`   //11
	StepOrder     *int       `json:"stepOrder"  db:"step_order"`        //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 GetStartAndEndDateDiffSteps

func GetStartAndEndDateDiffSteps(dbConnPgx utils.PgxIface, diffInDate *int) ([]Step, error)

func GetStep

func GetStep(dbConnPgx utils.PgxIface, stepID *int) (*Step, error)

func GetStepListByPagination

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

for refinedev

func GetSteps

func GetSteps(dbConnPgx utils.PgxIface, ids []int) ([]Step, error)

func GetStepsByUUIDs

func GetStepsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]Step, error)

func GetStepsFromPoolID

func GetStepsFromPoolID(dbConnPgx utils.PgxIface, poolID *int) ([]Step, error)

Jump to

Keyboard shortcuts

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