123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- package yb_community_question
- import (
- "time"
- )
- const (
-
- ReplyStatusDitribute = 1
- ReplyStatusWait = 2
- ReplyStatusDone = 3
- ReplyStatusStop = 4
- )
- type YbCommunityQuestion struct {
- CommunityQuestionID int `gorm:"primaryKey;column:community_question_id;type:int(10) unsigned;not null" json:"-"`
- UserID int `gorm:"index:idx_user_id;column:user_id;type:int(10) unsigned;not null;default:0" json:"userId"`
- UserOpenid string `gorm:"column:user_openid;type:varchar(32);not null;default:''" json:"userOpenid"`
- Mobile string `gorm:"column:mobile;type:varchar(20);not null;default:''" json:"mobile"`
- RealName string `gorm:"column:real_name;type:varchar(100);not null;default:''" json:"realName"`
- QuestionContent string `gorm:"column:question_content;type:varchar(255);not null;default:''" json:"questionContent"`
- ReplierUserID int `gorm:"index:idx_replier_user_id;column:replier_user_id;type:int(10) unsigned;not null;default:0" json:"replierUserId"`
- ReplierOpenid string `gorm:"column:replier_openid;type:varchar(32);not null;default:''" json:"replierOpenid"`
- ReplierAdminID int `gorm:"column:replier_admin_id;type:int(10) unsigned;not null;default:0" json:"replierAdminId"`
- ReplierRealName string `gorm:"column:replier_real_name;type:varchar(30);not null;default:''" json:"replierRealName"`
- ReplierAvatar string `gorm:"column:replier_avatar;type:varchar(255);not null;default:''" json:"replierAvatar"`
- ResearchGroupFirstID int `gorm:"column:research_group_first_id;type:int(10) unsigned;not null;default:0" json:"researchGroupFirstId"`
- ResearchGroupSecondID int `gorm:"column:research_group_second_id;type:int(10) unsigned;not null;default:0" json:"researchGroupSecondId"`
- ResearchGroupFirstName string `gorm:"column:research_group_first_name;type:varchar(100);not null;default:''" json:"researchGroupFirstName"`
- ResearchGroupSecondName string `gorm:"column:research_group_second_name;type:varchar(100);not null;default:''" json:"researchGroupSecondName"`
- DistributeAdminID int `gorm:"column:distribute_admin_id;type:int(10) unsigned;not null;default:0" json:"distributeAdminId"`
- DistributeTime time.Time `gorm:"column:distribute_time;type:datetime" json:"distributeTime"`
- VarietyTagID int `gorm:"index:idx_variety_tag_id;column:variety_tag_id;type:int(10) unsigned;not null;default:0" json:"varietyTagId"`
- VarietyTagName string `gorm:"column:variety_tag_name;type:varchar(100);not null;default:''" json:"varietyTagName"`
- IsRead int `gorm:"column:is_read;type:tinyint(4) unsigned;not null;default:0" json:"isRead"`
- ReplierIsRead int `gorm:"column:replier_is_read;type:tinyint(4) unsigned;not null;default:0" json:"replierIsRead"`
- ReplyStatus int `gorm:"column:reply_status;type:tinyint(4) unsigned;not null;default:0" json:"replyStatus"`
- MsgSendStatus int `gorm:"column:msg_send_status;type:tinyint(4) unsigned;not null;default:0" json:"msgSendStatus"`
- ReplyTime time.Time `gorm:"column:reply_time;type:datetime" json:"replyTime"`
- CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"`
- ModifyTime time.Time `gorm:"column:modify_time;type:datetime;default:CURRENT_TIMESTAMP" json:"modifyTime"`
- IsDeleted int `gorm:"column:is_deleted;type:tinyint(4) unsigned;not null;default:0" json:"isDeleted"`
- DeleteTime time.Time `gorm:"column:delete_time;type:datetime" json:"deleteTime"`
- StopReason string `gorm:"column:stop_reason;type:varchar(255);not null;default:''" json:"stopReason"`
- }
- func (m *YbCommunityQuestion) TableName() string {
- return "yb_community_question"
- }
- var YbCommunityQuestionColumns = struct {
- CommunityQuestionID string
- UserID string
- UserOpenid string
- Mobile string
- RealName string
- QuestionContent string
- ReplierUserID string
- ReplierOpenid string
- ReplierAdminID string
- ReplierRealName string
- ReplierAvatar string
- ResearchGroupFirstID string
- ResearchGroupSecondID string
- ResearchGroupFirstName string
- ResearchGroupSecondName string
- DistributeAdminID string
- DistributeTime string
- VarietyTagID string
- VarietyTagName string
- IsRead string
- ReplierIsRead string
- ReplyStatus string
- MsgSendStatus string
- ReplyTime string
- CreateTime string
- ModifyTime string
- IsDeleted string
- DeleteTime string
- }{
- CommunityQuestionID: "community_question_id",
- UserID: "user_id",
- UserOpenid: "user_openid",
- Mobile: "mobile",
- RealName: "real_name",
- QuestionContent: "question_content",
- ReplierUserID: "replier_user_id",
- ReplierOpenid: "replier_openid",
- ReplierAdminID: "replier_admin_id",
- ReplierRealName: "replier_real_name",
- ReplierAvatar: "replier_avatar",
- ResearchGroupFirstID: "research_group_first_id",
- ResearchGroupSecondID: "research_group_second_id",
- ResearchGroupFirstName: "research_group_first_name",
- ResearchGroupSecondName: "research_group_second_name",
- DistributeAdminID: "distribute_admin_id",
- DistributeTime: "distribute_time",
- VarietyTagID: "variety_tag_id",
- VarietyTagName: "variety_tag_name",
- IsRead: "is_read",
- ReplierIsRead: "replier_is_read",
- ReplyStatus: "reply_status",
- MsgSendStatus: "msg_send_status",
- ReplyTime: "reply_time",
- CreateTime: "create_time",
- ModifyTime: "modify_time",
- IsDeleted: "is_deleted",
- DeleteTime: "delete_time",
- }
|