diff --git a/internal/model/questionnaire_survey.go b/internal/model/questionnaire_survey.go index 9ccd058..15835b2 100644 --- a/internal/model/questionnaire_survey.go +++ b/internal/model/questionnaire_survey.go @@ -8,23 +8,23 @@ import ( type QuestionnaireSurvey struct { gorm.Model - SurveyUUID string `gorm:"column:survey_uuid;not null;comment:问卷UUID" json:"survey_uuid"` - UserId int `gorm:"column:user_id;not null;comment:用户ID" json:"user_id"` - UserNum string `gorm:"column:user_num;not null;comment:用户编号" json:"user_num"` - UserName string `gorm:"column:user_name;not null;comment:用户姓名" json:"user_name"` - UserTel string `gorm:"column:user_tel;not null;comment:用户电话" json:"user_tel"` - OrderUUID string `gorm:"column:order_uuid;not null;comment:订单UUID" json:"order_uuid"` - SendTime time.Time `gorm:"column:send_time;not null;comment:发送时间" json:"send_time"` - SubmitTime time.Time `gorm:"column:submit_time;not null;comment:提交时间" json:"submit_time"` - SurveyTitle string `gorm:"column:survey_title;not null;comment:问卷标题" json:"survey_title"` - SurveyStatus int `gorm:"column:survey_status;not null;comment:问卷状态 1:已发送 2:已提交" json:"survey_status"` - BundleInfo string `gorm:"column:bundle_info;not null;comment:套餐信息" json:"bundle_info"` - SurveyAnswer string `gorm:"column:survey_answer;not null;comment:问卷答案" json:"survey_answer"` - MeritsReview string `gorm:"column:merits_review;not null;comment:优点评价" json:"merits_review"` - SuggestionsorImprovements string `gorm:"column:suggestionsor_improvements;not null;comment:改进建议" json:"suggestionsor_improvements"` - AdditionalComments string `gorm:"column:additional_comments;not null;comment:补充意见" json:"additional_comments"` - SurveyUrl string `gorm:"column:survey_url;not null;comment:问卷URL" json:"survey_url"` - SubmitBy string `gorm:"column:submit_by;not null;comment:提交人" json:"submit_by"` + SurveyUUID string `gorm:"column:survey_uuid;comment:问卷UUID" json:"survey_uuid"` + UserId int `gorm:"column:user_id;comment:用户ID" json:"user_id"` + UserNum string `gorm:"column:user_num;comment:用户编号" json:"user_num"` + UserName string `gorm:"column:user_name;comment:用户姓名" json:"user_name"` + UserTel string `gorm:"column:user_tel;comment:用户电话" json:"user_tel"` + OrderUUID string `gorm:"column:order_uuid;comment:订单UUID" json:"order_uuid"` + SendTime time.Time `gorm:"column:send_time;comment:发送时间" json:"send_time"` + SubmitTime time.Time `gorm:"column:submit_time;comment:提交时间" json:"submit_time"` + SurveyTitle string `gorm:"column:survey_title;comment:问卷标题" json:"survey_title"` + SurveyStatus int `gorm:"column:survey_status;comment:问卷状态 1:已发送 2:已提交" json:"survey_status"` + BundleInfo string `gorm:"column:bundle_info;comment:套餐信息" json:"bundle_info"` + SurveyAnswer string `gorm:"column:survey_answer;comment:问卷答案" json:"survey_answer"` + MeritsReview string `gorm:"column:merits_review;comment:优点评价" json:"merits_review"` + SuggestionsorImprovements string `gorm:"column:suggestionsor_improvements;comment:改进建议" json:"suggestionsor_improvements"` + AdditionalComments string `gorm:"column:additional_comments;comment:补充意见" json:"additional_comments"` + SurveyUrl string `gorm:"column:survey_url;comment:问卷URL" json:"survey_url"` + SubmitBy string `gorm:"column:submit_by;comment:提交人" json:"submit_by"` } func (QuestionnaireSurvey) TableName() string {