Documentation ¶
Index ¶
- func GetTotalStructuredValueCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertStructuredValue(dbConnPgx utils.PgxIface, structuredValue *StructuredValue) (int, error)
- func InsertStructuredValues(dbConnPgx utils.PgxIface, structuredValues []StructuredValue) error
- func RemoveStructuredValue(dbConnPgx utils.PgxIface, structuredValueID *int) error
- func UpdateStructuredValue(dbConnPgx utils.PgxIface, structuredValue *StructuredValue) error
- type StructuredValue
- func GetStructuredValue(dbConnPgx utils.PgxIface, structuredValueID *int) (*StructuredValue, error)
- func GetStructuredValueByStructuredValueTypeIDList(dbConnPgx utils.PgxIface, structuredValueTypeID *int) ([]StructuredValue, error)
- func GetStructuredValueList(dbConnPgx utils.PgxIface, ids []int) ([]StructuredValue, error)
- func GetStructuredValueListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]StructuredValue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertStructuredValue ¶
func InsertStructuredValue(dbConnPgx utils.PgxIface, structuredValue *StructuredValue) (int, error)
func InsertStructuredValues ¶
func InsertStructuredValues(dbConnPgx utils.PgxIface, structuredValues []StructuredValue) error
func RemoveStructuredValue ¶
func UpdateStructuredValue ¶
func UpdateStructuredValue(dbConnPgx utils.PgxIface, structuredValue *StructuredValue) error
Types ¶
type StructuredValue ¶
type StructuredValue 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 StructuredValueTypeID *int `json:"structuredValueTypeId" db:"structured_value_type_id"` //5 CreatedBy string `json:"createdBy" db:"created_by"` //6 CreatedAt time.Time `json:"createdAt" db:"created_at"` //7 UpdatedBy string `json:"updatedBy" db:"updated_by"` //8 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //9 }
StructuredValue
func GetStructuredValue ¶
func GetStructuredValue(dbConnPgx utils.PgxIface, structuredValueID *int) (*StructuredValue, error)
func GetStructuredValueByStructuredValueTypeIDList ¶
func GetStructuredValueByStructuredValueTypeIDList(dbConnPgx utils.PgxIface, structuredValueTypeID *int) ([]StructuredValue, error)
func GetStructuredValueList ¶
func GetStructuredValueList(dbConnPgx utils.PgxIface, ids []int) ([]StructuredValue, error)
Click to show internal directories.
Click to hide internal directories.