template-monorepo/internal/model/member/domain/repository/uid.go

9 lines
217 B
Go

package repository
import "context"
// UIDGenerator allocates readable UIDs in the form {UIDPrefix}-{Sequence}.
type UIDGenerator interface {
Next(ctx context.Context, tenantID, uidPrefix string) (string, error)
}