Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
12dabc45
Commit
12dabc45
authored
Mar 17, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
反馈接口添加addr用户地址
parent
5edde7af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
raspberry.sql
docs/sql/raspberry.sql
+1
-0
raspFeedBack.go
models/raspFeedBack.go
+1
-0
pai.go
routers/api/v1/pai.go
+2
-0
No files found.
docs/sql/raspberry.sql
View file @
12dabc45
...
@@ -107,6 +107,7 @@ CREATE TABLE `rasp_version` (
...
@@ -107,6 +107,7 @@ CREATE TABLE `rasp_version` (
DROP
TABLE
IF
EXISTS
`rasp_feedback`
;
DROP
TABLE
IF
EXISTS
`rasp_feedback`
;
CREATE
TABLE
`rasp_feedback`
(
CREATE
TABLE
`rasp_feedback`
(
`id`
varchar
(
25
)
NOT
NULL
DEFAULT
''
,
`id`
varchar
(
25
)
NOT
NULL
DEFAULT
''
,
`addr`
varchar
(
255
)
NOT
NULL
DEFAULT
''
,
`description`
text
,
`description`
text
,
`complete`
tinyint
(
1
)
DEFAULT
NULL
,
`complete`
tinyint
(
1
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
...
...
models/raspFeedBack.go
View file @
12dabc45
...
@@ -7,6 +7,7 @@ import (
...
@@ -7,6 +7,7 @@ import (
type
RaspFeedback
struct
{
type
RaspFeedback
struct
{
Id
string
`json:"id" gorm:"PRIMARY_KEY"`
Id
string
`json:"id" gorm:"PRIMARY_KEY"`
Addr
string
`json:"addr"`
Description
string
`json:"description"`
Description
string
`json:"description"`
Complete
bool
`json:"complete"`
Complete
bool
`json:"complete"`
}
}
...
...
routers/api/v1/pai.go
View file @
12dabc45
...
@@ -154,10 +154,12 @@ func FeedBack(c *gin.Context){
...
@@ -154,10 +154,12 @@ func FeedBack(c *gin.Context){
}
}
models
.
AddFeedBack
(
models
.
RaspFeedback
{
models
.
AddFeedBack
(
models
.
RaspFeedback
{
Id
:
fmt
.
Sprint
(
port
),
Id
:
fmt
.
Sprint
(
port
),
Addr
:
KP
[
"addr"
],
Description
:
KP
[
"description"
],
Description
:
KP
[
"description"
],
Complete
:
false
,
Complete
:
false
,
})
})
models
.
AddFeedBackList
(
models
.
RaspFeedbackList
{
models
.
AddFeedBackList
(
models
.
RaspFeedbackList
{
Addr
:
KP
[
"addr"
],
Description
:
KP
[
"description"
],
Description
:
KP
[
"description"
],
Addtime
:
time
.
Now
()
.
Unix
(),
Addtime
:
time
.
Now
()
.
Unix
(),
})
})
...
...
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