Documentation ¶
Index ¶
- func GetTotalStrategyJobsCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertStrategyJob(dbConnPgx utils.PgxIface, strategyJob *StrategyJob) (int, int, error)
- func InsertStrategyJobList(dbConnPgx utils.PgxIface, strategyJobList []StrategyJob) error
- func RemoveStrategyJob(dbConnPgx utils.PgxIface, strategyID, jobID *int) error
- func UpdateStrategyJob(dbConnPgx utils.PgxIface, strategyJob *StrategyJob) error
- type Attrs
- type StrategyJob
- func GetStrategyJob(dbConnPgx utils.PgxIface, strategyID, jobID *int) (*StrategyJob, error)
- func GetStrategyJobByStrategyID(dbConnPgx utils.PgxIface, strategyID *int) (*StrategyJob, error)
- func GetStrategyJobList(dbConnPgx utils.PgxIface) ([]StrategyJob, error)
- func GetStrategyJobListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]StrategyJob, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertStrategyJob ¶
func InsertStrategyJobList ¶
func InsertStrategyJobList(dbConnPgx utils.PgxIface, strategyJobList []StrategyJob) error
func RemoveStrategyJob ¶
func UpdateStrategyJob ¶
func UpdateStrategyJob(dbConnPgx utils.PgxIface, strategyJob *StrategyJob) error
Types ¶
type StrategyJob ¶
type StrategyJob struct { StrategyID *int `json:"strategyId" db:"strategy_id"` //1 JobID *int `json:"jobId" db:"job_id"` //2 UUID string `json:"uuid" db:"uuid"` //3 Name string `json:"name" db:"name"` //4 AlternateName string `json:"alternateName" db:"alternate_name"` //5 StartDate time.Time `json:"startDate" db:"start_date"` //6 EndDate time.Time `json:"endDate" db:"end_date"` //7 Description string `json:"description" db:"description"` //8 StatusID *int `json:"statusId" db:"status_id"` //9 ResponseStatus string `json:"responseStatus" db:"response_status"` //10 RequestUrl string `json:"requestUrl" db:"request_url"` //11 RequestBody string `json:"requestBody" db:"request_body"` //12 RequestMethod string `json:"requestMethod" db:"request_method"` //13 ResponseData string `json:"responseData" db:"response_data"` //14 ResponseDataJson Attrs `json:"responseDataJson" db:"response_data_json"` //15 CreatedBy string `json:"createdBy" db:"created_by"` //16 CreatedAt time.Time `json:"createdAt" db:"created_at"` //17 UpdatedBy string `json:"updatedBy" db:"updated_by"` //18 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //19 }
Asset
func GetStrategyJob ¶
func GetStrategyJob(dbConnPgx utils.PgxIface, strategyID, jobID *int) (*StrategyJob, error)
func GetStrategyJobByStrategyID ¶
func GetStrategyJobByStrategyID(dbConnPgx utils.PgxIface, strategyID *int) (*StrategyJob, error)
func GetStrategyJobList ¶
func GetStrategyJobList(dbConnPgx utils.PgxIface) ([]StrategyJob, error)
func GetStrategyJobListByPagination ¶
func GetStrategyJobListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]StrategyJob, error)
for refinedev
Click to show internal directories.
Click to hide internal directories.