Service(v2) – Demand Send Party Msg

Service(v2) – Demand Send Party Msg

关于Service(v2)的Demand(服务需求)接口的Party消息通知。

该类型的party消息的message_type为5100,主体数据结构与一般的party消息相同,并且使用detail字段存放服务需求数据及其相关操作数据:

{
    "id": 6231,
    "from_user": null,
    "to_user": 7815769374283,
    "to_name": "Yang WenWei",
    "send_time": "2025-11-14T02:11:01.020803Z",
    "message_type": 5100,
    ...
    "detail": {
        "demand": {
            "id": 1234,
            "title": "我想要学英语,需要一对一的英语老师"
        },
        "event": "new_participant",
        "participant": {
            "user": {
                "uid": 3621928404765,
                "username": "李四"
            },
            "bid_price": "10.00"
        }
    }
}

1.触发点:当其他用户提交竞标出价(submit-bid)后

消息发送者:-

消息接收者:该服务需求的发布者(owner)

如果竞标者是首次投标(新的竞标参与者)该需求,其party消息的detail字段如下(event值为new_participant):

"detail": {
    "demand": {
            "id": 1234,
            "title": "我想要学英语,需要一对一的英语老师"
        },
        "event": "new_participant",
        "participant": {
            "user": {
                "uid": 3621928404765,
                "username": "李四"
            },
            "bid_price": "15.00"
        }
    }
}

如果竞标者之前已经投标过,这次是更新报价,其party消息的detail字段如下(event值为new_bid):

"detail": {
    "demand": {
            "id": 1234,
            "title": "我想要学英语,需要一对一的英语老师"
        },
        "event": "new_bid",
        "participant": {
            "user": {
                "uid": 3621928404765,
                "username": "李四"
            },
            "bid_price": "10.00"
        }
    }
}

发表评论

您的电子邮箱地址不会被公开。

您可以使用以下 HTML标签和属性:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Captcha Code