Documentation ¶
Index ¶
- func GetTotalStrategiesCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertStrategies(dbConnPgx utils.PgxIface, strategies []Strategy) error
- func InsertStrategy(dbConnPgx utils.PgxIface, strategy *Strategy) (int, error)
- func RemoveStrategy(dbConnPgx utils.PgxIface, strategyID *int) error
- func UpdateStrategy(dbConnPgx utils.PgxIface, strategy *Strategy) error
- type Strategy
- func GetStartAndEndDateDiffStrategies(dbConnPgx utils.PgxIface, diffInDate *int) ([]Strategy, error)
- func GetStrategies(dbConnPgx utils.PgxIface, ids []int) ([]Strategy, error)
- func GetStrategiesByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]Strategy, error)
- func GetStrategy(dbConnPgx utils.PgxIface, strategyID *int) (*Strategy, error)
- func GetStrategyListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]Strategy, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertStrategies ¶
func InsertStrategy ¶
Types ¶
type Strategy ¶
type Strategy 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 StartDate *time.Time `json:"startDate" db:"start_date"` //5 EndDate *time.Time `json:"endDate" db:"end_date"` //6 Description string `json:"description" db:"description"` //7 StrategyTypeID *int `json:"strategyTypeId" db:"strategy_type_id"` //8 CreatedBy string `json:"createdBy" db:"created_by"` //9 CreatedAt time.Time `json:"createdAt" db:"created_at"` //10 UpdatedBy string `json:"updatedBy" db:"updated_by"` //11 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //12 }
Strategy
func GetStrategiesByUUIDs ¶
Click to show internal directories.
Click to hide internal directories.