text: const multer = require("koa-multer");
  const {join} = require("path");
  const storage = multer.diskStorage({
      //存储位置
      destination:join(__dirname,"../static/avatar"),
      //文件名
      filename(req, file, cb){
          const filename = file.originalname.split(".")
          cb(null, `${Date.now()}.${filename[filename.length - 1]}`)
      }
  })
  module.exports = multer({storage});