diff --git a/generation/templates/scheme.tmpl b/generation/templates/scheme.tmpl index 0477557..9249ba7 100644 --- a/generation/templates/scheme.tmpl +++ b/generation/templates/scheme.tmpl @@ -2,15 +2,14 @@ import Table from '../table/Table.vue' import { onMounted, reactive } from 'vue' import { getDefaultValues } from '../utils/structs/defaults.util' -import Service from './{{.LowerName}}.service.ts' +import Service from './{{.LowerName}}.service' import type { Scheme } from '../types/scheme.type' import { {{.StructName}} } from '{{.GolangServicesPath}}' import { ref } from 'vue' import type { Validate } from "../types/validate.type"; -import { getDefaultSortOptions } from "../utils/structs/default-sort-options.util.ts"; -import type { Validate } from '../types/validate.type' +import { getDefaultSortOptions } from "../utils/structs/default-sort-options.util"; {{range .Dependencies}} -import {{.ImportName}} from '../{{.LowerName}}/{{.LowerName}}.service.ts' +import {{.ImportName}} from '../{{.LowerName}}/{{.LowerName}}.service' const {{.ServiceName}} = new {{.ImportName}} {{end}} diff --git a/generation/templates/service.tmpl b/generation/templates/service.tmpl index e4eb4f7..513d77e 100644 --- a/generation/templates/service.tmpl +++ b/generation/templates/service.tmpl @@ -1,7 +1,7 @@ -import { GetAll, Create, Delete, GetById, Update, Count, SortedByOrder, SearchByAllTextFields } from "../../bindings/app/internal/services/{{.LowerModelName}}service.ts" +import { GetAll, Create, Delete, GetById, Update, Count, SortedByOrder, SearchByAllTextFields } from "../../bindings/app/internal/services/{{.LowerModelName}}service" import type { {{.ModelName}} } from "{{.ServicesPath}}" -import type { IService } from "../types/service.type.ts" -import type { SortOptions } from "../types/sort-options.type.ts"; +import type { IService } from "../types/service.type" +import type { SortOptions } from "../types/sort-options.type"; export default class {{.ModelName}}Service implements IService<{{.ModelName}}> {