Error code standardization

This commit is contained in:
skiffer-git 2023-01-17 15:30:24 +08:00
parent 87d0e296c1
commit e31d162870

View File

@ -19,7 +19,6 @@ type GroupModel struct {
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 {