mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-29 12:31:11 +00:00
Preview, GenCode, GenApiToFile and GenMenuAndApi read a table's configuration with tab, _ := table.Get(...), so an id that matched nothing, or a failed query, carried on with an empty table. GenCode and Preview then refused it as having no primary key, and GenMenuAndApi went on to seed menus and APIs for it. Each now answers with the lookup's error.