This commit is contained in:
laodaming
2023-06-25 14:11:47 +08:00
parent a5ea734eb0
commit 002ec9d292
17 changed files with 32 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
Name: product-templatev2
Name: product-template
Host: 0.0.0.0
Port: 8896
SourceMysql: fusentest:XErSYmLELKMnf3Dh@tcp(110.41.19.98:3306)/fusentest

View File

@@ -1,7 +1,7 @@
package config
import (
"fusenapi/server/product-templatev2/internal/types"
"fusenapi/server/product-template/internal/types"
"github.com/zeromicro/go-zero/rest"
)

View File

@@ -9,9 +9,9 @@ import (
"fusenapi/utils/basic"
"fusenapi/server/product-templatev2/internal/logic"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-templatev2/internal/types"
"fusenapi/server/product-template/internal/logic"
"fusenapi/server/product-template/internal/svc"
"fusenapi/server/product-template/internal/types"
)
func AddBaseMapHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@@ -7,8 +7,8 @@ import (
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/rest/httpx"
"fusenapi/server/product-templatev2/internal/logic"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-template/internal/logic"
"fusenapi/server/product-template/internal/svc"
)
func GetBaseMapListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@@ -9,9 +9,9 @@ import (
"fusenapi/utils/basic"
"fusenapi/server/product-templatev2/internal/logic"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-templatev2/internal/types"
"fusenapi/server/product-template/internal/logic"
"fusenapi/server/product-template/internal/svc"
"fusenapi/server/product-template/internal/types"
)
func GetTemplatevDetailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@@ -4,7 +4,7 @@ package handler
import (
"net/http"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-template/internal/svc"
"github.com/zeromicro/go-zero/rest"
)

View File

@@ -7,8 +7,8 @@ import (
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/rest/httpx"
"fusenapi/server/product-templatev2/internal/logic"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-template/internal/logic"
"fusenapi/server/product-template/internal/svc"
)
func SaveBaseMapHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@@ -8,9 +8,9 @@ import (
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/rest/httpx"
"fusenapi/server/product-templatev2/internal/logic"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-templatev2/internal/types"
"fusenapi/server/product-template/internal/logic"
"fusenapi/server/product-template/internal/svc"
"fusenapi/server/product-template/internal/types"
)
func UpdateTemplateHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@@ -11,8 +11,8 @@ import (
"context"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-templatev2/internal/types"
"fusenapi/server/product-template/internal/svc"
"fusenapi/server/product-template/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)

View File

@@ -3,7 +3,7 @@ package logic
import (
"errors"
"fusenapi/model/gmodel"
"fusenapi/server/product-templatev2/internal/types"
"fusenapi/server/product-template/internal/types"
"fusenapi/utils/basic"
"gorm.io/gorm"
"net/http"
@@ -11,7 +11,7 @@ import (
"context"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-template/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)

View File

@@ -13,8 +13,8 @@ import (
"context"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-templatev2/internal/types"
"fusenapi/server/product-template/internal/svc"
"fusenapi/server/product-template/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"
"fusenapi/model/gmodel"
"fusenapi/server/product-templatev2/internal/types"
"fusenapi/server/product-template/internal/types"
"fusenapi/utils/basic"
"gorm.io/gorm"
"io/ioutil"
@@ -13,7 +13,7 @@ import (
"context"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-template/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)

View File

@@ -10,8 +10,8 @@ import (
"context"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-templatev2/internal/types"
"fusenapi/server/product-template/internal/svc"
"fusenapi/server/product-template/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)

View File

@@ -3,7 +3,7 @@ package svc
import (
"errors"
"fmt"
"fusenapi/server/product-templatev2/internal/config"
"fusenapi/server/product-template/internal/config"
"net/http"
"fusenapi/initalize"

View File

@@ -4,15 +4,15 @@ import (
"flag"
"fmt"
"fusenapi/server/product-templatev2/internal/config"
"fusenapi/server/product-templatev2/internal/handler"
"fusenapi/server/product-templatev2/internal/svc"
"fusenapi/server/product-template/internal/config"
"fusenapi/server/product-template/internal/handler"
"fusenapi/server/product-template/internal/svc"
"github.com/zeromicro/go-zero/core/conf"
"github.com/zeromicro/go-zero/rest"
)
var configFile = flag.String("f", "etc/product-templatev2.yaml", "the config file")
var configFile = flag.String("f", "etc/product-template.yaml", "the config file")
func main() {
flag.Parse()