| | |
| | | OldMember User `json:"oldMember" gorm:"foreignKey:OldMemberId"` |
| | | Remark string `json:"remark" gorm:"column:remark;type:text;comment:备注"` |
| | | File string `json:"file" gorm:"column:file;type:varchar(255);comment:附件"` |
| | | CreateTime string `json:"createTime"` //创建时间 |
| | | UpdateTime string `json:"updateTime"` //修改时间 |
| | | gorm.Model `json:"-"` |
| | | CrmModel |
| | | } |
| | | |
| | | ServiceFollowupSearch struct { |
| | |
| | | |
| | | func (*ServiceFollowup) TableName() string { |
| | | return "service_followup" |
| | | } |
| | | |
| | | func (slf *ServiceFollowup) AfterFind(db *gorm.DB) error { |
| | | slf.CreateTime = slf.CreatedAt.Format("2006-01-02 15:04") |
| | | slf.UpdateTime = slf.UpdatedAt.Format("2006-01-02 15:04") |
| | | return nil |
| | | } |
| | | |
| | | func NewServiceFollowupSearch() *ServiceFollowupSearch { |