Skip to content

Commit

Permalink
fix: gorm gen path
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed May 16, 2024
1 parent a1425b8 commit a6db777
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/gen/gorm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ NOTICE:
package main

import (
"path/filepath"
"strings"

"gorm.io/gen"
Expand Down Expand Up @@ -58,9 +59,9 @@ const createdTime = "CreatedTime"
// generate code.
func main() {
g := gen.NewGenerator(gen.Config{
OutPath: "./dal/query/",
OutFile: "./dal/query/gen.go",
ModelPkgPath: "./dal/dao/",
OutPath: filepath.Clean("./dal/query/"),
OutFile: "gen.go",
ModelPkgPath: "dao",

WithUnitTest: false,
// if you want the nullable field generation property to be pointer type, set FieldNullable true
Expand Down

0 comments on commit a6db777

Please sign in to comment.