Files
KJD_WebService/Untitled.md
T
2026-11-18 18:08:50 +08:00

11 lines
910 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 重写事项
1. 根据映射文档从原始文件中找到API接口和对应的底层代码,只允许找到BLL层代码。
2. 原始项目中的扩展属性和帮助类不要带入到新项目中,根据新项目中代码进行查找和替换。
3. 原始项目中的数据库连接统一改为新项目中的Freesql。
4. 修改原始项目中的连SQL连接字符串改为FreeSql + Repositorys+Entity
5. 原始项目中BLL返回的数据不允许直接返回字符串,要返回Dto,Mapper用 Riok.Mapperly 放在 Mappers文件夹中
6. 新版项目统一返回状态码200 所有action 返回自动包裹 ApiResult 如果自己返回ApiResult 则不包裹,ApiResult内部会有正确和错误,如果action 直接抛出错误 全局拦截后也会包裹ApiResult
7. 新版请求接口统一是Post + Json 。不允许有http\://xxx.com/api/ccc?name=123。不要出现Url带参数的清空出现