repository.go 939 字节

func CreateAccessRepository(options map[string]interface{}) (domain.AccessRepository, error) {
	var transactionContext *pg.TransactionContext
	if value, ok := options["transactionContext"]; ok {
		transactionContext = value.(*pg.TransactionContext)
	}
	return repository.NewAccessRepository(transactionContext)
}
func CreateAccessRepository(options map[string]interface{}) (domain.AccessRepository, error) {
	var transactionContext *pg.TransactionContext
	if value, ok := options["transactionContext"]; ok {
		transactionContext = value.(*pg.TransactionContext)
	}
	return repository.NewAccessRepository(transactionContext)
}
func CreateAccessRepository(options map[string]interface{}) (domain.AccessRepository, error) {
	var transactionContext *pg.TransactionContext
	if value, ok := options["transactionContext"]; ok {
		transactionContext = value.(*pg.TransactionContext)
	}
	return repository.NewAccessRepository(transactionContext)
}