Browse Source

chore: 调整目录结构

2637309949@qq.com 6 years ago
parent
commit
d426ad9d01
100 changed files with 161 additions and 201 deletions
  1. 3 3
      README.md
  2. 0 37
      cli/gen/pipes/auto.go
  3. 0 1
      cli/platform/build.sh
  4. 4 4
      client/cmd/init.go
  5. 3 3
      client/cmd/root.go
  6. 2 2
      client/gen/gen.go
  7. 4 4
      client/gen/pipes/app.go
  8. 4 4
      client/gen/pipes/bean.go
  9. 4 4
      client/gen/pipes/ctr.go
  10. 4 4
      client/gen/pipes/doc.go
  11. 3 3
      client/gen/pipes/main.go
  12. 4 4
      client/gen/pipes/model.go
  13. 4 4
      client/gen/pipes/oauth.go
  14. 4 4
      client/gen/pipes/script.go
  15. 4 4
      client/gen/pipes/sql.go
  16. 4 4
      client/gen/pipes/sqlmap.go
  17. 4 4
      client/gen/pipes/srv.go
  18. 4 4
      client/gen/pipes/tool.go
  19. 4 4
      client/gen/tempalte/app.go
  20. 0 0
      client/gen/tempalte/auth.go
  21. 0 0
      client/gen/tempalte/bean.go
  22. 3 3
      client/gen/tempalte/ctr.go
  23. 1 1
      client/gen/tempalte/main.go
  24. 0 0
      client/gen/tempalte/model.go
  25. 0 0
      client/gen/tempalte/script.go
  26. 0 0
      client/gen/tempalte/sql.go
  27. 0 0
      client/gen/tempalte/sqlmap.go
  28. 0 0
      client/gen/tempalte/srv.go
  29. 0 0
      client/gen/tempalte/tool.go
  30. 1 1
      client/main.go
  31. 1 1
      client/parser/xml.go
  32. 0 0
      client/platform/.gitignore
  33. 0 0
      client/platform/app.properties
  34. 5 5
      client/platform/app/app.auth.go
  35. 6 6
      client/platform/app/app.ctx.go
  36. 15 15
      client/platform/app/app.engine.go
  37. 6 6
      client/platform/app/app.go
  38. 3 3
      client/platform/app/app.log.go
  39. 1 1
      client/platform/app/app.middle.go
  40. 0 0
      client/platform/app/app.model.go
  41. 0 0
      client/platform/app/app.token.go
  42. 4 4
      client/platform/app/sys_attachment.go
  43. 11 12
      client/platform/app/sys_menu.go
  44. 4 4
      client/platform/app/sys_oauth2.go
  45. 4 4
      client/platform/app/sys_org.go
  46. 4 4
      client/platform/app/sys_role.go
  47. 4 4
      client/platform/app/sys_tag.go
  48. 4 4
      client/platform/app/sys_tag_group.go
  49. 11 12
      client/platform/app/sys_user.go
  50. 4 4
      client/platform/app/sys_user_template.go
  51. 1 0
      client/platform/build.sh
  52. 2 2
      client/platform/conf/properties.go
  53. 0 0
      client/platform/doc/swagger.yaml
  54. 0 0
      client/platform/kube/configmap.yaml
  55. 0 0
      client/platform/kube/deployment.yaml
  56. 0 0
      client/platform/kube/dockerconfigjson.yaml
  57. 0 0
      client/platform/kube/ingress.yaml
  58. 0 0
      client/platform/kube/nfs-pv.yaml
  59. 0 0
      client/platform/kube/nfs-pvc-platform.yaml
  60. 0 0
      client/platform/kube/nfs-server.sh
  61. 0 0
      client/platform/kube/service.yaml
  62. 1 1
      client/platform/main.go
  63. 0 0
      client/platform/model/error.helper.go
  64. 2 3
      client/platform/model/sys_user.helper.go
  65. 0 0
      client/platform/script/api/sys_attachment.js
  66. 0 0
      client/platform/script/api/sys_menu.js
  67. 0 0
      client/platform/script/api/sys_oauth2.js
  68. 0 0
      client/platform/script/api/sys_org.js
  69. 0 0
      client/platform/script/api/sys_role.js
  70. 0 0
      client/platform/script/api/sys_tag.js
  71. 0 0
      client/platform/script/api/sys_tag_group.js
  72. 0 0
      client/platform/script/api/sys_user.js
  73. 0 0
      client/platform/script/api/sys_user_template.js
  74. 0 0
      client/platform/script/axios.js
  75. 0 0
      client/platform/sql/sql.go
  76. 0 0
      client/platform/sql/sqlmap/sys_area.xml
  77. 0 0
      client/platform/sql/sqlmap/sys_area_template.xml
  78. 0 0
      client/platform/sql/sqlmap/sys_area_template_detail.xml
  79. 0 0
      client/platform/sql/sqlmap/sys_attachment.xml
  80. 0 0
      client/platform/sql/sqlmap/sys_data_permission.xml
  81. 0 0
      client/platform/sql/sqlmap/sys_data_permission_detail.xml
  82. 0 0
      client/platform/sql/sqlmap/sys_domain.xml
  83. 0 0
      client/platform/sql/sqlmap/sys_menu.xml
  84. 0 0
      client/platform/sql/sqlmap/sys_optionset.xml
  85. 0 0
      client/platform/sql/sqlmap/sys_org.xml
  86. 0 0
      client/platform/sql/sqlmap/sys_role.xml
  87. 0 0
      client/platform/sql/sqlmap/sys_role_menu.xml
  88. 0 0
      client/platform/sql/sqlmap/sys_role_user.xml
  89. 0 0
      client/platform/sql/sqlmap/sys_tag.xml
  90. 0 0
      client/platform/sql/sqlmap/sys_tag_group.xml
  91. 0 0
      client/platform/sql/sqlmap/sys_user.xml
  92. 0 0
      client/platform/sql/sqlmap/sys_user_tag.xml
  93. 0 0
      client/platform/sql/sqlmap/sys_user_template.xml
  94. 0 0
      client/platform/sql/sqlmap/sys_user_template_detail.xml
  95. 0 0
      client/platform/sql/sys_attachment/sys_attachment_list_count.tpl
  96. 0 0
      client/platform/sql/sys_attachment/sys_attachment_list_select.tpl
  97. 0 0
      client/platform/sql/sys_menu/sys_menu_list_count.tpl
  98. 0 0
      client/platform/sql/sys_menu/sys_menu_list_select.tpl
  99. 0 0
      client/platform/sql/sys_oauth2/sys_oauth2_list_count.tpl
  100. 0 0
      client/platform/sql/sys_oauth2/sys_oauth2_list_select.tpl

+ 3 - 3
README.md

@@ -30,7 +30,7 @@ $ go get -u github.com/2637309949/dolphin
 3. Execute shell script, just a moment
 
 ```sh
-go run github.com/2637309949/dolphin/cli build
+go run github.com/2637309949/dolphin/client build
 ```
 
 ## Quick start
@@ -40,7 +40,7 @@ go run github.com/2637309949/dolphin/cli build
 <bean
     name="activity_info"
     desc="活动信息"
-    packages="github.com/2637309949/dolphin/cli/packages/null"
+    packages="github.com/2637309949/dolphin/packages/null"
     extends="$applet_activity">
     <prop name="code" desc="编码" type="null.String" />
     <prop name="name" desc="名称" type="null.String" />
@@ -106,7 +106,7 @@ go run github.com/2637309949/dolphin/cli build
 <table
     name="applet_activity"
     desc="活动信息"
-    packages="github.com/2637309949/dolphin/cli/packages/null">
+    packages="github.com/2637309949/dolphin/packages/null">
 	<column name="id" desc="主键" type="null.String" xorm="varchar(36) notnull unique pk" />
 	<column name="title" desc="标题" type="null.String" xorm="varchar(36)" />
 	<column name="content" desc="内容" type="null.String" xorm="varchar(1500)" />

+ 0 - 37
cli/gen/pipes/auto.go

@@ -1,37 +0,0 @@
-// Copyright (c) 2018-2020 Double All rights reserved.
-// Use of this source code is governed by a MIT style
-// license that can be found in the LICENSE file.
-
-package pipes
-
-import (
-	"path"
-
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/schema"
-)
-
-// Auto struct
-type Auto struct {
-}
-
-// Build func
-func (auto *Auto) Build(dir string, node *schema.Application) ([]*gen.TmplCfg, error) {
-	data := map[string]interface{}{
-		"PackageName": node.PackageName,
-		"Name":        node.Name,
-		"Controllers": node.Controllers,
-		"Tables":      node.Tables,
-	}
-	return []*gen.TmplCfg{
-		&gen.TmplCfg{
-			Text:     tempalte.TmplAuto,
-			FilePath: path.Join(dir, viper.GetString("dir.app"), "app"),
-			Data:     data,
-			Overlap:  gen.OverlapWrite,
-			Suffix:   ".auto.go",
-		},
-	}, nil
-}

+ 0 - 1
cli/platform/build.sh

@@ -1 +0,0 @@
-go run github.com/2637309949/dolphin/cli build

+ 4 - 4
cli/cmd/init.go → client/cmd/init.go

@@ -7,10 +7,10 @@ package cmd
 import (
 	"os"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/pipes"
-	"github.com/2637309949/dolphin/cli/packages/cobra"
-	"github.com/2637309949/dolphin/cli/parser"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/pipes"
+	"github.com/2637309949/dolphin/packages/cobra"
+	"github.com/2637309949/dolphin/client/parser"
 )
 
 var initCmd = &cobra.Command{

+ 3 - 3
cli/cmd/root.go → client/cmd/root.go

@@ -8,9 +8,9 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/2637309949/dolphin/cli/packages/cobra"
-	"github.com/2637309949/dolphin/cli/packages/logrus"
-	"github.com/2637309949/dolphin/cli/packages/viper"
+	"github.com/2637309949/dolphin/packages/cobra"
+	"github.com/2637309949/dolphin/packages/logrus"
+	"github.com/2637309949/dolphin/packages/viper"
 	"golang.org/x/crypto/ssh/terminal"
 	"golang.org/x/sys/unix"
 )

+ 2 - 2
cli/gen/gen.go → client/gen/gen.go

@@ -10,9 +10,9 @@ import (
 	"os"
 	"path"
 
-	"github.com/2637309949/dolphin/cli/packages/logrus"
+	"github.com/2637309949/dolphin/packages/logrus"
 
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/schema"
 )
 
 type (

+ 4 - 4
cli/gen/pipes/app.go → client/gen/pipes/app.go

@@ -7,11 +7,11 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/packages/viper"
+	"github.com/2637309949/dolphin/packages/viper"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
 )
 
 // App struct

+ 4 - 4
cli/gen/pipes/bean.go → client/gen/pipes/bean.go

@@ -7,10 +7,10 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 // Bean struct

+ 4 - 4
cli/gen/pipes/ctr.go → client/gen/pipes/ctr.go

@@ -7,10 +7,10 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/schema"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 // Ctr struct

+ 4 - 4
cli/gen/pipes/doc.go → client/gen/pipes/doc.go

@@ -7,11 +7,11 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/packages/viper"
+	"github.com/2637309949/dolphin/packages/viper"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/schema"
-	swag "github.com/2637309949/dolphin/cli/packages/swag/gen"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/schema"
+	swag "github.com/2637309949/dolphin/packages/swag/gen"
 )
 
 // Doc struct

+ 3 - 3
cli/gen/pipes/main.go → client/gen/pipes/main.go

@@ -7,9 +7,9 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
 )
 
 // Main struct

+ 4 - 4
cli/gen/pipes/model.go → client/gen/pipes/model.go

@@ -7,10 +7,10 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 // Model struct

+ 4 - 4
cli/gen/pipes/oauth.go → client/gen/pipes/oauth.go

@@ -7,10 +7,10 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 // OAuth struct

+ 4 - 4
cli/gen/pipes/script.go → client/gen/pipes/script.go

@@ -9,10 +9,10 @@ import (
 	"path"
 	"strings"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 // Script struct

+ 4 - 4
cli/gen/pipes/sql.go → client/gen/pipes/sql.go

@@ -9,10 +9,10 @@ import (
 	"path"
 	"strings"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 // SQL struct

+ 4 - 4
cli/gen/pipes/sqlmap.go → client/gen/pipes/sqlmap.go

@@ -7,10 +7,10 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 // SQLMap struct

+ 4 - 4
cli/gen/pipes/srv.go → client/gen/pipes/srv.go

@@ -7,10 +7,10 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 // Srv struct

+ 4 - 4
cli/gen/pipes/tool.go → client/gen/pipes/tool.go

@@ -7,10 +7,10 @@ package pipes
 import (
 	"path"
 
-	"github.com/2637309949/dolphin/cli/gen"
-	"github.com/2637309949/dolphin/cli/gen/tempalte"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/gen"
+	"github.com/2637309949/dolphin/client/gen/tempalte"
+	"github.com/2637309949/dolphin/client/schema"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 // Tool struct

+ 4 - 4
cli/gen/tempalte/app.go → client/gen/tempalte/app.go

@@ -13,10 +13,10 @@ package app
 import (
 	"sync"
 
-	"github.com/2637309949/dolphin/cli/packages/gin"
-	"github.com/2637309949/dolphin/cli/packages/go-funk"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	pApp "github.com/2637309949/dolphin/cli/platform/app"
+	"github.com/2637309949/dolphin/packages/gin"
+	"github.com/2637309949/dolphin/packages/go-funk"
+	"github.com/2637309949/dolphin/packages/viper"
+	pApp "github.com/2637309949/dolphin/client/platform/app"
 )
 
 type (

+ 0 - 0
cli/gen/tempalte/auth.go → client/gen/tempalte/auth.go


+ 0 - 0
cli/gen/tempalte/bean.go → client/gen/tempalte/bean.go


+ 3 - 3
cli/gen/tempalte/ctr.go → client/gen/tempalte/ctr.go

@@ -14,9 +14,9 @@ import (
 	"{{.PackageName}}/model"
 	"{{.PackageName}}/srv"
 
-	"github.com/2637309949/dolphin/cli/packages/gin/binding"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/gin/binding"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/time"
 )
 {{range .Controller.APIS}}
 // {{$.Controller.ToUpperCase $.Controller.Name}}{{.ToUpperCase .Name}} api implementation

+ 1 - 1
cli/gen/tempalte/main.go → client/gen/tempalte/main.go

@@ -13,7 +13,7 @@ package main
 import (
 	_ "{{.PackageName}}/app"
 
-	"github.com/2637309949/dolphin/srv/cli"
+	"github.com/2637309949/dolphin/packages/fx/cli"
 	_ "github.com/go-sql-driver/mysql"
 )
 

+ 0 - 0
cli/gen/tempalte/model.go → client/gen/tempalte/model.go


+ 0 - 0
cli/gen/tempalte/script.go → client/gen/tempalte/script.go


+ 0 - 0
cli/gen/tempalte/sql.go → client/gen/tempalte/sql.go


+ 0 - 0
cli/gen/tempalte/sqlmap.go → client/gen/tempalte/sqlmap.go


+ 0 - 0
cli/gen/tempalte/srv.go → client/gen/tempalte/srv.go


+ 0 - 0
cli/gen/tempalte/tool.go → client/gen/tempalte/tool.go


+ 1 - 1
cli/main.go → client/main.go

@@ -5,7 +5,7 @@
 package main
 
 import (
-	"github.com/2637309949/dolphin/cli/cmd"
+	"github.com/2637309949/dolphin/client/cmd"
 )
 
 func main() {

+ 1 - 1
cli/parser/xml.go → client/parser/xml.go

@@ -12,7 +12,7 @@ import (
 	"strconv"
 	"strings"
 
-	"github.com/2637309949/dolphin/cli/schema"
+	"github.com/2637309949/dolphin/client/schema"
 	"gopkg.in/go-playground/validator.v9"
 )
 

+ 0 - 0
cli/platform/.gitignore → client/platform/.gitignore


+ 0 - 0
cli/platform/app.properties → client/platform/app.properties


+ 5 - 5
cli/platform/app/app.auth.go → client/platform/app/app.auth.go

@@ -5,12 +5,12 @@ import (
 	"net/http"
 	gt "time"
 
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/time"
 
-	"github.com/2637309949/dolphin/cli/packages/logrus"
-	"github.com/2637309949/dolphin/cli/packages/oauth2"
-	"github.com/2637309949/dolphin/cli/packages/oauth2/server"
-	"github.com/2637309949/dolphin/cli/packages/viper"
+	"github.com/2637309949/dolphin/packages/logrus"
+	"github.com/2637309949/dolphin/packages/oauth2"
+	"github.com/2637309949/dolphin/packages/oauth2/server"
+	"github.com/2637309949/dolphin/packages/viper"
 	xoauth2 "golang.org/x/oauth2"
 )
 

+ 6 - 6
cli/platform/app/app.ctx.go → client/platform/app/app.ctx.go

@@ -10,12 +10,12 @@ import (
 
 	"github.com/pkg/errors"
 
-	"github.com/2637309949/dolphin/cli/packages/gin"
-	"github.com/2637309949/dolphin/cli/packages/go-funk"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/xormplus/xorm"
-	"github.com/2637309949/dolphin/cli/platform/model"
-	"github.com/2637309949/dolphin/cli/platform/util"
+	"github.com/2637309949/dolphin/packages/gin"
+	"github.com/2637309949/dolphin/packages/go-funk"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/xormplus/xorm"
+	"github.com/2637309949/dolphin/client/platform/model"
+	"github.com/2637309949/dolphin/client/platform/util"
 )
 
 type (

+ 15 - 15
cli/platform/app/app.engine.go → client/platform/app/app.engine.go

@@ -12,21 +12,21 @@ import (
 
 	"google.golang.org/grpc"
 
-	"github.com/2637309949/dolphin/cli/packages/gin"
-	"github.com/2637309949/dolphin/cli/packages/logrus"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/oauth2/errors"
-	"github.com/2637309949/dolphin/cli/packages/oauth2/generates"
-	"github.com/2637309949/dolphin/cli/packages/oauth2/manage"
-	"github.com/2637309949/dolphin/cli/packages/oauth2/models"
-	"github.com/2637309949/dolphin/cli/packages/oauth2/server"
-	"github.com/2637309949/dolphin/cli/packages/oauth2/store"
-	"github.com/2637309949/dolphin/cli/packages/redis"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/packages/xormplus/xorm"
-	"github.com/2637309949/dolphin/cli/platform/model"
-	"github.com/2637309949/dolphin/cli/platform/sql"
-	"github.com/2637309949/dolphin/cli/platform/util"
+	"github.com/2637309949/dolphin/packages/gin"
+	"github.com/2637309949/dolphin/packages/logrus"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/oauth2/errors"
+	"github.com/2637309949/dolphin/packages/oauth2/generates"
+	"github.com/2637309949/dolphin/packages/oauth2/manage"
+	"github.com/2637309949/dolphin/packages/oauth2/models"
+	"github.com/2637309949/dolphin/packages/oauth2/server"
+	"github.com/2637309949/dolphin/packages/oauth2/store"
+	"github.com/2637309949/dolphin/packages/redis"
+	"github.com/2637309949/dolphin/packages/viper"
+	"github.com/2637309949/dolphin/packages/xormplus/xorm"
+	"github.com/2637309949/dolphin/client/platform/model"
+	"github.com/2637309949/dolphin/client/platform/sql"
+	"github.com/2637309949/dolphin/client/platform/util"
 	"github.com/go-session/session"
 )
 

+ 6 - 6
cli/platform/app/app.go → client/platform/app/app.go

@@ -9,13 +9,13 @@ import (
 	"net"
 	"net/http"
 
-	"github.com/2637309949/dolphin/cli/packages/logrus"
-	"github.com/2637309949/dolphin/cli/packages/viper"
+	"github.com/2637309949/dolphin/packages/logrus"
+	"github.com/2637309949/dolphin/packages/viper"
 
-	// github.com/2637309949/dolphin/cli/platform/conf
-	_ "github.com/2637309949/dolphin/cli/platform/conf"
-	"github.com/2637309949/dolphin/srv"
-	"github.com/2637309949/dolphin/srv/cli"
+	// github.com/2637309949/dolphin/client/platform/conf
+	_ "github.com/2637309949/dolphin/client/platform/conf"
+	srv "github.com/2637309949/dolphin/packages/fx"
+	"github.com/2637309949/dolphin/packages/fx/cli"
 )
 
 // HTTPServer defined http.Server

+ 3 - 3
cli/platform/app/app.log.go → client/platform/app/app.log.go

@@ -6,9 +6,9 @@ import (
 	"path"
 	"time"
 
-	"github.com/2637309949/dolphin/cli/packages/logrotate"
-	"github.com/2637309949/dolphin/cli/packages/logrus"
-	"github.com/2637309949/dolphin/cli/packages/viper"
+	"github.com/2637309949/dolphin/packages/logrotate"
+	"github.com/2637309949/dolphin/packages/logrus"
+	"github.com/2637309949/dolphin/packages/viper"
 	"golang.org/x/crypto/ssh/terminal"
 	"golang.org/x/sys/unix"
 )

+ 1 - 1
cli/platform/app/app.middle.go → client/platform/app/app.middle.go

@@ -7,7 +7,7 @@ import (
 
 	"github.com/go-errors/errors"
 
-	"github.com/2637309949/dolphin/cli/packages/gin"
+	"github.com/2637309949/dolphin/packages/gin"
 )
 
 // Recovery defined

+ 0 - 0
cli/platform/app/app.model.go → client/platform/app/app.model.go


+ 0 - 0
cli/platform/app/app.token.go → client/platform/app/app.token.go


+ 4 - 4
cli/platform/app/sys_attachment.go → client/platform/app/sys_attachment.go

@@ -4,11 +4,11 @@
 package app
 
 import (
-	"github.com/2637309949/dolphin/cli/platform/model"
+	"github.com/2637309949/dolphin/client/platform/model"
 
-	"github.com/2637309949/dolphin/cli/packages/gin/binding"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/gin/binding"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/time"
 )
 
 // SysAttachmentAdd api implementation

+ 11 - 12
cli/platform/app/sys_menu.go → client/platform/app/sys_menu.go

@@ -4,16 +4,16 @@
 package app
 
 import (
-	"github.com/2637309949/dolphin/cli/platform/model"
-	"github.com/2637309949/dolphin/cli/platform/srv"
+	"github.com/2637309949/dolphin/client/platform/model"
+	"github.com/2637309949/dolphin/client/platform/srv"
 
-	"github.com/2637309949/dolphin/cli/packages/gin/binding"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/gin/binding"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/time"
 )
 
 // SysMenuAdd api implementation
-// @Summary 添加菜单 
+// @Summary 添加菜单
 // @Tags 菜单
 // @Accept application/json
 // @Param Authorization header string false "认证令牌"
@@ -42,7 +42,7 @@ func SysMenuAdd(ctx *Context) {
 }
 
 // SysMenuDel api implementation
-// @Summary 删除菜单 
+// @Summary 删除菜单
 // @Tags 菜单
 // @Accept application/json
 // @Param Authorization header string false "认证令牌"
@@ -69,7 +69,7 @@ func SysMenuDel(ctx *Context) {
 }
 
 // SysMenuUpdate api implementation
-// @Summary 更新菜单 
+// @Summary 更新菜单
 // @Tags 菜单
 // @Accept application/json
 // @Param Authorization header string false "认证令牌"
@@ -95,7 +95,7 @@ func SysMenuUpdate(ctx *Context) {
 }
 
 // SysMenuList api implementation
-// @Summary 菜单分页查询 
+// @Summary 菜单分页查询
 // @Tags 菜单
 // @Param Authorization header string false "认证令牌"
 // @Param page query int false "页码"
@@ -117,7 +117,7 @@ func SysMenuList(ctx *Context) {
 }
 
 // SysMenuTree api implementation
-// @Summary 菜单树形结构 
+// @Summary 菜单树形结构
 // @Tags 菜单
 // @Param Authorization header string false "认证令牌"
 // @Failure 403 {object} model.Response
@@ -133,7 +133,7 @@ func SysMenuTree(ctx *Context) {
 }
 
 // SysMenuGet api implementation
-// @Summary 获取菜单信息 
+// @Summary 获取菜单信息
 // @Tags 菜单
 // @Param Authorization header string false "认证令牌"
 // @Param id query string false "菜单id"
@@ -151,4 +151,3 @@ func SysMenuGet(ctx *Context) {
 	}
 	ctx.Success(ret)
 }
-

+ 4 - 4
cli/platform/app/sys_oauth2.go → client/platform/app/sys_oauth2.go

@@ -11,10 +11,10 @@ import (
 	"strings"
 	"time"
 
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/viper"
-	"github.com/2637309949/dolphin/cli/platform/model"
-	"github.com/2637309949/dolphin/cli/platform/util"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/viper"
+	"github.com/2637309949/dolphin/client/platform/model"
+	"github.com/2637309949/dolphin/client/platform/util"
 	"github.com/go-session/cookie"
 	"github.com/go-session/session"
 	"golang.org/x/oauth2"

+ 4 - 4
cli/platform/app/sys_org.go → client/platform/app/sys_org.go

@@ -4,11 +4,11 @@
 package app
 
 import (
-	"github.com/2637309949/dolphin/cli/platform/model"
+	"github.com/2637309949/dolphin/client/platform/model"
 
-	"github.com/2637309949/dolphin/cli/packages/gin/binding"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/gin/binding"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/time"
 )
 
 // SysOrgAdd api implementation

+ 4 - 4
cli/platform/app/sys_role.go → client/platform/app/sys_role.go

@@ -4,11 +4,11 @@
 package app
 
 import (
-	"github.com/2637309949/dolphin/cli/platform/model"
+	"github.com/2637309949/dolphin/client/platform/model"
 
-	"github.com/2637309949/dolphin/cli/packages/gin/binding"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/gin/binding"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/time"
 )
 
 // SysRoleAdd api implementation

+ 4 - 4
cli/platform/app/sys_tag.go → client/platform/app/sys_tag.go

@@ -4,11 +4,11 @@
 package app
 
 import (
-	"github.com/2637309949/dolphin/cli/platform/model"
+	"github.com/2637309949/dolphin/client/platform/model"
 
-	"github.com/2637309949/dolphin/cli/packages/gin/binding"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/gin/binding"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/time"
 )
 
 // SysTagAdd api implementation

+ 4 - 4
cli/platform/app/sys_tag_group.go → client/platform/app/sys_tag_group.go

@@ -4,11 +4,11 @@
 package app
 
 import (
-	"github.com/2637309949/dolphin/cli/platform/model"
+	"github.com/2637309949/dolphin/client/platform/model"
 
-	"github.com/2637309949/dolphin/cli/packages/gin/binding"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/gin/binding"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/time"
 )
 
 // SysTagGroupAdd api implementation

+ 11 - 12
cli/platform/app/sys_user.go → client/platform/app/sys_user.go

@@ -4,16 +4,16 @@
 package app
 
 import (
-	"github.com/2637309949/dolphin/cli/platform/model"
-	"github.com/2637309949/dolphin/cli/platform/srv"
+	"github.com/2637309949/dolphin/client/platform/model"
+	"github.com/2637309949/dolphin/client/platform/srv"
 
-	"github.com/2637309949/dolphin/cli/packages/gin/binding"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/gin/binding"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/time"
 )
 
 // SysUserAdd api implementation
-// @Summary 添加用户 
+// @Summary 添加用户
 // @Tags 用户
 // @Accept application/json
 // @Param Authorization header string false "认证令牌"
@@ -42,7 +42,7 @@ func SysUserAdd(ctx *Context) {
 }
 
 // SysUserDel api implementation
-// @Summary 删除用户 
+// @Summary 删除用户
 // @Tags 用户
 // @Accept application/json
 // @Param Authorization header string false "认证令牌"
@@ -69,7 +69,7 @@ func SysUserDel(ctx *Context) {
 }
 
 // SysUserUpdate api implementation
-// @Summary 更新用户 
+// @Summary 更新用户
 // @Tags 用户
 // @Accept application/json
 // @Param Authorization header string false "认证令牌"
@@ -95,7 +95,7 @@ func SysUserUpdate(ctx *Context) {
 }
 
 // SysUserPage api implementation
-// @Summary 用户分页查询 
+// @Summary 用户分页查询
 // @Tags 用户
 // @Param Authorization header string false "认证令牌"
 // @Param page query int false "页码"
@@ -117,7 +117,7 @@ func SysUserPage(ctx *Context) {
 }
 
 // SysUserGet api implementation
-// @Summary 获取用户信息 
+// @Summary 获取用户信息
 // @Tags 用户
 // @Param Authorization header string false "认证令牌"
 // @Param id query string false "用户id"
@@ -137,7 +137,7 @@ func SysUserGet(ctx *Context) {
 }
 
 // SysUserLogout api implementation
-// @Summary 用户退出登录 
+// @Summary 用户退出登录
 // @Tags 用户
 // @Param Authorization header string false "认证令牌"
 // @Failure 403 {object} model.Response
@@ -153,4 +153,3 @@ func SysUserLogout(ctx *Context) {
 	}
 	ctx.Success(ret)
 }
-

+ 4 - 4
cli/platform/app/sys_user_template.go → client/platform/app/sys_user_template.go

@@ -4,11 +4,11 @@
 package app
 
 import (
-	"github.com/2637309949/dolphin/cli/platform/model"
+	"github.com/2637309949/dolphin/client/platform/model"
 
-	"github.com/2637309949/dolphin/cli/packages/gin/binding"
-	"github.com/2637309949/dolphin/cli/packages/null"
-	"github.com/2637309949/dolphin/cli/packages/time"
+	"github.com/2637309949/dolphin/packages/gin/binding"
+	"github.com/2637309949/dolphin/packages/null"
+	"github.com/2637309949/dolphin/packages/time"
 )
 
 // SysUserTemplateAdd api implementation

+ 1 - 0
client/platform/build.sh

@@ -0,0 +1 @@
+go run github.com/2637309949/dolphin/client build

+ 2 - 2
cli/platform/conf/properties.go → client/platform/conf/properties.go

@@ -4,8 +4,8 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/2637309949/dolphin/cli/packages/logrus"
-	"github.com/2637309949/dolphin/cli/packages/viper"
+	"github.com/2637309949/dolphin/packages/logrus"
+	"github.com/2637309949/dolphin/packages/viper"
 )
 
 func init() {

+ 0 - 0
cli/platform/doc/swagger.yaml → client/platform/doc/swagger.yaml


+ 0 - 0
cli/platform/kube/configmap.yaml → client/platform/kube/configmap.yaml


+ 0 - 0
cli/platform/kube/deployment.yaml → client/platform/kube/deployment.yaml


+ 0 - 0
cli/platform/kube/dockerconfigjson.yaml → client/platform/kube/dockerconfigjson.yaml


+ 0 - 0
cli/platform/kube/ingress.yaml → client/platform/kube/ingress.yaml


+ 0 - 0
cli/platform/kube/nfs-pv.yaml → client/platform/kube/nfs-pv.yaml


+ 0 - 0
cli/platform/kube/nfs-pvc-platform.yaml → client/platform/kube/nfs-pvc-platform.yaml


+ 0 - 0
cli/platform/kube/nfs-server.sh → client/platform/kube/nfs-server.sh


+ 0 - 0
cli/platform/kube/service.yaml → client/platform/kube/service.yaml


+ 1 - 1
cli/platform/main.go → client/platform/main.go

@@ -5,5 +5,5 @@ package platform
 
 import (
 	// platform/app
-	_ "github.com/2637309949/dolphin/cli/platform/app"
+	_ "github.com/2637309949/dolphin/client/platform/app"
 )

+ 0 - 0
cli/platform/model/error.helper.go → client/platform/model/error.helper.go


+ 2 - 3
cli/platform/model/sys_user.helper.go → client/platform/model/sys_user.helper.go

@@ -3,9 +3,8 @@ package model
 import (
 	"fmt"
 
-	"github.com/2637309949/dolphin/cli/packages/null"
-
-	"github.com/2637309949/dolphin/cli/platform/util"
+	"github.com/2637309949/dolphin/client/platform/util"
+	"github.com/2637309949/dolphin/packages/null"
 	"golang.org/x/crypto/scrypt"
 )
 

+ 0 - 0
cli/platform/script/api/sys_attachment.js → client/platform/script/api/sys_attachment.js


+ 0 - 0
cli/platform/script/api/sys_menu.js → client/platform/script/api/sys_menu.js


+ 0 - 0
cli/platform/script/api/sys_oauth2.js → client/platform/script/api/sys_oauth2.js


+ 0 - 0
cli/platform/script/api/sys_org.js → client/platform/script/api/sys_org.js


+ 0 - 0
cli/platform/script/api/sys_role.js → client/platform/script/api/sys_role.js


+ 0 - 0
cli/platform/script/api/sys_tag.js → client/platform/script/api/sys_tag.js


+ 0 - 0
cli/platform/script/api/sys_tag_group.js → client/platform/script/api/sys_tag_group.js


+ 0 - 0
cli/platform/script/api/sys_user.js → client/platform/script/api/sys_user.js


+ 0 - 0
cli/platform/script/api/sys_user_template.js → client/platform/script/api/sys_user_template.js


+ 0 - 0
cli/platform/script/axios.js → client/platform/script/axios.js


+ 0 - 0
cli/platform/sql/sql.go → client/platform/sql/sql.go


+ 0 - 0
cli/platform/sql/sqlmap/sys_area.xml → client/platform/sql/sqlmap/sys_area.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_area_template.xml → client/platform/sql/sqlmap/sys_area_template.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_area_template_detail.xml → client/platform/sql/sqlmap/sys_area_template_detail.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_attachment.xml → client/platform/sql/sqlmap/sys_attachment.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_data_permission.xml → client/platform/sql/sqlmap/sys_data_permission.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_data_permission_detail.xml → client/platform/sql/sqlmap/sys_data_permission_detail.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_domain.xml → client/platform/sql/sqlmap/sys_domain.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_menu.xml → client/platform/sql/sqlmap/sys_menu.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_optionset.xml → client/platform/sql/sqlmap/sys_optionset.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_org.xml → client/platform/sql/sqlmap/sys_org.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_role.xml → client/platform/sql/sqlmap/sys_role.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_role_menu.xml → client/platform/sql/sqlmap/sys_role_menu.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_role_user.xml → client/platform/sql/sqlmap/sys_role_user.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_tag.xml → client/platform/sql/sqlmap/sys_tag.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_tag_group.xml → client/platform/sql/sqlmap/sys_tag_group.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_user.xml → client/platform/sql/sqlmap/sys_user.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_user_tag.xml → client/platform/sql/sqlmap/sys_user_tag.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_user_template.xml → client/platform/sql/sqlmap/sys_user_template.xml


+ 0 - 0
cli/platform/sql/sqlmap/sys_user_template_detail.xml → client/platform/sql/sqlmap/sys_user_template_detail.xml


+ 0 - 0
cli/platform/sql/sys_attachment/sys_attachment_list_count.tpl → client/platform/sql/sys_attachment/sys_attachment_list_count.tpl


+ 0 - 0
cli/platform/sql/sys_attachment/sys_attachment_list_select.tpl → client/platform/sql/sys_attachment/sys_attachment_list_select.tpl


+ 0 - 0
cli/platform/sql/sys_menu/sys_menu_list_count.tpl → client/platform/sql/sys_menu/sys_menu_list_count.tpl


+ 0 - 0
cli/platform/sql/sys_menu/sys_menu_list_select.tpl → client/platform/sql/sys_menu/sys_menu_list_select.tpl


+ 0 - 0
cli/platform/sql/sys_oauth2/sys_oauth2_list_count.tpl → client/platform/sql/sys_oauth2/sys_oauth2_list_count.tpl


+ 0 - 0
cli/platform/sql/sys_oauth2/sys_oauth2_list_select.tpl → client/platform/sql/sys_oauth2/sys_oauth2_list_select.tpl


Some files were not shown because too many files changed in this diff