Documentation ¶
Index ¶
- func GetTotalStepAssetsCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertStepAsset(dbConnPgx utils.PgxIface, stepAsset *StepAsset) (int, error)
- func InsertStepAssets(dbConnPgx utils.PgxIface, stepAssets []StepAsset) error
- func RemoveStepAsset(dbConnPgx utils.PgxIface, stepAssetID *int) error
- func UpdateStepAsset(dbConnPgx utils.PgxIface, stepAsset *StepAsset) error
- type StepAsset
- func GetStartAndEndDateDiffStepAssets(dbConnPgx utils.PgxIface, diffInDate *int) ([]StepAsset, error)
- func GetStepAsset(dbConnPgx utils.PgxIface, stepAssetID *int) (*StepAsset, error)
- func GetStepAssetListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]StepAsset, error)
- func GetStepAssets(dbConnPgx utils.PgxIface, ids []int) ([]StepAsset, error)
- func GetStepAssetsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]StepAsset, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertStepAsset ¶
func InsertStepAssets ¶
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 GetStepAsset ¶
Click to show internal directories.
Click to hide internal directories.