Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
031574f0
Commit
031574f0
authored
Aug 08, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
6bad3f49
be9ba606
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
118 additions
and
14 deletions
+118
-14
center-channel/app/base/api/impl/action/opNeed.js
+8
-8
center-channel/app/base/service/impl/utilsSve/utilsOpNeedSve.js
+16
-4
center-channel/app/config/routes/api.js
+1
-1
center-channel/app/front/entry/public/apidoc/platform/opNeed.md
+92
-0
center-channel/app/front/entry/public/apidoc/platform/zzzd.md
+1
-1
No files found.
center-channel/app/base/api/impl/action/opNeed.js
View file @
031574f0
...
...
@@ -28,17 +28,17 @@ class OpNeed extends APIBase {
pobj
.
requestId
=
req
.
requestId
;
var
opResult
=
null
;
switch
(
action_type
)
{
case
"
s
ubmitNeed"
:
//提交需求 2020 0807 lin 新增
opResult
=
await
this
.
utilsOpNeedSve
.
s
ubmitNeed
(
pobj
,
pobj
.
actionBody
);
case
"
opS
ubmitNeed"
:
//提交需求 2020 0807 lin 新增
opResult
=
await
this
.
utilsOpNeedSve
.
opS
ubmitNeed
(
pobj
,
pobj
.
actionBody
);
break
;
case
"
n
eedList"
:
//需求列表
opResult
=
await
this
.
utilsOpNeedSve
.
n
eedList
(
pobj
,
pobj
.
actionBody
);
case
"
opN
eedList"
:
//需求列表
opResult
=
await
this
.
utilsOpNeedSve
.
opN
eedList
(
pobj
,
pobj
.
actionBody
);
break
;
case
"
n
eedClose"
:
//关闭需求
opResult
=
await
this
.
utilsOpNeedSve
.
n
eedClose
(
pobj
,
pobj
.
actionBody
);
case
"
opN
eedClose"
:
//关闭需求
opResult
=
await
this
.
utilsOpNeedSve
.
opN
eedClose
(
pobj
,
pobj
.
actionBody
);
break
;
case
"
n
eedDetailByChannelNo"
:
//需求详情--包含方案
opResult
=
await
this
.
utilsOpNeedSve
.
n
eedDetailByChannelNo
(
pobj
,
pobj
.
actionBody
);
case
"
opN
eedDetailByChannelNo"
:
//需求详情--包含方案
opResult
=
await
this
.
utilsOpNeedSve
.
opN
eedDetailByChannelNo
(
pobj
,
pobj
.
actionBody
);
break
;
// case "getItemByChannelNeedNo"://方案反馈
// opResult = await this.utilsOpNeedSve.getItemByChannelNeedNo(pobj, pobj.actionBody);
...
...
center-channel/app/base/service/impl/utilsSve/utilsOpNeedSve.js
View file @
031574f0
...
...
@@ -19,10 +19,10 @@ class UtilsOpNeedService extends AppServiceBase {
/**
* 提交需求 h5/pc 通用
* @param {*} pobj
* @param {*} pobj
* @param {*} actionBody
*/
async
s
ubmitNeed
(
pobj
,
actionBody
)
{
async
opS
ubmitNeed
(
pobj
,
actionBody
)
{
var
sobj
=
pobj
;
// 获取商品类型
sobj
.
actionType
=
"getProductTypeInfo"
;
...
...
@@ -36,7 +36,7 @@ class UtilsOpNeedService extends AppServiceBase {
pobj
.
actionBody
.
channel_type_code
=
opResult
.
data
.
channel_type_code
;
pobj
.
actionBody
.
channel_type_name
=
opResult
.
data
.
channel_type_name
;
// 提交需求 暂未做推送
pobj
.
actionType
=
"
s
ubmitNeed"
;
pobj
.
actionType
=
"
opS
ubmitNeed"
;
var
reqUrl
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
if
(
result
.
status
==
0
)
{
...
...
@@ -48,6 +48,18 @@ class UtilsOpNeedService extends AppServiceBase {
}
/**
* 提交需求 h5/pc 通用
* @param {*} pobj
* @param {*} actionBody
*/
async
opNeedList
(
pobj
,
actionBody
)
{
// 获取需求列表
var
reqUrl
=
this
.
centerOrderUrl
+
"action/opNeed/springBoard"
;
var
opNeedListResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
opNeedListResult
;
}
/**
* 获取需求详情
* @param {*} pobj
* @param {*} actionBody needNo 需求号
...
...
@@ -66,7 +78,7 @@ class UtilsOpNeedService extends AppServiceBase {
* @param {*} pobj
* @param {*} actionBody
*/
async
n
eedClose
(
pobj
,
actionBody
)
{
async
opN
eedClose
(
pobj
,
actionBody
)
{
if
(
!
actionBody
.
needNo
)
{
return
system
.
getResult
(
null
,
"actionBody.channelNeedNo can not be empty,100395"
);
}
...
...
center-channel/app/config/routes/api.js
View file @
031574f0
...
...
@@ -243,7 +243,7 @@ module.exports = function (app) {
"getOrderDeliveryFlowInfo"
,
"getOrderDeliveryFlowList"
,
"getOrderLogInfo"
,
"updateContacts"
,
"updateTmOrder"
,
"delOrder"
,
"submitProgramme"
,
"getProgrammeListByUser"
,
"getProgrammeInfoByNeedNo"
,
"abolishProgramme"
,
"getAliPayInfo"
,
"getPaidLogoListByUser"
,
"getCollectibleLogoListByUser"
,
"collectLogo"
,
"getLogoMaterial"
,
"cancelCollectLogo"
,
"icpNotify"
,
"createName"
,
"getNameDetail"
,
"orderConfirm"
,
"orderTotalSum"
,
"collect"
,
"reg"
,
"orderCheck"
,
"getReOrderList"
,
"getOfficalList"
,
"addReviewList"
,
"
submitNeedWeb"
,
"needCloseWeb"
,
"needListWeb"
,
"needDetailByChannelNoWeb
"
"orderTotalSum"
,
"collect"
,
"reg"
,
"orderCheck"
,
"getReOrderList"
,
"getOfficalList"
,
"addReviewList"
,
"
opSubmitNeed"
,
"opNeedClose"
,
"opNeedList"
,
"opNeedDetailByChannelNo
"
];
if
(
lst
.
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
var
userpin
=
req
.
headers
[
"userpin"
]
||
""
;
...
...
center-channel/app/front/entry/public/apidoc/platform/opNeed.md
0 → 100644
View file @
031574f0
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
1.
[
下需求
](
#opSubmitNeed
)
2.
[
需求关闭
](
#opNeedClose
)
3.
[
需求列表
](
#opNeedList
)
## **<a name="opSubmitNeed"> 下需求</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/action/opNeed/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:opSubmitNeed
```
javascript
{
"area"
:
"北京市-北京市-大兴区"
,
"description"
:
"公司注册 - "
,
"mobile"
:
"13911391996"
,
"type"
:
"gszc"
,
"userName"
:
""
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"d8ff1ec957e8473f863e79ad91440c60"
}
```
## **<a name="opNeedClose"> 需求关闭</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/action/opNeed/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:opNeedClose
```
javascript
{
"needNo"
:
"N202008081803V5zoAk4"
,
// 必填
"note"
:
"不想买了"
// 必填
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"d8ff1ec957e8473f863e79ad91440c60"
}
```
## **<a name="opNeedList"> 需求列表</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/action/opNeed/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:opNeedList
```
javascript
{
// 时间段,分页,排序,需求状态 条件展示未做
}
```
#### 返回结果
```
javascript
// 返回字段需要根据原型来做,目前只返回基础数据
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
[
{
"needNo"
:
"N202008081803V5zoAk4"
,
"status"
:
"ygb"
,
"statusName"
:
"已关闭"
},
{
"needNo"
:
"N202008081637iFxoxrE"
,
"status"
:
"wts"
,
"statusName"
:
"未推送"
}
],
"bizmsg"
:
"empty"
,
"requestId"
:
"c1e67d2f7eb7416b988f60ce0c93559b"
}
```
\ No newline at end of file
center-channel/app/front/entry/public/apidoc/platform/zzzd.md
View file @
031574f0
...
...
@@ -28,7 +28,7 @@
}
通过
{
"status"
:
0
,
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"837ea5c284074d568fa198f7f259088a"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment