You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
519 B

package dao
import (
"errors"
"github.com/redis/go-redis/v9"
)
var ErrNotExists = errors.New("not exists")
// PostalDao persistent postal group api
type PostalDao interface {
LoadGroupIdsByUid(uid string) ([]string, error)
GroupCreate(gid string) (string, error)
GroupJoin(gid, uid string) error
GroupLeave(gid, uid string) error
GroupDismiss(gid string) error
}
type RedisPostalDao struct {
rdb *redis.Client
}
func (d *RedisPostalDao) LoadGroupIdsByUid(uid string) (gids []string, err error) {
return
}