Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
system_pay
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王沛
system_pay
Commits
2b79841b
Commit
2b79841b
authored
Jun 21, 2023
by
wangp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释 runCommand
parent
f36c0ee7
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
pay.go
controller/api/v1/pay/pay.go
+1
-1
docs.go
docs/docs.go
+1
-1
swagger.json
docs/swagger.json
+1
-1
swagger.yaml
docs/swagger.yaml
+1
-1
main.go
main.go
+1
-1
No files found.
controller/api/v1/pay/pay.go
View file @
2b79841b
...
@@ -21,7 +21,7 @@ type PayController struct {
...
@@ -21,7 +21,7 @@ type PayController struct {
// @Param body body models.PlaceAnOrderParamInput true "参数"
// @Param body body models.PlaceAnOrderParamInput true "参数"
// @Param language header string ture "语言类型 zh-CN简体中文 en-US英文 ja 日文 默认中文"
// @Param language header string ture "语言类型 zh-CN简体中文 en-US英文 ja 日文 默认中文"
// @Success 200
// @Success 200
// @router /api/v1/
index
/unified_order [post]
// @router /api/v1/
pay
/unified_order [post]
func
(
l
*
PayController
)
UnifiedOrder
(
c
*
gin
.
Context
)
{
func
(
l
*
PayController
)
UnifiedOrder
(
c
*
gin
.
Context
)
{
ph
:=
new
(
models
.
PlaceAnOrderParamInput
)
ph
:=
new
(
models
.
PlaceAnOrderParamInput
)
...
...
docs/docs.go
100755 → 100644
View file @
2b79841b
...
@@ -23,7 +23,7 @@ var doc = `{
...
@@ -23,7 +23,7 @@ var doc = `{
"host": "{{.Host}}",
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"basePath": "{{.BasePath}}",
"paths": {
"paths": {
"/api/v1/
index
/unified_order": {
"/api/v1/
pay
/unified_order": {
"post": {
"post": {
"description": "拉卡拉统一支付",
"description": "拉卡拉统一支付",
"consumes": [
"consumes": [
...
...
docs/swagger.json
100755 → 100644
View file @
2b79841b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"version"
:
"1.0"
"version"
:
"1.0"
},
},
"paths"
:
{
"paths"
:
{
"/api/v1/
index
/unified_order"
:
{
"/api/v1/
pay
/unified_order"
:
{
"post"
:
{
"post"
:
{
"description"
:
"拉卡拉统一支付"
,
"description"
:
"拉卡拉统一支付"
,
"consumes"
:
[
"consumes"
:
[
...
...
docs/swagger.yaml
100755 → 100644
View file @
2b79841b
...
@@ -50,7 +50,7 @@ info:
...
@@ -50,7 +50,7 @@ info:
title
:
谛宝多多平台
title
:
谛宝多多平台
version
:
"
1.0"
version
:
"
1.0"
paths
:
paths
:
/api/v1/
index
/unified_order
:
/api/v1/
pay
/unified_order
:
post
:
post
:
consumes
:
consumes
:
-
application/json
-
application/json
...
...
main.go
View file @
2b79841b
...
@@ -38,7 +38,7 @@ func main() {
...
@@ -38,7 +38,7 @@ func main() {
if
gin
.
Mode
()
==
gin
.
TestMode
||
gin
.
Mode
()
==
gin
.
DebugMode
{
if
gin
.
Mode
()
==
gin
.
TestMode
||
gin
.
Mode
()
==
gin
.
DebugMode
{
//自动更新swagger
//自动更新swagger
runCommand
()
//
runCommand()
}
}
...
...
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