c#实体生成(RG3.MauiAppHostDemo.Entity)
1、db2-net-entity
2、RG3.MauiAppHostDemo.Entity 改成业务定义的
请求地址(特定表操作)
http://localhost:5900/bo/api/v3/bi/db/aicode/db2-net-entity
query参数
[
{
"key": "ignore",
"value": "true"
},
{
"key": "ownerId",
"value": "smdcm"
},
{
"key": "sysId",
"value": null
},
{
"key": "mediaType",
"value": "text"
},
{
"key": "suffix",
"value": "cs"
}
]
头参数
[
{
"description": "项目识别编号(小写)",
"key": "XownerId",
"type": "text",
"value": "smdcm"
},
{
"key": "XsysId",
"value": "4133033848105605678"
}
]
body参数
1、根据规则替换对应的字段和内容
https://doc.rg1008.com/docs/rg_dev/rg_dev-1el3dqmqmna8o
2、注意:参数替换规则格式必须正确
3、通常改的字段
"packageName":"com.rg3.entity",
"namespaceName":"RG3.MauiAppHostDemo.Entity",
"connName": "ConnZentao",
"databaseName": "smdcm_bs_zentao",
tableNames 里面 "tableName": "zt_scripture",
RG3.MauiAppHostDemo
4、文件输入路径控制(如果为空,不输出)
1、tableOutPath 表输出路径
2、outPath 合成内容的文件输出路径
5、完整body案例参数(特定表)
[
{
"packageName":"",
"namespaceName":"RG3.MauiAppHostDemo.Entity",
"connName": "ConnZentao",
"databaseName": "smdcm_bs_zentao",
"tableOutPath": "~/App_Temp/{{owner_id}}/AiCode/db2-net-entity/RG3.MauiAppHostDemo/Entity/{{table_name_class}}.cs",
"outPath": "~/App_Temp/{{owner_id}}/AiCode/db2-net-entity/global.cs",
"tableNames": [
{
"tableName": "zt_scripture"
}
]
}
]
5、完整body案例参数(全部表)
[
{
"packageName":"",
"namespaceName":"RG3.MauiAppHostDemo.Entity",
"connName": "ConnZentao",
"databaseName": "smdcm_bs_zentao",
"tableOutPath": "~/App_Temp/{{owner_id}}/AiCode/db2-net-entity/RG3.MauiAppHostDemo/Entity/{{table_name_class}}.cs",
"outPath": "~/App_Temp/{{owner_id}}/AiCode/db2-net-entity/global.cs",
"tableNames": []
}
]
生成后的代码
文档更新时间: 2023-04-12 14:16 作者:admin