Добавлен модулю в клиента
This commit is contained in:
parent
73f2b83112
commit
bd7b9e7314
|
@ -17,7 +17,7 @@ type {{ fieldNamePrepare .Name }} struct {
|
|||
{{ end }}
|
||||
|
||||
{{ 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 }}
|
||||
|
||||
{{ range $index, $field := .Children }}
|
||||
|
@ -25,8 +25,8 @@ type {{ fieldNamePrepare .Name }} struct {
|
|||
{{ end }}
|
||||
|
||||
{{ 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 }} *{{ if eq $field.Name "Parent" }}{{ fieldNamePrepare $.Name }}{{ else }}{{ fieldType $field }}{{ end }} `json:"{{ fieldNameLowerPrepare $field.Name }},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:"{{ fieldJsonNameStr $field.Name }},omitenpty"`
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ import { MultiSelectModule } from 'primeng/multiselect';
|
|||
import { ColorPickerModule } from 'primeng/colorpicker';
|
||||
import { AnimateModule } from 'primeng/animate';
|
||||
import { StyleClassModule } from 'primeng/styleclass';
|
||||
import { TreeTableModule } from 'primeng/treetable';
|
||||
|
||||
const modules = [
|
||||
RippleModule,
|
||||
|
@ -63,7 +64,8 @@ const modules = [
|
|||
MultiSelectModule,
|
||||
ColorPickerModule,
|
||||
AnimateModule,
|
||||
StyleClassModule
|
||||
StyleClassModule,
|
||||
TreeTableModule
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
|
Loading…
Reference in New Issue
Block a user