优化代码生成

This commit is contained in:
不做码农
2023-05-31 18:55:48 +08:00
parent 3f66fc9e60
commit 538dde51a8
6 changed files with 122 additions and 101 deletions

View File

@@ -70,7 +70,8 @@ $end
{
var response = _${replaceDto.ModelTypeName}Service.GetFirst(x => x.${replaceDto.PKName} == ${replaceDto.PKName});
return SUCCESS(response);
var info = response.Adapt<${replaceDto.ModelTypeName}>();
return SUCCESS(info);
}
$if(replaceDto.ShowBtnAdd)