adminuser

package
v1.15.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package adminuser implements the admin-side account management subdomain of the identity module: user CRUD, auth methods, devices and login logs. Only the module facade may reach it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchDeleteUserLogic

type BatchDeleteUserLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*BatchDeleteUserLogic) BatchDeleteUser

func (l *BatchDeleteUserLogic) BatchDeleteUser(req *dto.BatchDeleteUserRequest) error

type CreateUserAuthMethodLogic

type CreateUserAuthMethodLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*CreateUserAuthMethodLogic) CreateUserAuthMethod

func (l *CreateUserAuthMethodLogic) CreateUserAuthMethod(req *dto.CreateUserAuthMethodRequest) error

type CreateUserLogic

type CreateUserLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*CreateUserLogic) CreateUser

func (l *CreateUserLogic) CreateUser(req *dto.CreateUserRequest) error

type CurrentUserLogic

type CurrentUserLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*CurrentUserLogic) CurrentUser

func (l *CurrentUserLogic) CurrentUser() (*dto.User, error)

type DeleteUserAuthMethodLogic

type DeleteUserAuthMethodLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*DeleteUserAuthMethodLogic) DeleteUserAuthMethod

func (l *DeleteUserAuthMethodLogic) DeleteUserAuthMethod(req *dto.DeleteUserAuthMethodRequest) error

type DeleteUserDeviceLogic

type DeleteUserDeviceLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*DeleteUserDeviceLogic) DeleteUserDevice

func (l *DeleteUserDeviceLogic) DeleteUserDevice(req *dto.DeleteUserDeivceRequest) error

type DeleteUserLogic

type DeleteUserLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*DeleteUserLogic) DeleteUser

func (l *DeleteUserLogic) DeleteUser(req *dto.GetDetailRequest) error

type Deps

type Deps struct {
	Users     repository.UserRepo
	UserAuths repository.UserAuthRepo
	Devices   repository.UserDeviceRepo
	Cache     repository.UserCacheRepo
	// UserSubs/Plans/Traffic/Logs are read ports onto the subscription,
	// network and platform domains for the admin detail views.
	UserSubs repository.UserSubscriptionRepo
	Plans    repository.SubscribeRepo
	Traffic  repository.TrafficRepo
	Logs     repository.LogRepo
	// Wallet is the read port onto the billing domain: the admin views show
	// wallet values from the authoritative table, not the legacy user
	// columns (ADR-001 step 5).
	Wallet repository.WalletRepo
	Store  repository.Store
	// KickDevice force-disconnects a bound device.
	KickDevice func(userID int64, identifier string)
}

type GetUserAuthMethodLogic

type GetUserAuthMethodLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*GetUserAuthMethodLogic) GetUserAuthMethod

type GetUserDetailLogic

type GetUserDetailLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*GetUserDetailLogic) GetUserDetail

func (l *GetUserDetailLogic) GetUserDetail(req *dto.GetDetailRequest) (*dto.User, error)

type GetUserListLogic

type GetUserListLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*GetUserListLogic) GetUserList

type GetUserLoginLogsLogic

type GetUserLoginLogsLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*GetUserLoginLogsLogic) GetUserLoginLogs

func (l *GetUserLoginLogsLogic) GetUserLoginLogs(req *dto.GetUserLoginLogsRequest) (resp *dto.GetUserLoginLogsResponse, err error)

type KickOfflineByUserDeviceLogic

type KickOfflineByUserDeviceLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*KickOfflineByUserDeviceLogic) KickOfflineByUserDevice

func (l *KickOfflineByUserDeviceLogic) KickOfflineByUserDevice(req *dto.KickOfflineRequest) error

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(deps Deps) *Service

func (*Service) BatchDeleteUser

func (s *Service) BatchDeleteUser(ctx context.Context, req *dto.BatchDeleteUserRequest) error

func (*Service) CreateUser

func (s *Service) CreateUser(ctx context.Context, req *dto.CreateUserRequest) error

func (*Service) CreateUserAuthMethod

func (s *Service) CreateUserAuthMethod(ctx context.Context, req *dto.CreateUserAuthMethodRequest) error

func (*Service) CurrentUser

func (s *Service) CurrentUser(ctx context.Context) (*dto.User, error)

func (*Service) DeleteUser

func (s *Service) DeleteUser(ctx context.Context, req *dto.GetDetailRequest) error

func (*Service) DeleteUserAuthMethod

func (s *Service) DeleteUserAuthMethod(ctx context.Context, req *dto.DeleteUserAuthMethodRequest) error

func (*Service) DeleteUserDevice

func (s *Service) DeleteUserDevice(ctx context.Context, req *dto.DeleteUserDeivceRequest) error

func (*Service) GetUserAuthMethod

func (*Service) GetUserDetail

func (s *Service) GetUserDetail(ctx context.Context, req *dto.GetDetailRequest) (*dto.User, error)

func (*Service) GetUserList

func (s *Service) GetUserList(ctx context.Context, req *dto.GetUserListRequest) (*dto.GetUserListResponse, error)

func (*Service) GetUserLoginLogs

func (*Service) KickOfflineByUserDevice

func (s *Service) KickOfflineByUserDevice(ctx context.Context, req *dto.KickOfflineRequest) error

func (*Service) UpdateUserAuthMethod

func (s *Service) UpdateUserAuthMethod(ctx context.Context, req *dto.UpdateUserAuthMethodRequest) error

func (*Service) UpdateUserBasicInfo

func (s *Service) UpdateUserBasicInfo(ctx context.Context, req *dto.UpdateUserBasiceInfoRequest) error

func (*Service) UpdateUserDevice

func (s *Service) UpdateUserDevice(ctx context.Context, req *dto.UserDevice) error

func (*Service) UpdateUserNotifySetting

func (s *Service) UpdateUserNotifySetting(ctx context.Context, req *dto.UpdateUserNotifySettingRequest) error

type UpdateUserAuthMethodLogic

type UpdateUserAuthMethodLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*UpdateUserAuthMethodLogic) UpdateUserAuthMethod

func (l *UpdateUserAuthMethodLogic) UpdateUserAuthMethod(req *dto.UpdateUserAuthMethodRequest) error

type UpdateUserBasicInfoLogic

type UpdateUserBasicInfoLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*UpdateUserBasicInfoLogic) UpdateUserBasicInfo

func (l *UpdateUserBasicInfoLogic) UpdateUserBasicInfo(req *dto.UpdateUserBasiceInfoRequest) error

type UpdateUserDeviceLogic

type UpdateUserDeviceLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*UpdateUserDeviceLogic) UpdateUserDevice

func (l *UpdateUserDeviceLogic) UpdateUserDevice(req *dto.UserDevice) error

type UpdateUserNotifySettingLogic

type UpdateUserNotifySettingLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*UpdateUserNotifySettingLogic) UpdateUserNotifySetting

func (l *UpdateUserNotifySettingLogic) UpdateUserNotifySetting(req *dto.UpdateUserNotifySettingRequest) error

Jump to

Keyboard shortcuts

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