Error code standardization

test-errcode
skiffer-git 2 years ago
parent 87d0e296c1
commit e31d162870

@ -14,12 +14,11 @@ import (
)
type GroupModel struct {
db *mysql.Group
cache *cache.GroupCache
mongo *mongo.Client
db *mysql.Group
cache *cache.GroupCache
mongo *mongo.Client
}
func NewGroupModel() {
var groupModel GroupModel
redisClient := cache.InitRedis()
@ -29,7 +28,6 @@ func NewGroupModel() {
}
func (g *GroupModel) Find(ctx context.Context, groupIDs []string) (groups []*mysql.Group, err error) {
g.cache.Client.
for _, groupID := range groupIDs {
group, err := g.getGroupInfoFromCache(ctx, groupID)
if err != nil {

Loading…
Cancel
Save