服务管理接口编写可以设置自定义response吗
现在的response是:{
"type": "success",
"data": {
"value": "{\"result\":1,\"success\":true}"
},
"message": "",
"date": "2024-06-14 14:59:47",
"spent": 21,
"size": -1,
"count": 0,
"position": 0
}
但我想要返回的response是
{
"result": 1,
"success": true
}
可以做到吗?
this.response//响应对象。通过this.response.setBody(data)设置响应内容 论坛管理员 发表于 2024-6-17 09:42
this.response//响应对象。通过this.response.setBody(data)设置响应内容
谢谢,我知道了,我忘记加"application/json"了
页:
[1]