Skip to content

Releases: farseer-go/webapi

v0.14.0

11 Jun 12:26
Compare
Choose a tag to compare
升级go.mod

v0.13.0

04 Feb 10:31
Compare
Choose a tag to compare
  • 调整:异常时记录到链路,并打印日志
  • 修复:多服务时,错误的获取Area变量
  • 修复:接收到int64数字丢失精度的问题

v0.12.0

08 Jan 10:56
Compare
Choose a tag to compare
  • 调整:增加注入时,对类型检查是否注册过IOC
  • 新增:健康检查接口:webapi.UseHealthCheck()
  • 优化:减少重复赋值

v0.11.0

25 Dec 05:19
Compare
Choose a tag to compare
  1. 调整:移除fasthttp组件依赖
  2. 调整:减少第三方组件依赖
  3. 新增:将Session作为子模块

v0.10.0

17 Dec 16:12
Compare
Choose a tag to compare
  1. 调整:增加404错误日志

v0.9.0

22 Nov 15:34
Compare
Choose a tag to compare
  1. 新增:增加https的支持
  2. 新增:DTO模式下的json Tag自定义字段名称
  3. 新增:对外使用http包的Request和Response
  4. 新增:minimalApi入参为dto模式时,支持interface注入
  5. 新增:开启pprof功能
  6. 新增:实现多开实例
  7. 新增:实现API函数自动容器注入
  8. 调整:invoke接口用时
  9. 调整:构造Action入的函数名为BuildActionInValue
  10. 调整:注册失败时os.exit改为panic
  11. 调整:Run函数取地址不再判断第一个参数是否为空
  12. 调整:改为使用自定义ServeMux对象
  13. 调整:移除init方法
  14. 调整:httpContext.Header改为只读字典类型
  15. 调整:BodyString赋值,交由callResult处理
  16. 调整:Method支持多个类型,用|分隔,如(POST|GET|PUT|DELETE)
  17. 调整:修改HttpRequest字段命名
  18. 优化:优化中间件初始化过程,大幅提升每次API请求的性能。
  19. 优化:提前确定基础类型,减少运行时判断
  20. 修复:异常时,无法转换exp为string的错误
  21. 修复:routing中间件未过滤OPTIONS引起CORS失败的问题

v0.8.0

27 Jul 15:10
Compare
Choose a tag to compare
  1. 调整:json输出时,Content-Type设置为application/json

  2. 新增:支持action入参的接口类型IocName设置
  3. 新增:Cookies功能
  4. 新增:Session功能(支持本地存储、Redis存储)
  5. 新增:minimalApi支持获取HttpContext
  6. 调整:重写路由机制,自定义实现serveMux
  7. 新增:实现正则路由匹配(占位符变量)
  8. 修复:multipart/form-data取不到值的BUG
  9. 修复:视图路径查找缺失PATH的问题

v0.3.0

03 Mar 14:39
Compare
Choose a tag to compare
  1. 新增:增加https的支持
  2. 新增:DTO模式下的json Tag自定义字段名称
  3. 新增:对外使用http包的Request和Response
  4. 新增:minimalApi入参为dto模式时,支持interface注入
  5. 新增:开启pprof功能
  6. 新增:实现多开实例
  7. 新增:实现API函数自动容器注入
  8. 调整:invoke接口用时
  9. 调整:构造Action入的函数名为BuildActionInValue
  10. 调整:注册失败时os.exit改为panic
  11. 调整:Run函数取地址不再判断第一个参数是否为空
  12. 调整:改为使用自定义ServeMux对象
  13. 调整:移除init方法
  14. 调整:httpContext.Header改为只读字典类型
  15. 调整:BodyString赋值,交由callResult处理
  16. 调整:Method支持多个类型,用|分隔,如(POST|GET|PUT|DELETE)
  17. 调整:修改HttpRequest字段命名
  18. 优化:优化中间件初始化过程,大幅提升每次API请求的性能。
  19. 优化:提前确定基础类型,减少运行时判断
  20. 修复:异常时,无法转换exp为string的错误
  21. 修复:routing中间件未过滤OPTIONS引起CORS失败的问题

v0.2.0

12 Dec 12:08
Compare
Choose a tag to compare
  1. 修改:重命名handleMiddleware
  2. 修改:mvc控制器,路由名称转为小写
  3. 修改:mvc控制器,增加对Action的参数设置
  4. 修复:Response输出报文时,非Go基础类型,均转成json
  5. 修复:controller.BaseController初始化时的错误
  6. 修复:异常内容转成string的错误
  7. 新增:header自动绑定
  8. 新增:IActionFilter过滤器
  9. 新增:批量注册路由方法webapi.RegisterRoutes

v0.1.0

06 Dec 12:29
Compare
Choose a tag to compare

We are very happy to release the first external version number v0.1.0
Before this, our team has been working hard to add various features to the framework to meet the needs of the business system.
After 3 months, we have commonly used features added to the framework and verified by initial testing.
As a result, our team decided to release this version number.
It is important to note that until v1 arrives, v0, there will still be a lot of minor issues. However, we will try to fix the problems found quickly.
If you find any bugs in the process of using it, please also send issues or PRs, thanks.