13 lines
241 B
Go
13 lines
241 B
Go
|
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))
|
||
|
}
|