We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I am not sure if I can get the documentation well. I have just made the following commands:
$gin-admin-cli new -d ~/go/src --name test-gin-admin --desc 'A test API service based on golang.' --pkg 'github.com/mgazzin/test-gin-admin' $ gin-admin-cli gen -d ~/go/src/test-gin-admin -m SYS --structs Dictionary --structs-comment "Dictionaries management" --structs-router-prefix 2024-01-23T14:55:10.805+0100 INFO [GEN] Write file: /home/mgem/go/src/test-gin-admin/internal/mods/sys/schema/dictionary.go 2024-01-23T14:55:10.823+0100 INFO [GEN] Write file: /home/mgem/go/src/test-gin-admin/internal/mods/sys/dal/dictionary.dal.go 2024-01-23T14:55:10.828+0100 INFO [GEN] Write file: /home/mgem/go/src/test-gin-admin/internal/mods/sys/biz/dictionary.biz.go 2024-01-23T14:55:10.834+0100 INFO [GEN] Write file: /home/mgem/go/src/test-gin-admin/internal/mods/sys/api/dictionary.api.go 2024-01-23T14:55:10.842+0100 INFO [GEN] Write file: /home/mgem/go/src/test-gin-admin/internal/mods/sys/main.go 2024-01-23T14:55:10.848+0100 INFO [GEN] Write file: /home/mgem/go/src/test-gin-admin/internal/mods/sys/wire.go 2024-01-23T14:55:10.854+0100 INFO [GEN] Write file: /home/mgem/go/src/test-gin-admin/internal/mods/mods.go wire: github.com/mgazzin/test-gin-admin/internal/wirex: wrote /home/mgem/go/src/test-gin-admin/internal/wirex/wire_gen.go swag init --parseDependency --generalInfo main.go --output internal/swagger 2024/01/23 14:55:12 Generate swagger docs.... 2024/01/23 14:55:12 Generate general API Info, search dir:./ 2024/01/23 14:55:14 Generating util.ResponseResult 2024/01/23 14:55:14 Generating errors.Error 2024/01/23 14:55:14 Generating schema.Captcha 2024/01/23 14:55:14 Generating schema.LoginForm 2024/01/23 14:55:14 Generating schema.LoginToken 2024/01/23 14:55:14 Generating schema.User 2024/01/23 14:55:14 Generating schema.UserRoles 2024/01/23 14:55:14 Generating schema.UserRole 2024/01/23 14:55:14 Generating schema.UpdateLoginPassword 2024/01/23 14:55:14 Generating schema.Menu 2024/01/23 14:55:14 Generating schema.Menus 2024/01/23 14:55:14 Skipping 'schema.Menu', recursion detected. 2024/01/23 14:55:14 Generating schema.MenuResources 2024/01/23 14:55:14 Generating schema.MenuResource 2024/01/23 14:55:14 Generating schema.UpdateCurrentUser 2024/01/23 14:55:14 Generating schema.MenuForm 2024/01/23 14:55:14 Generating schema.Role 2024/01/23 14:55:14 Generating schema.RoleMenus 2024/01/23 14:55:14 Generating schema.RoleMenu 2024/01/23 14:55:14 Generating schema.RoleForm 2024/01/23 14:55:14 Generating schema.UserForm 2024/01/23 14:55:14 Generating schema.Dictionary 2024/01/23 14:55:14 Generating schema.DictionaryForm 2024/01/23 14:55:14 Generating schema.Logger 2024/01/23 14:55:14 create docs.go at internal/swagger/docs.go 2024/01/23 14:55:14 create swagger.json at internal/swagger/swagger.json 2024/01/23 14:55:14 create swagger.yaml at internal/swagger/swagger.yaml $ make swagger 2024/01/23 15:02:44 Generate swagger docs.... 2024/01/23 15:02:44 Generate general API Info, search dir:./ 2024/01/23 15:02:46 Generating util.ResponseResult 2024/01/23 15:02:46 Generating errors.Error 2024/01/23 15:02:46 Generating schema.Captcha 2024/01/23 15:02:46 Generating schema.LoginForm 2024/01/23 15:02:46 Generating schema.LoginToken 2024/01/23 15:02:46 Generating schema.User 2024/01/23 15:02:46 Generating schema.UserRoles 2024/01/23 15:02:46 Generating schema.UserRole 2024/01/23 15:02:46 Generating schema.UpdateLoginPassword 2024/01/23 15:02:46 Generating schema.Menu 2024/01/23 15:02:46 Generating schema.Menus 2024/01/23 15:02:46 Skipping 'schema.Menu', recursion detected. 2024/01/23 15:02:46 Generating schema.MenuResources 2024/01/23 15:02:46 Generating schema.MenuResource 2024/01/23 15:02:46 Generating schema.UpdateCurrentUser 2024/01/23 15:02:46 Generating schema.MenuForm 2024/01/23 15:02:46 Generating schema.Role 2024/01/23 15:02:46 Generating schema.RoleMenus 2024/01/23 15:02:46 Generating schema.RoleMenu 2024/01/23 15:02:46 Generating schema.RoleForm 2024/01/23 15:02:46 Generating schema.UserForm 2024/01/23 15:02:46 Generating schema.Dictionary 2024/01/23 15:02:46 Generating schema.DictionaryForm 2024/01/23 15:02:46 Generating schema.Logger 2024/01/23 15:02:46 create docs.go at internal/swagger/docs.go 2024/01/23 15:02:46 create swagger.json at internal/swagger/swagger.json 2024/01/23 15:02:46 create swagger.yaml at internal/swagger/swagger.yaml $ make wire wire: github.com/mgazzin/test-gin-admin/internal/wirex: wrote /home/mgem/go/src/test-gin-admin/internal/wirex/wire_gen.go $ make start fatal: Needed a single revision # github.com/mgazzin/test-gin-admin/internal/swagger internal/swagger/docs.go:2309:2: unknown field LeftDelim in struct literal of type "github.com/swaggo/swag".Spec internal/swagger/docs.go:2310:2: unknown field RightDelim in struct literal of type "github.com/swaggo/swag".Spec make: *** [Makefile:21: start] Error 1
Is there anything I am not considering?
The text was updated successfully, but these errors were encountered:
OK, please upgrade swagger version to v1.16.2 and retry. LyricTian/gin-admin@127bd52
Sorry, something went wrong.
Ok @LyricTian , it works. Can gin-admin-cli generate also an Ant Design frontend?
No branches or pull requests
Hello, I am not sure if I can get the documentation well.
I have just made the following commands:
Is there anything I am not considering?
The text was updated successfully, but these errors were encountered: