北斗启航科技教育平台管理系统
This commit is contained in:
29
app/controller/home.js
Normal file
29
app/controller/home.js
Normal file
@@ -0,0 +1,29 @@
|
||||
const { Controller } = require('egg');
|
||||
|
||||
const fileName = "home";
|
||||
|
||||
class HomeController extends Controller {
|
||||
async index() {
|
||||
const { ctx } = this;
|
||||
ctx.body = {
|
||||
code:200,
|
||||
msg:'test'
|
||||
}
|
||||
}
|
||||
async home() {
|
||||
const { ctx } = this;
|
||||
ctx.body = {
|
||||
code:200,
|
||||
msg:'home'
|
||||
}
|
||||
}
|
||||
async main() {
|
||||
const { ctx } = this;
|
||||
ctx.body = {
|
||||
code:200,
|
||||
msg:'main'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HomeController;
|
||||
Reference in New Issue
Block a user