mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-25 09:06:34 +08:00
23 lines
459 B
Go
23 lines
459 B
Go
package entity
|
||
|
||
import (
|
||
"mayfly-go/pkg/model"
|
||
"time"
|
||
)
|
||
|
||
type Msg struct {
|
||
model.DeletedModel
|
||
|
||
CreateTime *time.Time `json:"createTime"`
|
||
CreatorId uint64 `json:"creatorId"`
|
||
Creator string `json:"creator" gorm:"size:50"`
|
||
|
||
Type int8 `json:"type"`
|
||
Msg string `json:"msg" gorm:"size:2000"`
|
||
RecipientId int64 `json:"recipientId"` // 接收人id,-1为所有接收
|
||
}
|
||
|
||
func (a *Msg) TableName() string {
|
||
return "t_sys_msg"
|
||
}
|