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
37506f38
Commit
37506f38
authored
Mar 20, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
a2e0e885
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
166 additions
and
7 deletions
+166
-7
xgg-saas-platform/app/config/routes/doc.js
+6
-6
xgg-saas-platform/app/front/entry/public/apidoc/README.md
+1
-1
xgg-saas-platform/app/front/entry/public/apidoc/merchant/main.md
+159
-0
No files found.
xgg-saas-platform/app/config/routes/doc.js
View file @
37506f38
...
...
@@ -6,8 +6,8 @@ var marked = require("marked");
module
.
exports
=
function
(
app
)
{
app
.
get
(
'/doc'
,
function
(
req
,
res
)
{
//
var path = process.cwd() + "/app/front/entry/public/apidoc/README.md";
var
path
=
process
.
cwd
()
+
"/xgg-saas-platform/app/front/entry/public/apidoc/README.md"
;
var
path
=
process
.
cwd
()
+
"/app/front/entry/public/apidoc/README.md"
;
//
var path = process.cwd() + "/xgg-saas-platform/app/front/entry/public/apidoc/README.md";
fs
.
readFile
(
path
,
function
(
err
,
data
){
if
(
err
){
console
.
log
(
err
);
...
...
@@ -21,8 +21,8 @@ module.exports = function (app) {
});
app
.
get
(
'/doc/:forder'
,
function
(
req
,
res
)
{
//
var path = process.cwd() + "/app/front/entry/public/apidoc/README.md";
var
path
=
process
.
cwd
()
+
"/xgg-saas-platform/app/front/entry/public/apidoc/README.md"
;
var
path
=
process
.
cwd
()
+
"/app/front/entry/public/apidoc/README.md"
;
//
var path = process.cwd() + "/xgg-saas-platform/app/front/entry/public/apidoc/README.md";
fs
.
readFile
(
path
,
function
(
err
,
data
){
if
(
err
){
...
...
@@ -39,8 +39,8 @@ module.exports = function (app) {
app
.
get
(
'/doc/:forder/:fileName'
,
function
(
req
,
res
)
{
var
forder
=
req
.
params
[
"forder"
];
var
fileName
=
req
.
params
[
"fileName"
]
||
"README.md"
;
//
var path = process.cwd() + "/app/front/entry/public/apidoc";
var
path
=
process
.
cwd
()
+
"/xgg-saas-platform/app/front/entry/public/apidoc"
;
var
path
=
process
.
cwd
()
+
"/app/front/entry/public/apidoc"
;
//
var path = process.cwd() + "/xgg-saas-platform/app/front/entry/public/apidoc";
if
(
forder
)
{
path
=
path
+
"/"
+
forder
+
"/"
+
fileName
;
}
else
{
...
...
xgg-saas-platform/app/front/entry/public/apidoc/README.md
View file @
37506f38
...
...
@@ -20,7 +20,7 @@
1
[
全部订单
](
/doc/order/order.md
)
## 签约主体
1
[
发票申请
](
/doc/invoice/apply.md
)
1
[
签约主体
](
/doc/invoice/apply.md
)
## 商户管理
1
[
发票申请
](
/doc/invoice/apply.md
)
...
...
xgg-saas-platform/app/front/entry/public/apidoc/merchant/main.md
0 → 100644
View file @
37506f38
<a
name=
"menu"
>
目录
</a>
1.
[
列表
](
#list
)
1.
[
详情
](
#info
)
1.
[
添加/修改
](
#save
)
## **<a name="titleList"> 抬头列表</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/merchant/merchanttitleCtl/merchantTitleList
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"action_process"
:
"test"
,
"action_type"
:
"merchantTitleList"
,
"action_body"
:
{
"currentPage"
:
"1"
,
"pageSize"
:
"3"
,
"merchantId"
:
""
// 商户id
}
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:{
"count"
:
27
,
"rows"
:[
{
"id"
:
"13662688292002677"
,
"merchant_id"
:
"11065403484481165"
,
"taxNo"
:
"sssssssss"
,
"invoiceAddr"
:
"朝来高科技产业园33333"
,
"invoiceMobile"
:
"13838383838"
,
"accountName"
:
"宋毅"
,
"accountPublic"
:
"xxxx对公账户22222"
,
"isDefault"
:
1
,
"created_at"
:
"2019-10-10 09:32:04"
,
"merchantName"
:
"测试公司录入3334"
},
{
"id"
:
"13661984313001961"
,
"merchant_id"
:
"11064624178480175"
,
"taxNo"
:
"12212134杨庆菊3"
,
"invoiceAddr"
:
"杨庆菊的地址"
,
"invoiceMobile"
:
"杨庆菊的手机号"
,
"accountName"
:
"杨庆菊的账户名"
,
"accountPublic"
:
"杨庆菊的对公账户"
,
"isDefault"
:
1
,
"created_at"
:
"2019-10-02 05:59:05"
,
"merchantName"
:
"杨庆菊的公司2"
}
]
},
"requestid"
:
"2fd6b5ac87fa401bb19bf27cb27d3697"
}
```
## **<a name="titleInfo"> 抬头信息</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/merchant/merchanttitleCtl/merchantTitleInfo
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"id"
:
""
// id
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
{
"id"
:
"13661985486002511"
,
// id
"merchant_id"
:
"11064624178480175"
,
// 商户id
"merchantName"
:
"杨庆菊的公司2"
,
// 商户名称
"taxNo"
:
"杨庆菊客户的号"
,
// 纳税人识别号
"invoiceAddr"
:
"杨庆菊客户的地址"
,
// 开票地址
"invoiceMobile"
:
"杨庆菊客户开票手机号"
,
// 开票电话
"accountName"
:
"杨庆菊客户的账户名称"
,
// 开户名称
"accountPublic"
:
"杨庆菊客户的对公账户"
,
// 对公账户
"isDefault"
:
0
,
// 是否默认 0否 1是
"created_at"
:
"2019-10-02 06:18"
,
// 创建时间
},
"requestid"
:
"cf6320a1b615423b8a9ceb3b66b713f1"
}
```
## **<a name="saveTitle"> 添加/修改抬头</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/merchant/merchanttitleCtl/merchantTitleSave
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"id"
:
""
,
// 抬头id,为空或者不填写该字段时新增,指定具体id时修改
"merchantId"
:
"11064624178480175"
,
// 商户id
"taxNo"
:
"杨庆菊客户的税号"
,
// 纳税人识别号
"invoiceAddr"
:
"杨庆菊客户的地址"
,
// 开票地址
"invoiceMobile"
:
"杨庆菊客户开票手机号"
,
// 开票电话
"accountName"
:
"杨庆菊客户的账户名称"
,
// 开户名称
"accountPublic"
:
"杨庆菊客户的对公账户"
,
// 对公账户
"isDefault"
:
true
,
// 是否设置默认
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
{}
}
```
## **<a name="setDefault"> 设置默认</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/merchant/merchanttitleCtl/merchantTitleDefault
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"id"
:
"13661984313001961"
// 抬头id
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
}
```
\ No newline at end of file
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