12345678910111213141516171819202122232425262728293031323334353637 |
- /**
- * Created by benzhan on 15/8/15.
- */
- var Model = require('../framework/Model.js');
- var util = require('util');
- util.inherits(cUser, Model);
- var prototype = cUser.prototype;
- /**
- * @type {cUser}
- */
- var that;
- function cUser() {
- that = this;
- var tableName = 'cUser';
- var dbKey = 'Web';
- Model.call(this, tableName, dbKey);
- }
- prototype.getAllUser = function() {
- var selectSQL = 'select * from cUser';
- return this.objDb.getAll(selectSQL, 10);
- }
- prototype.getvMenuNode = function() {
- var selectSQL = 'select * from vMenuNode';
- return this.objDb.getAll(selectSQL);
- }
- prototype.getAllUser2 = function() {
- return this.objTable.getAll();
- }
- module.exports = cUser;
|