|
|
# 根据活动ID查询详情接口
|
|
|
|
|
|
> 接口名: `/DrawlineActivityRest/getDrawlineActivityDetail`
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|-------|----|----|----|-------|--------|
|
|
|
|activityId|Integer|83|活动Id|是|11
|
|
|
--------------------------------
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from drawline_activity
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
```xml
|
|
|
<select id="selectByActivityIds" resultMap="BaseResultMap">
|
|
|
select <include refid="Base_Column_List" /> from drawline_prize_setting where activity_id in (${activityIds})
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
### 响应码
|
|
|
|
|
|
-------------------------
|
|
|
|响应码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200| 操作成功.| |
|
|
|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "",
|
|
|
"data": {
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"activityDesc": "",
|
|
|
"activityId": 110,
|
|
|
"activityName": "活动长江9号",
|
|
|
"backgroundStyle": "",
|
|
|
"beginTime": 1462503000,
|
|
|
"beginTimeStr": "2016-05-06 10:50",
|
|
|
"createTime": 1461896820,
|
|
|
"endTime": 1464926100,
|
|
|
"endTimeStr": "2016-06-03 11:55",
|
|
|
"numberLimit": 25,
|
|
|
"prizeList": [],
|
|
|
"status": 1,
|
|
|
"topBanner": "http://img13.static.yhbimg.com/activity/2016/04/29/10/02af486f1c3038ed1cbfb9cfdefe494d52.jpg",
|
|
|
"updateTime": 1461896820,
|
|
|
"winInfo": {
|
|
|
"realNum": 0,
|
|
|
"realSurplus": 0,
|
|
|
"realWinNum": 0,
|
|
|
"totalAttend": 0,
|
|
|
"totalSurplus": 0,
|
|
|
"totalWin": 0,
|
|
|
"virtualNum": 0,
|
|
|
"virtualSurplus": 0,
|
|
|
"virtualWinNum": 0
|
|
|
}
|
|
|
},
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 根据活动ID查询详情接口
|
|
|
|
|
|
> 接口名: `/DrawlineActivityRest/getDrawlineActivityDetail`
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|-------|----|----|----|-------|--------|
|
|
|
|activityId|Integer|83|活动Id|是|1~11
|
|
|
--------------------------------
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from drawline_activity
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
```xml
|
|
|
<select id="selectByActivityIds" resultMap="BaseResultMap">
|
|
|
select <include refid="Base_Column_List" /> from drawline_prize_setting where activity_id in (${activityIds})
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
### 响应码
|
|
|
|
|
|
-------------------------
|
|
|
|响应码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200| 操作成功.| |
|
|
|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "",
|
|
|
"data": {
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"activityDesc": "",
|
|
|
"activityId": 110,
|
|
|
"activityName": "活动长江9号",
|
|
|
"backgroundStyle": "",
|
|
|
"beginTime": 1462503000,
|
|
|
"beginTimeStr": "2016-05-06 10:50",
|
|
|
"createTime": 1461896820,
|
|
|
"endTime": 1464926100,
|
|
|
"endTimeStr": "2016-06-03 11:55",
|
|
|
"numberLimit": 25,
|
|
|
"prizeList": [],
|
|
|
"status": 1,
|
|
|
"topBanner": "http://img13.static.yhbimg.com/activity/2016/04/29/10/02af486f1c3038ed1cbfb9cfdefe494d52.jpg",
|
|
|
"updateTime": 1461896820,
|
|
|
"winInfo": {
|
|
|
"realNum": 0,
|
|
|
"realSurplus": 0,
|
|
|
"realWinNum": 0,
|
|
|
"totalAttend": 0,
|
|
|
"totalSurplus": 0,
|
|
|
"totalWin": 0,
|
|
|
"virtualNum": 0,
|
|
|
"virtualSurplus": 0,
|
|
|
"virtualWinNum": 0
|
|
|
}
|
|
|
},
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
...
|
...
|
|