Web 服务

This commit is contained in:
奶爸
2019-12-08 16:59:58 +08:00
parent 5a21ce6ca6
commit d8c4364653
33 changed files with 1112 additions and 21 deletions

20
service/dao/dao.go Normal file
View 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

View File

@@ -1,4 +1,4 @@
package handler
package rpc
import (
"context"

View File

@@ -1,4 +1,4 @@
package handler
package rpc
import (
"context"