代码生成

This commit is contained in:
quowingwang 2025-11-29 14:10:39 +08:00
parent 36f607a7c4
commit b09a570636

View File

@ -15,6 +15,7 @@ namespace RIZO.Admin.WebApi.Controllers
/// </summary>
[Route("tool/gen")]
[ApiExplorerSettings(GroupName = "sys")]
[AllowAnonymous]
public class CodeGeneratorController : BaseController
{
private readonly CodeGeneraterService _CodeGeneraterService = new CodeGeneraterService();
@ -103,6 +104,20 @@ namespace RIZO.Admin.WebApi.Controllers
return SUCCESS(new { info = tableInfo, tables });
}
/// <summary>
/// 编辑表查询字符串传tableId
/// </summary>
/// <param name="tableId">genTable表id</param>
/// <returns></returns>
[HttpGet("editTable")] // 路由模板tool/gen/editTable
[ActionPermissionFilter(Permission = "tool:gen:edit")]
public IActionResult EditTable(long tableId)
{
// 逻辑:查询待编辑的表信息(可复用 GetGenTableInfo 方法)
var tableInfo = GenTableService.GetGenTableInfo(tableId);
return SUCCESS(tableInfo);
}
/// <summary>
/// 根据表id查询表列
/// </summary>