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

不支持api类型中的内嵌结构体语法 #99

Open
fate0zore opened this issue Feb 24, 2024 · 0 comments
Open

不支持api类型中的内嵌结构体语法 #99

fate0zore opened this issue Feb 24, 2024 · 0 comments

Comments

@fate0zore
Copy link

fate0zore commented Feb 24, 2024

当我在api文件中声明以下类型时

Role {
        Id uint `json:"id,optional"`
        Key string `json:"key"`
        Name string `json:"name"`
        Desc string `json:"desc"`
    }
    RoleCreateReq {
        Role
        Auth []uint `json:"auth"`
    }

对应的swagger schemas 为

{
    "": {
        "key": "",
        "name": "",
        "desc": ""
    },
    "auth": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant