-
Notifications
You must be signed in to change notification settings - Fork 9
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接口的输入输出参数都采用独立Model #4
Comments
个人意见,这个没有明确的定义, 总结: 这个看情况定义,每个人可以自由裁定, 只是在适当的时候提出重构就好. |
@dukecheng 最好是都有, 解析的时候也可以解析到model ,把model里面的内容都展示出来,尤其要注意嵌套model这样的.... 虽然能解决,也麻烦 |
@Leowuqunqun 那对于GetUserById这样只需要一个UserId的参数的例子,也是要建一个GetUserByIdRequestModel么? 里面只有一个UserId参数 ? |
@dukecheng 没必要... 多余2个以上的都建议用model 基本类型可以解析到 |
@Leowuqunqun 是这个意思,两个(不包含两个)以上要使用model |
转自: #2
每个接口的输入输出参数都采用独立Model序列化和反序列化,便于维护
@pinzi
The text was updated successfully, but these errors were encountered: