n8n-nodes-wechat-offiaccount
Version:
51 lines • 1.78 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const RequestUtils_1 = __importDefault(require("../../../help/utils/RequestUtils"));
const CommentReplyDeleteOperate = {
name: '删除回复',
value: 'comment:reply:delete',
options: [
{
displayName: '消息数据ID',
name: 'msg_data_id',
type: 'string',
required: true,
default: '',
description: '群发返回的 msg_data_id',
},
{
displayName: '图文索引',
name: 'index',
type: 'number',
default: 0,
description: '多图文时,用来指定第几篇图文,从0开始,不带默认操作该 msg_data_id 的第一篇图文',
},
{
displayName: '用户评论ID',
name: 'user_comment_id',
type: 'string',
required: true,
default: '',
},
],
async call(index) {
const msgDataId = this.getNodeParameter('msg_data_id', index);
const articleIndex = this.getNodeParameter('index', index);
const userCommentId = this.getNodeParameter('user_comment_id', index);
const body = {
msg_data_id: msgDataId,
index: articleIndex,
user_comment_id: userCommentId,
};
return RequestUtils_1.default.request.call(this, {
method: 'POST',
url: `/cgi-bin/comment/reply/delete`,
body,
});
},
};
exports.default = CommentReplyDeleteOperate;
//# sourceMappingURL=CommentReplyDeleteOperate.js.map