Documentation
¶
Index ¶
- type AccountRepository
- func (m *AccountRepository) Create(ctx context.Context, tenantID string, input domain.CreateAccountInput) (*domain.Account, error)
- func (m *AccountRepository) Delete(ctx context.Context, tenantID, id string) error
- func (m *AccountRepository) GetByID(ctx context.Context, tenantID, id string) (*domain.Account, error)
- func (m *AccountRepository) ListByTenant(ctx context.Context, tenantID string) ([]domain.Account, error)
- func (m *AccountRepository) ListByUser(ctx context.Context, tenantID, userID string) ([]domain.Account, error)
- func (m *AccountRepository) Update(ctx context.Context, tenantID, id string, input domain.UpdateAccountInput) (*domain.Account, error)
- func (m *AccountRepository) UpdateBalance(ctx context.Context, tenantID, id string, newBalanceCents int64) error
- type AccountService
- func (m *AccountService) Create(ctx context.Context, tenantID string, input domain.CreateAccountInput) (*domain.Account, error)
- func (m *AccountService) Delete(ctx context.Context, tenantID, id string) error
- func (m *AccountService) GetByID(ctx context.Context, tenantID, id string) (*domain.Account, error)
- func (m *AccountService) ListByTenant(ctx context.Context, tenantID string) ([]domain.Account, error)
- func (m *AccountService) ListByUser(ctx context.Context, tenantID, userID string) ([]domain.Account, error)
- func (m *AccountService) Update(ctx context.Context, tenantID, id string, input domain.UpdateAccountInput) (*domain.Account, error)
- type AdminAuditRepository
- type AdminService
- func (m *AdminService) ForceDeleteUser(ctx context.Context, id string) error
- func (m *AdminService) GetTenantByID(ctx context.Context, id string) (*domain.Tenant, error)
- func (m *AdminService) GetUserByID(ctx context.Context, id string) (*domain.User, error)
- func (m *AdminService) HardDeleteTenant(ctx context.Context, id, confirmationToken string) error
- func (m *AdminService) ListAllTenants(ctx context.Context, withDeleted bool) ([]domain.Tenant, error)
- func (m *AdminService) ListAllUsers(ctx context.Context) ([]domain.User, error)
- func (m *AdminService) ListAuditLogs(ctx context.Context, params domain.ListAuditLogsParams) ([]domain.AuditLog, error)
- func (m *AdminService) RestoreTenant(ctx context.Context, id string) error
- func (m *AdminService) SuspendTenant(ctx context.Context, id string) error
- func (m *AdminService) UpdateTenantPlan(ctx context.Context, id string, plan domain.TenantPlan) (*domain.Tenant, error)
- type AdminTenantRepository
- func (m *AdminTenantRepository) GetByID(ctx context.Context, id string) (*domain.Tenant, error)
- func (m *AdminTenantRepository) HardDelete(ctx context.Context, id string) error
- func (m *AdminTenantRepository) ListAll(ctx context.Context, withDeleted bool) ([]domain.Tenant, error)
- func (m *AdminTenantRepository) Restore(ctx context.Context, id string) error
- func (m *AdminTenantRepository) Suspend(ctx context.Context, id string) error
- func (m *AdminTenantRepository) UpdatePlan(ctx context.Context, id string, plan domain.TenantPlan) (*domain.Tenant, error)
- type AdminUserRepository
- type AuditRepository
- func (m *AuditRepository) Create(ctx context.Context, input domain.CreateAuditLogInput) (*domain.AuditLog, error)
- func (m *AuditRepository) ListByEntity(ctx context.Context, tenantID, entityType, entityID string) ([]domain.AuditLog, error)
- func (m *AuditRepository) ListByTenant(ctx context.Context, tenantID string, params domain.ListAuditLogsParams) ([]domain.AuditLog, error)
- type AuthRepository
- func (m *AuthRepository) CreateOTPRequest(ctx context.Context, input domain.CreateOTPRequestInput) (*domain.OTPRequest, error)
- func (m *AuthRepository) DeleteExpiredOTPRequests(ctx context.Context) error
- func (m *AuthRepository) GetActiveOTPRequest(ctx context.Context, email string) (*domain.OTPRequest, error)
- func (m *AuthRepository) MarkOTPUsed(ctx context.Context, id string) error
- type AuthService
- type CategoryRepository
- func (m *CategoryRepository) Create(ctx context.Context, tenantID string, input domain.CreateCategoryInput) (*domain.Category, error)
- func (m *CategoryRepository) Delete(ctx context.Context, tenantID, id string) error
- func (m *CategoryRepository) GetByID(ctx context.Context, tenantID, id string) (*domain.Category, error)
- func (m *CategoryRepository) ListByTenant(ctx context.Context, tenantID string) ([]domain.Category, error)
- func (m *CategoryRepository) ListChildren(ctx context.Context, tenantID, parentID string) ([]domain.Category, error)
- func (m *CategoryRepository) Update(ctx context.Context, tenantID, id string, input domain.UpdateCategoryInput) (*domain.Category, error)
- type CategoryService
- func (m *CategoryService) Create(ctx context.Context, tenantID string, input domain.CreateCategoryInput) (*domain.Category, error)
- func (m *CategoryService) Delete(ctx context.Context, tenantID, id string) error
- func (m *CategoryService) GetByID(ctx context.Context, tenantID, id string) (*domain.Category, error)
- func (m *CategoryService) ListByTenant(ctx context.Context, tenantID string) ([]domain.Category, error)
- func (m *CategoryService) ListChildren(ctx context.Context, tenantID, parentID string) ([]domain.Category, error)
- func (m *CategoryService) Update(ctx context.Context, tenantID, id string, input domain.UpdateCategoryInput) (*domain.Category, error)
- type IdempotencyStore
- func (m *IdempotencyStore) Get(ctx context.Context, key string) (*domain.CachedResponse, error)
- func (m *IdempotencyStore) SetLocked(ctx context.Context, key string, ttl time.Duration) (bool, error)
- func (m *IdempotencyStore) SetResponse(ctx context.Context, key string, resp domain.CachedResponse, ttl time.Duration) error
- type Mailer
- type Querier
- func (m *Querier) AdminForceDeleteUser(ctx context.Context, id string) error
- func (m *Querier) AdminGetTenantByID(ctx context.Context, id string) (sqlc.Tenant, error)
- func (m *Querier) AdminGetUserByID(ctx context.Context, id string) (sqlc.User, error)
- func (m *Querier) AdminHardDeleteTenant(ctx context.Context, id string) error
- func (m *Querier) AdminListAllAuditLogs(ctx context.Context, arg sqlc.AdminListAllAuditLogsParams) ([]sqlc.AuditLog, error)
- func (m *Querier) AdminListAllTenants(ctx context.Context, withDeleted bool) ([]sqlc.Tenant, error)
- func (m *Querier) AdminListAllUsers(ctx context.Context) ([]sqlc.User, error)
- func (m *Querier) AdminRestoreTenant(ctx context.Context, id string) error
- func (m *Querier) AdminSuspendTenant(ctx context.Context, id string) error
- func (m *Querier) AdminUpdateTenantPlan(ctx context.Context, arg sqlc.AdminUpdateTenantPlanParams) (sqlc.Tenant, error)
- func (m *Querier) CreateAccount(ctx context.Context, arg sqlc.CreateAccountParams) (sqlc.Account, error)
- func (m *Querier) CreateAuditLog(ctx context.Context, arg sqlc.CreateAuditLogParams) (sqlc.AuditLog, error)
- func (m *Querier) CreateCategory(ctx context.Context, arg sqlc.CreateCategoryParams) (sqlc.Category, error)
- func (m *Querier) CreateOTPRequest(ctx context.Context, arg sqlc.CreateOTPRequestParams) (sqlc.OtpRequest, error)
- func (m *Querier) CreateTenant(ctx context.Context, arg sqlc.CreateTenantParams) (sqlc.Tenant, error)
- func (m *Querier) CreateTransaction(ctx context.Context, arg sqlc.CreateTransactionParams) (sqlc.Transaction, error)
- func (m *Querier) CreateUser(ctx context.Context, arg sqlc.CreateUserParams) (sqlc.User, error)
- func (m *Querier) DeleteExpiredOTPs(ctx context.Context) error
- func (m *Querier) GetAccountByID(ctx context.Context, arg sqlc.GetAccountByIDParams) (sqlc.Account, error)
- func (m *Querier) GetActiveOTPByEmail(ctx context.Context, email string) (sqlc.OtpRequest, error)
- func (m *Querier) GetCategoryByID(ctx context.Context, arg sqlc.GetCategoryByIDParams) (sqlc.Category, error)
- func (m *Querier) GetTenantByID(ctx context.Context, id string) (sqlc.Tenant, error)
- func (m *Querier) GetTransactionByID(ctx context.Context, arg sqlc.GetTransactionByIDParams) (sqlc.Transaction, error)
- func (m *Querier) GetUserByEmail(ctx context.Context, email string) (sqlc.User, error)
- func (m *Querier) GetUserByID(ctx context.Context, arg sqlc.GetUserByIDParams) (sqlc.User, error)
- func (m *Querier) ListAccountsByTenant(ctx context.Context, tenantID string) ([]sqlc.Account, error)
- func (m *Querier) ListAccountsByUser(ctx context.Context, arg sqlc.ListAccountsByUserParams) ([]sqlc.Account, error)
- func (m *Querier) ListAuditLogsByEntity(ctx context.Context, arg sqlc.ListAuditLogsByEntityParams) ([]sqlc.AuditLog, error)
- func (m *Querier) ListAuditLogsByTenant(ctx context.Context, arg sqlc.ListAuditLogsByTenantParams) ([]sqlc.AuditLog, error)
- func (m *Querier) ListCategoriesByTenant(ctx context.Context, tenantID string) ([]sqlc.Category, error)
- func (m *Querier) ListChildCategories(ctx context.Context, arg sqlc.ListChildCategoriesParams) ([]sqlc.Category, error)
- func (m *Querier) ListTenants(ctx context.Context) ([]sqlc.Tenant, error)
- func (m *Querier) ListTransactionsByTenant(ctx context.Context, arg sqlc.ListTransactionsByTenantParams) ([]sqlc.Transaction, error)
- func (m *Querier) ListUsersByTenant(ctx context.Context, tenantID string) ([]sqlc.User, error)
- func (m *Querier) MarkOTPUsed(ctx context.Context, id string) error
- func (m *Querier) SoftDeleteAccount(ctx context.Context, arg sqlc.SoftDeleteAccountParams) error
- func (m *Querier) SoftDeleteCategory(ctx context.Context, arg sqlc.SoftDeleteCategoryParams) error
- func (m *Querier) SoftDeleteTenant(ctx context.Context, id string) error
- func (m *Querier) SoftDeleteTransaction(ctx context.Context, arg sqlc.SoftDeleteTransactionParams) error
- func (m *Querier) SoftDeleteUser(ctx context.Context, arg sqlc.SoftDeleteUserParams) error
- func (m *Querier) UpdateAccount(ctx context.Context, arg sqlc.UpdateAccountParams) (sqlc.Account, error)
- func (m *Querier) UpdateAccountBalance(ctx context.Context, arg sqlc.UpdateAccountBalanceParams) error
- func (m *Querier) UpdateCategory(ctx context.Context, arg sqlc.UpdateCategoryParams) (sqlc.Category, error)
- func (m *Querier) UpdateTenant(ctx context.Context, arg sqlc.UpdateTenantParams) (sqlc.Tenant, error)
- func (m *Querier) UpdateTransaction(ctx context.Context, arg sqlc.UpdateTransactionParams) (sqlc.Transaction, error)
- func (m *Querier) UpdateUser(ctx context.Context, arg sqlc.UpdateUserParams) (sqlc.User, error)
- func (m *Querier) UpdateUserLastLogin(ctx context.Context, id string) error
- type TenantRepository
- func (m *TenantRepository) Create(ctx context.Context, input domain.CreateTenantInput) (*domain.Tenant, error)
- func (m *TenantRepository) Delete(ctx context.Context, id string) error
- func (m *TenantRepository) GetByID(ctx context.Context, id string) (*domain.Tenant, error)
- func (m *TenantRepository) List(ctx context.Context) ([]domain.Tenant, error)
- func (m *TenantRepository) Update(ctx context.Context, id string, input domain.UpdateTenantInput) (*domain.Tenant, error)
- type TenantService
- func (m *TenantService) Create(ctx context.Context, input domain.CreateTenantInput) (*domain.Tenant, error)
- func (m *TenantService) Delete(ctx context.Context, id string) error
- func (m *TenantService) GetByID(ctx context.Context, id string) (*domain.Tenant, error)
- func (m *TenantService) InviteUser(ctx context.Context, tenantID string, input domain.CreateUserInput) (*domain.User, error)
- func (m *TenantService) List(ctx context.Context) ([]domain.Tenant, error)
- func (m *TenantService) Update(ctx context.Context, id string, input domain.UpdateTenantInput) (*domain.Tenant, error)
- type TransactionRepository
- func (m *TransactionRepository) Create(ctx context.Context, tenantID string, input domain.CreateTransactionInput) (*domain.Transaction, error)
- func (m *TransactionRepository) Delete(ctx context.Context, tenantID, id string) error
- func (m *TransactionRepository) GetByID(ctx context.Context, tenantID, id string) (*domain.Transaction, error)
- func (m *TransactionRepository) List(ctx context.Context, tenantID string, params domain.ListTransactionsParams) ([]domain.Transaction, error)
- func (m *TransactionRepository) Update(ctx context.Context, tenantID, id string, input domain.UpdateTransactionInput) (*domain.Transaction, error)
- type TransactionService
- func (m *TransactionService) Create(ctx context.Context, tenantID string, input domain.CreateTransactionInput) (*domain.Transaction, error)
- func (m *TransactionService) Delete(ctx context.Context, tenantID, id string) error
- func (m *TransactionService) GetByID(ctx context.Context, tenantID, id string) (*domain.Transaction, error)
- func (m *TransactionService) List(ctx context.Context, tenantID string, params domain.ListTransactionsParams) ([]domain.Transaction, error)
- func (m *TransactionService) Update(ctx context.Context, tenantID, id string, input domain.UpdateTransactionInput) (*domain.Transaction, error)
- type UserRepository
- func (m *UserRepository) Create(ctx context.Context, input domain.CreateUserInput) (*domain.User, error)
- func (m *UserRepository) Delete(ctx context.Context, tenantID, id string) error
- func (m *UserRepository) GetByEmail(ctx context.Context, email string) (*domain.User, error)
- func (m *UserRepository) GetByID(ctx context.Context, tenantID, id string) (*domain.User, error)
- func (m *UserRepository) ListByTenant(ctx context.Context, tenantID string) ([]domain.User, error)
- func (m *UserRepository) Update(ctx context.Context, tenantID, id string, input domain.UpdateUserInput) (*domain.User, error)
- func (m *UserRepository) UpdateLastLogin(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
AccountRepository is a testify/mock implementation of domain.AccountRepository.
func (*AccountRepository) Create ¶
func (m *AccountRepository) Create(ctx context.Context, tenantID string, input domain.CreateAccountInput) (*domain.Account, error)
func (*AccountRepository) Delete ¶
func (m *AccountRepository) Delete(ctx context.Context, tenantID, id string) error
func (*AccountRepository) ListByTenant ¶
func (*AccountRepository) ListByUser ¶
func (*AccountRepository) Update ¶
func (m *AccountRepository) Update(ctx context.Context, tenantID, id string, input domain.UpdateAccountInput) (*domain.Account, error)
func (*AccountRepository) UpdateBalance ¶
type AccountService ¶
AccountService is a testify/mock implementation of domain.AccountService.
func (*AccountService) Create ¶
func (m *AccountService) Create(ctx context.Context, tenantID string, input domain.CreateAccountInput) (*domain.Account, error)
func (*AccountService) Delete ¶
func (m *AccountService) Delete(ctx context.Context, tenantID, id string) error
func (*AccountService) ListByTenant ¶
func (*AccountService) ListByUser ¶
type AdminAuditRepository ¶
AdminAuditRepository is a mock implementation of domain.AdminAuditRepository.
func (*AdminAuditRepository) ListAll ¶
func (m *AdminAuditRepository) ListAll(ctx context.Context, params domain.ListAuditLogsParams) ([]domain.AuditLog, error)
type AdminService ¶
AdminService is a testify/mock implementation of domain.AdminService.
func (*AdminService) ForceDeleteUser ¶
func (m *AdminService) ForceDeleteUser(ctx context.Context, id string) error
func (*AdminService) GetTenantByID ¶
func (*AdminService) GetUserByID ¶
func (*AdminService) HardDeleteTenant ¶
func (m *AdminService) HardDeleteTenant(ctx context.Context, id, confirmationToken string) error
func (*AdminService) ListAllTenants ¶
func (*AdminService) ListAllUsers ¶
func (*AdminService) ListAuditLogs ¶
func (m *AdminService) ListAuditLogs(ctx context.Context, params domain.ListAuditLogsParams) ([]domain.AuditLog, error)
func (*AdminService) RestoreTenant ¶
func (m *AdminService) RestoreTenant(ctx context.Context, id string) error
func (*AdminService) SuspendTenant ¶
func (m *AdminService) SuspendTenant(ctx context.Context, id string) error
func (*AdminService) UpdateTenantPlan ¶
func (m *AdminService) UpdateTenantPlan(ctx context.Context, id string, plan domain.TenantPlan) (*domain.Tenant, error)
type AdminTenantRepository ¶
AdminTenantRepository is a mock implementation of domain.AdminTenantRepository.
func (*AdminTenantRepository) HardDelete ¶
func (m *AdminTenantRepository) HardDelete(ctx context.Context, id string) error
func (*AdminTenantRepository) Restore ¶
func (m *AdminTenantRepository) Restore(ctx context.Context, id string) error
func (*AdminTenantRepository) Suspend ¶
func (m *AdminTenantRepository) Suspend(ctx context.Context, id string) error
func (*AdminTenantRepository) UpdatePlan ¶
func (m *AdminTenantRepository) UpdatePlan(ctx context.Context, id string, plan domain.TenantPlan) (*domain.Tenant, error)
type AdminUserRepository ¶
AdminUserRepository is a mock implementation of domain.AdminUserRepository.
func (*AdminUserRepository) ForceDelete ¶
func (m *AdminUserRepository) ForceDelete(ctx context.Context, id string) error
type AuditRepository ¶
AuditRepository is a testify/mock implementation of domain.AuditRepository.
func (*AuditRepository) Create ¶
func (m *AuditRepository) Create(ctx context.Context, input domain.CreateAuditLogInput) (*domain.AuditLog, error)
func (*AuditRepository) ListByEntity ¶
func (*AuditRepository) ListByTenant ¶
func (m *AuditRepository) ListByTenant(ctx context.Context, tenantID string, params domain.ListAuditLogsParams) ([]domain.AuditLog, error)
type AuthRepository ¶
AuthRepository is a testify/mock implementation of domain.AuthRepository.
func (*AuthRepository) CreateOTPRequest ¶
func (m *AuthRepository) CreateOTPRequest(ctx context.Context, input domain.CreateOTPRequestInput) (*domain.OTPRequest, error)
func (*AuthRepository) DeleteExpiredOTPRequests ¶
func (m *AuthRepository) DeleteExpiredOTPRequests(ctx context.Context) error
func (*AuthRepository) GetActiveOTPRequest ¶
func (m *AuthRepository) GetActiveOTPRequest(ctx context.Context, email string) (*domain.OTPRequest, error)
func (*AuthRepository) MarkOTPUsed ¶
func (m *AuthRepository) MarkOTPUsed(ctx context.Context, id string) error
type AuthService ¶
AuthService is a mock implementation of domain.AuthService.
func (*AuthService) RefreshToken ¶
func (*AuthService) RequestOTP ¶
func (m *AuthService) RequestOTP(ctx context.Context, email string) error
type CategoryRepository ¶
CategoryRepository is a testify/mock implementation of domain.CategoryRepository.
func (*CategoryRepository) Create ¶
func (m *CategoryRepository) Create(ctx context.Context, tenantID string, input domain.CreateCategoryInput) (*domain.Category, error)
func (*CategoryRepository) Delete ¶
func (m *CategoryRepository) Delete(ctx context.Context, tenantID, id string) error
func (*CategoryRepository) ListByTenant ¶
func (*CategoryRepository) ListChildren ¶
type CategoryService ¶
CategoryService is a testify/mock implementation of domain.CategoryService.
func (*CategoryService) Create ¶
func (m *CategoryService) Create(ctx context.Context, tenantID string, input domain.CreateCategoryInput) (*domain.Category, error)
func (*CategoryService) Delete ¶
func (m *CategoryService) Delete(ctx context.Context, tenantID, id string) error
func (*CategoryService) ListByTenant ¶
func (*CategoryService) ListChildren ¶
type IdempotencyStore ¶
IdempotencyStore is a testify/mock implementation of IdempotencyStore placed in the same package as the production interface to avoid import cycles when middleware tests reference the mock.
func (*IdempotencyStore) Get ¶
func (m *IdempotencyStore) Get(ctx context.Context, key string) (*domain.CachedResponse, error)
func (*IdempotencyStore) SetResponse ¶
func (m *IdempotencyStore) SetResponse(ctx context.Context, key string, resp domain.CachedResponse, ttl time.Duration) error
type Querier ¶
func (*Querier) AdminForceDeleteUser ¶
func (*Querier) AdminGetTenantByID ¶
func (*Querier) AdminGetUserByID ¶
func (*Querier) AdminHardDeleteTenant ¶
func (*Querier) AdminListAllAuditLogs ¶
func (*Querier) AdminListAllTenants ¶
func (*Querier) AdminListAllUsers ¶
func (*Querier) AdminRestoreTenant ¶
func (*Querier) AdminSuspendTenant ¶
func (*Querier) AdminUpdateTenantPlan ¶
func (*Querier) CreateAccount ¶
func (*Querier) CreateAuditLog ¶
func (*Querier) CreateCategory ¶
func (*Querier) CreateOTPRequest ¶
func (m *Querier) CreateOTPRequest(ctx context.Context, arg sqlc.CreateOTPRequestParams) (sqlc.OtpRequest, error)
func (*Querier) CreateTenant ¶
func (*Querier) CreateTransaction ¶
func (m *Querier) CreateTransaction(ctx context.Context, arg sqlc.CreateTransactionParams) (sqlc.Transaction, error)
func (*Querier) CreateUser ¶
func (*Querier) GetAccountByID ¶
func (*Querier) GetActiveOTPByEmail ¶
func (*Querier) GetCategoryByID ¶
func (*Querier) GetTenantByID ¶
func (*Querier) GetTransactionByID ¶
func (m *Querier) GetTransactionByID(ctx context.Context, arg sqlc.GetTransactionByIDParams) (sqlc.Transaction, error)
func (*Querier) GetUserByEmail ¶
func (*Querier) GetUserByID ¶
func (*Querier) ListAccountsByTenant ¶
func (*Querier) ListAccountsByUser ¶
func (*Querier) ListAuditLogsByEntity ¶
func (*Querier) ListAuditLogsByTenant ¶
func (*Querier) ListCategoriesByTenant ¶
func (*Querier) ListChildCategories ¶
func (*Querier) ListTenants ¶
func (*Querier) ListTransactionsByTenant ¶
func (m *Querier) ListTransactionsByTenant(ctx context.Context, arg sqlc.ListTransactionsByTenantParams) ([]sqlc.Transaction, error)
func (*Querier) ListUsersByTenant ¶
func (*Querier) SoftDeleteAccount ¶
func (*Querier) SoftDeleteCategory ¶
func (*Querier) SoftDeleteTenant ¶
func (*Querier) SoftDeleteTransaction ¶
func (*Querier) SoftDeleteUser ¶
func (*Querier) UpdateAccount ¶
func (*Querier) UpdateAccountBalance ¶
func (*Querier) UpdateCategory ¶
func (*Querier) UpdateTenant ¶
func (*Querier) UpdateTransaction ¶
func (m *Querier) UpdateTransaction(ctx context.Context, arg sqlc.UpdateTransactionParams) (sqlc.Transaction, error)
func (*Querier) UpdateUser ¶
type TenantRepository ¶
TenantRepository is a testify/mock implementation of domain.TenantRepository.
func (*TenantRepository) Create ¶
func (m *TenantRepository) Create(ctx context.Context, input domain.CreateTenantInput) (*domain.Tenant, error)
func (*TenantRepository) Delete ¶
func (m *TenantRepository) Delete(ctx context.Context, id string) error
type TenantService ¶
TenantService is a testify/mock implementation of domain.TenantService.
func (*TenantService) Create ¶
func (m *TenantService) Create(ctx context.Context, input domain.CreateTenantInput) (*domain.Tenant, error)
func (*TenantService) InviteUser ¶
func (m *TenantService) InviteUser(ctx context.Context, tenantID string, input domain.CreateUserInput) (*domain.User, error)
type TransactionRepository ¶
TransactionRepository mock
func (*TransactionRepository) Create ¶
func (m *TransactionRepository) Create(ctx context.Context, tenantID string, input domain.CreateTransactionInput) (*domain.Transaction, error)
func (*TransactionRepository) Delete ¶
func (m *TransactionRepository) Delete(ctx context.Context, tenantID, id string) error
func (*TransactionRepository) GetByID ¶
func (m *TransactionRepository) GetByID(ctx context.Context, tenantID, id string) (*domain.Transaction, error)
func (*TransactionRepository) List ¶
func (m *TransactionRepository) List(ctx context.Context, tenantID string, params domain.ListTransactionsParams) ([]domain.Transaction, error)
func (*TransactionRepository) Update ¶
func (m *TransactionRepository) Update(ctx context.Context, tenantID, id string, input domain.UpdateTransactionInput) (*domain.Transaction, error)
type TransactionService ¶
TransactionService is a testify/mock implementation of domain.TransactionService.
func (*TransactionService) Create ¶
func (m *TransactionService) Create(ctx context.Context, tenantID string, input domain.CreateTransactionInput) (*domain.Transaction, error)
func (*TransactionService) Delete ¶
func (m *TransactionService) Delete(ctx context.Context, tenantID, id string) error
func (*TransactionService) GetByID ¶
func (m *TransactionService) GetByID(ctx context.Context, tenantID, id string) (*domain.Transaction, error)
func (*TransactionService) List ¶
func (m *TransactionService) List(ctx context.Context, tenantID string, params domain.ListTransactionsParams) ([]domain.Transaction, error)
func (*TransactionService) Update ¶
func (m *TransactionService) Update(ctx context.Context, tenantID, id string, input domain.UpdateTransactionInput) (*domain.Transaction, error)
type UserRepository ¶
UserRepository is a testify/mock implementation of domain.UserRepository.
func (*UserRepository) Create ¶
func (m *UserRepository) Create(ctx context.Context, input domain.CreateUserInput) (*domain.User, error)
func (*UserRepository) Delete ¶
func (m *UserRepository) Delete(ctx context.Context, tenantID, id string) error
func (*UserRepository) GetByEmail ¶
func (*UserRepository) ListByTenant ¶
func (*UserRepository) Update ¶
func (m *UserRepository) Update(ctx context.Context, tenantID, id string, input domain.UpdateUserInput) (*domain.User, error)
func (*UserRepository) UpdateLastLogin ¶
func (m *UserRepository) UpdateLastLogin(ctx context.Context, id string) error