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

[疑惑]:post提交参数的问题 是否可以直接map提交 #219

Closed
liuhuicheng opened this issue Dec 29, 2023 · 2 comments
Closed
Labels
question Further information is requested

Comments

@liuhuicheng
Copy link

问题描述【必填】

表单修改的时候有很多字段,只修改了某一个字段,提交的时候想直接实体类转化为map提交,是否可以直接map参数提交。如果按RequestApi中的字段提交 ,将会set很多字段。

框架文档是否提及了该问题【必答】

是否已经查阅框架文档但还未能解决的【必答】

issue 列表中是否有人曾提过类似的问题【必答】

是否已经搜索过了 issue 列表但还未能解决的【必答】

@liuhuicheng liuhuicheng added the question Further information is requested label Dec 29, 2023
@getActivity
Copy link
Owner

小伙子,对于这个问题,你可以直接在 api 类中定义一个方法,然后将你说的实体类对象传进来,在方法中对实体类的字段进行提取到 api 类中的字段上面。

@liuhuicheng
Copy link
Author

好的 谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants