Files
mayfly-go/server/internal/msg/domain/entity/msg.go

23 lines
459 B
Go
Raw Normal View History

2021-09-11 14:04:09 +08:00
package entity
import (
"mayfly-go/pkg/model"
2021-09-11 14:04:09 +08:00
"time"
)
type Msg struct {
model.DeletedModel
2021-09-11 14:04:09 +08:00
CreateTime *time.Time `json:"createTime"`
CreatorId uint64 `json:"creatorId"`
Creator string `json:"creator" gorm:"size:50"`
2021-09-11 14:04:09 +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"
}