mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
15 lines
341 B
JavaScript
15 lines
341 B
JavaScript
/**
|
||
* 项目里的Controller基类
|
||
* 这里做一些通用的处理逻辑,其他Controller继承该类
|
||
* @param {[type]}
|
||
* @return {[type]} [description]
|
||
*/
|
||
module.exports = Controller(function(){
|
||
'use strict';
|
||
return {
|
||
init: function(http){
|
||
this.super("init", http);
|
||
//其他的通用逻辑
|
||
}
|
||
}
|
||
}) |