fix: imports

This commit is contained in:
opbnq-q
2025-03-15 20:18:04 +07:00
parent d2dedd85f9
commit 98c8f94f84
2 changed files with 6 additions and 7 deletions

View File

@@ -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}}

View File

@@ -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}}> {