models

package
v0.0.0-...-9e605f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	// 与数据库交互的实体
	MessageUuid  string    `json:"message_uuid" bson:"messageUuid,omitempty"`
	FromUserName string    `json:"from_user_name" bson:"fromUserName,omitempty"`
	ToUserName   string    `json:"to_user_name" bson:"toUserName,omitempty"`
	Content      string    `json:"content" bson:"content,omitempty"`
	HasBeenRead  bool      `json:"has_been_read" bson:"hasBeenRead"`
	MessageType  string    `json:"message_type" bson:"messageType,omitempty"`
	CreateAt     time.Time `json:"create_at" bson:"createAt,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL