service/dbstruct/xxljob_mysql.go

111 lines
3.4 KiB
Go

package dbstruct
type XxlJobLog struct {
Id *int64 `json:"id" db:"id"`
JobGroup *int32 `json:"job_group" db:"job_group"`
JobId *int32 `json:"job_id" db:"job_id"`
ExecutorAddress *string `json:"executor_address" db:"executor_address"`
ExecutorHandler *string `json:"executor_handler" db:"executor_handler"`
ExecutorParam *string `json:"executor_param" db:"executor_param"`
ExecutorShardingParam *string `json:"executor_sharding_param" db:"executor_sharding_param"`
ExecutorFailRetryCount *int32 `json:"executor_fail_retry_count" db:"executor_fail_retry_count"`
TriggerTime *string `json:"trigger_time" db:"trigger_time"`
TriggerCode *int32 `json:"trigger_code" db:"trigger_code"`
TriggerMsg *string `json:"trigger_msg" db:"trigger_msg"`
HandleTime *string `json:"handle_time" db:"handle_time"`
HandleCode *int32 `json:"handle_code" db:"handle_code"`
HandleMsg *string `json:"handle_msg" db:"handle_msg"`
AlarmStatus *int32 `json:"alarm_status" db:"alarm_status"`
}
func (xxlJobLog *XxlJobLog) GetId() int64 {
if xxlJobLog != nil && xxlJobLog.Id != nil {
return *xxlJobLog.Id
}
return 0
}
func (xxlJobLog *XxlJobLog) GetJobGroup() int32 {
if xxlJobLog != nil && xxlJobLog.JobGroup != nil {
return *xxlJobLog.JobGroup
}
return 0
}
func (xxlJobLog *XxlJobLog) GetJobId() int32 {
if xxlJobLog != nil && xxlJobLog.JobId != nil {
return *xxlJobLog.JobId
}
return 0
}
func (xxlJobLog *XxlJobLog) GetExecutorAddress() string {
if xxlJobLog != nil && xxlJobLog.ExecutorAddress != nil {
return *xxlJobLog.ExecutorAddress
}
return ""
}
func (xxlJobLog *XxlJobLog) GetExecutorHandler() string {
if xxlJobLog != nil && xxlJobLog.ExecutorHandler != nil {
return *xxlJobLog.ExecutorHandler
}
return ""
}
func (xxlJobLog *XxlJobLog) GetExecutorParam() string {
if xxlJobLog != nil && xxlJobLog.ExecutorParam != nil {
return *xxlJobLog.ExecutorParam
}
return ""
}
func (xxlJobLog *XxlJobLog) GetExecutorShardingParam() string {
if xxlJobLog != nil && xxlJobLog.ExecutorShardingParam != nil {
return *xxlJobLog.ExecutorShardingParam
}
return ""
}
func (xxlJobLog *XxlJobLog) GetExecutorFailRetryCount() int32 {
if xxlJobLog != nil && xxlJobLog.ExecutorFailRetryCount != nil {
return *xxlJobLog.ExecutorFailRetryCount
}
return 0
}
func (xxlJobLog *XxlJobLog) GetTriggerTime() string {
if xxlJobLog != nil && xxlJobLog.TriggerTime != nil {
return *xxlJobLog.TriggerTime
}
return ""
}
func (xxlJobLog *XxlJobLog) GetTriggerCode() int32 {
if xxlJobLog != nil && xxlJobLog.TriggerCode != nil {
return *xxlJobLog.TriggerCode
}
return 0
}
func (xxlJobLog *XxlJobLog) GetTriggerMsg() string {
if xxlJobLog != nil && xxlJobLog.TriggerMsg != nil {
return *xxlJobLog.TriggerMsg
}
return ""
}
func (xxlJobLog *XxlJobLog) GetHandleTime() string {
if xxlJobLog != nil && xxlJobLog.HandleTime != nil {
return *xxlJobLog.HandleTime
}
return ""
}
func (xxlJobLog *XxlJobLog) GetHandleCode() int32 {
if xxlJobLog != nil && xxlJobLog.HandleCode != nil {
return *xxlJobLog.HandleCode
}
return 0
}
func (xxlJobLog *XxlJobLog) GetHandleMsg() string {
if xxlJobLog != nil && xxlJobLog.HandleMsg != nil {
return *xxlJobLog.HandleMsg
}
return ""
}
func (xxlJobLog *XxlJobLog) GetAlarmStatus() int32 {
if xxlJobLog != nil && xxlJobLog.AlarmStatus != nil {
return *xxlJobLog.AlarmStatus
}
return 0
}