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

23 lines
407 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"`
Type int `json:"type"`
Msg string `json:"msg"`
RecipientId int64 `json:"recipientId"` // 接受者id
}
func (a *Msg) TableName() string {
return "t_sys_msg"
}