Skip to content

【功能】根据输入的实体生成字段文档表 #128

@serfend

Description

@serfend

问题

作为运维人员,往往不清楚DTO的构成

预期

此时如果能通过DTO导出一张 字段名-描述 的文档样例表,将使得模板的编写更为流畅。

解决方案

反射后端输入的模型,获取其所有可用的字段并生成样表

其他事项

例如

原数据

  • Student
    • BaseInfo
    • ClassInfo
  • BaseInfo
    • Name
    • Gender
    • Age
  • ClassInfo
    • Score
    • List<Class>
  • Class
    • Name

样表

字段 类型 描述 启用 ...其他选项
{{ Student.BaseInfo.Name }} string
{{ Student.BaseInfo.Gender }} Enum<Gender>
{{ Student.BaseInfo.Age }} int
{{ Student.ClassInfo.Score }} int
{{ Table>> Class }} List<Class>
Name string
{{ >>Table }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions