Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-gorm/gen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: eliohn/gen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 6 files changed
  • 1 contributor

Commits on Sep 24, 2025

  1. feat(generator): 添加字段类型映射配置支持

    - 在 FieldConfig 和 Config 结构体中新增 DataFieldTypeMap 字段
    - 添加 WithDataFieldTypeMap 方法用于设置字段类型映射
    - 在 Column 结构体中增加 dataFieldTypeMap 支持
    - 实现 SetDataFieldTypeMap 方法设置列的字段类型映射
    - 修改 GetDataType 方法优先使用 dataFieldTypeMap 的映射规则- 更新 generator.go 中字段生成逻辑以应用新的字段类型映射
    - 升级 examples/go.mod 中的依赖版本
    eliohn committed Sep 24, 2025
    Configuration menu
    Copy the full SHA
    01b3de6 View commit details
    Browse the repository at this point in the history
Loading