Browse Source

添加自动移动文件的boo;

SliverHorn 4 years ago
parent
commit
0e4c9c0224
2 changed files with 5 additions and 0 deletions
  1. 1 0
      server/model/sys_auto_code.go
  2. 4 0
      web/src/view/systemTools/autoCode/index.vue

+ 1 - 0
server/model/sys_auto_code.go

@@ -8,6 +8,7 @@ type AutoCodeStruct struct {
 	Abbreviation       string  `json:"abbreviation"`
 	Description        string  `json:"description"`
 	AutoCreateApiToSql bool    `json:"autoCreateApiToSql"`
+	AutoMoveFile       bool    `json:"autoMoveFile"`
 	Fields             []Field `json:"fields"`
 }
 

+ 4 - 0
web/src/view/systemTools/autoCode/index.vue

@@ -63,6 +63,9 @@
       <el-form-item label="自动创建api">
         <el-checkbox v-model="form.autoCreateApiToSql"></el-checkbox>
       </el-form-item>
+      <el-form-item label="自动移动文件">
+        <el-checkbox v-model="form.autoMoveFile"></el-checkbox>
+      </el-form-item>
     </el-form>
     <!-- 组件列表 -->
     <div class="button-box clearflex">
@@ -165,6 +168,7 @@ export default {
         abbreviation: "",
         description: "",
         autoCreateApiToSql: false,
+        autoMoveFile: false,
         fields: []
       },
       rules: {