2021-09-11 14:04:09 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
2023-07-20 22:41:13 +08:00
|
|
|
|
"mayfly-go/pkg/model"
|
2021-09-11 14:04:09 +08:00
|
|
|
|
"time"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type Msg struct {
|
2023-07-20 22:41:13 +08:00
|
|
|
|
model.DeletedModel
|
|
|
|
|
|
|
2021-09-11 14:04:09 +08:00
|
|
|
|
CreateTime *time.Time `json:"createTime"`
|
|
|
|
|
|
CreatorId uint64 `json:"creatorId"`
|
2025-02-13 21:11:23 +08:00
|
|
|
|
Creator string `json:"creator" gorm:"size:50"`
|
2021-09-11 14:04:09 +08:00
|
|
|
|
|
2025-02-13 21:11:23 +08:00
|
|
|
|
Type int8 `json:"type"`
|
|
|
|
|
|
Msg string `json:"msg" gorm:"size:2000"`
|
|
|
|
|
|
RecipientId int64 `json:"recipientId"` // 接收人id,-1为所有接收
|
2021-09-11 14:04:09 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (a *Msg) TableName() string {
|
|
|
|
|
|
return "t_sys_msg"
|
|
|
|
|
|
}
|