Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【need help】handler 返回的 types 为 arrayType 并且 arrayType 中嵌入 type 时, 将其放入了 types.go 不符合预期 #1

Open
jaronnie opened this issue May 30, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@jaronnie
Copy link
Member

jaronnie commented May 30, 2024

api 文件如下:

syntax = "v1"

type BaseTree {
    id int `json:"id"`
}

type Tree {
    base BaseTree `json:"base"`
}

@server (
    prefix: /api/v1
    group: test
)
service demo-api {
    @handler Tree
    get /test/tree () returns ([]Tree)
}

期望 BaseTree 结构体也在 test.types.go 中

@jaronnie
Copy link
Member Author

fix

@jaronnie jaronnie reopened this Jun 3, 2024
@jaronnie jaronnie changed the title handler 返回的 types 为 arrayType 并且 arrayType 中嵌入 type 时, 将其放入了 types.go 不符合预期 【need help】handler 返回的 types 为 arrayType 并且 arrayType 中嵌入 type 时, 将其放入了 types.go 不符合预期 Jun 3, 2024
@jaronnie jaronnie added the help wanted Extra attention is needed label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant