简要描述:

  • 我的语音

请求域名:

  • http://xx.com

请求URL:

POST/&route=plugin.voice-goods.api.voice-goods.getVoiceList

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "total": 4,
        "per_page": 20,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 4,
        "data": [
            {
                "id": 29,
                "authorize_at": 30,
                "type": 1,
                "created_at": "2019-09-09 17:07:32",
                "goods_id": 344,
                "user_id": 1,
                "voice_id": 18,
                "has_one_goods": {
                    "id": 344,
                    "title": "大沙发斯蒂芬",
                    "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/F6aMsSahBcMMJBMwMaooIOMY64jJns.png"
                },
                "has_one_voice": {
                    "id": 18,
                    "curriculum": {
                        "one_name": "哈哈",
                        "one_url": "http://test-1251768088.cosgz.myqcloud.com/audios/3/2019/09/epK4KW2JxW0XME8m88R4Mp28ReY1r2.mp3",
                        "tow_name": "",
                        "two_url": ""
                    }
                },
                "status": "有效"
            },
            {
                "id": 22,
                "authorize_at": 30,
                "type": 0,
                "created_at": "2019-09-09 09:30:28",
                "goods_id": 344,
                "user_id": 1,
                "voice_id": 18,
                "has_one_goods": {
                    "id": 344,
                    "title": "大沙发斯蒂芬",
                    "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/F6aMsSahBcMMJBMwMaooIOMY64jJns.png"
                },
                "has_one_voice": {
                    "id": 18,
                    "curriculum": {
                        "one_name": "哈哈",
                        "one_url": "http://test-1251768088.cosgz.myqcloud.com/audios/3/2019/09/epK4KW2JxW0XME8m88R4Mp28ReY1r2.mp3",
                        "tow_name": "",
                        "two_url": ""
                    }
                },
                "status": "已过期"
            },
            {
                "id": 21,
                "authorize_at": 30,
                "type": 0,
                "created_at": "2019-09-09 09:24:52",
                "goods_id": 344,
                "user_id": 1,
                "voice_id": 18,
                "has_one_goods": {
                    "id": 344,
                    "title": "大沙发斯蒂芬",
                    "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/F6aMsSahBcMMJBMwMaooIOMY64jJns.png"
                },
                "has_one_voice": {
                    "id": 18,
                    "curriculum": {
                        "one_name": "哈哈",
                        "one_url": "http://test-1251768088.cosgz.myqcloud.com/audios/3/2019/09/epK4KW2JxW0XME8m88R4Mp28ReY1r2.mp3",
                        "tow_name": "",
                        "two_url": ""
                    }
                },
                "status": "已过期"
            },
            {
                "id": 15,
                "authorize_at": 30,
                "type": 0,
                "created_at": "2019-09-07 17:24:35",
                "goods_id": 343,
                "user_id": 1,
                "voice_id": 17,
                "has_one_goods": {
                    "id": 343,
                    "title": "小小人",
                    "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/F6aMsSahBcMMJBMwMaooIOMY64jJns.png"
                },
                "has_one_voice": {
                    "id": 17,
                    "curriculum": {
                        "one_name": "哈哈",
                        "one_url": "http://test-1251768088.cosgz.myqcloud.com/audios/3/2019/09/hNl0L4xDaWJ4aDLrW00SlxYoLr4Rly.mp3",
                        "tow_name": "",
                        "two_url": ""
                    }
                },
                "status": "已过期"
            }
        ]
    }
}

返回参数说明:

参数名 类型 说明
id int 语音商品ID
authorize_at int 发帖人ID
type string 1-有效 0-无效
created_at string 创建时间
goods_id string 商城商品ID
user_id array 当前用户ID
has_one_goods string 关联商城商品信息
title string 商品名称
thumb string 商品缩略图
status array 当前商品是否有效
has_one_voice string 关联语音商品信息
one_name string 语音一名称
one_url string 语音一路径
tow_name array 语音二名称
two_url array 语音二路径