fix
This commit is contained in:
parent
a5ea734eb0
commit
002ec9d292
|
@ -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
|
|
@ -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"
|
||||
)
|
||||
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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"
|
||||
)
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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"
|
||||
)
|
|
@ -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"
|
||||
)
|
||||
|
|
@ -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"
|
||||
)
|
|
@ -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"
|
||||
)
|
||||
|
|
@ -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"
|
||||
)
|
|
@ -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"
|
|
@ -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()
|
|
@ -9,7 +9,7 @@ info (
|
|||
|
||||
import "basic.api"
|
||||
|
||||
service product-templatev2 {
|
||||
service product-template {
|
||||
//获取产品模板详情
|
||||
@handler GetTemplatevDetailHandler
|
||||
get /product-template/detail(GetTemplatevDetailReq) returns (response);
|
Loading…
Reference in New Issue
Block a user