Skip to content

POST操作,后端调用云函数进行字段赋值出现问题 #302

New issue

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

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

Already on GitHub? # to your account

Closed
ikay666 opened this issue Aug 16, 2021 · 4 comments
Closed

POST操作,后端调用云函数进行字段赋值出现问题 #302

ikay666 opened this issue Aug 16, 2021 · 4 comments
Labels
Enhancement 增强 增强功能、提高性能等 Question 使用问题 使用问题

Comments

@ikay666
Copy link

ikay666 commented Aug 16, 2021

POST操作,后端调用云函数赋值出现以下问题,没有找到相关文档,
按照 #196 issues进行的操作

image

@TommyLemon
Copy link
Collaborator

TommyLemon commented Aug 16, 2021

Function 表配置下这个远程函数,参考 Function 内现有记录。
另外既然 "owner-()": "owner()" 执行完会变成 "owner": 具体值,为啥还要在下方引用赋值呢?

@ikay666
Copy link
Author

ikay666 commented Aug 16, 2021

image
image
image

我是按图上这样配置的,是否有问题

@TommyLemon
Copy link
Collaborator

TommyLemon commented Aug 20, 2021

不要在前端的 增、删、改 请求中传远程函数,应该在 Request 表里配置,例如
"UPDATE": {"owner-()":"owner()"}

具体见
https://github.com/Tencent/APIJSON/blob/master/APIJSONORM/src/main/java/apijson/orm/Operation.java

@TommyLemon
Copy link
Collaborator

同类问题
#320

@TommyLemon TommyLemon added Enhancement 增强 增强功能、提高性能等 Question 使用问题 使用问题 labels Oct 14, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Enhancement 增强 增强功能、提高性能等 Question 使用问题 使用问题
Projects
None yet
Development

No branches or pull requests

2 participants