| | |
| | | |
| | | type ( |
| | | Attachment struct { |
| | | WmsModel |
| | | Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` |
| | | BaseModelInt |
| | | Id uint `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` |
| | | FileName string `json:"fileName" gorm:"type:varchar(127);comment:文件名"` |
| | | FileUrl string `json:"FileUrl" gorm:"type:varchar(255);comment:文件地址"` |
| | | Ext string `json:"ext" gorm:"type:varchar(15);comment:文件后缀名"` |
| | |
| | | ) |
| | | |
| | | func (slf *Attachment) TableName() string { |
| | | return "wms_attachment" |
| | | return "attachment" |
| | | } |
| | | |
| | | func NewAttachmentSearch() *AttachmentSearch { |
| | |
| | | return slf |
| | | } |
| | | |
| | | func (slf *AttachmentSearch) SetID(ID int) *AttachmentSearch { |
| | | func (slf *AttachmentSearch) SetID(ID uint) *AttachmentSearch { |
| | | slf.Id = ID |
| | | return slf |
| | | } |