message

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(data *CountParam) (int64, error)

func Create

func Create(data *CreateParam) (uint, error)

func Delete

func Delete(data *DeleteParam) error

func Fetch

func Fetch(data *FetchParam) (*tables.Message, error)

func FetchAll

func FetchAll(data *FetchAllParam) ([]*tables.Message, error)

func Replace

func Replace(data *ReplaceParam) error

func Shrink

func Shrink(days int)

func Update

func Update(data *UpdateParam) error

Types

type CountParam

type CountParam = FetchAllParam

type CreateParam

type CreateParam struct {
	Id      uint64 `json:"id" binding:"required"`
	IsSelf  bool   `json:"is_self"`
	IsGroup bool   `json:"is_group"`
	Type    uint32 `json:"type"`
	Ts      uint32 `json:"ts"`
	Roomid  string `json:"roomid"`
	Content string `json:"content"`
	Sender  string `json:"sender"`
	Sign    string `json:"sign"`
	Thumb   string `json:"thumb"`
	Extra   string `json:"extra"`
	Xml     string `json:"xml"`
	Remark  string `json:"remark"`
}

type DeleteParam

type DeleteParam = FetchParam

type FetchAllParam

type FetchAllParam struct {
	Sender string `json:"sender"`
	Roomid string `json:"roomid"`
}

type FetchParam

type FetchParam struct {
	Id uint64 `json:"id" binding:"required"`
}

type ReplaceParam

type ReplaceParam = CreateParam

type UpdateParam

type UpdateParam = CreateParam

Jump to

Keyboard shortcuts

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