youtube_collection
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
381 B

package service
import (
entity "youtube_collection_server/entity"
"go.mongodb.org/mongo-driver/mongo"
)
var UserServiceInstance UserService
type UserService struct {
Collection *mongo.Collection
UserInfo map[string](*entity.User)
}
func (m *UserService) InitService(Collection *mongo.Collection) {
m.Collection = Collection
m.UserInfo = map[string](*entity.User){}
}