From 96ddd8c7f724eee1b811b1dbaa335f2757856ee1 Mon Sep 17 00:00:00 2001 From: public_host Date: Mon, 26 Apr 2021 10:17:44 +0800 Subject: [PATCH] fix --- hasaki-gen-crud/hasaki-gen-crud.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hasaki-gen-crud/hasaki-gen-crud.js b/hasaki-gen-crud/hasaki-gen-crud.js index 09ba11c..310dd3c 100644 --- a/hasaki-gen-crud/hasaki-gen-crud.js +++ b/hasaki-gen-crud/hasaki-gen-crud.js @@ -165,14 +165,14 @@ try { let httpFileName = path.join(fileDir, `auto_generated_http_crud_${underscore_naming}_${struct}_${fileBaseName}`) - let mark = `/*该文件由插件自动生成,无特殊情况请勿改动*/`; + let mark = `//该文件由插件自动生成,无特殊情况请勿改动`; - fs.writeFile(crudFileName, `${package_src}\n${mark}\n\n${tmp[2]}`, function () { + fs.writeFile(crudFileName, `${mark}\n\n${package_src}\n\n${tmp[2]}`, function () { goplsfix(crudFileName); }) - fs.writeFile(httpFileName, `${package_src}\n${mark}\n\n${tmp[3]}`, function () { + fs.writeFile(httpFileName, `${mark}\n\n${package_src}\n\n${tmp[3]}`, function () { goplsfix(httpFileName); })