Shuo/lib/models/user.js

11 lines
147 B
JavaScript

var _ = require("lodash");
module.exports = User;
function User(attr) {
_.merge(this, _.extend({
mode: "",
name: ""
}, attr));
}