notice

package
v0.0.0-...-cb57d17 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBNotice

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

func NewDBNotice

func NewDBNotice(client *gorm.DB, sf *utils.Snowflake) *DBNotice

func (*DBNotice) CreateNotice

func (d *DBNotice) CreateNotice(ctx context.Context, notice *model.Notice) (err error)

func (*DBNotice) GetNoticeByPage

func (d *DBNotice) GetNoticeByPage(ctx context.Context, pageNum int) (list []model.Notice, err error)

func (*DBNotice) IsURLExists

func (d *DBNotice) IsURLExists(ctx context.Context, url string) (ok bool, err error)

Jump to

Keyboard shortcuts

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