Skip to content

bee 生成model问题 求救 #869

Description

@gwyy

go环境 1.20
我通过 bee 工具生成model 提示如下:
➜ beedemo1 bee 生成 appcode -tables="admin_menu" -driver=mysql -conn="root:123456@tcp(10.180. 18.38:3306)/beegoadmin" -level=1


| ___
| |/ / ___ ___
| ___ \ / _ \ / _
| |
/ /| /| /
_
/ _
| __| v2.1.0
2024/06/13 15:05:09 INFO ▶0001 使用 'mysql' 作为 'SQLDriver'
2024/06/13 15:05:09 INFO ▶0002 使用 'root:123456@tcp(10.180.18.38: 3306)/beegoadmin' 作为 'SQLConn'
2024/06/13 15:05:09 INFO ▶0003 使用 'admin_menu' 作为 'Tables'
2024/06/13 15:05:09 INFO ▶0004 使用 '1' 作为 'Level'
2024/06/13 15:05:09 INFO ▶0005 正在分析数据库表...
2024/06/13 15:05:09 FATAL ▶0006 无法在 GOPATH '/Users/admin/wwwroot/golang/gopath' 之外生成应用程序代码,与 CWD '/Users/admin/wwwroot/golang/ personal/beedemo1'相比

网上找了一圈 包括 issue 里 貌似都没什么好的解决办法 求问这个问题如何解决?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions