messages

package
v0.0.0-...-887e490 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMessages

func AddMessages(upd Messages) error

func ChangeMessagesStatus

func ChangeMessagesStatus(id int64, view int) error

func ChangeMessagesStatusAll

func ChangeMessagesStatusAll(touserid int64) error

func CountMessages

func CountMessages(condArr map[string]string) int64

统计数量

func DeleteMessages

func DeleteMessages(ids string) error

Types

type Messages

type Messages struct {
	Id       int64 `orm:"pk;column(msgid);"`
	Userid   int64
	Touserid int64
	Type     int
	Subtype  int
	Title    string
	Url      string
	View     int
	Created  int64
}

func ListMessages

func ListMessages(condArr map[string]string, page int, offset int) (num int64, err error, msg []Messages)

func (*Messages) TableName

func (this *Messages) TableName() string

Jump to

Keyboard shortcuts

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