Добавлен модулю в клиента

This commit is contained in:
Ymnuk 2023-09-01 12:32:18 +03:00
parent 73f2b83112
commit bd7b9e7314
2 changed files with 6 additions and 4 deletions

View File

@ -17,7 +17,7 @@ type {{ fieldNamePrepare .Name }} struct {
{{ end }} {{ end }}
{{ range $index, $field := .Fields }} {{ range $index, $field := .Fields }}
{{ fieldName $field }} {{ fieldType $field }} `gorm:"column:{{ fieldNameLowerPrepare $field.Name }};comment:{{ $field.Description }}" json:"{{ fieldNameLowerPrepare $field.Name }},omitenpty"` {{ fieldName $field }} {{ fieldType $field }} `gorm:"column:{{ fieldNameLowerPrepare $field.Name }};comment:{{ $field.Description }}" json:"{{ fieldJsonNameStr $field.Name }},omitenpty"`
{{ end }} {{ end }}
{{ range $index, $field := .Children }} {{ range $index, $field := .Children }}
@ -25,8 +25,8 @@ type {{ fieldNamePrepare .Name }} struct {
{{ end }} {{ end }}
{{ range $index, $field := .FkFields }} {{ range $index, $field := .FkFields }}
{{ fieldName $field }}ID {{ fieldTypeParentTable $field }} `gorm:"column:{{ fieldNameLowerPrepare $field.Name }}_id;comment:{{ $field.Description }}" json:"{{ fieldNameLowerPrepare $field.Name }}Id,omitenpty"` {{ fieldName $field }}ID {{ fieldTypeParentTable $field }} `gorm:"column:{{ fieldNameLowerPrepare $field.Name }}_id;comment:{{ $field.Description }}" json:"{{ fieldJsonNameStr $field.Name }}Id,omitenpty"`
{{ fieldName $field }} *{{ if eq $field.Name "Parent" }}{{ fieldNamePrepare $.Name }}{{ else }}{{ fieldType $field }}{{ end }} `json:"{{ fieldNameLowerPrepare $field.Name }},omitenpty"` {{ fieldName $field }} *{{ if eq $field.Name "Parent" }}{{ fieldNamePrepare $.Name }}{{ else }}{{ fieldType $field }}{{ end }} `json:"{{ fieldJsonNameStr $field.Name }},omitenpty"`
{{ end }} {{ end }}
} }

View File

@ -31,6 +31,7 @@ import { MultiSelectModule } from 'primeng/multiselect';
import { ColorPickerModule } from 'primeng/colorpicker'; import { ColorPickerModule } from 'primeng/colorpicker';
import { AnimateModule } from 'primeng/animate'; import { AnimateModule } from 'primeng/animate';
import { StyleClassModule } from 'primeng/styleclass'; import { StyleClassModule } from 'primeng/styleclass';
import { TreeTableModule } from 'primeng/treetable';
const modules = [ const modules = [
RippleModule, RippleModule,
@ -63,7 +64,8 @@ const modules = [
MultiSelectModule, MultiSelectModule,
ColorPickerModule, ColorPickerModule,
AnimateModule, AnimateModule,
StyleClassModule StyleClassModule,
TreeTableModule
]; ];
@NgModule({ @NgModule({