text: const koaRouter = require('koa-router');
  const { register, Login, findList, update, getLoginInfo, getLastLogin, EditPwd } = require('./controllers/user')
  const { getMsgList, readMsg } = require('./controllers/Chat');
  const {deleteMsg} = require('./controllers/Chat')
  const {addComment,getCommentList} = require('./controllers/Comment')
  const {collectGenius,collectCompany,getCompanyCollection,getGeniusCollection} = require('./controllers/Collection')
  
  const user = new koaRouter();
  user.post('/read-msg',readMsg)
  user.get('/get-msg-list',getMsgList)
  user.get('/info', getLoginInfo)
  user.post('/register', register)//post、get注意一下
  user.get('/login',Login)
  user.get('/edit-pwd',EditPwd)
  user.get('/list',findList)
  user.post('/update',update)
  user.post('/delete-msg',deleteMsg)
  user.get('/get-last-login',getLastLogin)
  user.post('/comment',addComment)
  user.get('/comment-list',getCommentList)
  user.get('/collect-company',collectCompany)
  user.get('/collect-genius',collectGenius)
  user.get('/get-company-collection',getCompanyCollection)
  user.get('/get-genius-collection',getGeniusCollection)
  
  module.exports = user