Skip to content

红娘管理

红娘列表

GET /api/open/v1/matchmakers

权限open:matchmaker:read

查询参数

参数类型必填说明
pageint页码,默认 1
page_sizeint每页条数,默认 20
company_idint按公司筛选
keywordstring搜索关键词(姓名/手机号)
statusstring状态:active / disabled
levelstring等级:normal / silver / gold

响应示例

json
{
    "code": 200,
    "message": "success",
    "data": {
        "list": [
            {
                "id": 12,
                "company_id": 5,
                "store_id": 3,
                "name": "王红娘",
                "phone": "13800001234",
                "wechat": "wang_hongniang",
                "avatar": "https://oss.ailian.com/avatar/12.jpg",
                "years_exp": 5,
                "specialty": "高端客户匹配",
                "intro": "从事婚恋行业5年,擅长高端客户匹配",
                "guest_count": 120,
                "match_count": 45,
                "success_rate": 85.5,
                "credit_score": 100,
                "level": "gold",
                "cert_level": "senior",
                "status": "active",
                "created_at": "2025-01-15 09:00:00"
            }
        ],
        "total": 12
    }
}

红娘详情

GET /api/open/v1/matchmakers/{id}

权限open:matchmaker:read

路径参数

参数类型说明
idint红娘 ID

响应示例

json
{
    "code": 200,
    "message": "success",
    "data": {
        "id": 12,
        "company_id": 5,
        "store_id": 3,
        "name": "王红娘",
        "phone": "13800001234",
        "wechat": "wang_hongniang",
        "avatar": "https://oss.ailian.com/avatar/12.jpg",
        "years_exp": 5,
        "specialty": "高端客户匹配",
        "intro": "从事婚恋行业5年,擅长高端客户匹配",
        "guest_count": 120,
        "match_count": 45,
        "success_rate": 85.5,
        "credit_score": 100,
        "level": "gold",
        "cert_level": "senior",
        "status": "active",
        "created_at": "2025-01-15 09:00:00"
    }
}

创建红娘

POST /api/open/v1/matchmakers

权限open:matchmaker:manage

请求体

参数类型必填说明
company_idint所属公司 ID,独立红娘可不填
store_idint所属门店 ID
namestring姓名(2-50字符)
phonestring手机号
wechatstring微信号
avatarstring头像 URL
years_expint从业年限
specialtystring擅长领域
introstring个人简介
levelstring等级:normal / silver / gold,默认 normal

请求示例(公司红娘):

json
{
    "company_id": 5,
    "name": "李红娘",
    "phone": "13900005678",
    "wechat": "li_hongniang",
    "years_exp": 3,
    "specialty": "年轻客户匹配",
    "level": "silver"
}

请求示例(独立红娘):

json
{
    "name": "张红娘",
    "phone": "13700009999",
    "years_exp": 8,
    "specialty": "高端客户匹配"
}

响应示例

json
{
    "code": 200,
    "message": "success",
    "data": {
        "id": 15,
        "company_id": 5,
        "store_id": null,
        "name": "李红娘",
        "phone": "13900005678",
        "wechat": "li_hongniang",
        "avatar": null,
        "years_exp": 3,
        "specialty": "年轻客户匹配",
        "intro": null,
        "guest_count": 0,
        "match_count": 0,
        "success_rate": 0,
        "credit_score": 100,
        "level": "silver",
        "cert_level": null,
        "status": "active",
        "created_at": "2026-08-06 17:00:00"
    }
}

修改红娘

PUT /api/open/v1/matchmakers/{id}

权限open:matchmaker:manage

路径参数

参数类型说明
idint红娘 ID

请求体(所有字段可选,仅更新提供的字段):

参数类型说明
store_idint所属门店 ID
namestring姓名
phonestring手机号
wechatstring微信号
avatarstring头像 URL
years_expint从业年限
specialtystring擅长领域
introstring个人简介
levelstring等级

请求示例

json
{
    "phone": "13800009999",
    "specialty": "高端客户匹配,擅长沟通",
    "level": "gold"
}

响应示例

json
{
    "code": 200,
    "message": "success",
    "data": {
        "id": 15,
        "company_id": 5,
        "store_id": null,
        "name": "李红娘",
        "phone": "13800009999",
        "wechat": "li_hongniang",
        "avatar": null,
        "years_exp": 3,
        "specialty": "高端客户匹配,擅长沟通",
        "intro": null,
        "guest_count": 0,
        "match_count": 0,
        "success_rate": 0,
        "credit_score": 100,
        "level": "gold",
        "cert_level": null,
        "status": "active",
        "created_at": "2026-08-06 17:00:00",
        "updated_at": "2026-08-06 17:30:00"
    }
}

艾恋相亲 SaaS 平台