UserMessageMod

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(args ArgsCreate)

Create 创建新的消息

func CreateSystemToAllUser

func CreateSystemToAllUser(waitSendAt time.Time, title, content string, fileID []int64, params CoreSQLConfig.FieldsConfigsType)

CreateSystemToAllUser 发送全局用户消息

func CreateSystemToUser

func CreateSystemToUser(waitSendAt time.Time, receiveUserID int64, title, content string, fileID []int64, params CoreSQLConfig.FieldsConfigsType)

CreateSystemToUser 发送系统消息

Types

type ArgsCreate

type ArgsCreate struct {
	//预计发送时间
	WaitSendAt time.Time `json:"waitSendAt" check:"isoTime" empty:"true"`
	//发送人
	// 如果为0则为系统消息,同时自动跳过时间差验证机制
	SendUserID int64 `json:"sendUserID" check:"id"`
	//接收人
	ReceiveUserID int64 `json:"receiveUserID" check:"id"`
	//标题
	Title string `json:"title" check:"des" min:"1" max:"300"`
	//内容
	Content string `json:"content" check:"des" min:"1" max:"1500"`
	//附件文件列
	Files []int64 `json:"files" check:"ids" empty:"true"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `json:"params"`
}

ArgsCreate 创建新的消息参数

Jump to

Keyboard shortcuts

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