简要描述:

  • 获取案例详情接口

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2020-01-09

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明

请求参数:

参数名 是否必须 类型 说明
case_id int 案例id

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "获取成功",
    "data": {
        "username": "131****0002",
        "avatar": "http://wzb.com/uploads/avatar/avatar.jpg",
        "case_id": 4,
        "title": "1",
        "content": "大城市10平方这样装修",
        "type": 1,
        "imgs": [
            "http://wzb.com/uploads/case/2020-01-06/5e130ebc0347d.png",
            "http://wzb.com/uploads/case/2020-01-06/5e130c6926692.mp4"
        ],
        "address": "银濠花园酒店",
        "pay_status": 1,
        "comment_num": 4,
        "collection_num": 1,
        "points_num": 0,
        "create_at": "2020-01-07 11:31:41""point_status": true,
        "collection_status": true
    }
}

错误时返回:

{
    "status": 0,
    "msg": "参数错误"
}

返回参数说明:

参数名 类型 说明
username int 用户名称
avatar string 用户头像
case_id int 案例id
title string 标题
content string 内容详情
type int 1=图文 2=视频
imgs array 图片列表
address string 定位地址
pay_status int 状态
comment_num int 评论数
collection_num int 收藏数
points_num int 点赞数
create_at string 发布时间
point_status bool true=已点赞,false=未点赞
collection_status bool true=已收藏,false=未收藏
cover string 视频封面

备注:

作者:admin  创建时间:2020-01-09 14:34
 更新时间:2025-04-10 15:43