|
|
@@ -129,70 +129,8 @@ func DoGenerate(xmlfile string, isCompress bool) []byte {
|
|
|
tData,
|
|
|
isCompress)
|
|
|
res.Data = append(res.Data, *gr)
|
|
|
-
|
|
|
- gr = utils.NewResult(
|
|
|
- "sql",
|
|
|
- fmt.Sprintf("%s/sqlconfig/%s_controller/%s_page_count.tpl", app.ApplicationName, table.Name, table.Name),
|
|
|
- apigen.GenCount,
|
|
|
- tData,
|
|
|
- isCompress)
|
|
|
- res.Data = append(res.Data, *gr)
|
|
|
-
|
|
|
- gr = utils.NewResult(
|
|
|
- "sql",
|
|
|
- fmt.Sprintf("%s/sqlconfig/%s_controller/%s_page_select.tpl", app.ApplicationName, table.Name, table.Name),
|
|
|
- apigen.GenSelect,
|
|
|
- tData,
|
|
|
- isCompress)
|
|
|
- res.Data = append(res.Data, *gr)
|
|
|
-
|
|
|
- gr = utils.NewResult(
|
|
|
- "sql",
|
|
|
- fmt.Sprintf("%s/sqlconfig/%s/%s_gen.xml", app.ApplicationName, app.ApplicationName, table.Name),
|
|
|
- apigen.GenSql,
|
|
|
- tData,
|
|
|
- isCompress)
|
|
|
- res.Data = append(res.Data, *gr)
|
|
|
}
|
|
|
|
|
|
- /*
|
|
|
- main := utils.GenerateResult{}
|
|
|
- main.Type = "main"
|
|
|
- main.Name ="main.go"
|
|
|
-
|
|
|
- apiTpl := utils.GenerateResult{}
|
|
|
- apiTpl.Type = "doc"
|
|
|
- apiTpl.Name ="doc/api.tpl"
|
|
|
-
|
|
|
- docker := utils.GenerateResult{}
|
|
|
- docker.Type = "ci"
|
|
|
- docker.Name ="Dockerfile"
|
|
|
-
|
|
|
- godep := utils.GenerateResult{}
|
|
|
- godep.Type = "ci"
|
|
|
- godep.Name ="godep.yaml"
|
|
|
-
|
|
|
- gitignore := utils.GenerateResult{}
|
|
|
- gitignore.Type = "ci"
|
|
|
- gitignore.Name =".gitignore"
|
|
|
-
|
|
|
- drone := utils.GenerateResult{}
|
|
|
- drone.Type = "ci"
|
|
|
- drone.Name =".drone.yml"
|
|
|
-
|
|
|
- vue := utils.GenerateResult{}
|
|
|
- vue.Type = "vue"
|
|
|
- vue.Name ="vue/api/modules/%s/index.js"
|
|
|
-
|
|
|
- charts := utils.GenerateResult{}
|
|
|
- charts.Type = "charts"
|
|
|
- charts.Name ="charts/values.yaml"
|
|
|
-
|
|
|
- chartsTmpl := utils.GenerateResult{}
|
|
|
- chartsTmpl.Type = "charts"
|
|
|
- chartsTmpl.Name ="charts/templates/config.yaml"
|
|
|
- */
|
|
|
-
|
|
|
out, err := json.Marshal(res)
|
|
|
if err != nil {
|
|
|
fmt.Println(err.Error())
|