| | |
| | | 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:附件"` |
| | | |
| | | gorm.Model `json:"-"` |
| | | CrmModel |
| | | } |
| | | |
| | | ServiceFollowupSearch struct { |
| | |
| | | } |
| | | ) |
| | | |
| | | func (ServiceFollowup) TableName() string { |
| | | func (*ServiceFollowup) TableName() string { |
| | | return "service_followup" |
| | | } |
| | | |
| | |
| | | db = db.Limit(slf.PageSize).Offset((slf.PageNum - 1) * slf.PageSize) |
| | | } |
| | | |
| | | err := db.Find(&records).Error |
| | | err := db.Order("id desc").Find(&records).Error |
| | | return records, total, err |
| | | } |
| | | |