mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-01-12 22:27:09 +08:00
notification model
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
vi /etc/hosts
|
||||
|
||||
apt-get install mongodb=1:2.4.9-1ubuntu2
|
||||
apt-get install nodejs git nginx postfix redis-server ntp supervisor
|
||||
apt-get install python g++ make screen git wget zip unzip iftop vim curl htop iptraf nethogs
|
||||
apt-get install nodejs git nginx redis-server ntp supervisor
|
||||
apt-get install python g++ make screen wget zip unzip iftop vim curl htop iptraf nethogs
|
||||
|
||||
npm install coffee-script -g
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
### Runtime
|
||||
|
||||
# Shell
|
||||
apt-get install libcurl4-openssl-dev axel unrar-free emacs subversion subversion-tools tmux mercurial
|
||||
apt-get install libcurl4-openssl-dev axel unrar-free emacs subversion subversion-tools tmux mercurial postfix
|
||||
|
||||
# Golang
|
||||
apt-get install golang golang-go.tools
|
||||
|
||||
10
core/model/notification.coffee
Normal file
10
core/model/notification.coffee
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = exports = app.db.collection 'notifications'
|
||||
|
||||
sample =
|
||||
account_id: ObjectID()
|
||||
created_at: Date()
|
||||
level: 'notice/event/log'
|
||||
type: 'payment_success'
|
||||
meta:
|
||||
amount: 10
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
exports.createNotice = (account, level, notice, callback) ->
|
||||
|
||||
Reference in New Issue
Block a user