mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
Web 服务
This commit is contained in:
20
service/dao/dao.go
Normal file
20
service/dao/dao.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/jinzhu/gorm"
|
||||
"github.com/patrickmn/go-cache"
|
||||
|
||||
"github.com/p14yground/nezha/model"
|
||||
)
|
||||
|
||||
// Conf ..
|
||||
var Conf *model.Config
|
||||
|
||||
// Cache ..
|
||||
var Cache *cache.Cache
|
||||
|
||||
// DB ..
|
||||
var DB *gorm.DB
|
||||
|
||||
// Admin ..
|
||||
var Admin *model.User
|
||||
@@ -1,4 +1,4 @@
|
||||
package handler
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,4 +1,4 @@
|
||||
package handler
|
||||
package rpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
Reference in New Issue
Block a user