This commit is contained in:
suyl
2021-07-22 18:56:18 +08:00
parent 08cdbe84cf
commit b903db0c13
6 changed files with 156 additions and 0 deletions

12
services/config.go Normal file
View File

@@ -0,0 +1,12 @@
package services
import (
"git.rosy.net.cn/jx-print/dao"
"git.rosy.net.cn/jx-print/globals"
"git.rosy.net.cn/jx-print/model"
"github.com/gin-gonic/gin"
)
func GetConfig(c *gin.Context, configType, key string) (config *model.NewConfig, err error) {
return dao.GetConfig(globals.GetDB(), configType, key)
}