dal

package
v0.0.0-...-69bdcc1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUser

func DeleteUser(ctx context.Context, user *model.User) error

func GetConfig

func GetConfig(ctx context.Context, configKey string) (*model.Config, error)

func QueryFirstUser

func QueryFirstUser(ctx context.Context, param *QueryUserParam) (*model.User, error)

func QueryUserPage

func QueryUserPage(ctx context.Context, param *QueryUserParam) ([]*model.User, int64, error)

func SaveConfig

func SaveConfig(ctx context.Context, configDO *model.Config) error

func SaveUser

func SaveUser(ctx context.Context, user *model.User, param SaveUserParam) error

func UpdateAuthVersion

func UpdateAuthVersion(ctx context.Context, user *model.User) error

func UpdateConfig

func UpdateConfig(ctx context.Context, configDO *model.Config) error

Types

type QueryUserParam

type QueryUserParam struct {
	*comm.Pager
	IdEq         int64
	IdGt         int64
	IdLt         int64
	NameEq       string
	GenderEq     string
	StatusEq     int64
	OmitHeader   bool
	OmitPassword bool
}

type SaveUserParam

type SaveUserParam struct {
	OmitHeader        bool
	OmitPassword      bool
	OmitAuthVersion   bool
	SelectAuthVersion bool
}

Jump to

Keyboard shortcuts

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