Documentation ¶
Index ¶
- type Bank
- type BankAccount
- type BankAccountType
- type BankType
- type Card
- type CardType
- type CreateBankAccountParams
- type CreateBankParams
- type CreateCardParams
- type CreateUserParams
- type DBTX
- type DeleteBankAccountParams
- type DeleteBankParams
- type DeleteCardParams
- type DeleteUserParams
- type GetAllBankAccountParams
- type GetAllBankParams
- type GetAllCardParams
- type GetAllUsersParams
- type GetUserBankAccountsParams
- type GetUserCardsParams
- type NullBankAccountType
- type NullBankType
- type NullCardType
- type Queries
- func (q *Queries) CreateBank(ctx context.Context, arg CreateBankParams) (Bank, error)
- func (q *Queries) CreateBankAccount(ctx context.Context, arg CreateBankAccountParams) (BankAccount, error)
- func (q *Queries) CreateCard(ctx context.Context, arg CreateCardParams) (Card, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteBank(ctx context.Context, arg DeleteBankParams) error
- func (q *Queries) DeleteBankAccount(ctx context.Context, arg DeleteBankAccountParams) error
- func (q *Queries) DeleteCard(ctx context.Context, arg DeleteCardParams) error
- func (q *Queries) DeleteUser(ctx context.Context, arg DeleteUserParams) error
- func (q *Queries) GetAllBank(ctx context.Context, arg GetAllBankParams) ([]Bank, error)
- func (q *Queries) GetAllBankAccount(ctx context.Context, arg GetAllBankAccountParams) ([]BankAccount, error)
- func (q *Queries) GetAllCard(ctx context.Context, arg GetAllCardParams) ([]Card, error)
- func (q *Queries) GetAllUsers(ctx context.Context, arg GetAllUsersParams) ([]User, error)
- func (q *Queries) GetBankAccountById(ctx context.Context, id uuid.UUID) (BankAccount, error)
- func (q *Queries) GetBankAccountCount(ctx context.Context) (int64, error)
- func (q *Queries) GetBankById(ctx context.Context, id uuid.UUID) (Bank, error)
- func (q *Queries) GetBankByName(ctx context.Context, name string) (Bank, error)
- func (q *Queries) GetBankCount(ctx context.Context) (int64, error)
- func (q *Queries) GetCardById(ctx context.Context, id uuid.UUID) (Card, error)
- func (q *Queries) GetCardCount(ctx context.Context) (int64, error)
- func (q *Queries) GetUserBankAccountCount(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) GetUserBankAccounts(ctx context.Context, arg GetUserBankAccountsParams) ([]BankAccount, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserById(ctx context.Context, id uuid.UUID) (User, error)
- func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error)
- func (q *Queries) GetUserCardCount(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) GetUserCards(ctx context.Context, arg GetUserCardsParams) ([]Card, error)
- func (q *Queries) GetUserCount(ctx context.Context) (int64, error)
- func (q *Queries) HardDeleteBank(ctx context.Context, id uuid.UUID) error
- func (q *Queries) HardDeleteBankAccount(ctx context.Context, id uuid.UUID) error
- func (q *Queries) HardDeleteCard(ctx context.Context, id uuid.UUID) error
- func (q *Queries) HardDeleteUser(ctx context.Context, id uuid.UUID) error
- func (q *Queries) UpdateBank(ctx context.Context, arg UpdateBankParams) error
- func (q *Queries) UpdateBankAccount(ctx context.Context, arg UpdateBankAccountParams) error
- func (q *Queries) UpdateCard(ctx context.Context, arg UpdateCardParams) error
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
- func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateBankAccountParams
- type UpdateBankParams
- type UpdateCardParams
- type UpdateUserParams
- type UpdateUserPasswordParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BankAccount ¶
type BankAccountType ¶
type BankAccountType string
const ( BankAccountTypeSavings BankAccountType = "savings" BankAccountTypeChecking BankAccountType = "checking" )
func (*BankAccountType) Scan ¶
func (e *BankAccountType) Scan(src interface{}) error
type BankType ¶
type BankType string
const ( BankTypeCentral BankType = "central" BankTypeCooperative BankType = "cooperative" BankTypeCommercial BankType = "commercial" BankTypeRegional BankType = "regional" BankTypeLocal BankType = "local" BankTypeSpecialized BankType = "specialized" BankTypeSmallFinance BankType = "small_finance" BankTypePayments BankType = "payments" )
type Card ¶
type Card struct { ID uuid.UUID CreatedAt time.Time UpdatedAt time.Time DeletedAt sql.NullTime IsDeleted bool IsActive bool UserID uuid.UUID BankID uuid.UUID BankAccountID uuid.NullUUID Name string Nickname string Number string Type CardType ExpMonth int32 ExpYear int32 Cvv string TotalLimit string BillDate int32 }
type CreateBankAccountParams ¶
type CreateBankParams ¶
type CreateCardParams ¶
type CreateCardParams struct { ID uuid.UUID CreatedAt time.Time UpdatedAt time.Time DeletedAt sql.NullTime IsDeleted bool IsActive bool BankID uuid.UUID UserID uuid.UUID BankAccountID uuid.NullUUID Name string Nickname string Number string Type CardType ExpMonth int32 ExpYear int32 Cvv string TotalLimit string BillDate int32 }
type CreateUserParams ¶
type DeleteBankAccountParams ¶
type DeleteBankParams ¶
type DeleteCardParams ¶
type DeleteUserParams ¶
type GetAllBankAccountParams ¶
type GetAllBankParams ¶
type GetAllCardParams ¶
type GetAllUsersParams ¶
type GetUserCardsParams ¶
type NullBankAccountType ¶
type NullBankAccountType struct { BankAccountType BankAccountType Valid bool // Valid is true if BankAccountType is not NULL }
func (*NullBankAccountType) Scan ¶
func (ns *NullBankAccountType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullBankType ¶
func (*NullBankType) Scan ¶
func (ns *NullBankType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullCardType ¶
func (*NullCardType) Scan ¶
func (ns *NullCardType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateBank ¶
func (*Queries) CreateBankAccount ¶
func (q *Queries) CreateBankAccount(ctx context.Context, arg CreateBankAccountParams) (BankAccount, error)
func (*Queries) CreateCard ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteBank ¶
func (q *Queries) DeleteBank(ctx context.Context, arg DeleteBankParams) error
func (*Queries) DeleteBankAccount ¶
func (q *Queries) DeleteBankAccount(ctx context.Context, arg DeleteBankAccountParams) error
func (*Queries) DeleteCard ¶
func (q *Queries) DeleteCard(ctx context.Context, arg DeleteCardParams) error
func (*Queries) DeleteUser ¶
func (q *Queries) DeleteUser(ctx context.Context, arg DeleteUserParams) error
func (*Queries) GetAllBank ¶
func (*Queries) GetAllBankAccount ¶
func (q *Queries) GetAllBankAccount(ctx context.Context, arg GetAllBankAccountParams) ([]BankAccount, error)
func (*Queries) GetAllCard ¶
func (*Queries) GetAllUsers ¶
func (*Queries) GetBankAccountById ¶
func (*Queries) GetBankAccountCount ¶
func (*Queries) GetBankById ¶
func (*Queries) GetBankByName ¶
func (*Queries) GetCardById ¶
func (*Queries) GetUserBankAccountCount ¶
func (*Queries) GetUserBankAccounts ¶
func (q *Queries) GetUserBankAccounts(ctx context.Context, arg GetUserBankAccountsParams) ([]BankAccount, error)
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserById ¶
func (*Queries) GetUserByUsername ¶
func (*Queries) GetUserCardCount ¶
func (*Queries) GetUserCards ¶
func (*Queries) HardDeleteBank ¶
func (*Queries) HardDeleteBankAccount ¶
func (*Queries) HardDeleteCard ¶
func (*Queries) HardDeleteUser ¶
func (*Queries) UpdateBank ¶
func (q *Queries) UpdateBank(ctx context.Context, arg UpdateBankParams) error
func (*Queries) UpdateBankAccount ¶
func (q *Queries) UpdateBankAccount(ctx context.Context, arg UpdateBankAccountParams) error
func (*Queries) UpdateCard ¶
func (q *Queries) UpdateCard(ctx context.Context, arg UpdateCardParams) error
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
func (*Queries) UpdateUserPassword ¶
func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
type UpdateBankAccountParams ¶
type UpdateBankParams ¶
type UpdateCardParams ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.