Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LdapService ¶
func NewLdapService ¶
func NewLdapService(conf ldapx.Config) LdapService
type Service ¶
type Service interface {
FindOrCreateByLdap(ctx context.Context, req domain.User) (domain.User, error)
FindOrCreateBySystem(ctx context.Context, username, password, displayName string) (domain.User, error)
ListUser(ctx context.Context, offset, limit int64) ([]domain.User, int64, error)
UpdateUser(ctx context.Context, req domain.User) (int64, error)
Login(ctx context.Context, username, password string) (domain.User, error)
AddRoleBind(ctx context.Context, id int64, roleCodes []string) (int64, error)
FindById(ctx context.Context, id int64) (domain.User, error)
FindByUsername(ctx context.Context, username string) (domain.User, error)
FindByUsernameRegex(ctx context.Context, offset, limit int64, username string) ([]domain.User, int64, error)
FindByDepartmentId(ctx context.Context, offset, limit int64, departmentId int64) ([]domain.User, int64, error)
FindByUsernames(ctx context.Context, uns []string) ([]domain.User, error)
PipelineDepartmentId(ctx context.Context) ([]domain.UserCombination, error)
FindByWechatUser(ctx context.Context, wechatUserId string) (domain.User, error)
}
func NewService ¶
func NewService(repo repository.UserRepository) Service
Click to show internal directories.
Click to hide internal directories.