Documentation ¶
Index ¶
- Variables
- func AngularFilename(value string) string
- func AngularRestName(tmp string) string
- func BackendFsPath(value string) string
- func ConfigParamName(field *structs.ParamConfig) string
- func ConfigParamTag(field *structs.ParamConfig) string
- func ConfigParamType(field *structs.ParamConfig) string
- func DisplayMethodNameGet(value string) string
- func DisplayMethodNamePost(value string) string
- func EscapeChars(value string) string
- func ExecuteTmplFile(tmpl *template.Template, data interface{}) (out []byte, err error)
- func FieldChildName(field *structs.Field) string
- func FieldDBName(field *structs.Field) (res string)
- func FieldDbTableType(field *structs.Field) string
- func FieldDescript(field *structs.Field, fieldId bool) (str string)
- func FieldInTableByName(name string, table *structs.Table) *structs.Field
- func FieldJsonDescriptionStrClear(value string) string
- func FieldJsonName(field *structs.Field) string
- func FieldJsonNameStr(field string) string
- func FieldName(field *structs.Field) string
- func FieldNameLowerPrepare(value string) string
- func FieldNamePrepare(value string) string
- func FieldStringToType(value interface{}, field *structs.Field) string
- func FieldToVisField(field structs.Field) (res structs.VisField)
- func FieldToVisField2(field structs.FK) (res structs.VisField)
- func FieldType(field *structs.Field) string
- func FieldTypeDB(field *structs.Field) string
- func FieldTypeDBStr(value string, length *int) string
- func FieldTypeParentTable(field *structs.Field) string
- func FieldTypeStr(value string) string
- func FindFieldIdInDBByName(project *structs.Project, tblID uuid.UUID, fldName string) uuid.UUID
- func FindFieldIdInInterfaceByName(project *structs.Project, interfaceID uuid.UUID, fldName string) uuid.UUID
- func FindFieldNameInDBById(project *structs.Project, tblID uuid.UUID, fldId uuid.UUID) string
- func FindFieldNameInInterfaceById(project *structs.Project, interfaceID uuid.UUID, fldId uuid.UUID) string
- func FindFieldNameInTableById(project *structs.Project, tblID uuid.UUID, fldId uuid.UUID) string
- func FindSourceDataInDBByID(project *structs.Project, id uuid.UUID) *structs.Table
- func FindSourceDataInDBByName(project *structs.Project, name string) *structs.Table
- func FindSourceDataInInterfaceByID(project *structs.Project, id uuid.UUID) *structs.Interface
- func FindSourceDataInInterfaceByName(project *structs.Project, name string) *structs.Interface
- func GetFieldsByModelID(project *structs.Project, id uuid.UUID) []structs.Field
- func GetFieldsByModelName(project *structs.Project, name string) []structs.Field
- func GetFksByModelID(project *structs.Project, id uuid.UUID) []structs.Field
- func GetFksByModelID2(project *structs.Project, id uuid.UUID) []structs.FK
- func GetModelName(project *structs.Project, value structs.VisField) string
- func GetModelNameAngular(project *structs.Project, value structs.VisField) string
- func HasFieldType(fields []structs.Field, typeName string) (has bool)
- func IncludeTemplPart(templName string, data interface{}) string
- func IsMethod(arr map[string][]string, method string) bool
- func MethodComment(value string) string
- func MethodNameGet(value string) string
- func MethodNameGetId(value string) string
- func MethodNamePost(value string) string
- func MethodSummary(value string) string
- func MkdirIsNotExists(pathdir string) (err error)
- func PackageName(name string) string
- func ParseRestPath(value string) string
- func ParseRestPathForName(value string) string
- func ParseRestPathParams(value string) (res []structs.Field)
- func PrepareTmplFile(filename string, data interface{}, outname string) (err error)
- func PrepareTmplIsNotExists(filename string, data interface{}, outname string) (err error)
- func RandomHex(n int) (string, error)
- func ReadTmplFile(filename string) (tmpl *template.Template, err error)
- func RemoveFirstChar(value string) string
- func Roles(arr map[string][]string, method string) []string
- func WriteFile(outname string, data []byte) (err error)
- func WriteTmplFile(filename string, outname string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Content embed.FS
Functions ¶
func AngularFilename ¶ added in v0.0.9
func AngularRestName ¶ added in v0.0.9
func BackendFsPath ¶ added in v0.0.22
func ConfigParamName ¶
func ConfigParamName(field *structs.ParamConfig) string
Вернуть название параметра
func ConfigParamTag ¶
func ConfigParamTag(field *structs.ParamConfig) string
Вернуть строку для тэгирования параметров
func ConfigParamType ¶
func ConfigParamType(field *structs.ParamConfig) string
Вернуть тип параметра
func DisplayMethodNameGet ¶
func DisplayMethodNamePost ¶
func EscapeChars ¶ added in v0.1.1
func ExecuteTmplFile ¶ added in v0.1.0
Выполнить шаблон
func FieldChildName ¶ added in v0.0.12
func FieldDbTableType ¶ added in v0.0.12
func FieldDescript ¶
Генерирование описания таблиц в БД
func FieldInTableByName ¶ added in v0.0.26
func FieldJsonDescriptionStrClear ¶ added in v0.0.21
func FieldJsonName ¶
func FieldJsonNameStr ¶ added in v0.0.20
func FieldNameLowerPrepare ¶
func FieldNamePrepare ¶
func FieldStringToType ¶ added in v0.0.26
func FieldToVisField ¶ added in v0.0.21
func FieldToVisField2 ¶ added in v0.0.21
func FieldTypeDB ¶
func FieldTypeDBStr ¶ added in v0.1.0
func FieldTypeParentTable ¶ added in v0.0.12
func FieldTypeStr ¶ added in v0.1.0
func FindFieldIdInDBByName ¶ added in v0.0.20
Найти ID поля по имени
func FindFieldIdInInterfaceByName ¶ added in v0.0.20
func FindFieldIdInInterfaceByName(project *structs.Project, interfaceID uuid.UUID, fldName string) uuid.UUID
Найти ID поля по имени
func FindFieldNameInDBById ¶ added in v0.0.20
Найти имя поля в таблице по ID
func FindFieldNameInInterfaceById ¶ added in v0.0.20
func FindFieldNameInInterfaceById(project *structs.Project, interfaceID uuid.UUID, fldId uuid.UUID) string
Найти имя поля в интерфейсе по ID
func FindFieldNameInTableById ¶ added in v0.0.22
Найти имя поля в интерфейсе по ID
func FindSourceDataInDBByID ¶ added in v0.0.20
Найти таблицу по ID
func FindSourceDataInDBByName ¶ added in v0.0.20
Найти таблицу по имени
func FindSourceDataInInterfaceByID ¶ added in v0.0.20
func FindSourceDataInInterfaceByName ¶ added in v0.0.20
func GetFieldsByModelID ¶ added in v0.0.20
func GetFieldsByModelName ¶ added in v0.0.20
func GetFksByModelID ¶ added in v0.0.20
func GetFksByModelID2 ¶ added in v0.0.21
func GetModelNameAngular ¶ added in v0.0.20
func IncludeTemplPart ¶ added in v0.1.0
func MethodComment ¶
func MethodNameGet ¶
func MethodNameGetId ¶
func MethodNamePost ¶
func MethodSummary ¶
func MkdirIsNotExists ¶
func PackageName ¶
func ParseRestPath ¶ added in v0.0.22
func ParseRestPathForName ¶ added in v0.0.22
func ParseRestPathParams ¶ added in v0.0.22
func PrepareTmplFile ¶
Использование шаблона
func PrepareTmplIsNotExists ¶
Подготовка файла, если его нет на диске
func ReadTmplFile ¶ added in v0.1.0
Чтение шаблона и его подготовка
func RemoveFirstChar ¶ added in v0.0.9
func WriteTmplFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.