基本雏型, 本地

This commit is contained in:
life
2015-01-18 23:15:00 +08:00
parent e854c20057
commit ab969d4e2c
2770 changed files with 307754 additions and 7405 deletions

22
node_modules/user.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
var Evt = require('evt');
// 用户基本信息
var User = {
// 得到当前活跃用户Id
getCurActiveUserId: function() {
return "user1";
},
getCurUserImagesPath: function() {
return Evt.getBasePath() + '/' + this.getCurUserImagesAppPath();
},
getCurUserAttachsPath: function() {
return Evt.getBasePath() + '/' + this.getCurUserAttachsAppPath();
},
getCurUserImagesAppPath: function() {
return 'data/' + this.getCurActiveUserId() + '/images';
},
getCurUserAttachsAppPath: function() {
return 'data/' + this.getCurActiveUserId() + '/attachs';
}
};
module.exports = User;