repo

package
v0.0.0-...-c266f6d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FavorRepo

type FavorRepo interface {
	Get(context.Context, *dto.Query) ([]model.Favor, error)
	Create(context.Context, model.Favor) error
	Del(context.Context, model.Favor) error
	Sites(context.Context, *dto.Query) []string
}

type NodeRepo

type NodeRepo interface {
	Get(context.Context, *dto.Query) ([]model.Node, error)
	Create(context.Context, model.Node) error
	Update(context.Context, model.Node, map[string]interface{}) error
	Del(context.Context, model.Node) error
}

type SiteRepo

type SiteRepo interface {
	Get(context.Context, *dto.Query) ([]model.Site, error)
	Create(context.Context, model.Site) error
	Update(context.Context, model.Site, map[string]interface{}) error
	Del(context.Context, model.Site) error
	GetNews(context.Context, string, string) (model.News, error)
	SaveNews(context.Context, string, string, string) error
}

type UserRepo

type UserRepo interface {
	GetUsers(context.Context, *dto.Query) ([]model.User, error)
	GetUser(context.Context, *dto.Query) (model.User, error)
	CreateUser(context.Context, model.User) error
	Update(context.Context, model.User, map[string]interface{}) error
}

User 用户相关行为

Jump to

Keyboard shortcuts

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