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

23 lines
459 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"
}