rUser.js 451 B

123456789101112131415161718192021222324
  1. var Model = require('../framework/Model.js');
  2. var util = require('util');
  3. util.inherits(rUser, Model);
  4. var prototype = rUser.prototype;
  5. /**
  6. * @type {rUser}
  7. */
  8. var that;
  9. function rUser() {
  10. that = this;
  11. var tableName = 'rUserNode';
  12. var dbKey = 'Web';
  13. Model.call(this, tableName, dbKey);
  14. }
  15. prototype.getUserNode = function(userId) {
  16. var where = {userId:userId};
  17. return this.objTable.getRow(where);
  18. }
  19. module.exports = rUser;