Documentation ¶
Index ¶
- func EntityName(name string) string
- func FieldType(s string) string
- func GenAPI(ctx context.Context, ...) error
- func GenAPIContent(ctx context.Context, ...) (*bytes.Buffer, error)
- func GenCasbin(backend, module, entity string) error
- func GenCasbinContent(entity string) (*bytes.Buffer, error)
- func GenDB(ctx context.Context, project, backend, module, entity, table string) error
- func GenDBContent(ctx context.Context, project, backend, module, entity, table string) (*bytes.Buffer, error)
- func GenJS(ctx context.Context, frontend, entity, comment, pkColumn string) error
- func GenJSContent(ctx context.Context, entity, comment, pkColumn string) (*bytes.Buffer, error)
- func GenMenu(backend, module 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, backend, module, entity, comment string, ...) error
- func GenParamContent(ctx context.Context, entity, comment string, columns []model.Columns) (*bytes.Buffer, error)
- func GenRoleMenu(backend, module string, ids []int) error
- func GenRoleMenuContent(ids []int) (*bytes.Buffer, error)
- func GenRouter(ctx context.Context, project, backend, module, entity, comment, crud string) error
- func GenRouterContent(ctx context.Context, ...) (*bytes.Buffer, error)
- func GenService(ctx context.Context, ...) error
- func GenServiceContent(ctx context.Context, ...) (*bytes.Buffer, error)
- func GenVue(ctx context.Context, frontend, entity, comment, pkColumn, fileName string, ...) error
- func GenVue3(ctx context.Context, frontend, entity, comment, pkColumn, fileName string, ...) error
- func GenVue3Content(ctx context.Context, frontend, entity, comment string, columns []model.Columns) (*bytes.Buffer, error)
- func GenVueContent(ctx context.Context, frontend, entity, comment, fileName, pkColumn string, ...) (*bytes.Buffer, error)
- func ModuleName(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenAPIContent ¶
func GenAPIContent(ctx context.Context, project, backend, module, comment, entity, pkColumn string) (*bytes.Buffer, error)
GenAPIContent 生成API内容
func GenCasbinContent ¶ added in v1.0.3
GenCasbinContent 生成权限内容
func GenDBContent ¶
func GenDBContent(ctx context.Context, project, backend, module, entity, 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, project, backend, module, comment, entity, pkColumn, table string, columns []model.Columns) error
GenModel 生成model实现文件
func GenModelContent ¶
func GenModelContent(ctx context.Context, project, backend, module, comment, entity, pkColumn, table string, columns []model.Columns) (*bytes.Buffer, error)
GenModelContent 生成model实现文件
func GenParam ¶
func GenParam(ctx context.Context, backend, module, entity, comment string, columns []model.Columns) error
GenParam 生成参数
func GenParamContent ¶
func GenParamContent(ctx context.Context, entity, comment 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, project, backend, module, entity, comment, crud, tmpl string) (*bytes.Buffer, error)
GenRouterContent 生成Router内容
func GenService ¶
func GenService(ctx context.Context, project, backend, module, comment, entity, pkColumn, crud string) error
GenService 生成service实现文件
func GenServiceContent ¶
func GenServiceContent(ctx context.Context, project, backend, module, comment, entity, pkColumn, crud string) (*bytes.Buffer, error)
GenServiceContent 生成service实现文件内容
func GenVue ¶
func GenVue(ctx context.Context, frontend, entity, comment, pkColumn, fileName string, columns []model.Columns) error
GenVue 生成vue
func GenVue3 ¶ added in v1.0.9
func GenVue3(ctx context.Context, frontend, entity, comment, pkColumn, fileName string, columns []model.Columns) error
GenVue3 生成vue3.0
func GenVue3Content ¶ added in v1.0.9
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.