Created
April 22, 2012 21:44
-
-
Save raytiley/2467111 to your computer and use it in GitHub Desktop.
Design Phase 4 - Report Validator Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.createReport = function(report, callback(err, data)) { | |
//Persist the report object to database | |
//Update cost tables if needed | |
//Execute callback | |
} | |
exports.updateReport = function(report, callback(err, data)) { | |
//Update report object in database | |
//Update cost tables if needed | |
//Execute callback | |
} | |
exports.getReportByID = function(id, callback(err, data)) { | |
//Retrieve report from database | |
//Execute callback | |
} | |
exports.getReportsByLatLon = function(lat, lon, radiusInMeters, callback(err, data)) { | |
//Retrieve reports within the radius of the provided latitude and longitude | |
//Execute callback | |
} | |
exports.getRelatedReports = function(id, callback(err, data)) { | |
//Return reports that reference the report with provided ID | |
//Execute callback | |
} | |
exports.deleteReport = function(id, callback(err, data)) { | |
//Delete report with given id | |
//Execute callback | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment