dao

package
v0.0.0-...-a783adc Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMsgTplDao

type IMsgTplDao interface {
	FindMsgTplByName(ctx context.Context, name string, recipientType uint) (*MessageTemplate, error)
}

type MessageTemplate

type MessageTemplate struct {
	Id      string `bson:"_id"`
	Name    string `bson:"name"`
	Title   string `bson:"title"`
	Content string `bson:"content"`
	// 0 未激活,1 激活
	Active uint `bson:"active"`
	// 0 webmaster 站长, 1 user 用户
	RecipientType uint  `bson:"recipient_type"`
	CreateTime    int64 `bson:"create_time"`
	UpdateTime    int64 `bson:"update_time"`
}

type MsgTplDao

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

func NewMsgTplDao

func NewMsgTplDao(db *mongo.Database) *MsgTplDao

func (*MsgTplDao) FindMsgTplByName

func (d *MsgTplDao) FindMsgTplByName(ctx context.Context, name string, recipientType uint) (*MessageTemplate, error)

Jump to

Keyboard shortcuts

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