usernote

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

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

func (*Entity) DeleteNote

func (e *Entity) DeleteNote(ctx context.Context, ownerUserId, targetUserId int64) error

func (*Entity) GetNote

func (e *Entity) GetNote(ctx context.Context, ownerUserId, targetUserId int64) (model.UserNote, error)

func (*Entity) UpsertNote

func (e *Entity) UpsertNote(ctx context.Context, ownerUserId, targetUserId int64, note string) error

type UserNote

type UserNote interface {
	GetNote(ctx context.Context, ownerUserId, targetUserId int64) (model.UserNote, error)
	UpsertNote(ctx context.Context, ownerUserId, targetUserId int64, note string) error
	DeleteNote(ctx context.Context, ownerUserId, targetUserId int64) error
}

func New

func New(c *sqlx.DB) UserNote

Jump to

Keyboard shortcuts

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