From a99342edc722103928ab3dc8ac16a5c3f956d0ea Mon Sep 17 00:00:00 2001 From: sindhu Date: Tue, 14 May 2024 08:57:03 +0700 Subject: [PATCH] autocomplete refactor --- .../customtextfieldautocomplete.templ | 4 +- .../customtextfieldautocomplete_templ.go | 4 +- handlers/dev/autocomplete.handlers.go | 195 +++++++++++++++++ handlers/dev/mastermenuusergroup.handlers.go | 174 +-------------- handlers/routes.go | 8 +- models/autocomplete.models.go | 5 + services/dev/autocomplete.services.go | 206 ++++++++++++++++++ services/dev/mastermenuusergroup.services.go | 187 ---------------- 8 files changed, 416 insertions(+), 367 deletions(-) create mode 100644 handlers/dev/autocomplete.handlers.go create mode 100644 models/autocomplete.models.go create mode 100644 services/dev/autocomplete.services.go diff --git a/component/customtextfieldautocomplete/customtextfieldautocomplete.templ b/component/customtextfieldautocomplete/customtextfieldautocomplete.templ index ada7166..3846a38 100644 --- a/component/customtextfieldautocomplete/customtextfieldautocomplete.templ +++ b/component/customtextfieldautocomplete/customtextfieldautocomplete.templ @@ -2,7 +2,7 @@ package customtextfieldautocomplete; import ( "cpone/layout" - services "cpone/services/dev" + "cpone/models" ) templ MainCustomAutoComplete(value string) { @@ -32,7 +32,7 @@ templ ListCustomAutoCompleteHide() {
} -templ ListCustomAutoComplete(limit string, param string, totalDataInt int, foundCount int, pageOf string, textFound string, data []services.AutoComplete) { +templ ListCustomAutoComplete(limit string, param string, totalDataInt int, foundCount int, pageOf string, textFound string, data []models.AutoComplete) {