Rename Module
This commit is contained in:
parent
fa0679163f
commit
8d3dfb1457
@ -18,12 +18,12 @@
|
|||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"api-cds-search/cmd/database/table"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sap-cds-search/cmd/database/table"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
package table
|
package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"api-cds-search/cmd/database"
|
||||||
_ "embed"
|
_ "embed"
|
||||||
"sap-cds-search/cmd/database"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type CDSView struct {
|
type CDSView struct {
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
package table
|
package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"api-cds-search/cmd/database"
|
||||||
_ "embed"
|
_ "embed"
|
||||||
"sap-cds-search/cmd/database"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type CDSViewField struct {
|
type CDSViewField struct {
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
package table
|
package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"api-cds-search/cmd/database"
|
||||||
_ "embed"
|
_ "embed"
|
||||||
"sap-cds-search/cmd/database"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Keyword struct {
|
type Keyword struct {
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"api-cds-search/cmd/database/table"
|
||||||
"fmt"
|
"fmt"
|
||||||
"sap-cds-search/cmd/database/table"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"golang.org/x/text/cases"
|
"golang.org/x/text/cases"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
package model
|
package model
|
||||||
|
|
||||||
import "sap-cds-search/cmd/database/table"
|
import "api-cds-search/cmd/database/table"
|
||||||
|
|
||||||
func GetKeywordsModel() (*[]table.Keyword, error) {
|
func GetKeywordsModel() (*[]table.Keyword, error) {
|
||||||
keywords, err := table.GetAllKeywords()
|
keywords, err := table.GetAllKeywords()
|
||||||
|
@ -18,10 +18,10 @@
|
|||||||
package router
|
package router
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"api-cds-search/cmd/search"
|
||||||
|
"api-cds-search/cmd/ui"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sap-cds-search/cmd/search"
|
|
||||||
"sap-cds-search/cmd/ui"
|
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
)
|
)
|
||||||
|
@ -18,11 +18,11 @@
|
|||||||
package search
|
package search
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"api-cds-search/cmd/model"
|
||||||
|
"api-cds-search/cmd/ui"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sap-cds-search/cmd/model"
|
|
||||||
"sap-cds-search/cmd/ui"
|
|
||||||
"slices"
|
"slices"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<footer style="position: fixed; bottom: 0px">
|
<footer style="position: fixed; bottom: 0px">
|
||||||
<a
|
<a
|
||||||
style="color: var(--on_background)"
|
style="color: var(--on_background)"
|
||||||
href="https://code.achtarmig.org/sap/api_cds"
|
href="https://code.achtarmig.org/sap/api-cds-search"
|
||||||
>Source</a
|
>Source</a
|
||||||
>
|
>
|
||||||
</footer>
|
</footer>
|
||||||
|
8
main.go
8
main.go
@ -1,12 +1,12 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"api-cds-search/cmd/database"
|
||||||
|
"api-cds-search/cmd/router"
|
||||||
|
"api-cds-search/cmd/search"
|
||||||
|
"api-cds-search/cmd/ui"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sap-cds-search/cmd/database"
|
|
||||||
"sap-cds-search/cmd/router"
|
|
||||||
"sap-cds-search/cmd/search"
|
|
||||||
"sap-cds-search/cmd/ui"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user