repository

package
v0.0.0-...-a0d0ce5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxPageSize = 100
	MinPageSize = 10
)

Variables

This section is empty.

Functions

func DecodeCursor

func DecodeCursor(encodedTime string) (time.Time, error)

DecodeCursor will decode cursor from user for mysql

func EncodeCursor

func EncodeCursor(t time.Time) string

EncodeCursor will encode cursor from mysql to user

func NewArticleRepository

func NewArticleRepository(db domain.ArticleDBRepository, cache domain.ArticleCache, userRepo domain.UserRepository) *articleRepository

NewArticleRepository 创建协调层repository

func PageVerify

func PageVerify(pageSize *int64)

PageVerify 分页查询 过滤器

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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