wiki:app2.2.0/order

Version 2 (modified by wuyuanbo, 10 years ago) (diff)

--

订单

提交订单

线上: /app/topicType/cache/listTopicType.do

说明

生成订单

使用场景:根据商品outerId和用户id生成订单

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
outerId商品outerIdstring""
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: {
             orderId:  123456//订单id
        }
}

$topicType

取消订单

线上: /app/topicType/cache/listIndexTopicType.do

说明

取消用户某个订单

使用场景:用户下单后取消订单

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: {
            orderId:123456 //取消订单的id
        }
}

$topicType

确认收货

线上: /app/topicType/cache/listIndexTopicType.do

说明

将订单状态改为已收货

使用场景:用户收到该订单的商品将订单改为已收货

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: {
            orderId:123456 //修改的订单id
        }
}

$topicType

用户订单列表

线上: /app/topicType/cache/listIndexTopicType.do

说明

登陆用户的订单列表

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
pageNo第几页int1
pageSize一页的数据量int10
common_session_id-string""

返回

result {
    status: 1,
    msg: '请求成功',
    pageNo: 1,
    pageSize: 10,
    total: 20,
    pageTotal: 2,
    data: [
        $receiveComment
    ]
}

$topicType

获取待付款订单剩余支付时间

线上: /app/topicType/cache/listIndexTopicType.do

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
common_session_id-string""

返回

result {
    status: 1,
    msg: '请求成功',
    data: {
        pastDate: 2015-11-11 11:11:11, //付款过期时间
        serviceDate: 2015-11-11 11:11:10, //服务器时间
        orderId: 123456
    }
}

$topicType