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
|
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
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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"
|
||||||
)
|
)
|
|
@ -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 {
|
|
@ -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 {
|
|
@ -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"
|
||||||
)
|
)
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
|
@ -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"
|
|
@ -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()
|
|
@ -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);
|
Loading…
Reference in New Issue
Block a user