repository

package
v0.0.0-...-f638a73 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 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 GroupRepository

type GroupRepository interface {
	SelectGroups() (model.GroupList, error)
	SelectGroupById(int) (*model.GroupInfo, error)
	SelectGroupByName(string) (*model.GroupInfo, error)
	InsertGroup(*model.GroupInfo) error
	UpdateGroupById(int, *model.GroupUpdate) error
	DeleteGroupById(int) error
}

type LoginServiceRepository

type LoginServiceRepository interface {
	SelectLoginServices() model.LoginServiceList
	SelectLoginServiceByUuid(string) (model.LoginService, error)
	InsertLoginService(*model.LoginService) error
	UpdateLoginService(*model.LoginService) error
	DeleteLoginServiceByUuid(string)
}

type Repository

type Repository interface {
	User() UserRepository
	Group() GroupRepository
	Service() ServiceRepository
	LoginService() LoginServiceRepository
}

func New

func New(dbConfig *mysql.Config) Repository

type ServiceRepository

type ServiceRepository interface {
	SelectServices() (model.ServciceList, error)
	SelectServicesByGroup(int) (model.ServciceList, error)
	SelectServiceByAuth(string, string) (*model.ServiceInfo, error)
	InsertService(*model.ServiceInsert) error
	UpdaateServiceByUuid(string, *model.ServiceUpdate) error
	DeleteServiceByUuid(string) error
}

type UserRepository

type UserRepository interface {
	SelectUsers() (model.UserList, error)
	SelectUserByAuth(string, string) (*model.UserInfo, error)
	SelectUserByAccount(string) (*model.UserInfo, error)
	UpdateUserByAccount(string, *model.UserUpdate) error
	UpdateUserAuthByAccount(string, *model.UserAuthUpdate) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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