Documentation ¶
Index ¶
- type PermissionRepo
- func (p *PermissionRepo) AutoMigrate(ctx context.Context) error
- func (p *PermissionRepo) FindByAuthCode(ctx context.Context, authCode string) (permissionPO po.Permission, exist bool, err error)
- func (p *PermissionRepo) ListByAuthCodes(ctx context.Context, authCodes []string) (permissionPOs []po.Permission, err error)
- func (p *PermissionRepo) Save(ctx context.Context, permissionPO po.Permission) (defs.ID, error)
- type PermissionRepoIOCInterface
- type RolePermissionRelRepo
- func (r *RolePermissionRelRepo) AutoMigrate(ctx context.Context) error
- func (r *RolePermissionRelRepo) BatchDelete(ctx context.Context, pos []po.RolePermissionRel) (err error)
- func (r *RolePermissionRelRepo) BatchInsert(ctx context.Context, pos []po.RolePermissionRel) (err error)
- func (r *RolePermissionRelRepo) BatchUpdate(ctx context.Context, pos []po.RolePermissionRel) (err error)
- func (r *RolePermissionRelRepo) ListByRoleCode(ctx context.Context, roleCode string) (rels []po.RolePermissionRel, err error)
- func (r *RolePermissionRelRepo) ListByRoleCodes(ctx context.Context, roleCodes []string) (rels []po.RolePermissionRel, err error)
- func (r *RolePermissionRelRepo) ListByRoleID(ctx context.Context, roleID defs.ID) (rels []po.RolePermissionRel, err error)
- type RolePermissionRelRepoConstructFunc
- type RolePermissionRelRepoIOCInterface
- type RoleRepo
- func (r *RoleRepo) AutoMigrate(ctx context.Context) error
- func (r *RoleRepo) FindByID(ctx context.Context, id defs.ID) (rolePO po.Role, exist bool, err error)
- func (r *RoleRepo) FindByRoleCode(ctx context.Context, roleCode string) (rolePO po.Role, exist bool, err error)
- func (r *RoleRepo) ListByRoleCodes(ctx context.Context, roleCodes []string) (rolePOs []po.Role, err error)
- func (r *RoleRepo) Save(ctx context.Context, rolePO po.Role) (defs.ID, error)
- type RoleRepoConstructFunc
- type RoleRepoIOCInterface
- type TenantRepo
- func (t *TenantRepo) AutoMigrate(ctx context.Context) error
- func (t *TenantRepo) FindByTenantID(ctx context.Context, tenantID string) (tenantPO po.Tenant, exist bool, err error)
- func (t *TenantRepo) ListByTenantIDs(ctx context.Context, tenantIDs []string) (tenantPOs []po.Tenant, err error)
- func (t *TenantRepo) Save(ctx context.Context, tenantPO po.Tenant) (defs.ID, error)
- type TenantRepoIOCInterface
- type ThisPermissionRepo
- type ThisRolePermissionRelRepo
- type ThisRoleRepo
- type ThisTenantRepo
- type ThisUserRepo
- type ThisUserRoleRelRepo
- type UserRepo
- func (u *UserRepo) AutoMigrate(ctx context.Context) error
- func (u *UserRepo) FindByID(ctx context.Context, id defs.ID) (userPO po.User, exist bool, err error)
- func (u *UserRepo) FindByUserName(ctx context.Context, userName string) (userPO po.User, exist bool, err error)
- func (u *UserRepo) ListByByUserNames(ctx context.Context, userNames []string) (userPOs []po.User, err error)
- func (u *UserRepo) Save(ctx context.Context, userPO po.User) (defs.ID, error)
- type UserRepoConstructFunc
- type UserRepoIOCInterface
- type UserRoleRelRepo
- func (u *UserRoleRelRepo) AutoMigrate(ctx context.Context) error
- func (u *UserRoleRelRepo) BatchDelete(ctx context.Context, pos []po.UserRoleRel) (err error)
- func (u *UserRoleRelRepo) BatchInsert(ctx context.Context, pos []po.UserRoleRel) (err error)
- func (u *UserRoleRelRepo) BatchUpdate(ctx context.Context, pos []po.UserRoleRel) (err error)
- func (u *UserRoleRelRepo) ListByUserID(ctx context.Context, userID defs.ID) (rels []po.UserRoleRel, err error)
- type UserRoleRelRepoConstructFunc
- type UserRoleRelRepoIOCInterface
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 InitRoleRepo ¶
func (*RoleRepo) FindByRoleCode ¶
func (*RoleRepo) ListByRoleCodes ¶
type RoleRepoConstructFunc ¶
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 (*TenantRepo) ListByTenantIDs ¶
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 ¶
func (t *ThisPermissionRepo) This() PermissionRepoIOCInterface
type ThisRolePermissionRelRepo ¶
type ThisRolePermissionRelRepo struct { }
func (*ThisRolePermissionRelRepo) This ¶
func (t *ThisRolePermissionRelRepo) This() RolePermissionRelRepoIOCInterface
type ThisRoleRepo ¶
type ThisRoleRepo struct { }
func (*ThisRoleRepo) This ¶
func (t *ThisRoleRepo) This() RoleRepoIOCInterface
type ThisTenantRepo ¶
type ThisTenantRepo struct { }
func (*ThisTenantRepo) This ¶
func (t *ThisTenantRepo) This() TenantRepoIOCInterface
type ThisUserRepo ¶
type ThisUserRepo struct { }
func (*ThisUserRepo) This ¶
func (t *ThisUserRepo) This() UserRepoIOCInterface
type ThisUserRoleRelRepo ¶
type ThisUserRoleRelRepo struct { }
func (*ThisUserRoleRelRepo) This ¶
func (t *ThisUserRoleRelRepo) This() UserRoleRelRepoIOCInterface
type UserRepo ¶
type UserRepo struct {
TablePre string
}
func GetUserRepoSingleton ¶
func InitUserRepo ¶
func (*UserRepo) FindByUserName ¶
func (*UserRepo) ListByByUserNames ¶
type UserRepoConstructFunc ¶
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.