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 Host: 0.0.0.0
Port: 8896 Port: 8896
SourceMysql: fusentest:XErSYmLELKMnf3Dh@tcp(110.41.19.98:3306)/fusentest SourceMysql: fusentest:XErSYmLELKMnf3Dh@tcp(110.41.19.98:3306)/fusentest

View File

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

View File

@ -9,9 +9,9 @@ import (
"fusenapi/utils/basic" "fusenapi/utils/basic"
"fusenapi/server/product-templatev2/internal/logic" "fusenapi/server/product-template/internal/logic"
"fusenapi/server/product-templatev2/internal/svc" "fusenapi/server/product-template/internal/svc"
"fusenapi/server/product-templatev2/internal/types" "fusenapi/server/product-template/internal/types"
) )
func AddBaseMapHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { 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/core/logx"
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
"fusenapi/server/product-templatev2/internal/logic" "fusenapi/server/product-template/internal/logic"
"fusenapi/server/product-templatev2/internal/svc" "fusenapi/server/product-template/internal/svc"
) )
func GetBaseMapListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { func GetBaseMapListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

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

View File

@ -4,7 +4,7 @@ package handler
import ( import (
"net/http" "net/http"
"fusenapi/server/product-templatev2/internal/svc" "fusenapi/server/product-template/internal/svc"
"github.com/zeromicro/go-zero/rest" "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/core/logx"
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
"fusenapi/server/product-templatev2/internal/logic" "fusenapi/server/product-template/internal/logic"
"fusenapi/server/product-templatev2/internal/svc" "fusenapi/server/product-template/internal/svc"
) )
func SaveBaseMapHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { 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/core/logx"
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
"fusenapi/server/product-templatev2/internal/logic" "fusenapi/server/product-template/internal/logic"
"fusenapi/server/product-templatev2/internal/svc" "fusenapi/server/product-template/internal/svc"
"fusenapi/server/product-templatev2/internal/types" "fusenapi/server/product-template/internal/types"
) )
func UpdateTemplateHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { func UpdateTemplateHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,15 +4,15 @@ import (
"flag" "flag"
"fmt" "fmt"
"fusenapi/server/product-templatev2/internal/config" "fusenapi/server/product-template/internal/config"
"fusenapi/server/product-templatev2/internal/handler" "fusenapi/server/product-template/internal/handler"
"fusenapi/server/product-templatev2/internal/svc" "fusenapi/server/product-template/internal/svc"
"github.com/zeromicro/go-zero/core/conf" "github.com/zeromicro/go-zero/core/conf"
"github.com/zeromicro/go-zero/rest" "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() { func main() {
flag.Parse() flag.Parse()

View File

@ -9,7 +9,7 @@ info (
import "basic.api" import "basic.api"
service product-templatev2 { service product-template {
//获取产品模板详情 //获取产品模板详情
@handler GetTemplatevDetailHandler @handler GetTemplatevDetailHandler
get /product-template/detail(GetTemplatevDetailReq) returns (response); get /product-template/detail(GetTemplatevDetailReq) returns (response);