123456789101112131415161718192021222324252627282930313233 |
- package model
- import xtime "go-common/library/time"
- const (
-
- EventAdminReply = 1
-
- EventAdminNote = 2
-
- EventUserReply = 3
-
- EventSystem = 4
- )
- type Event struct {
- Eid int64 `json:"eid" gorm:"column:id"`
- Cid int64 `json:"cid" gorm:"column:cid"`
- AdminID int64 `json:"adminid" gorm:"column:adminid"`
- Content string `json:"content" gorm:"column:content"`
- Attachments string `json:"attachments" gorm:"column:attachments"`
- Event int8 `json:"event" gorm:"column:event"`
- CTime xtime.Time `json:"ctime" gorm:"column:ctime"`
- MTime xtime.Time `json:"mtime" gorm:"column:mtime"`
- Admin string `json:"admin" gorm:"-"`
- }
- func (Event) TableName() string {
- return "workflow_event"
- }
|