mbox

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MBox

type MBox struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *MBox

func (*MBox) CreateMBox

func (o *MBox) CreateMBox(createReq *apistructs.CreateMBoxRequest) error

func (*MBox) GetMBox

func (o *MBox) GetMBox(id int64, orgID int64, userID string) (*apistructs.MBox, error)

func (*MBox) GetMBoxStats

func (o *MBox) GetMBoxStats(orgID int64, userID string) (*apistructs.QueryMBoxStatsData, error)

func (*MBox) OneClickRead added in v1.3.0

func (o *MBox) OneClickRead(orgID int64, userID string) error

func (*MBox) QueryMBox

func (o *MBox) QueryMBox(queryReq *apistructs.QueryMBoxRequest) (*apistructs.QueryMBoxData, error)

func (*MBox) SetMBoxReadStatus

func (o *MBox) SetMBoxReadStatus(request *apistructs.SetMBoxReadStatusRequest) error

type Option

type Option func(*MBox)

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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