Commit 18483d9b authored by haoyanbin's avatar haoyanbin

Reference

parent d3178ac3
......@@ -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,
......
......@@ -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 {
......
......@@ -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"`
......
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