Добавлен модулю в клиента
This commit is contained in:
parent
73f2b83112
commit
bd7b9e7314
|
@ -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 }}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user