client

package
v0.0.0-...-b89eba7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleReadMsgParams

type HandleReadMsgParams struct {
	MsgIDs     []int64 `json:"msg_ids" validate:"required,gte=1,lte=20"` // 消息ID
	RelationID int64   `json:"relation_id" validate:"required,gte=1"`    // 这些消息所属的关系ID
}

type HandleSendMsgParams

type HandleSendMsgParams struct {
	RelationID int64            `json:"relation_id" validate:"required,gte=1"`          // 关系ID
	MsgContent string           `json:"msg_content" validate:"required,gte=1,lte=1000"` // 消息内容
	MsgExtend  *model.MsgExtend `json:"msg_extend"`                                     // 消息扩展信息
	RlyMsgID   int64            `json:"rly_msg_id"`                                     // 回复消息ID (如果是回复消息,则此字段大于0)
}

type HandleSendMsgRly

type HandleSendMsgRly struct {
	MsgID    int64     `json:"msg_id"`    // 消息ID
	CreateAt time.Time `json:"create_at"` // 创建时间
}

type TestParams

type TestParams struct {
	Name string `json:"name" validate:"required,gte=1,lte=50"` // 姓名
	Age  string `json:"age" validate:"required,gte=1"`         // 年龄
}

type TestRly

type TestRly struct {
	Name    string `json:"name"`    // 姓名
	Age     string `json:"age"`     // 年龄
	ID      string `json:"id"`      // ID
	Address string `json:"address"` // 地址
}

Jump to

Keyboard shortcuts

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