Commit a902a4c0 by 庄冰

collect logo

parent 790e5ce8
...@@ -36,11 +36,14 @@ class LogoOrderAPI extends APIBase { ...@@ -36,11 +36,14 @@ class LogoOrderAPI extends APIBase {
case "getPaidLogoListByUser"://获取已购买的logo case "getPaidLogoListByUser"://获取已购买的logo
opResult = await this.centerorderSve.reqCenterOrderApi(pobj,"action/logoOrderApi/springBoard"); opResult = await this.centerorderSve.reqCenterOrderApi(pobj,"action/logoOrderApi/springBoard");
break; break;
case "getLogoMaterial"://下载logo素材
opResult = await this.centerorderSve.reqCenterOrderApi(pobj,"action/logoOrderApi/springBoard");
break;
case "getCollectibleLogoListByUser"://获取收藏的logo case "getCollectibleLogoListByUser"://获取收藏的logo
opResult = system.getResultSuccess(null, "测试成功"); opResult = await this.centerorderSve.reqCenterOrderApi(pobj,"action/logoOrderApi/springBoard");
break; break;
case "collectLogo"://收藏logo case "collectLogo"://收藏logo
opResult = system.getResultSuccess(null, "测试成功"); opResult = await this.centerorderSve.reqCenterOrderApi(pobj,"action/logoOrderApi/springBoard");
break; break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
......
<a name="menu" href="/doc">返回主目录</a> <a name="menu" href="/doc">返回主目录</a>
1. [生成logo](#singlelogo) 1. [生成logo](#singlelogo)
1. [获取已购买的logo](#getPaidLogoListByUser)
1. [获取收藏的logo](#getCollectibleLogoListByUser)
1. [收藏logo](#collectLogo) 1. [收藏logo](#collectLogo)
1. [获取收藏的logo](#getCollectibleLogoListByUser)
1. [获取已购买的logo](#getPaidLogoListByUser)
## **<a name="singlelogo"> icp方案提交</a>**
## **<a name="singlelogo"> 生成logo</a>**
[返回到目录](#menu) [返回到目录](#menu)
##### URL ##### URL
[/web/action/logoOrderApi/springBoard] [/web/action/logoOrderApi/springBoard]
...@@ -49,3 +51,97 @@ ...@@ -49,3 +51,97 @@
## **<a name="collectLogo"> 收藏logo</a>**
[返回到目录](#menu)
##### URL
[/web/action/logoOrderApi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:collectLogo
``` javascript
{
"actionType":"collectLogo",
"actionBody":{
"title":"周杰伦", //名牌名称,必传
"subtitle":"baby", //品牌标语必填
"profession": "通讯行业", //行业 必填
"description":"有公司的地方就有公司宝",//现在必填,可以为空,后续会控制可传可不传
"logo_id":"1147",//id:后续用了购买的标识,购买时需要回传 (生成logo接口返回)
"pic_url":"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202004270425473400.png",//图片地址(生成logo接口返回)
"itemCode":"znlogosjcp" //产品码
}
}
```
#### 返回结果
```javascript
{
"status":0,
"msg":"success",
"data":null,
"requestId":"efa3dc6d66f84b249d4cdb406d62fb05"
}
```
## **<a name="getCollectibleLogoListByUser"> 获取收藏的logo</a>**
[返回到目录](#menu)
##### URL
[/web/action/logoOrderApi/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:getCollectibleLogoListByUser
``` javascript
{
"actionType":"getCollectibleLogoListByUser",
"actionBody":{
"pageSize":20,//每页数量
"pageIndex":1//页码
}
}
```
#### 返回结果
```javascript
{
"status":0,
"msg":"success",
"data":[
{
"id":131,
"uapp_id":22,
"channelUserId":"13075556693",
"collectContent":{
"title":"周杰伦",
"logo_id":"1147",
"pic_url":"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202004270425473400.png",
"itemCode":"znlogosjcp",
"subtitle":"baby",
"profession":"通讯行业",
"description":"红色象征着热情,活泼,张扬"
}
},
{
"id":130,
"uapp_id":22,
"channelUserId":"13075556693",
"collectContent":{
"title":"周杰伦",
"logo_id":"1170",
"pic_url":"https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_20200427042545332.png",
"itemCode":"znlogosjcp",
"subtitle":"baby",
"profession":"通讯行业",
"description":"有公司的地方就有公司宝"
}
}
],
"dataCount":2,//总条数
"requestId":"24398be1499e46f7bd0604f6d3665cc8"
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment