feat: add user request limit config (#98)

This commit is contained in:
二丫讲梵
2023-03-17 10:13:13 +08:00
committed by GitHub
parent da654643a7
commit 1686748869
14 changed files with 333 additions and 251 deletions

View File

@@ -4,15 +4,15 @@ import (
"strings"
"github.com/eryajf/chatgpt-dingtalk/config"
"github.com/eryajf/chatgpt-dingtalk/service"
"github.com/eryajf/chatgpt-dingtalk/pkg/cache"
)
var UserService service.UserServiceInterface
var UserService cache.UserServiceInterface
var Config *config.Configuration
func InitSvc() {
Config = config.LoadConfig()
UserService = service.NewUserService()
UserService = cache.NewUserService()
_, _ = GetBalance()
}