mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 23:55:50 +00:00
基本雏型, 本地
This commit is contained in:
22
node_modules/user.js
generated
vendored
Normal file
22
node_modules/user.js
generated
vendored
Normal 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;
|
Reference in New Issue
Block a user