ASTRO企业应用 ASTROPRO-swagger标签使用指南:17、x-entity-package

时间:2024-09-14 14:45:08

17、x-entity-package

作用

用于在swagger中指定实体类dto生成的包名。

标签值类型

String

使用位置

x-entity-package(定义在swagger的最外层)

使用示例

swagger: "2.0"
info:
  description: ""
  version: "v1"
  title: "testSwagger"
  termsOfService: "http://www.coarl.org/service.html"
host: "git.huawei.com"
basePath: "/testswagger"
x-entity-package: "customdto"
    ------------

使用效果:

使用前:

#dto对象生成目录 xxx.xx.xx.dto

使用后:

#dto对象生成目录 xxx.xx.xx.customdto
support.huaweicloud.com/usermanual-astropro/astropro_05_0143.html