Browse Source

修复生成接口文档方法

YaolongHan 4 years ago
parent
commit
676130c2ca
1 changed files with 6 additions and 6 deletions
  1. 6 6
      docs/.vuepress/components/TableDesig.vue

+ 6 - 6
docs/.vuepress/components/TableDesig.vue

@@ -120,7 +120,7 @@ open class ${table} : BaseInfo(),Comparator<${table}> {
       strBuild.append(`package cn.sagacloud.server.datacenter.controllers
 
 import cn.sagacloud.server.datacenter.models.entities.Property
-import cn.sagacloud.server.datacenter.services.PropertyService
+import cn.sagacloud.server.datacenter.services.${this.toHump(this.table)}Service
 import com.sybotan.base.extensions.toJson
 import com.sybotan.database.SFilter
 import com.sybotan.service.SPageContext
@@ -167,7 +167,7 @@ open class ${className} {
       this.table
     )}>): SCreateResponse<${this.toHump(this.table)}> {
 
-        return PropertyService.createList( request)
+        return ${this.toHump(this.table)}Service.createList( request)
     } // Function create()
 
     /**
@@ -181,7 +181,7 @@ open class ${className} {
     fun delete(@RequestBody idList: ArrayList<${this.toHump(
       this.table
     )}>): SBaseResponse {
-        return PropertyService.deleteByKeysList(idList)
+        return ${this.toHump(this.table)}Service.deleteByKeysList(idList)
     } // Function delete()
 
     /**
@@ -195,7 +195,7 @@ open class ${className} {
     fun update(@RequestBody request: SUpdateRequest<${this.toHump(
       this.table
     )}>): SBaseResponse {
-        return PropertyService.updateList(request)
+        return ${this.toHump(this.table)}Service.updateList(request)
     } // Function update()
 
     /**
@@ -209,7 +209,7 @@ open class ${className} {
     fun query(@RequestBody request: SQueryRequest): SQueryResponse<${this.toHump(
       this.table
     )}> {
-        return PropertyService.pageQuery(request)
+        return ${this.toHump(this.table)}Service.pageQuery(request)
     } // Function query()
 
     /**
@@ -218,7 +218,7 @@ open class ${className} {
     @ApiOperation(value = "根据条件查询统计数量", notes = "")
     @PostMapping(value = ["/count"])
     fun count(@RequestBody request: SCountRequest): SCountResponse {
-        return PropertyService.count(request)
+        return ${this.toHump(this.table)}Service.count(request)
     } // Function count()
     `);
       strBuild.append(`} // Class ${className}`);