pcm-coordinator/model/thashcat.go

38 lines
1.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by goctl. DO NOT EDIT.
package model
import (
"database/sql"
"github.com/zeromicro/go-zero/core/stores/sqlx"
)
type (
defaultTHashcatModel struct {
conn sqlx.SqlConn
table string
}
THashcat struct {
Id int64 `db:"id"` // id
CrackTaskId int64 `db:"crack_task_id"` // 任务id
CrackStatus string `db:"crack_status"` // 状态
CrackStartTime string `db:"crack_start_time"` //开始时间
CrackEstimatedTime string `db:"crack_estimated_time"` // 预计时间
CrackProgress string `db:"crack_progress"` // 进度
CrackResult string `db:"crack_result"` // 结果
CreatedBy int64 `db:"created_by"` // 创建人
CreatedTime sql.NullTime `db:"created_time"` // 创建时间
UpdatedBy int64 `db:"updated_by"` // 更新人
UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间
DeletedFlag int64 `db:"deleted_flag"` // 是否删除0-否1-是)
}
)
func newTHashcatModel(conn sqlx.SqlConn) *defaultCloudModel {
return &defaultCloudModel{
conn: conn,
table: "`cloud`",
}
}