repo

package
v0.0.0-...-9fd2f02 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionRepo

type PermissionRepo struct {
}

func GetPermissionRepoSingleton

func GetPermissionRepoSingleton() (*PermissionRepo, error)

func (*PermissionRepo) AutoMigrate

func (p *PermissionRepo) AutoMigrate(ctx context.Context) error

func (*PermissionRepo) FindByAuthCode

func (p *PermissionRepo) FindByAuthCode(ctx context.Context, authCode string) (permissionPO po.Permission, exist bool, err error)

func (*PermissionRepo) ListByAuthCodes

func (p *PermissionRepo) ListByAuthCodes(ctx context.Context, authCodes []string) (permissionPOs []po.Permission, err error)

func (*PermissionRepo) Save

func (p *PermissionRepo) Save(ctx context.Context, permissionPO po.Permission) (defs.ID, error)

type PermissionRepoIOCInterface

type PermissionRepoIOCInterface interface {
	AutoMigrate(ctx contextx.Context) error
	FindByAuthCode(ctx contextx.Context, authCode string) (permissionPO po.Permission, exist bool, err error)
	ListByAuthCodes(ctx contextx.Context, authCodes []string) (permissionPOs []po.Permission, err error)
	Save(ctx contextx.Context, permissionPO po.Permission) (defs.ID, error)
}

func GetPermissionRepoIOCInterfaceSingleton

func GetPermissionRepoIOCInterfaceSingleton() (PermissionRepoIOCInterface, error)

type RolePermissionRelRepo

type RolePermissionRelRepo struct {
	TablePre string
}

func GetRolePermissionRelRepoSingleton

func GetRolePermissionRelRepoSingleton() (*RolePermissionRelRepo, error)

func InitRolePermissionRelRepo

func InitRolePermissionRelRepo(r *RolePermissionRelRepo) (*RolePermissionRelRepo, error)

func (*RolePermissionRelRepo) AutoMigrate

func (r *RolePermissionRelRepo) AutoMigrate(ctx context.Context) error

func (*RolePermissionRelRepo) BatchDelete

func (r *RolePermissionRelRepo) BatchDelete(ctx context.Context, pos []po.RolePermissionRel) (err error)

func (*RolePermissionRelRepo) BatchInsert

func (r *RolePermissionRelRepo) BatchInsert(ctx context.Context, pos []po.RolePermissionRel) (err error)

func (*RolePermissionRelRepo) BatchUpdate

func (r *RolePermissionRelRepo) BatchUpdate(ctx context.Context, pos []po.RolePermissionRel) (err error)

func (*RolePermissionRelRepo) ListByRoleCode

func (r *RolePermissionRelRepo) ListByRoleCode(ctx context.Context, roleCode string) (rels []po.RolePermissionRel, err error)

func (*RolePermissionRelRepo) ListByRoleCodes

func (r *RolePermissionRelRepo) ListByRoleCodes(ctx context.Context, roleCodes []string) (rels []po.RolePermissionRel, err error)

func (*RolePermissionRelRepo) ListByRoleID

func (r *RolePermissionRelRepo) ListByRoleID(ctx context.Context, roleID defs.ID) (rels []po.RolePermissionRel, err error)

type RolePermissionRelRepoConstructFunc

type RolePermissionRelRepoConstructFunc func(impl *RolePermissionRelRepo) (*RolePermissionRelRepo, error)

type RolePermissionRelRepoIOCInterface

type RolePermissionRelRepoIOCInterface interface {
	AutoMigrate(ctx contextx.Context) error
	ListByRoleID(ctx contextx.Context, roleID defs.ID) (rels []po.RolePermissionRel, err error)
	ListByRoleCode(ctx contextx.Context, roleCode string) (rels []po.RolePermissionRel, err error)
	ListByRoleCodes(ctx contextx.Context, roleCodes []string) (rels []po.RolePermissionRel, err error)
	BatchInsert(ctx contextx.Context, pos []po.RolePermissionRel) (err error)
	BatchUpdate(ctx contextx.Context, pos []po.RolePermissionRel) (err error)
	BatchDelete(ctx contextx.Context, pos []po.RolePermissionRel) (err error)
}

func GetRolePermissionRelRepoIOCInterfaceSingleton

func GetRolePermissionRelRepoIOCInterfaceSingleton() (RolePermissionRelRepoIOCInterface, error)

type RoleRepo

type RoleRepo struct {
	TablePre string
}

func GetRoleRepoSingleton

func GetRoleRepoSingleton() (*RoleRepo, error)

func InitRoleRepo

func InitRoleRepo(r *RoleRepo) (*RoleRepo, error)

func (*RoleRepo) AutoMigrate

func (r *RoleRepo) AutoMigrate(ctx context.Context) error

func (*RoleRepo) FindByID

func (r *RoleRepo) FindByID(ctx context.Context, id defs.ID) (rolePO po.Role, exist bool, err error)

func (*RoleRepo) FindByRoleCode

func (r *RoleRepo) FindByRoleCode(ctx context.Context, roleCode string) (rolePO po.Role, exist bool, err error)

func (*RoleRepo) ListByRoleCodes

func (r *RoleRepo) ListByRoleCodes(ctx context.Context, roleCodes []string) (rolePOs []po.Role, err error)

func (*RoleRepo) Save

func (r *RoleRepo) Save(ctx context.Context, rolePO po.Role) (defs.ID, error)

type RoleRepoConstructFunc

type RoleRepoConstructFunc func(impl *RoleRepo) (*RoleRepo, error)

type RoleRepoIOCInterface

type RoleRepoIOCInterface interface {
	AutoMigrate(ctx contextx.Context) error
	Save(ctx contextx.Context, rolePO po.Role) (defs.ID, error)
	FindByID(ctx contextx.Context, id defs.ID) (rolePO po.Role, exist bool, err error)
	FindByRoleCode(ctx contextx.Context, roleCode string) (rolePO po.Role, exist bool, err error)
	ListByRoleCodes(ctx contextx.Context, roleCodes []string) (rolePOs []po.Role, err error)
}

func GetRoleRepoIOCInterfaceSingleton

func GetRoleRepoIOCInterfaceSingleton() (RoleRepoIOCInterface, error)

type TenantRepo

type TenantRepo struct {
}

func GetTenantRepoSingleton

func GetTenantRepoSingleton() (*TenantRepo, error)

func (*TenantRepo) AutoMigrate

func (t *TenantRepo) AutoMigrate(ctx context.Context) error

func (*TenantRepo) FindByTenantID

func (t *TenantRepo) FindByTenantID(ctx context.Context, tenantID string) (tenantPO po.Tenant, exist bool, err error)

func (*TenantRepo) ListByTenantIDs

func (t *TenantRepo) ListByTenantIDs(ctx context.Context, tenantIDs []string) (tenantPOs []po.Tenant, err error)

func (*TenantRepo) Save

func (t *TenantRepo) Save(ctx context.Context, tenantPO po.Tenant) (defs.ID, error)

type TenantRepoIOCInterface

type TenantRepoIOCInterface interface {
	AutoMigrate(ctx contextx.Context) error
	FindByTenantID(ctx contextx.Context, tenantID string) (tenantPO po.Tenant, exist bool, err error)
	ListByTenantIDs(ctx contextx.Context, tenantIDs []string) (tenantPOs []po.Tenant, err error)
	Save(ctx contextx.Context, tenantPO po.Tenant) (defs.ID, error)
}

func GetTenantRepoIOCInterfaceSingleton

func GetTenantRepoIOCInterfaceSingleton() (TenantRepoIOCInterface, error)

type ThisPermissionRepo

type ThisPermissionRepo struct {
}

func (*ThisPermissionRepo) This

type ThisRolePermissionRelRepo

type ThisRolePermissionRelRepo struct {
}

func (*ThisRolePermissionRelRepo) This

type ThisRoleRepo

type ThisRoleRepo struct {
}

func (*ThisRoleRepo) This

type ThisTenantRepo

type ThisTenantRepo struct {
}

func (*ThisTenantRepo) This

type ThisUserRepo

type ThisUserRepo struct {
}

func (*ThisUserRepo) This

type ThisUserRoleRelRepo

type ThisUserRoleRelRepo struct {
}

func (*ThisUserRoleRelRepo) This

type UserRepo

type UserRepo struct {
	TablePre string
}

func GetUserRepoSingleton

func GetUserRepoSingleton() (*UserRepo, error)

func InitUserRepo

func InitUserRepo(u *UserRepo) (*UserRepo, error)

func (*UserRepo) AutoMigrate

func (u *UserRepo) AutoMigrate(ctx context.Context) error

func (*UserRepo) FindByID

func (u *UserRepo) FindByID(ctx context.Context, id defs.ID) (userPO po.User, exist bool, err error)

func (*UserRepo) FindByUserName

func (u *UserRepo) FindByUserName(ctx context.Context, userName string) (userPO po.User, exist bool, err error)

func (*UserRepo) ListByByUserNames

func (u *UserRepo) ListByByUserNames(ctx context.Context, userNames []string) (userPOs []po.User, err error)

func (*UserRepo) Save

func (u *UserRepo) Save(ctx context.Context, userPO po.User) (defs.ID, error)

type UserRepoConstructFunc

type UserRepoConstructFunc func(impl *UserRepo) (*UserRepo, error)

type UserRepoIOCInterface

type UserRepoIOCInterface interface {
	AutoMigrate(ctx contextx.Context) error
	Save(ctx contextx.Context, userPO po.User) (defs.ID, error)
	FindByID(ctx contextx.Context, id defs.ID) (userPO po.User, exist bool, err error)
	FindByUserName(ctx contextx.Context, userName string) (userPO po.User, exist bool, err error)
	ListByByUserNames(ctx contextx.Context, userNames []string) (userPOs []po.User, err error)
}

func GetUserRepoIOCInterfaceSingleton

func GetUserRepoIOCInterfaceSingleton() (UserRepoIOCInterface, error)

type UserRoleRelRepo

type UserRoleRelRepo struct {
	TablePre string
}

func GetUserRoleRelRepoSingleton

func GetUserRoleRelRepoSingleton() (*UserRoleRelRepo, error)

func InitUserRoleRelRepo

func InitUserRoleRelRepo(u *UserRoleRelRepo) (*UserRoleRelRepo, error)

func (*UserRoleRelRepo) AutoMigrate

func (u *UserRoleRelRepo) AutoMigrate(ctx context.Context) error

func (*UserRoleRelRepo) BatchDelete

func (u *UserRoleRelRepo) BatchDelete(ctx context.Context, pos []po.UserRoleRel) (err error)

func (*UserRoleRelRepo) BatchInsert

func (u *UserRoleRelRepo) BatchInsert(ctx context.Context, pos []po.UserRoleRel) (err error)

func (*UserRoleRelRepo) BatchUpdate

func (u *UserRoleRelRepo) BatchUpdate(ctx context.Context, pos []po.UserRoleRel) (err error)

func (*UserRoleRelRepo) ListByUserID

func (u *UserRoleRelRepo) ListByUserID(ctx context.Context, userID defs.ID) (rels []po.UserRoleRel, err error)

type UserRoleRelRepoConstructFunc

type UserRoleRelRepoConstructFunc func(impl *UserRoleRelRepo) (*UserRoleRelRepo, error)

type UserRoleRelRepoIOCInterface

type UserRoleRelRepoIOCInterface interface {
	AutoMigrate(ctx contextx.Context) error
	ListByUserID(ctx contextx.Context, userID defs.ID) (rels []po.UserRoleRel, err error)
	BatchInsert(ctx contextx.Context, pos []po.UserRoleRel) (err error)
	BatchUpdate(ctx contextx.Context, pos []po.UserRoleRel) (err error)
	BatchDelete(ctx contextx.Context, pos []po.UserRoleRel) (err error)
}

func GetUserRoleRelRepoIOCInterfaceSingleton

func GetUserRoleRelRepoIOCInterfaceSingleton() (UserRoleRelRepoIOCInterface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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