You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gojobs/jobs_xorm.go

22 lines
258 B

2 years ago
package gojobs
import "xorm.io/xorm"
2 years ago
// Xorm数据库驱动
type jobsXorm struct {
db *xorm.Engine
2 years ago
}
2 years ago
// NewJobsXorm 初始化
func NewJobsXorm(db *xorm.Engine) *jobsXorm {
2 years ago
var (
2 years ago
j = &jobsXorm{}
2 years ago
)
2 years ago
j.db = db
return j
}
func (j *jobsXorm) Run() {
2 years ago
}