From 9b0fae6346de6057c6fbfb166c17fc3a1df56bdf Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Mon, 27 Feb 2023 15:22:19 +0800 Subject: [PATCH] api-gen: fix import path --- cmd/api-generator/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/api-generator/main.go b/cmd/api-generator/main.go index 95260b7..cf96c06 100644 --- a/cmd/api-generator/main.go +++ b/cmd/api-generator/main.go @@ -72,11 +72,10 @@ func (g *generator) genRouter(routers []Router) { actions[i] = `"` + actions[i] + `"` } - // TODO: v12 和 all 的 switch-case 由常量改为数组寻址, 以利用 get_supported_actions g.WriteString("import (\n\n") g.WriteString("\"github.com/Mrs4s/go-cqhttp/coolq\"\n") g.WriteString("\"github.com/Mrs4s/go-cqhttp/global\"\n") - g.WriteString("\"github.com/Mrs4s/go-cqhttp/internal/onebot\"\n") + g.WriteString("\"github.com/Mrs4s/go-cqhttp/pkg/onebot\"\n") g.WriteString(")\n\n") g.WriteString(`func (c *Caller) call(action string, spec *onebot.Spec, p Getter) global.MSG { if spec.Version == 12 {