Commit 18483d9b authored by haoyanbin's avatar haoyanbin

Reference

parent d3178ac3
...@@ -30,6 +30,8 @@ func CreateSurveyUser(c *gin.Context) { ...@@ -30,6 +30,8 @@ func CreateSurveyUser(c *gin.Context) {
UserId: req.UserId, UserId: req.UserId,
Contacts: req.Contacts, Contacts: req.Contacts,
ContactsMobile: req.ContactsMobile, ContactsMobile: req.ContactsMobile,
Reference: req.Reference,
ReferenceMobile: req.ReferenceMobile,
CreateTime: utils.NowTime(), CreateTime: utils.NowTime(),
Country: ipData.Country, Country: ipData.Country,
Area: ipData.Area, Area: ipData.Area,
......
...@@ -8,6 +8,8 @@ type CreateSurveyUserReq struct { ...@@ -8,6 +8,8 @@ type CreateSurveyUserReq struct {
UserId int `gorm:"type:int(255)" json:"user_id"` UserId int `gorm:"type:int(255)" json:"user_id"`
Contacts string `gorm:"type:string(255)" json:"contacts"` Contacts string `gorm:"type:string(255)" json:"contacts"`
ContactsMobile string `gorm:"type:string(255)" json:"contacts_mobile"` 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 { type GetSurveyUserListReq struct {
......
...@@ -7,6 +7,8 @@ type SurveyUser struct { ...@@ -7,6 +7,8 @@ type SurveyUser struct {
UserId int `gorm:"type:int(255)" json:"user_id"` UserId int `gorm:"type:int(255)" json:"user_id"`
Contacts string `gorm:"type:string(255)" json:"contacts"` Contacts string `gorm:"type:string(255)" json:"contacts"`
ContactsMobile string `gorm:"type:string(255)" json:"contacts_mobile"` 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"` CreateTime string `gorm:"type:string(255)" json:"create_time"`
Country string `gorm:"type:string(255)" json:"country"` Country string `gorm:"type:string(255)" json:"country"`
Area string `gorm:"type:string(255)" json:"area"` Area string `gorm:"type:string(255)" json:"area"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment