migrated raw mongo.Collection to repository.Repository + chain driver resolution fix
This commit is contained in:
19
api/gateway/tgsettle/storage/model/storable.go
Normal file
19
api/gateway/tgsettle/storage/model/storable.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
const (
|
||||
paymentsCollection = "payments"
|
||||
telegramConfirmationsCollection = "telegram_confirmations"
|
||||
pendingConfirmationsCollection = "pending_confirmations"
|
||||
)
|
||||
|
||||
func (*PaymentRecord) Collection() string {
|
||||
return paymentsCollection
|
||||
}
|
||||
|
||||
func (*TelegramConfirmation) Collection() string {
|
||||
return telegramConfirmationsCollection
|
||||
}
|
||||
|
||||
func (*PendingConfirmation) Collection() string {
|
||||
return pendingConfirmationsCollection
|
||||
}
|
||||
Reference in New Issue
Block a user