mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
api-gen: fix import path
This commit is contained in:
parent
4ceacc38d5
commit
9b0fae6346
@ -72,11 +72,10 @@ func (g *generator) genRouter(routers []Router) {
|
|||||||
actions[i] = `"` + actions[i] + `"`
|
actions[i] = `"` + actions[i] + `"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: v12 和 all 的 switch-case 由常量改为数组寻址, 以利用 get_supported_actions
|
|
||||||
g.WriteString("import (\n\n")
|
g.WriteString("import (\n\n")
|
||||||
g.WriteString("\"github.com/Mrs4s/go-cqhttp/coolq\"\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/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(")\n\n")
|
||||||
g.WriteString(`func (c *Caller) call(action string, spec *onebot.Spec, p Getter) global.MSG {
|
g.WriteString(`func (c *Caller) call(action string, spec *onebot.Spec, p Getter) global.MSG {
|
||||||
if spec.Version == 12 {
|
if spec.Version == 12 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user