Documentation
¶
Overview ¶
Package usecase implements application business logic. Each logic group in own file.
Index ¶
- Constants
- func AuthenticateCtx(ctx *context.Context, c *ent.Client, user *model.Customer)
- func EmbedUser(ctx context.Context, u *model.Customer) context.Context
- func EncodeToString(max int) string
- func GenerateConfirmTxcToken(ctx context.Context, token, signingKey string, isFeePaidByMe bool, ...) (string, error)
- func GenerateForgetPwdToken(ctx context.Context, token, email, signingKey string, ...) (string, error)
- func GenerateFulfillToken(ctx context.Context, token, signingKey string, secondsDuration time.Duration) (string, error)
- func GenerateHashInfo(v string) (string, error)
- func GenerateOTP(max int) string
- func GetUserAsAdmin(ctx context.Context) *model.Admin
- func GetUserAsCustomer(ctx context.Context) *model.Customer
- func GetUserAsEmployee(ctx context.Context) *model.Employee
- func GetUserAsPartner(ctx context.Context) *model.Partner
- func MakeOTPValue(ctx context.Context, otp string, extra ...string) string
- func MakeValue(ctx context.Context) string
- func ParseToken(ctx context.Context, token string, signingKey string) (map[string]any, error)
- func ValidateHashInfo(raw, hash string) error
- func ValidationError(err error) error
- func WrapError(err error) error
- type IAdminAuthUseCase
- type IAdminConfigUseCase
- type IAdminEmployeeCreateUseCase
- type IAdminEmployeeDeleteUseCase
- type IAdminEmployeeGetFirstUseCase
- type IAdminEmployeeListUseCase
- type IAdminEmployeeUpdateUseCase
- type IAdminEmployeeUseCase
- type IAdminEmployeeValidateCreateUseCase
- type IAdminEmployeeValidateUpdateUseCase
- type IAdminGetFirstUseCase
- type IAdminGetUserFromCtxUseCase
- type IAdminGetUserUseCase
- type IAdminListUseCase
- type IAdminMeUseCase
- type IAdminTransactionGetFirstUseCase
- type IAdminTransactionListUseCase
- type IAdminTransactionUseCase
- type IAdminUpdateUseCase
- type ICustomerAuthUseCase
- type ICustomerBankAccountDeleteUseCase
- type ICustomerBankAccountGetFirstMineUseCase
- type ICustomerBankAccountGetFirstUseCase
- type ICustomerBankAccountListMineUseCase
- type ICustomerBankAccountListUseCase
- type ICustomerBankAccountUpdateUseCase
- type ICustomerBankAccountUseCase
- type ICustomerBankAccountValidateUpdateInputUseCase
- type ICustomerChangePasswordUseCase
- type ICustomerChangePasswordWithTokenUseCase
- type ICustomerConfigUseCase
- type ICustomerContactCreateUseCase
- type ICustomerContactDeleteUseCase
- type ICustomerContactGetFirstMineUseCase
- type ICustomerContactListMineUseCase
- type ICustomerContactListUseCase
- type ICustomerContactUpdateUseCase
- type ICustomerContactUseCase
- type ICustomerContactValidateCreateInputUseCase
- type ICustomerContactValidateUpdateInputUseCase
- type ICustomerDebtCancelUseCase
- type ICustomerDebtCreateUseCase
- type ICustomerDebtFulfillUseCase
- type ICustomerDebtFulfillWithTokenUseCase
- type ICustomerDebtGetFirstMineUseCase
- type ICustomerDebtListMineUseCase
- type ICustomerDebtListUseCase
- type ICustomerDebtUpdateUseCase
- type ICustomerDebtUseCase
- type ICustomerDebtValidateCancelUseCase
- type ICustomerDebtValidateCreateInputUseCase
- type ICustomerDebtValidateFulfillUseCase
- type ICustomerDebtValidateFulfillWithTokenUseCase
- type ICustomerForgetPasswordUseCase
- type ICustomerGetFirstUseCase
- type ICustomerGetUserFromCtxUseCase
- type ICustomerGetUserUseCase
- type ICustomerListUseCase
- type ICustomerMeUseCase
- type ICustomerStreamUseCase
- type ICustomerTPBankBankAccountGetUseCase
- type ICustomerTransactionConfirmSuccessUseCase
- type ICustomerTransactionCreateUseCase
- type ICustomerTransactionGetFirstMineUseCase
- type ICustomerTransactionListMineUseCase
- type ICustomerTransactionListUseCase
- type ICustomerTransactionUpdateUseCase
- type ICustomerTransactionUseCase
- type ICustomerTransactionValidateConfirmInputUseCase
- type ICustomerTransactionValidateCreateInputUseCase
- type ICustomerUpdateUseCase
- type ICustomerUseCase
- type ICustomerValidateChangePasswordUseCase
- type ICustomerValidateChangePasswordWithTokenUseCase
- type ICustomerValidateForgetPasswordUsecase
- type IEmployeeAuthUseCase
- type IEmployeeBankAccountDeleteUseCase
- type IEmployeeBankAccountGetFirstUseCase
- type IEmployeeBankAccountListUseCase
- type IEmployeeBankAccountUpdateUseCase
- type IEmployeeBankAccountValidateUpdateInputUseCase
- type IEmployeeBankAcountUseCase
- type IEmployeeConfigUseCase
- type IEmployeeCustomerCreateUseCase
- type IEmployeeCustomerGetFirstUseCase
- type IEmployeeCustomerListUseCase
- type IEmployeeCustomerUseCase
- type IEmployeeCustomerValidateCreateUseCase
- type IEmployeeGetFirstUseCase
- type IEmployeeGetUserFromCtxUseCase
- type IEmployeeGetUserUseCase
- type IEmployeeListUseCase
- type IEmployeeMeUseCase
- type IEmployeeTransactionGetFirstUseCase
- type IEmployeeTransactionListUseCase
- type IEmployeeTransactionUseCase
- type IEmployeeUpdateUseCase
- type IGetConfigUseCase
- type IGetUserUseCase
- type IIsNextUseCase
- type IOptionsUseCase
- type IPartnerAuthUseCase
- type IPartnerBankAccountGetFirstUseCase
- type IPartnerBankAccountListUseCase
- type IPartnerBankAccountRespGetFirstUseCase
- type IPartnerBankAccountUseCase
- type IPartnerConfigUseCase
- type IPartnerGetFirstUseCase
- type IPartnerGetUserUseCase
- type IPartnerListUseCase
- type IPartnerOptionUseCase
- type IPartnerTransactionCreateUseCase
- type IPartnerTransactionUseCase
- type IPartnerTransactionValidateCreateUseCase
- type UserCtxType
Constants ¶
View Source
const DEBUG = true
Variables ¶
This section is empty.
Functions ¶
func AuthenticateCtx ¶
func EncodeToString ¶
func GenerateConfirmTxcToken ¶
func GenerateForgetPwdToken ¶
func GenerateFulfillToken ¶
func GenerateHashInfo ¶
func GenerateOTP ¶
func ParseToken ¶
func ValidateHashInfo ¶
func ValidationError ¶
Types ¶
type IAdminAuthUseCase ¶
type IAdminAuthUseCase interface {
// contains filtered or unexported methods
}
type IAdminConfigUseCase ¶
type IAdminConfigUseCase interface {
IGetConfigUseCase
}
type IAdminEmployeeCreateUseCase ¶
type IAdminEmployeeCreateUseCase interface {
// contains filtered or unexported methods
}
type IAdminEmployeeDeleteUseCase ¶
type IAdminEmployeeDeleteUseCase interface {
// contains filtered or unexported methods
}
type IAdminEmployeeGetFirstUseCase ¶
type IAdminEmployeeGetFirstUseCase interface {
GetFirst(context.Context, *model.EmployeeOrderInput, *model.EmployeeWhereInput) (*model.Employee, error)
}
type IAdminEmployeeListUseCase ¶
type IAdminEmployeeListUseCase interface {
// contains filtered or unexported methods
}
type IAdminEmployeeUpdateUseCase ¶
type IAdminEmployeeUpdateUseCase interface {
// contains filtered or unexported methods
}
type IAdminEmployeeUseCase ¶
type IAdminEmployeeUseCase interface {
IAdminConfigUseCase
IAdminGetUserUseCase
IAdminEmployeeListUseCase
IAdminEmployeeGetFirstUseCase
IAdminEmployeeCreateUseCase
IAdminEmployeeValidateCreateUseCase
IAdminEmployeeUpdateUseCase
IAdminEmployeeValidateUpdateUseCase
IAdminEmployeeDeleteUseCase
IIsNextUseCase[*model.Employee, *model.EmployeeOrderInput, *model.EmployeeWhereInput]
}
type IAdminEmployeeValidateCreateUseCase ¶
type IAdminEmployeeValidateCreateUseCase interface {
// contains filtered or unexported methods
}
type IAdminEmployeeValidateUpdateUseCase ¶
type IAdminEmployeeValidateUpdateUseCase interface {
// contains filtered or unexported methods
}
type IAdminGetFirstUseCase ¶
type IAdminGetFirstUseCase interface {
GetFirst(context.Context, *model.AdminOrderInput, *model.AdminWhereInput) (*model.Admin, error)
}
type IAdminGetUserUseCase ¶
type IAdminGetUserUseCase interface {
IGetUserUseCase
}
type IAdminListUseCase ¶
type IAdminListUseCase interface {
// contains filtered or unexported methods
}
type IAdminMeUseCase ¶
type IAdminMeUseCase interface {
IAdminConfigUseCase
IAdminGetUserUseCase
IAdminGetUserFromCtxUseCase
}
type IAdminTransactionGetFirstUseCase ¶
type IAdminTransactionGetFirstUseCase interface {
GetFirst(context.Context, *model.TransactionOrderInput, *model.TransactionWhereInput) (*model.Transaction, error)
}
type IAdminTransactionListUseCase ¶
type IAdminTransactionListUseCase interface {
// contains filtered or unexported methods
}
type IAdminTransactionUseCase ¶
type IAdminTransactionUseCase interface {
IAdminConfigUseCase
IAdminGetUserUseCase
IAdminTransactionListUseCase
IAdminTransactionGetFirstUseCase
IIsNextUseCase[*model.Transaction, *model.TransactionOrderInput, *model.TransactionWhereInput]
}
type IAdminUpdateUseCase ¶
type IAdminUpdateUseCase interface {
// contains filtered or unexported methods
}
type ICustomerAuthUseCase ¶
type ICustomerAuthUseCase interface {
ICustomerForgetPasswordUseCase
ICustomerValidateForgetPasswordUsecase
ICustomerChangePasswordWithTokenUseCase
ICustomerValidateChangePasswordWithTokenUseCase
// contains filtered or unexported methods
}
type ICustomerBankAccountDeleteUseCase ¶
type ICustomerBankAccountDeleteUseCase interface {
// contains filtered or unexported methods
}
type ICustomerBankAccountGetFirstMineUseCase ¶
type ICustomerBankAccountGetFirstMineUseCase interface {
GetFirstMine(context.Context, *model.BankAccountOrderInput, *model.BankAccountWhereInput) (*model.BankAccount, error)
}
type ICustomerBankAccountGetFirstUseCase ¶
type ICustomerBankAccountGetFirstUseCase interface {
GetFirst(context.Context, *model.BankAccountOrderInput, *model.BankAccountWhereInput) (*model.BankAccount, error)
}
type ICustomerBankAccountListMineUseCase ¶
type ICustomerBankAccountListMineUseCase interface {
ListMine(context.Context, *int, *int, *model.BankAccountOrderInput, *model.BankAccountWhereInput) ([]*model.BankAccount, error)
}
type ICustomerBankAccountListUseCase ¶
type ICustomerBankAccountListUseCase interface {
// contains filtered or unexported methods
}
type ICustomerBankAccountUpdateUseCase ¶
type ICustomerBankAccountUpdateUseCase interface {
// contains filtered or unexported methods
}
type ICustomerBankAccountUseCase ¶
type ICustomerBankAccountUseCase interface {
ICustomerGetUserUseCase
ICustomerConfigUseCase
ICustomerBankAccountDeleteUseCase
ICustomerBankAccountUpdateUseCase
ICustomerBankAccountValidateUpdateInputUseCase
ICustomerBankAccountListUseCase
ICustomerBankAccountGetFirstMineUseCase
ICustomerBankAccountListMineUseCase
ICustomerBankAccountGetFirstUseCase
ICustomerTPBankBankAccountGetUseCase
IIsNextUseCase[*model.BankAccount, *model.BankAccountOrderInput, *model.BankAccountWhereInput]
}
type ICustomerBankAccountValidateUpdateInputUseCase ¶
type ICustomerBankAccountValidateUpdateInputUseCase interface {
// contains filtered or unexported methods
}
type ICustomerChangePasswordWithTokenUseCase ¶
type ICustomerChangePasswordWithTokenUseCase interface {
ChangePasswordWithToken(context.Context, *model.CustomerChangePasswordWithTokenInput) error
}
type ICustomerConfigUseCase ¶
type ICustomerConfigUseCase interface {
IGetConfigUseCase
GetFeeAmount() *float64
GetFeeDesc() *string
}
type ICustomerContactCreateUseCase ¶
type ICustomerContactCreateUseCase interface {
// contains filtered or unexported methods
}
type ICustomerContactDeleteUseCase ¶
type ICustomerContactDeleteUseCase interface {
// contains filtered or unexported methods
}
type ICustomerContactGetFirstMineUseCase ¶
type ICustomerContactGetFirstMineUseCase interface {
GetFirstMine(context.Context, *model.ContactOrderInput, *model.ContactWhereInput) (*model.Contact, error)
}
type ICustomerContactListUseCase ¶
type ICustomerContactListUseCase interface {
// contains filtered or unexported methods
}
contact
type ICustomerContactUpdateUseCase ¶
type ICustomerContactUpdateUseCase interface {
// contains filtered or unexported methods
}
type ICustomerContactUseCase ¶
type ICustomerContactUseCase interface {
ICustomerGetUserUseCase
ICustomerConfigUseCase
ICustomerContactListUseCase
ICustomerContactListMineUseCase
ICustomerContactCreateUseCase
ICustomerContactValidateCreateInputUseCase
ICustomerContactGetFirstMineUseCase
ICustomerContactUpdateUseCase
ICustomerContactValidateUpdateInputUseCase
ICustomerContactDeleteUseCase
IIsNextUseCase[*model.Contact, *model.ContactOrderInput, *model.ContactWhereInput]
}
type ICustomerContactValidateCreateInputUseCase ¶
type ICustomerContactValidateCreateInputUseCase interface {
// contains filtered or unexported methods
}
type ICustomerContactValidateUpdateInputUseCase ¶
type ICustomerContactValidateUpdateInputUseCase interface {
// contains filtered or unexported methods
}
type ICustomerDebtCreateUseCase ¶
type ICustomerDebtCreateUseCase interface {
// contains filtered or unexported methods
}
type ICustomerDebtGetFirstMineUseCase ¶
type ICustomerDebtGetFirstMineUseCase interface {
GetFirstMine(context.Context, *model.DebtOrderInput, *model.DebtWhereInput) (*model.Debt, error)
}
type ICustomerDebtListUseCase ¶
type ICustomerDebtListUseCase interface {
// contains filtered or unexported methods
}
debt
type ICustomerDebtUpdateUseCase ¶
type ICustomerDebtUpdateUseCase interface {
// contains filtered or unexported methods
}
type ICustomerDebtUseCase ¶
type ICustomerDebtUseCase interface {
ICustomerGetUserUseCase
ICustomerConfigUseCase
ICustomerDebtListUseCase
ICustomerDebtValidateCreateInputUseCase
ICustomerDebtCreateUseCase
ICustomerDebtGetFirstMineUseCase
ICustomerDebtListMineUseCase
ICustomerDebtValidateCancelUseCase
ICustomerDebtCancelUseCase
ICustomerDebtValidateFulfillUseCase
ICustomerDebtFulfillUseCase
ICustomerDebtValidateFulfillWithTokenUseCase
ICustomerDebtFulfillWithTokenUseCase
IIsNextUseCase[*model.Debt, *model.DebtOrderInput, *model.DebtWhereInput]
}
type ICustomerDebtValidateCancelUseCase ¶
type ICustomerDebtValidateCancelUseCase interface {
ValidateCancel(context.Context, *model.Debt, *model.DebtUpdateInput) (*model.DebtUpdateInput, error)
}
type ICustomerDebtValidateCreateInputUseCase ¶
type ICustomerDebtValidateCreateInputUseCase interface {
// contains filtered or unexported methods
}
type ICustomerDebtValidateFulfillWithTokenUseCase ¶
type ICustomerDebtValidateFulfillWithTokenUseCase interface {
ValidateFulfillWithToken(context.Context, *model.Debt, *model.DebtFulfillWithTokenInput) (*model.DebtFulfillWithTokenInput, error)
}
type ICustomerForgetPasswordUseCase ¶
type ICustomerForgetPasswordUseCase interface {
ForgetPassword(context.Context, *model.CustomerForgetPasswordInput) (*model.CustomerForgetPasswordResp, error)
}
type ICustomerGetFirstUseCase ¶
type ICustomerGetFirstUseCase interface {
GetFirst(context.Context, *model.CustomerOrderInput, *model.CustomerWhereInput) (*model.Customer, error)
}
type ICustomerGetUserUseCase ¶
type ICustomerGetUserUseCase interface {
IGetUserUseCase
}
type ICustomerListUseCase ¶
type ICustomerListUseCase interface {
// contains filtered or unexported methods
}
type ICustomerMeUseCase ¶
type ICustomerMeUseCase interface {
ICustomerConfigUseCase
ICustomerGetUserUseCase
ICustomerValidateChangePasswordUseCase
ICustomerChangePasswordUseCase
ICustomerGetUserFromCtxUseCase
}
type ICustomerStreamUseCase ¶
type ICustomerStreamUseCase interface {
ICustomerGetUserUseCase
ICustomerConfigUseCase
}
stream
type ICustomerTPBankBankAccountGetUseCase ¶
type ICustomerTPBankBankAccountGetUseCase interface {
Get(context.Context, *model.BankAccountWhereInput) (*model.BankAccountPartner, error)
}
type ICustomerTransactionConfirmSuccessUseCase ¶
type ICustomerTransactionConfirmSuccessUseCase interface {
ConfirmSuccess(context.Context, *model.Transaction, *string) (*model.Transaction, error)
}
type ICustomerTransactionCreateUseCase ¶
type ICustomerTransactionCreateUseCase interface {
Create(context.Context, *model.TransactionCreateUseCaseInput) (*model.TransactionCreateResp, error)
}
type ICustomerTransactionGetFirstMineUseCase ¶
type ICustomerTransactionGetFirstMineUseCase interface {
GetFirstMine(context.Context, *model.TransactionOrderInput, *model.TransactionWhereInput) (*model.Transaction, error)
}
type ICustomerTransactionListMineUseCase ¶
type ICustomerTransactionListMineUseCase interface {
ListMine(context.Context, *int, *int, *model.TransactionOrderInput, *model.TransactionWhereInput) ([]*model.Transaction, error)
}
type ICustomerTransactionListUseCase ¶
type ICustomerTransactionListUseCase interface {
// contains filtered or unexported methods
}
type ICustomerTransactionUpdateUseCase ¶
type ICustomerTransactionUpdateUseCase interface {
// contains filtered or unexported methods
}
type ICustomerTransactionUseCase ¶
type ICustomerTransactionUseCase interface {
ICustomerGetUserUseCase
ICustomerConfigUseCase
ICustomerTransactionCreateUseCase
ICustomerTransactionListUseCase
ICustomerTransactionValidateCreateInputUseCase
ICustomerTransactionConfirmSuccessUseCase
ICustomerTransactionValidateConfirmInputUseCase
ICustomerTransactionListMineUseCase
ICustomerTransactionGetFirstMineUseCase
IIsNextUseCase[*model.Transaction, *model.TransactionOrderInput, *model.TransactionWhereInput]
}
type ICustomerTransactionValidateConfirmInputUseCase ¶
type ICustomerTransactionValidateConfirmInputUseCase interface {
ValidateConfirmInput(context.Context, *model.Transaction, *model.TransactionConfirmUseCaseInput) error
}
type ICustomerTransactionValidateCreateInputUseCase ¶
type ICustomerTransactionValidateCreateInputUseCase interface {
// contains filtered or unexported methods
}
type ICustomerUpdateUseCase ¶
type ICustomerUpdateUseCase interface {
// contains filtered or unexported methods
}
type ICustomerUseCase ¶
type ICustomerUseCase interface {
ICustomerConfigUseCase
ICustomerGetUserUseCase
ICustomerListUseCase
ICustomerGetFirstUseCase
}
type ICustomerValidateChangePasswordUseCase ¶
type ICustomerValidateChangePasswordUseCase interface {
ValidateChangePassword(context.Context, *model.CustomerChangePasswordInput) (*model.CustomerChangePasswordInput, error)
}
change password
type ICustomerValidateChangePasswordWithTokenUseCase ¶
type ICustomerValidateChangePasswordWithTokenUseCase interface {
ValidateChangePasswordWithToken(context.Context, *model.CustomerChangePasswordWithTokenInput) (*model.CustomerChangePasswordWithTokenInput, error)
}
type ICustomerValidateForgetPasswordUsecase ¶
type ICustomerValidateForgetPasswordUsecase interface {
ValidateForgetPassword(context.Context, *model.CustomerForgetPasswordInput) (*model.CustomerForgetPasswordInput, error)
}
type IEmployeeAuthUseCase ¶
type IEmployeeAuthUseCase interface {
// contains filtered or unexported methods
}
type IEmployeeBankAccountDeleteUseCase ¶
type IEmployeeBankAccountDeleteUseCase interface {
// contains filtered or unexported methods
}
type IEmployeeBankAccountGetFirstUseCase ¶
type IEmployeeBankAccountGetFirstUseCase interface {
GetFirst(context.Context, *model.BankAccountOrderInput, *model.BankAccountWhereInput) (*model.BankAccount, error)
}
type IEmployeeBankAccountListUseCase ¶
type IEmployeeBankAccountListUseCase interface {
// contains filtered or unexported methods
}
type IEmployeeBankAccountUpdateUseCase ¶
type IEmployeeBankAccountUpdateUseCase interface {
// contains filtered or unexported methods
}
type IEmployeeBankAccountValidateUpdateInputUseCase ¶
type IEmployeeBankAccountValidateUpdateInputUseCase interface {
// contains filtered or unexported methods
}
type IEmployeeBankAcountUseCase ¶
type IEmployeeBankAcountUseCase interface {
IEmployeeConfigUseCase
IEmployeeGetUserUseCase
IEmployeeBankAccountDeleteUseCase
IEmployeeBankAccountUpdateUseCase
IEmployeeBankAccountValidateUpdateInputUseCase
IEmployeeBankAccountGetFirstUseCase
IEmployeeBankAccountListUseCase
IIsNextUseCase[*model.BankAccount, *model.BankAccountOrderInput, *model.BankAccountWhereInput]
}
type IEmployeeConfigUseCase ¶
type IEmployeeConfigUseCase interface {
IGetConfigUseCase
}
type IEmployeeCustomerCreateUseCase ¶
type IEmployeeCustomerCreateUseCase interface {
// contains filtered or unexported methods
}
type IEmployeeCustomerGetFirstUseCase ¶
type IEmployeeCustomerGetFirstUseCase interface {
ICustomerGetFirstUseCase
}
type IEmployeeCustomerListUseCase ¶
type IEmployeeCustomerListUseCase interface {
ICustomerListUseCase
}
type IEmployeeCustomerUseCase ¶
type IEmployeeCustomerUseCase interface {
IEmployeeConfigUseCase
IEmployeeGetUserUseCase
IEmployeeCustomerCreateUseCase
IEmployeeCustomerValidateCreateUseCase
IEmployeeCustomerListUseCase
IEmployeeCustomerGetFirstUseCase
IIsNextUseCase[*model.Customer, *model.CustomerOrderInput, *model.CustomerWhereInput]
}
type IEmployeeCustomerValidateCreateUseCase ¶
type IEmployeeCustomerValidateCreateUseCase interface {
// contains filtered or unexported methods
}
type IEmployeeGetFirstUseCase ¶
type IEmployeeGetFirstUseCase interface {
GetFirst(context.Context, *model.EmployeeOrderInput, *model.EmployeeWhereInput) (*model.Employee, error)
}
type IEmployeeGetUserUseCase ¶
type IEmployeeGetUserUseCase interface {
IGetUserUseCase
}
type IEmployeeListUseCase ¶
type IEmployeeListUseCase interface {
// contains filtered or unexported methods
}
type IEmployeeMeUseCase ¶
type IEmployeeMeUseCase interface {
IEmployeeConfigUseCase
IEmployeeGetUserUseCase
IEmployeeGetUserFromCtxUseCase
}
type IEmployeeTransactionGetFirstUseCase ¶
type IEmployeeTransactionGetFirstUseCase interface {
GetFirst(context.Context, *model.TransactionOrderInput, *model.TransactionWhereInput) (*model.Transaction, error)
}
type IEmployeeTransactionListUseCase ¶
type IEmployeeTransactionListUseCase interface {
// contains filtered or unexported methods
}
type IEmployeeTransactionUseCase ¶
type IEmployeeTransactionUseCase interface {
IEmployeeConfigUseCase
IEmployeeGetUserUseCase
IEmployeeTransactionListUseCase
IEmployeeTransactionGetFirstUseCase
IIsNextUseCase[*model.Transaction, *model.TransactionOrderInput, *model.TransactionWhereInput]
}
type IEmployeeUpdateUseCase ¶
type IEmployeeUpdateUseCase interface {
// contains filtered or unexported methods
}
type IGetConfigUseCase ¶
type IGetUserUseCase ¶
type IIsNextUseCase ¶
type IOptionsUseCase ¶
type IPartnerAuthUseCase ¶
type IPartnerAuthUseCase interface {
Login(context.Context, *model.PartnerLoginInput) (any, error)
ValidateLoginInput(context.Context, *model.PartnerLoginInput) (*model.PartnerLoginInput, error)
}
type IPartnerBankAccountGetFirstUseCase ¶
type IPartnerBankAccountGetFirstUseCase interface {
GetFirst(context.Context, *model.BankAccountOrderInput, *model.BankAccountWhereInput) (*model.BankAccount, error)
}
type IPartnerBankAccountListUseCase ¶
type IPartnerBankAccountListUseCase interface {
// contains filtered or unexported methods
}
type IPartnerBankAccountRespGetFirstUseCase ¶
type IPartnerBankAccountRespGetFirstUseCase interface {
GetFirst(context.Context, *model.BankAccountOrderInput, *model.BankAccountWhereInput) (*model.PartnerBankAccountResp, error)
}
type IPartnerBankAccountUseCase ¶
type IPartnerBankAccountUseCase interface {
IPartnerGetUserUseCase
IPartnerConfigUseCase
IPartnerBankAccountListUseCase
IPartnerBankAccountRespGetFirstUseCase
IIsNextUseCase[*model.BankAccount, *model.BankAccountOrderInput, *model.BankAccountWhereInput]
}
type IPartnerConfigUseCase ¶
type IPartnerConfigUseCase interface {
IGetConfigUseCase
GetFeeAmount() *float64
GetFeeDesc() *string
}
type IPartnerGetFirstUseCase ¶
type IPartnerGetFirstUseCase interface {
GetFirst(context.Context, *model.PartnerOrderInput, *model.PartnerWhereInput) (*model.Partner, error)
}
type IPartnerGetUserUseCase ¶
type IPartnerGetUserUseCase interface {
IGetUserUseCase
}
type IPartnerListUseCase ¶
type IPartnerListUseCase interface {
// contains filtered or unexported methods
}
type IPartnerOptionUseCase ¶
type IPartnerTransactionCreateUseCase ¶
type IPartnerTransactionCreateUseCase interface {
// contains filtered or unexported methods
}
type IPartnerTransactionUseCase ¶
type IPartnerTransactionUseCase interface {
IPartnerGetUserUseCase
IPartnerConfigUseCase
IPartnerTransactionCreateUseCase
IPartnerTransactionValidateCreateUseCase
}
type IPartnerTransactionValidateCreateUseCase ¶
type IPartnerTransactionValidateCreateUseCase interface {
// contains filtered or unexported methods
}
type UserCtxType ¶
type UserCtxType string
const ( UserCtxKey UserCtxType = "user" UserCtxVal UserCtxType = "user-value" )
Click to show internal directories.
Click to hide internal directories.