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

请问怎么添加字段注释,生成的swagger.json没有字段注释 #108

Open
xiaoxfan opened this issue Jul 9, 2024 · 2 comments
Open

Comments

@xiaoxfan
Copy link

xiaoxfan commented Jul 9, 2024

No description provided.

@xiaoxfan
Copy link
Author

xiaoxfan commented Jul 9, 2024

如何添加字段示例

@fdawns
Copy link

fdawns commented Jul 31, 2024

字段后面添加注释

type Info{
        Id int64 `json:"id"` // id
        Name string `json:"name"` // 姓名
    }

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

2 participants