package datamodel import "github.com/GoAdminGroup/go-admin/plugins/admin/modules/table" // Generators is a map of table models. // // The key of generators is the prefix of table info url. // The corresponding value is the Form and TableName data. // // http://{{config.Domain}}:{{Port}}/{{config.Prefix}}/info/{{key}} // // example: // // "posts" => http://localhost:9033/admin/info/posts // "authors" => http://localhost:9033/admin/info/authors // var Generators = map[string]table.Generator{ "posts": GetPostsTable, "authors": GetAuthorsTable, }