|
|
#图标管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 查询图标列表
|
|
|
|
|
|
> 接口名:`icon/getList`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|type|integer|0|0:通用 1:男生 2:女生 3:潮童 4:创意生活|否|
|
|
|
|status|integer|1|状态:0 不启用 ,1 启用 |否|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"id": 39,
|
|
|
"defaultIco": "shared_logo1", // 默认图标
|
|
|
"ico": "shared_logo1",
|
|
|
"icoKey": "logoEn",
|
|
|
"icoName": "首页logo",
|
|
|
"status": 0,
|
|
|
"type": 0,
|
|
|
"updateTime": 0,
|
|
|
"createTime": 1456135772
|
|
|
}
|
|
|
],
|
|
|
"message": "Icon List"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 添加图标
|
|
|
|
|
|
> 接口名:`icon/addIcon`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|icoName|string|设置按钮|图标名称|是|
|
|
|
|defaultIco|string|mine_btn_sz_p|默认图标|是|
|
|
|
|ico|string|mine_btn_sz_n|图标|是|
|
|
|
|icoKey|string|setting|图标 Key|是|
|
|
|
|type|integer|0|0:通用 1:男生 2:女生 3:潮童 4:创意生活|是|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "添加ico信息信息成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 根据 ID 获取图标信息
|
|
|
|
|
|
> 接口名:`icon/getOneIcon`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|integer|1|主键|是|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"createTime": 1446615657,
|
|
|
"defaultIco": "mine_btn_sz_p",
|
|
|
"ico": "mine_btn_sz_n",
|
|
|
"icoKey": "setting",
|
|
|
"icoName": "设置按钮",
|
|
|
"id": 1,
|
|
|
"status": 1,
|
|
|
"type": 0,
|
|
|
"updateTime": 1446692129
|
|
|
},
|
|
|
"message": "One Icon Info"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 更新图标信息
|
|
|
|
|
|
> 接口名:`icon/updateIcon`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|integer|1|主键|是|
|
|
|
|icoName|string|设置按钮|图标名称|是|
|
|
|
|defaultIco|string|mine_btn_sz_p|默认图标|是|
|
|
|
|ico|string|mine_btn_sz_n|图标|是|
|
|
|
|icoKey|string|setting|图标 Key|是|
|
|
|
|type|integer|0|0:通用 1:男生 2:女生 3:潮童 4:创意生活|是|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "修改图标配置信息成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 发布图标信息
|
|
|
|
|
|
> 接口名:`icon/publishIcon`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|integer|1|主键|是|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 关闭图标信息
|
|
|
|
|
|
> 接口名:`icon/closeIcon`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|integer|1|主键|是|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 加载图片包列表
|
|
|
|
|
|
> 接口名:`icon/getZipList`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|platform|string|android|平台|否|
|
|
|
|status|integer|1|状态:0 不启用 ,1 启用 |否|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"createTime": 1454579218,
|
|
|
"id": 71,
|
|
|
"platform": "android",
|
|
|
"status": 1,
|
|
|
"updateTime": 1454579218,
|
|
|
"zip": "http://fc016197d0.zip"
|
|
|
}
|
|
|
],
|
|
|
"message": "IconZip List"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 上传图片包
|
|
|
|
|
|
> 接口名:`icon/addZip`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|zip|string|http://test.zip|包路径|是|
|
|
|
|platform|string|android|平台|是|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "上传图片包成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 启用图片包
|
|
|
|
|
|
> 接口名:`icon/publishZip`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|integer|1|主键|是|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
# 关闭图片包
|
|
|
|
|
|
> 接口名:`icon/closeZip`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
----------------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|integer|1|主键|是|
|
|
|
----------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
``` |
...
|
...
|
|