fix: update import path

This commit is contained in:
2025-08-24 09:31:20 +08:00
parent 37a980afc3
commit 259b89656a
12 changed files with 36 additions and 35 deletions

View File

@ -11,8 +11,8 @@ import (
"fmt"
"strings"
"git.zhangdeman.cn/gateway/api-doc/define"
"git.zhangdeman.cn/gateway/api-doc/enums"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
"git.zhangdeman.cn/zhangdeman/api-doc/enums"
"git.zhangdeman.cn/zhangdeman/consts"
)

View File

@ -7,7 +7,7 @@
// Date : 2024-04-23 22:16
package define
import "git.zhangdeman.cn/gateway/api-doc/enums"
import "git.zhangdeman.cn/zhangdeman/api-doc/enums"
// OpenapiDoc openapi文档结构, 文档规范参见 : https://openapi.apifox.cn/
type OpenapiDoc struct {

View File

@ -8,8 +8,8 @@
package api_doc
import (
"git.zhangdeman.cn/gateway/api-doc/define"
"git.zhangdeman.cn/gateway/api-doc/enums"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
"git.zhangdeman.cn/zhangdeman/api-doc/enums"
)
// SetGenerateOption 设置文档生成选项

View File

@ -14,8 +14,8 @@ import (
"reflect"
"strings"
"git.zhangdeman.cn/gateway/api-doc/define"
"git.zhangdeman.cn/gateway/api-doc/enums"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
"git.zhangdeman.cn/zhangdeman/api-doc/enums"
"git.zhangdeman.cn/zhangdeman/consts"
"git.zhangdeman.cn/zhangdeman/wrapper"
)

View File

@ -10,7 +10,7 @@ package api_doc
import (
"errors"
"git.zhangdeman.cn/gateway/api-doc/define"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
"git.zhangdeman.cn/zhangdeman/serialize"
)

View File

@ -10,9 +10,10 @@ package api_doc
import (
"encoding/json"
"fmt"
"git.zhangdeman.cn/gateway/api-doc/define"
"reflect"
"testing"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
)
type Meta struct {
@ -69,18 +70,18 @@ func Test_parser_Openapi3(t *testing.T) {
var ug *UserGet
var uh *UserHead
g := NewOpenapiDoc(nil, []*define.ServerItem{
&define.ServerItem{
{
Url: "http://127.0.0.1/v1",
Description: "v1接口",
Variables: map[string]*define.ServerItemVariable{
"test": &define.ServerItemVariable{
"test": {
Default: "123456",
Description: "1111",
Enum: nil,
},
},
},
&define.ServerItem{
{
Url: "http://127.0.0.1/v2",
Description: "v2接口",
Variables: nil,

View File

@ -12,7 +12,7 @@ import (
"strconv"
"strings"
"git.zhangdeman.cn/gateway/api-doc/define"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
)
var (

View File

@ -12,7 +12,7 @@ import (
"net/http"
"strings"
"git.zhangdeman.cn/gateway/api-doc/define"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
"git.zhangdeman.cn/zhangdeman/consts"
"git.zhangdeman.cn/zhangdeman/serialize"
)

View File

@ -14,7 +14,7 @@ import (
"sort"
"strings"
apiDocDefine "git.zhangdeman.cn/gateway/api-doc/define"
apiDocDefine "git.zhangdeman.cn/zhangdeman/api-doc/define"
"git.zhangdeman.cn/zhangdeman/consts"
"git.zhangdeman.cn/zhangdeman/wrapper"
)

View File

@ -11,9 +11,9 @@ import (
"net/http"
"strings"
"git.zhangdeman.cn/gateway/api-doc/define"
"git.zhangdeman.cn/gateway/api-doc/enums"
"git.zhangdeman.cn/gateway/api-doc/util"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
"git.zhangdeman.cn/zhangdeman/api-doc/enums"
"git.zhangdeman.cn/zhangdeman/api-doc/util"
"git.zhangdeman.cn/zhangdeman/consts"
"git.zhangdeman.cn/zhangdeman/wrapper"
)

View File

@ -13,7 +13,7 @@ import (
"net/http"
"testing"
"git.zhangdeman.cn/gateway/api-doc/define"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
)
func TestGenerate(t *testing.T) {

View File

@ -13,9 +13,9 @@ import (
"path/filepath"
"strings"
"git.zhangdeman.cn/gateway/api-doc/define"
"git.zhangdeman.cn/gateway/api-doc/enums"
"git.zhangdeman.cn/gateway/api-doc/theme"
"git.zhangdeman.cn/zhangdeman/api-doc/define"
"git.zhangdeman.cn/zhangdeman/api-doc/enums"
"git.zhangdeman.cn/zhangdeman/api-doc/theme"
"git.zhangdeman.cn/zhangdeman/consts"
"github.com/gin-gonic/gin"
knife4goFiles "github.com/go-webtools/knife4go"