dotnetcore / dotnetcore/Magicodes.IE
【功能】根据输入的实体生成字段文档表
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 495
- PR merge metrics
- No merged PRs in 30d
Description
## 问题
作为运维人员,往往不清楚DTO的构成
## 预期
此时如果能通过DTO导出一张 字段名-描述 的文档样例表,将使得模板的编写更为流畅。
## 解决方案
反射后端输入的模型,获取其所有可用的字段并生成样表
## 其他事项
例如
原数据
- Student
- BaseInfo
- ClassInfo
- BaseInfo
- Name
- Gender
- Age
- ClassInfo
- Score
- List\
- Class
- Name
样表
| 字段 | 类型 | 描述 | 启用 | ...其他选项 |
| ----------------------------- | -------------- | ---- | ---- | ----------- |
| {{ Student.BaseInfo.Name }} | string | | | |
| {{ Student.BaseInfo.Gender }} | Enum\ | | | |
| {{ Student.BaseInfo.Age }} | int | | | |
| {{ Student.ClassInfo.Score }} | int | | | |
| {{ Table>> Class }} | List\ | | | |
| Name | string | | | |
| {{ \>\>Table }} | | | | |
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.