修改代码生成请求路径改为模块名+业务名

This commit is contained in:
不做码农
2021-12-10 08:28:58 +08:00
parent 944967afa3
commit 45b3e89657
4 changed files with 11 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ using ZR.Model.System.Generate;
namespace ZR.CodeGenerator
{
/// <summary>
/// 代码生成器
/// 代码生成器
/// </remarks>
/// </summary>
public class CodeGeneratorTool
@@ -281,7 +281,7 @@ namespace ZR.CodeGenerator
int nameLength = tableName.Length;
int subLength = (nameLength - lastIndex) - 1;
string businessName = tableName[(lastIndex + 1)..];
return businessName.Replace("_", "").ToLower();
return businessName.Substring(0, 1).ToUpper() + tableName[1..].Replace("_", "");
}
/// <summary>