更新命名空间
This commit is contained in:
parent
c062b54c81
commit
34f4382c19
68 changed files with 164 additions and 164 deletions
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load 加载API
|
// Load 加载API
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ import (
|
||||||
jsoniter "github.com/json-iterator/go"
|
jsoniter "github.com/json-iterator/go"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/data"
|
"github.com/yaoapp/yao/data"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
"github.com/yaoapp/xiang/xfs"
|
"github.com/yaoapp/yao/xfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load 加载应用信息
|
// Load 加载应用信息
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package chart
|
package chart
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SetupAPIs 设定API数据
|
// SetupAPIs 设定API数据
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Charts 已载入图表
|
// Charts 已载入图表
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/model"
|
"github.com/yaoapp/yao/model"
|
||||||
"github.com/yaoapp/xiang/query"
|
"github.com/yaoapp/yao/query"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/kun/utils"
|
"github.com/yaoapp/kun/utils"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
_ "github.com/yaoapp/xiang/helper"
|
_ "github.com/yaoapp/yao/helper"
|
||||||
"github.com/yaoapp/xiang/model"
|
"github.com/yaoapp/yao/model"
|
||||||
"github.com/yaoapp/xiang/query"
|
"github.com/yaoapp/yao/query"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package chart
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Chart 图表格式
|
// Chart 图表格式
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ import (
|
||||||
jsoniter "github.com/json-iterator/go"
|
jsoniter "github.com/json-iterator/go"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/engine"
|
"github.com/yaoapp/yao/engine"
|
||||||
)
|
)
|
||||||
|
|
||||||
var importRenew bool
|
var importRenew bool
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/kun/utils"
|
"github.com/yaoapp/kun/utils"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
var inspectCmd = &cobra.Command{
|
var inspectCmd = &cobra.Command{
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/engine"
|
"github.com/yaoapp/yao/engine"
|
||||||
)
|
)
|
||||||
|
|
||||||
var name string
|
var name string
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var appPath string
|
var appPath string
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/utils"
|
"github.com/yaoapp/kun/utils"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/engine"
|
"github.com/yaoapp/yao/engine"
|
||||||
)
|
)
|
||||||
|
|
||||||
var runCmd = &cobra.Command{
|
var runCmd = &cobra.Command{
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/engine"
|
"github.com/yaoapp/yao/engine"
|
||||||
"github.com/yaoapp/xiang/service"
|
"github.com/yaoapp/yao/service"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
var startCmd = &cobra.Command{
|
var startCmd = &cobra.Command{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
var versionCmd = &cobra.Command{
|
var versionCmd = &cobra.Command{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cfg config.Config
|
var cfg config.Config
|
||||||
|
|
|
||||||
|
|
@ -7,21 +7,21 @@ import (
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/xiang/api"
|
"github.com/yaoapp/yao/api"
|
||||||
"github.com/yaoapp/xiang/app"
|
"github.com/yaoapp/yao/app"
|
||||||
"github.com/yaoapp/xiang/chart"
|
"github.com/yaoapp/yao/chart"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/flow"
|
"github.com/yaoapp/yao/flow"
|
||||||
"github.com/yaoapp/xiang/importer"
|
"github.com/yaoapp/yao/importer"
|
||||||
"github.com/yaoapp/xiang/model"
|
"github.com/yaoapp/yao/model"
|
||||||
"github.com/yaoapp/xiang/page"
|
"github.com/yaoapp/yao/page"
|
||||||
"github.com/yaoapp/xiang/plugin"
|
"github.com/yaoapp/yao/plugin"
|
||||||
"github.com/yaoapp/xiang/query"
|
"github.com/yaoapp/yao/query"
|
||||||
"github.com/yaoapp/xiang/script"
|
"github.com/yaoapp/yao/script"
|
||||||
"github.com/yaoapp/xiang/server"
|
"github.com/yaoapp/yao/server"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
"github.com/yaoapp/xiang/table"
|
"github.com/yaoapp/yao/table"
|
||||||
"github.com/yaoapp/xiang/workflow"
|
"github.com/yaoapp/yao/workflow"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load 根据配置加载 API, FLow, Model, Plugin
|
// Load 根据配置加载 API, FLow, Model, Plugin
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
"github.com/yaoapp/xiang/xfs"
|
"github.com/yaoapp/yao/xfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestProcessPing(t *testing.T) {
|
func TestProcessPing(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/xiang/user"
|
"github.com/yaoapp/yao/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUserAuth(t *testing.T) {
|
func TestUserAuth(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load 加载业务逻辑编排
|
// Load 加载业务逻辑编排
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/yaoapp/xiang
|
module github.com/yaoapp/yao
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"github.com/yaoapp/gou/session"
|
"github.com/yaoapp/gou/session"
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// JwtClaims 用户Token
|
// JwtClaims 用户Token
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@ import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/importer/from"
|
"github.com/yaoapp/yao/importer/from"
|
||||||
"github.com/yaoapp/xiang/importer/xlsx"
|
"github.com/yaoapp/yao/importer/xlsx"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
"github.com/yaoapp/xiang/xfs"
|
"github.com/yaoapp/yao/xfs"
|
||||||
"github.com/yaoapp/xiang/xlog"
|
"github.com/yaoapp/yao/xlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Importers 导入器
|
// Importers 导入器
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/kun/utils"
|
"github.com/yaoapp/kun/utils"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/importer/xlsx"
|
"github.com/yaoapp/yao/importer/xlsx"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/model"
|
"github.com/yaoapp/yao/model"
|
||||||
"github.com/yaoapp/xiang/query"
|
"github.com/yaoapp/yao/query"
|
||||||
"github.com/yaoapp/xiang/script"
|
"github.com/yaoapp/yao/script"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestProcessMapping(t *testing.T) {
|
func TestProcessMapping(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/xuri/excelize/v2"
|
"github.com/xuri/excelize/v2"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/xiang/importer/from"
|
"github.com/yaoapp/yao/importer/from"
|
||||||
"github.com/yaoapp/xiang/xlog"
|
"github.com/yaoapp/yao/xlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Xlsx xlsx file
|
// Xlsx xlsx file
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cfg config.Config
|
var cfg config.Config
|
||||||
|
|
|
||||||
10
main.go
10
main.go
|
|
@ -1,11 +1,11 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/yaoapp/xiang/cmd"
|
"github.com/yaoapp/yao/cmd"
|
||||||
_ "github.com/yaoapp/xiang/helper"
|
_ "github.com/yaoapp/yao/helper"
|
||||||
_ "github.com/yaoapp/xiang/network"
|
_ "github.com/yaoapp/yao/network"
|
||||||
_ "github.com/yaoapp/xiang/user"
|
_ "github.com/yaoapp/yao/user"
|
||||||
_ "github.com/yaoapp/xiang/xfs"
|
_ "github.com/yaoapp/yao/xfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 主程序
|
// 主程序
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/service"
|
"github.com/yaoapp/yao/service"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCommandVersion(t *testing.T) {
|
func TestCommandVersion(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load 加载数据模型
|
// Load 加载数据模型
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package page
|
package page
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SetupAPIs 设定API数据
|
// SetupAPIs 设定API数据
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Pages 已载入页面
|
// Pages 已载入页面
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/model"
|
"github.com/yaoapp/yao/model"
|
||||||
"github.com/yaoapp/xiang/query"
|
"github.com/yaoapp/yao/query"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/kun/utils"
|
"github.com/yaoapp/kun/utils"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
_ "github.com/yaoapp/xiang/helper"
|
_ "github.com/yaoapp/yao/helper"
|
||||||
"github.com/yaoapp/xiang/model"
|
"github.com/yaoapp/yao/model"
|
||||||
"github.com/yaoapp/xiang/query"
|
"github.com/yaoapp/yao/query"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package page
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Page 页面格式
|
// Page 页面格式
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load 加载业务插件
|
// Load 加载业务插件
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
dsl "github.com/yaoapp/gou/query/gou"
|
dsl "github.com/yaoapp/gou/query/gou"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/config"
|
|
||||||
"github.com/yaoapp/xun/capsule"
|
"github.com/yaoapp/xun/capsule"
|
||||||
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load 加载查询引擎
|
// Load 加载查询引擎
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load 加载共享库
|
// Load 加载共享库
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Load 加载API
|
// Load 加载API
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import (
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/dgrijalva/jwt-go"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/helper"
|
"github.com/yaoapp/yao/helper"
|
||||||
"github.com/yaoapp/xiang/xlog"
|
"github.com/yaoapp/yao/xlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Guards 服务中间件
|
// Guards 服务中间件
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/data"
|
"github.com/yaoapp/yao/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AdminFileServer 数据管理平台
|
// AdminFileServer 数据管理平台
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
var shutdown = make(chan bool)
|
var shutdown = make(chan bool)
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,12 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/chart"
|
"github.com/yaoapp/yao/chart"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/page"
|
"github.com/yaoapp/yao/page"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
"github.com/yaoapp/xiang/table"
|
"github.com/yaoapp/yao/table"
|
||||||
"github.com/yaoapp/xiang/workflow"
|
"github.com/yaoapp/yao/workflow"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Watch 监听应用目录文件变更
|
// Watch 监听应用目录文件变更
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/kun/utils"
|
"github.com/yaoapp/kun/utils"
|
||||||
"github.com/yaoapp/xiang/xlog"
|
"github.com/yaoapp/yao/xlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// IsAllow 鉴权处理程序
|
// IsAllow 鉴权处理程序
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ package share
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/yaoapp/xiang/config"
|
|
||||||
"github.com/yaoapp/xun/capsule"
|
"github.com/yaoapp/xun/capsule"
|
||||||
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DBConnect 建立数据库连接
|
// DBConnect 建立数据库连接
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Libs 共享库
|
// Libs 共享库
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"github.com/buraksezer/olric/serializer"
|
"github.com/buraksezer/olric/serializer"
|
||||||
"github.com/yaoapp/gou/session"
|
"github.com/yaoapp/gou/session"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var sessServer *olric.Olric
|
var sessServer *olric.Olric
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/xiang/data"
|
"github.com/yaoapp/yao/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Walk 遍历应用目录,读取文件列表
|
// Walk 遍历应用目录,读取文件列表
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// apiSearchDefault search 接口默认值
|
// apiSearchDefault search 接口默认值
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,13 @@ import (
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/kun/utils"
|
"github.com/yaoapp/kun/utils"
|
||||||
"github.com/yaoapp/xiang/config"
|
|
||||||
"github.com/yaoapp/xiang/flow"
|
|
||||||
_ "github.com/yaoapp/xiang/helper"
|
|
||||||
"github.com/yaoapp/xiang/model"
|
|
||||||
"github.com/yaoapp/xiang/query"
|
|
||||||
"github.com/yaoapp/xiang/share"
|
|
||||||
"github.com/yaoapp/xun/capsule"
|
"github.com/yaoapp/xun/capsule"
|
||||||
|
"github.com/yaoapp/yao/config"
|
||||||
|
"github.com/yaoapp/yao/flow"
|
||||||
|
_ "github.com/yaoapp/yao/helper"
|
||||||
|
"github.com/yaoapp/yao/model"
|
||||||
|
"github.com/yaoapp/yao/query"
|
||||||
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ import (
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
"github.com/yaoapp/xiang/xlog"
|
"github.com/yaoapp/yao/xlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Tables 已载入模型
|
// Tables 已载入模型
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/model"
|
"github.com/yaoapp/yao/model"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ package table
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Table 数据表格配置结构
|
// Table 数据表格配置结构
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/xiang/helper"
|
"github.com/yaoapp/yao/helper"
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/xiang/config"
|
|
||||||
"github.com/yaoapp/xiang/flow"
|
|
||||||
"github.com/yaoapp/xiang/model"
|
|
||||||
"github.com/yaoapp/xiang/query"
|
|
||||||
"github.com/yaoapp/xiang/share"
|
|
||||||
"github.com/yaoapp/xun/capsule"
|
"github.com/yaoapp/xun/capsule"
|
||||||
|
"github.com/yaoapp/yao/config"
|
||||||
|
"github.com/yaoapp/yao/flow"
|
||||||
|
"github.com/yaoapp/yao/model"
|
||||||
|
"github.com/yaoapp/yao/query"
|
||||||
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package workflow
|
package workflow
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/yaoapp/xiang/helper"
|
"github.com/yaoapp/yao/helper"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WorkFlow 工作流配置结构
|
// WorkFlow 工作流配置结构
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ import (
|
||||||
"github.com/yaoapp/kun/log"
|
"github.com/yaoapp/kun/log"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/kun/str"
|
"github.com/yaoapp/kun/str"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
"github.com/yaoapp/xiang/helper"
|
"github.com/yaoapp/yao/helper"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
"github.com/yaoapp/xiang/xlog"
|
"github.com/yaoapp/yao/xlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Process
|
// Process
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/xiang/config"
|
|
||||||
"github.com/yaoapp/xiang/flow"
|
|
||||||
"github.com/yaoapp/xiang/model"
|
|
||||||
"github.com/yaoapp/xiang/query"
|
|
||||||
"github.com/yaoapp/xiang/share"
|
|
||||||
"github.com/yaoapp/xun/capsule"
|
"github.com/yaoapp/xun/capsule"
|
||||||
|
"github.com/yaoapp/yao/config"
|
||||||
|
"github.com/yaoapp/yao/flow"
|
||||||
|
"github.com/yaoapp/yao/model"
|
||||||
|
"github.com/yaoapp/yao/query"
|
||||||
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@ import (
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/kun/maps"
|
"github.com/yaoapp/kun/maps"
|
||||||
"github.com/yaoapp/xiang/data"
|
|
||||||
"github.com/yaoapp/xiang/share"
|
|
||||||
"github.com/yaoapp/xun"
|
"github.com/yaoapp/xun"
|
||||||
|
"github.com/yaoapp/yao/data"
|
||||||
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/yaoapp/gou"
|
"github.com/yaoapp/gou"
|
||||||
"github.com/yaoapp/kun/any"
|
"github.com/yaoapp/kun/any"
|
||||||
"github.com/yaoapp/xiang/share"
|
"github.com/yaoapp/yao/share"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import (
|
||||||
"github.com/spf13/afero/tarfs"
|
"github.com/spf13/afero/tarfs"
|
||||||
"github.com/spf13/afero/zipfs"
|
"github.com/spf13/afero/zipfs"
|
||||||
"github.com/yaoapp/kun/exception"
|
"github.com/yaoapp/kun/exception"
|
||||||
"github.com/yaoapp/xiang/config"
|
"github.com/yaoapp/yao/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Stor 文件系统实例
|
// Stor 文件系统实例
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue