mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-29 13:04:15 +08:00
搭建好了一个框架,准备实现数据库相关功能
This commit is contained in:
16
handler/unit/unit_entry.go
Normal file
16
handler/unit/unit_entry.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"zsxyww.com/scheduler/database"
|
||||
)
|
||||
|
||||
// Unit Operations
|
||||
type uoPrototype struct {
|
||||
c *gorm.DB
|
||||
}
|
||||
|
||||
func init() {
|
||||
uo := uoPrototype{c: db.Main}
|
||||
_ = uo
|
||||
}
|
||||
Reference in New Issue
Block a user