Documentation
¶
Index ¶
- func GenAPI(ctx context.Context, pkgName, moduleName, name, comment, pkColumn string) error
- func GenAPIContent(ctx context.Context, pkgName, moduleName, name, comment, pkColumn string) (*bytes.Buffer, error)
- func GenCasbin(moduleName, className string) error
- func GenCasbinContent(className string) (*bytes.Buffer, error)
- func GenDB(ctx context.Context, pkgName, moduleName, name, comment, table string) error
- func GenDBContent(ctx context.Context, pkgName, moduleName, name, comment, table string) (*bytes.Buffer, error)
- func GenJS(ctx context.Context, moduleName, name, comment, pk string) error
- func GenJSContent(ctx context.Context, name, comment, pk string) (*bytes.Buffer, error)
- func GenMenu(moduleName string, menus []model.Menu) error
- func GenMenuContent(menus []model.Menu) (*bytes.Buffer, error)
- func GenModel(ctx context.Context, ...) error
- func GenModelContent(ctx context.Context, ...) (*bytes.Buffer, error)
- func GenParam(ctx context.Context, moduleName, name string, columns []model.Columns) error
- func GenParamContent(ctx context.Context, name string, columns []model.Columns) (*bytes.Buffer, error)
- func GenRoleMenu(moduleName string, ids []int) error
- func GenRoleMenuContent(ids []int) (*bytes.Buffer, error)
- func GenRouter(ctx context.Context, pkgName, moduleName, name, comment string) error
- func GenRouterContent(ctx context.Context, pkgName, moduleName, name, comment string) (*bytes.Buffer, error)
- func GenService(ctx context.Context, pkgName, moduleName, name, comment, pkGo string) error
- func GenServiceContent(ctx context.Context, pkgName, moduleName, name, comment, pkGo string) (*bytes.Buffer, error)
- func GenVue(ctx context.Context, moduleName, businessName, name, comment, id string, ...) error
- func GenVueContent(ctx context.Context, moduleName, businessName, name, comment, id string, ...) (*bytes.Buffer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenAPIContent ¶
func GenAPIContent(ctx context.Context, pkgName, moduleName, name, comment, pkColumn string) (*bytes.Buffer, error)
GenAPIContent 生成API内容
func GenCasbinContent ¶ added in v1.0.3
GenCasbinContent 生成权限内容
func GenDBContent ¶
func GenDBContent(ctx context.Context, pkgName, moduleName, name, comment, table string) (*bytes.Buffer, error)
GenDBContent 生成DB内容
func GenJSContent ¶
GenJSContent 生成API内容
func GenMenuContent ¶ added in v1.0.3
GenMenuContent 生成菜单内容
func GenModel ¶
func GenModel(ctx context.Context, pkgName, moduleName, table, name, comment, pk, pkGo string, columns []model.Columns) error
GenModel 生成model实现文件
func GenModelContent ¶
func GenModelContent(ctx context.Context, pkgName, moduleName, table, name, comment, pk, pkGo string, columns []model.Columns) (*bytes.Buffer, error)
GenModelContent 生成model实现文件
func GenParamContent ¶
func GenParamContent(ctx context.Context, name string, columns []model.Columns) (*bytes.Buffer, error)
GenParamContent 生成param实现文件
func GenRoleMenu ¶ added in v1.0.3
GenRoleMenu 生成RoleMenu Migrate
func GenRoleMenuContent ¶ added in v1.0.3
GenRoleMenuContent 生成菜单内容
func GenRouterContent ¶
func GenRouterContent(ctx context.Context, pkgName, moduleName, name, comment string) (*bytes.Buffer, error)
GenRouterContent 生成Router内容
func GenService ¶
GenService 生成service实现文件
func GenServiceContent ¶
func GenServiceContent(ctx context.Context, pkgName, moduleName, name, comment, pkGo string) (*bytes.Buffer, error)
GenServiceContent 生成service实现文件内容
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.