devicemngmt/helper.go

13 lines
241 B
Go
Raw Normal View History

2021-11-05 07:18:59 +00:00
package devicemngmt
import (
"fmt"
"go.mongodb.org/mongo-driver/mongo"
)
// getDeviceCollection ...
func (s Service) getDeviceCollection() *mongo.Collection {
return s.DB.Collection(fmt.Sprintf("%s-%s", s.TablePrefix, TableDevice))
}