Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dt_analysis
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
haoyanbin
dt_analysis
Commits
18483d9b
Commit
18483d9b
authored
Sep 04, 2023
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reference
parent
d3178ac3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
24 deletions
+30
-24
survey.go
api/mobile/survey.go
+11
-9
survey.go
model/request/survey.go
+7
-5
survey.go
model/survey.go
+12
-10
No files found.
api/mobile/survey.go
View file @
18483d9b
...
...
@@ -30,6 +30,8 @@ func CreateSurveyUser(c *gin.Context) {
UserId
:
req
.
UserId
,
Contacts
:
req
.
Contacts
,
ContactsMobile
:
req
.
ContactsMobile
,
Reference
:
req
.
Reference
,
ReferenceMobile
:
req
.
ReferenceMobile
,
CreateTime
:
utils
.
NowTime
(),
Country
:
ipData
.
Country
,
Area
:
ipData
.
Area
,
...
...
model/request/survey.go
View file @
18483d9b
...
...
@@ -8,6 +8,8 @@ type CreateSurveyUserReq struct {
UserId
int
`gorm:"type:int(255)" json:"user_id"`
Contacts
string
`gorm:"type:string(255)" json:"contacts"`
ContactsMobile
string
`gorm:"type:string(255)" json:"contacts_mobile"`
Reference
string
`gorm:"type:string(255)" json:"reference"`
ReferenceMobile
string
`gorm:"type:string(255)" json:"reference_mobile"`
}
type
GetSurveyUserListReq
struct
{
...
...
model/survey.go
View file @
18483d9b
...
...
@@ -7,6 +7,8 @@ type SurveyUser struct {
UserId
int
`gorm:"type:int(255)" json:"user_id"`
Contacts
string
`gorm:"type:string(255)" json:"contacts"`
ContactsMobile
string
`gorm:"type:string(255)" json:"contacts_mobile"`
Reference
string
`gorm:"type:string(255)" json:"reference"`
ReferenceMobile
string
`gorm:"type:string(255)" json:"reference_mobile"`
CreateTime
string
`gorm:"type:string(255)" json:"create_time"`
Country
string
`gorm:"type:string(255)" json:"country"`
Area
string
`gorm:"type:string(255)" json:"area"`
...
...
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