// DeleteById deletes user by id
DeleteById deletes user by id
// DeleteById deletes user by id
func (d *MongoUserDao) DeleteById(id int) error {
	collection := d.Client.Database(d.DatabaseName).Collection(collectionName)
	_, err := collection.DeleteOne(d.Ctx, bson.M{"_id": id})
	return err
}
func ( d * MongoUserDao ) DeleteById ( id int ) error { collection := d . Client . Database ( d . DatabaseName ) . Collection ( collectionName ) _ , err := collection . DeleteOne ( d . Ctx , bson . M { " " : id } ) return err }
DeleteById deletes user by id
DeleteById deletes user by id