fix scope #4

Merged
daniel.w merged 1 commits from fix/scope into main 2024-09-03 11:56:00 +00:00
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,9 @@ import (
model "app-cloudep-tweeting-service/internal/model/mongo"
"app-cloudep-tweeting-service/internal/repository"
ers "code.30cm.net/digimon/library-go/errs"
"code.30cm.net/digimon/library-go/errs/code"
"github.com/zeromicro/go-zero/core/stores/redis"
vi "code.30cm.net/digimon/library-go/validator"
@ -22,6 +25,7 @@ type ServiceContext struct {
}
func NewServiceContext(c config.Config) *ServiceContext {
ers.Scope = code.CloudEPTweeting
newRedis, err := redis.NewRedis(c.RedisCluster, redis.Cluster())
if err != nil {
panic(err)