api

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 41 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Accounts = &AccountsApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiUsingDuplicateChecker: ApiUsingDuplicateChecker{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			container: duplicatechecker.Container,
		},
		accounts: services.Accounts,
	}
)

Initialize an account api singleton instance

View Source
var (
	AmapApis = &AmapApiProxy{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
	}
)

Initialize a amap api proxy singleton instance

View Source
var (
	Authorizations = &AuthorizationsApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiUsingDuplicateChecker: ApiUsingDuplicateChecker{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			container: duplicatechecker.Container,
		},
		ApiWithUserInfo: ApiWithUserInfo{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			ApiUsingAvatarProvider: ApiUsingAvatarProvider{
				container: avatars.Container,
			},
		},
		users:                   services.Users,
		userAppCloudSettings:    services.UserApplicationCloudSettings,
		tokens:                  services.Tokens,
		twoFactorAuthorizations: services.TwoFactorAuthorizations,
		userExternalAuths:       services.UserExternalAuths,
	}
)

Initialize a authorization api singleton instance

View Source
var (
	DataManagements = &DataManagementsApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		tokens:                  services.Tokens,
		users:                   services.Users,
		accounts:                services.Accounts,
		transactions:            services.Transactions,
		categories:              services.TransactionCategories,
		tags:                    services.TransactionTags,
		tagGroups:               services.TransactionTagGroups,
		pictures:                services.TransactionPictures,
		templates:               services.TransactionTemplates,
		userCustomExchangeRates: services.UserCustomExchangeRates,
		insightsExploreres:      services.InsightsExplorers,
	}
)

Initialize a data management api singleton instance

View Source
var (
	Default = &DefaultApi{}
)

Initialize a default api singleton instance

View Source
var (
	ExchangeRates = &ExchangeRatesApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		users:                   services.Users,
		userCustomExchangeRates: services.UserCustomExchangeRates,
	}
)

Initialize a exchange rate api singleton instance

View Source
var (
	ForgetPasswords = &ForgetPasswordsApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiUsingDuplicateChecker: ApiUsingDuplicateChecker{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			container: duplicatechecker.Container,
		},
		users:           services.Users,
		tokens:          services.Tokens,
		forgetPasswords: services.ForgetPasswords,
	}
)

Initialize a user api singleton instance

View Source
var (
	Healths = &HealthsApi{}
)

Initialize a healths api singleton instance

View Source
var (
	InsightsExplorers = &InsightsExplorersApi{
		insightsExploreres: services.InsightsExplorers,
	}
)

Initialize a insights explorers api singleton instance

View Source
var (
	LargeLanguageModels = &LargeLanguageModelsApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		transactionCategories: services.TransactionCategories,
		transactionTags:       services.TransactionTags,
		accounts:              services.Accounts,
		users:                 services.Users,
	}
)

Initialize a large language models api singleton instance

View Source
var (
	MapImages = &MapImageProxy{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
	}
)

Initialize a map image proxy singleton instance

View Source
var (
	ModelContextProtocols = &ModelContextProtocolAPI{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		transactions:          services.Transactions,
		transactionCategories: services.TransactionCategories,
		transactionTags:       services.TransactionTags,
		accounts:              services.Accounts,
		users:                 services.Users,
		tokens:                services.Tokens,
	}
)

Initialize a model context protocol api singleton instance

View Source
var (
	OAuth2Authentications = &OAuth2AuthenticationApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiUsingDuplicateChecker: ApiUsingDuplicateChecker{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			container: duplicatechecker.Container,
		},
		users:             services.Users,
		tokens:            services.Tokens,
		userExternalAuths: services.UserExternalAuths,
	}
)

Initialize a OAuth 2.0 authentication api singleton instance

View Source
var (
	QrCodes = &QrCodesApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
	}
)

Initialize a qrcode generator api singleton instance

View Source
var (
	ServerSettings = &ServerSettingsApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
	}
)

Initialize a server settings api singleton instance

View Source
var (
	Systems = &SystemsApi{}
)

Initialize a system api singleton instance

View Source
var (
	Tokens = &TokensApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiWithUserInfo: ApiWithUserInfo{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			ApiUsingAvatarProvider: ApiUsingAvatarProvider{
				container: avatars.Container,
			},
		},
		tokens:               services.Tokens,
		users:                services.Users,
		userAppCloudSettings: services.UserApplicationCloudSettings,
	}
)

Initialize a token api singleton instance

View Source
var (
	TransactionCategories = &TransactionCategoriesApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiUsingDuplicateChecker: ApiUsingDuplicateChecker{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			container: duplicatechecker.Container,
		},
		categories: services.TransactionCategories,
	}
)

Initialize a transaction category api singleton instance

View Source
var (
	TransactionPictures = &TransactionPicturesApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiUsingDuplicateChecker: ApiUsingDuplicateChecker{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			container: duplicatechecker.Container,
		},
		users:    services.Users,
		pictures: services.TransactionPictures,
	}
)

Initialize a transaction api singleton instance

View Source
var (
	TransactionTagGroups = &TransactionTagGroupsApi{
		tagGroups: services.TransactionTagGroups,
	}
)

Initialize a transaction tag group api singleton instance

View Source
var (
	TransactionTags = &TransactionTagsApi{
		tags: services.TransactionTags,
	}
)

Initialize a transaction tag api singleton instance

View Source
var (
	TransactionTemplates = &TransactionTemplatesApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiUsingDuplicateChecker: ApiUsingDuplicateChecker{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			container: duplicatechecker.Container,
		},
		templates: services.TransactionTemplates,
	}
)

Initialize a transaction template api singleton instance

View Source
var (
	Transactions = &TransactionsApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiUsingDuplicateChecker: ApiUsingDuplicateChecker{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			container: duplicatechecker.Container,
		},
		transactions:          services.Transactions,
		transactionCategories: services.TransactionCategories,
		transactionTags:       services.TransactionTags,
		transactionPictures:   services.TransactionPictures,
		accounts:              services.Accounts,
		users:                 services.Users,
	}
)

Initialize a transaction api singleton instance

View Source
var (
	TwoFactorAuthorizations = &TwoFactorAuthorizationsApi{
		twoFactorAuthorizations: services.TwoFactorAuthorizations,
		users:                   services.Users,
		tokens:                  services.Tokens,
	}
)

Initialize a 2fa api singleton instance

View Source
var (
	UserApplicationCloudSettings = &UserApplicationCloudSettingsApi{
		userAppCloudSettings: services.UserApplicationCloudSettings,
		users:                services.Users,
	}
)

Initialize a user application cloud settings api singleton instance

View Source
var (
	UserExternalAuths = &UserExternalAuthsApi{
		users:             services.Users,
		userExternalAuths: services.UserExternalAuths,
	}
)

Initialize a user external auth api singleton instance

View Source
var (
	Users = &UsersApi{
		ApiUsingConfig: ApiUsingConfig{
			container: settings.Container,
		},
		ApiWithUserInfo: ApiWithUserInfo{
			ApiUsingConfig: ApiUsingConfig{
				container: settings.Container,
			},
			ApiUsingAvatarProvider: ApiUsingAvatarProvider{
				container: avatars.Container,
			},
		},
		users:    services.Users,
		tokens:   services.Tokens,
		accounts: services.Accounts,
	}
)

Initialize a user api singleton instance

Functions

This section is empty.

Types

type AccountsApi

type AccountsApi struct {
	ApiUsingConfig
	ApiUsingDuplicateChecker
	// contains filtered or unexported fields
}

AccountsApi represents account api

func (*AccountsApi) AccountCreateHandler

func (a *AccountsApi) AccountCreateHandler(c *core.WebContext) (any, *errs.Error)

AccountCreateHandler saves a new account by request parameters for current user

func (*AccountsApi) AccountDeleteHandler

func (a *AccountsApi) AccountDeleteHandler(c *core.WebContext) (any, *errs.Error)

AccountDeleteHandler deletes an existed account by request parameters for current user

func (*AccountsApi) AccountGetHandler

func (a *AccountsApi) AccountGetHandler(c *core.WebContext) (any, *errs.Error)

AccountGetHandler returns one specific account of current user

func (*AccountsApi) AccountHideHandler

func (a *AccountsApi) AccountHideHandler(c *core.WebContext) (any, *errs.Error)

AccountHideHandler hides an existed account by request parameters for current user

func (*AccountsApi) AccountListHandler

func (a *AccountsApi) AccountListHandler(c *core.WebContext) (any, *errs.Error)

AccountListHandler returns accounts list of current user

func (*AccountsApi) AccountModifyHandler

func (a *AccountsApi) AccountModifyHandler(c *core.WebContext) (any, *errs.Error)

AccountModifyHandler saves an existed account by request parameters for current user

func (*AccountsApi) AccountMoveHandler

func (a *AccountsApi) AccountMoveHandler(c *core.WebContext) (any, *errs.Error)

AccountMoveHandler moves display order of existed accounts by request parameters for current user

func (*AccountsApi) SubAccountDeleteHandler added in v0.9.0

func (a *AccountsApi) SubAccountDeleteHandler(c *core.WebContext) (any, *errs.Error)

SubAccountDeleteHandler deletes an existed sub-account by request parameters for current user

type AmapApiProxy added in v0.4.0

type AmapApiProxy struct {
	ApiUsingConfig
}

AmapApiProxy represents amap api proxy

func (*AmapApiProxy) AmapApiProxyHandler added in v0.4.0

func (p *AmapApiProxy) AmapApiProxyHandler(c *core.WebContext) (*httputil.ReverseProxy, *errs.Error)

AmapApiProxyHandler returns amap api response

type ApiUsingAvatarProvider added in v0.6.0

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

ApiUsingAvatarProvider represents an api that need to use avatar provider

func (*ApiUsingAvatarProvider) GetAvatarUrl added in v0.6.0

func (a *ApiUsingAvatarProvider) GetAvatarUrl(user *models.User) string

GetAvatarUrl returns the avatar url by the current user avatar provider

type ApiUsingConfig added in v0.6.0

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

ApiUsingConfig represents an api that need to use config

func (*ApiUsingConfig) CurrentConfig added in v0.6.0

func (a *ApiUsingConfig) CurrentConfig() *settings.Config

CurrentConfig returns the current config

func (*ApiUsingConfig) GetAfterLoginNotificationContent added in v0.6.0

func (a *ApiUsingConfig) GetAfterLoginNotificationContent(userLanguage string, clientLanguage string) string

GetAfterLoginNotificationContent returns the notification content displayed each time users log in

func (*ApiUsingConfig) GetAfterOpenNotificationContent added in v0.6.0

func (a *ApiUsingConfig) GetAfterOpenNotificationContent(userLanguage string, clientLanguage string) string

GetAfterOpenNotificationContent returns the notification content displayed each time users open the app

func (*ApiUsingConfig) GetAfterRegisterNotificationContent added in v0.6.0

func (a *ApiUsingConfig) GetAfterRegisterNotificationContent(userLanguage string, clientLanguage string) string

GetAfterRegisterNotificationContent returns the notification content displayed each time users register

func (*ApiUsingConfig) GetTransactionPictureInfoResponse added in v0.6.0

func (a *ApiUsingConfig) GetTransactionPictureInfoResponse(pictureInfo *models.TransactionPictureInfo) *models.TransactionPictureInfoBasicResponse

GetTransactionPictureInfoResponse returns the view-object of transaction picture basic info according to the transaction picture model

func (*ApiUsingConfig) GetTransactionPictureInfoResponseList added in v0.6.0

func (a *ApiUsingConfig) GetTransactionPictureInfoResponseList(pictureInfos []*models.TransactionPictureInfo) models.TransactionPictureInfoBasicResponseSlice

GetTransactionPictureInfoResponseList returns the view-object list of transaction picture basic info according to the transaction picture model

type ApiUsingDuplicateChecker added in v0.6.0

type ApiUsingDuplicateChecker struct {
	ApiUsingConfig
	// contains filtered or unexported fields
}

ApiUsingDuplicateChecker represents an api that need to use duplicate checker

func (*ApiUsingDuplicateChecker) CheckAndIncreaseFailureCount added in v0.8.0

func (a *ApiUsingDuplicateChecker) CheckAndIncreaseFailureCount(c *core.WebContext, uid int64) error

CheckAndIncreaseFailureCount returns whether the failure count of the specified IP and user has reached the limit and increases the failure count

func (*ApiUsingDuplicateChecker) CheckFailureCount added in v0.8.0

func (a *ApiUsingDuplicateChecker) CheckFailureCount(c *core.WebContext, uid int64) error

CheckFailureCount returns whether the failure count of the specified IP and user has reached the limit and increases the failure count

func (*ApiUsingDuplicateChecker) GetSubmissionRemark added in v0.6.0

func (a *ApiUsingDuplicateChecker) GetSubmissionRemark(checkerType duplicatechecker.DuplicateCheckerType, uid int64, identification string) (bool, string)

GetSubmissionRemark returns whether the same submission has been processed and related remark by the current duplicate checker

func (*ApiUsingDuplicateChecker) RemoveSubmissionRemark added in v1.2.0

func (a *ApiUsingDuplicateChecker) RemoveSubmissionRemark(checkerType duplicatechecker.DuplicateCheckerType, uid int64, identification string)

RemoveSubmissionRemark removes the identification and remark by the current duplicate checker

func (*ApiUsingDuplicateChecker) RemoveSubmissionRemarkIfEnable added in v0.9.0

func (a *ApiUsingDuplicateChecker) RemoveSubmissionRemarkIfEnable(checkerType duplicatechecker.DuplicateCheckerType, uid int64, identification string)

RemoveSubmissionRemarkIfEnable removes the identification and remark by the current duplicate checker if the duplicate submission check is enabled

func (*ApiUsingDuplicateChecker) SetSubmissionRemarkIfEnable added in v0.9.0

func (a *ApiUsingDuplicateChecker) SetSubmissionRemarkIfEnable(checkerType duplicatechecker.DuplicateCheckerType, uid int64, identification string, remark string)

SetSubmissionRemarkIfEnable saves the identification and remark by the current duplicate checker if the duplicate submission check is enabled

func (*ApiUsingDuplicateChecker) SetSubmissionRemarkWithCustomExpiration added in v1.2.0

func (a *ApiUsingDuplicateChecker) SetSubmissionRemarkWithCustomExpiration(checkerType duplicatechecker.DuplicateCheckerType, uid int64, identification string, remark string, expiration time.Duration)

SetSubmissionRemarkWithCustomExpiration saves the identification and remark by the current duplicate checker with custom expiration time

type ApiWithUserInfo added in v0.6.0

type ApiWithUserInfo struct {
	ApiUsingConfig
	ApiUsingAvatarProvider
}

ApiWithUserInfo represents an api that can returns user info

func (*ApiWithUserInfo) GetUserBasicInfo added in v0.6.0

func (a *ApiWithUserInfo) GetUserBasicInfo(user *models.User) *models.UserBasicInfo

GetUserBasicInfo returns the view-object of user basic info according to the user model

type AuthorizationsApi

type AuthorizationsApi struct {
	ApiUsingConfig
	ApiUsingDuplicateChecker
	ApiWithUserInfo
	// contains filtered or unexported fields
}

AuthorizationsApi represents authorization api

func (*AuthorizationsApi) AuthorizeHandler

func (a *AuthorizationsApi) AuthorizeHandler(c *core.WebContext) (any, *errs.Error)

AuthorizeHandler verifies and authorizes current login request

func (*AuthorizationsApi) OAuth2CallbackAuthorizeHandler added in v1.2.0

func (a *AuthorizationsApi) OAuth2CallbackAuthorizeHandler(c *core.WebContext) (any, *errs.Error)

OAuth2CallbackAuthorizeHandler verifies and authorizes current OAuth 2.0 callback login

func (*AuthorizationsApi) TwoFactorAuthorizeByRecoveryCodeHandler

func (a *AuthorizationsApi) TwoFactorAuthorizeByRecoveryCodeHandler(c *core.WebContext) (any, *errs.Error)

TwoFactorAuthorizeByRecoveryCodeHandler verifies and authorizes current 2fa login by recovery code

func (*AuthorizationsApi) TwoFactorAuthorizeHandler

func (a *AuthorizationsApi) TwoFactorAuthorizeHandler(c *core.WebContext) (any, *errs.Error)

TwoFactorAuthorizeHandler verifies and authorizes current 2fa login by passcode

type DataManagementsApi

type DataManagementsApi struct {
	ApiUsingConfig
	// contains filtered or unexported fields
}

DataManagementsApi represents data management api

func (*DataManagementsApi) ClearAllDataHandler added in v1.0.0

func (a *DataManagementsApi) ClearAllDataHandler(c *core.WebContext) (any, *errs.Error)

ClearAllDataHandler deletes all user data

func (*DataManagementsApi) ClearAllTransactionsByAccountHandler added in v1.1.0

func (a *DataManagementsApi) ClearAllTransactionsByAccountHandler(c *core.WebContext) (any, *errs.Error)

ClearAllTransactionsByAccountHandler deletes all transactions of specified account

func (*DataManagementsApi) ClearAllTransactionsHandler added in v1.0.0

func (a *DataManagementsApi) ClearAllTransactionsHandler(c *core.WebContext) (any, *errs.Error)

ClearAllTransactionsHandler deletes all transactions

func (*DataManagementsApi) DataStatisticsHandler added in v0.2.0

func (a *DataManagementsApi) DataStatisticsHandler(c *core.WebContext) (any, *errs.Error)

DataStatisticsHandler returns user data statistics

func (*DataManagementsApi) ExportDataToEzbookkeepingCSVHandler added in v0.5.0

func (a *DataManagementsApi) ExportDataToEzbookkeepingCSVHandler(c *core.WebContext) ([]byte, string, *errs.Error)

ExportDataToEzbookkeepingCSVHandler returns exported data in csv format

func (*DataManagementsApi) ExportDataToEzbookkeepingTSVHandler added in v0.5.0

func (a *DataManagementsApi) ExportDataToEzbookkeepingTSVHandler(c *core.WebContext) ([]byte, string, *errs.Error)

ExportDataToEzbookkeepingTSVHandler returns exported data in csv format

type DefaultApi

type DefaultApi struct{}

DefaultApi represents default api

func (*DefaultApi) ApiNotFound

func (a *DefaultApi) ApiNotFound(c *core.WebContext) (any, *errs.Error)

ApiNotFound returns api not found error

func (*DefaultApi) MethodNotAllowed

func (a *DefaultApi) MethodNotAllowed(c *core.WebContext) (any, *errs.Error)

MethodNotAllowed returns method not allowed error

type ExchangeRatesApi

type ExchangeRatesApi struct {
	ApiUsingConfig
	// contains filtered or unexported fields
}

ExchangeRatesApi represents exchange rate api

func (*ExchangeRatesApi) LatestExchangeRateHandler

func (a *ExchangeRatesApi) LatestExchangeRateHandler(c *core.WebContext) (any, *errs.Error)

LatestExchangeRateHandler returns latest exchange rate data

func (*ExchangeRatesApi) UserCustomExchangeRateDeleteHandler added in v0.9.0

func (a *ExchangeRatesApi) UserCustomExchangeRateDeleteHandler(c *core.WebContext) (any, *errs.Error)

UserCustomExchangeRateDeleteHandler deletes an existed user custom exchange rates data by request parameters for current user

func (*ExchangeRatesApi) UserCustomExchangeRateUpdateHandler added in v0.9.0

func (a *ExchangeRatesApi) UserCustomExchangeRateUpdateHandler(c *core.WebContext) (any, *errs.Error)

UserCustomExchangeRateUpdateHandler updates user custom exchange rates data by request parameters for current user

type ForgetPasswordsApi added in v0.4.0

type ForgetPasswordsApi struct {
	ApiUsingConfig
	ApiUsingDuplicateChecker
	// contains filtered or unexported fields
}

ForgetPasswordsApi represents user forget password api

func (*ForgetPasswordsApi) UserForgetPasswordRequestHandler added in v0.4.0

func (a *ForgetPasswordsApi) UserForgetPasswordRequestHandler(c *core.WebContext) (any, *errs.Error)

UserForgetPasswordRequestHandler generates password reset link and send user an email with this link

func (*ForgetPasswordsApi) UserResetPasswordHandler added in v0.4.0

func (a *ForgetPasswordsApi) UserResetPasswordHandler(c *core.WebContext) (any, *errs.Error)

UserResetPasswordHandler resets user password by request parameters

type HealthsApi added in v0.2.0

type HealthsApi struct{}

HealthsApi represents health api

func (*HealthsApi) HealthStatusHandler added in v0.2.0

func (a *HealthsApi) HealthStatusHandler(c *core.WebContext) (any, *errs.Error)

HealthStatusHandler returns the health status of current service

type InsightsExplorersApi added in v1.3.0

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

InsightsExplorersApi represents insights explorers api

func (*InsightsExplorersApi) InsightsExplorerCreateHandler added in v1.3.0

func (a *InsightsExplorersApi) InsightsExplorerCreateHandler(c *core.WebContext) (any, *errs.Error)

InsightsExplorerCreateHandler saves a new insights explorer by request parameters for current user

func (*InsightsExplorersApi) InsightsExplorerDeleteHandler added in v1.3.0

func (a *InsightsExplorersApi) InsightsExplorerDeleteHandler(c *core.WebContext) (any, *errs.Error)

InsightsExplorerDeleteHandler deletes an existed insights explorer by request parameters for current user

func (*InsightsExplorersApi) InsightsExplorerGetHandler added in v1.3.0

func (a *InsightsExplorersApi) InsightsExplorerGetHandler(c *core.WebContext) (any, *errs.Error)

InsightsExplorerGetHandler returns one specific insights explorer of current user

func (*InsightsExplorersApi) InsightsExplorerHideHandler added in v1.3.0

func (a *InsightsExplorersApi) InsightsExplorerHideHandler(c *core.WebContext) (any, *errs.Error)

InsightsExplorerHideHandler hides a insights explorer by request parameters for current user

func (*InsightsExplorersApi) InsightsExplorerListHandler added in v1.3.0

func (a *InsightsExplorersApi) InsightsExplorerListHandler(c *core.WebContext) (any, *errs.Error)

InsightsExplorerListHandler returns insights explorer list of current user

func (*InsightsExplorersApi) InsightsExplorerModifyHandler added in v1.3.0

func (a *InsightsExplorersApi) InsightsExplorerModifyHandler(c *core.WebContext) (any, *errs.Error)

InsightsExplorerModifyHandler saves an existed insights explorer by request parameters for current user

func (*InsightsExplorersApi) InsightsExplorerMoveHandler added in v1.3.0

func (a *InsightsExplorersApi) InsightsExplorerMoveHandler(c *core.WebContext) (any, *errs.Error)

InsightsExplorerMoveHandler moves display order of existed insights explorers by request parameters for current user

type LargeLanguageModelsApi added in v1.1.0

type LargeLanguageModelsApi struct {
	ApiUsingConfig
	// contains filtered or unexported fields
}

LargeLanguageModelsApi represents large language models api

func (*LargeLanguageModelsApi) RecognizeReceiptImageHandler added in v1.1.0

func (a *LargeLanguageModelsApi) RecognizeReceiptImageHandler(c *core.WebContext) (any, *errs.Error)

RecognizeReceiptImageHandler returns the recognized receipt image result

type MapImageProxy added in v0.3.0

type MapImageProxy struct {
	ApiUsingConfig
	// contains filtered or unexported fields
}

MapImageProxy represents map image proxy

func (*MapImageProxy) MapAnnotationImageProxyHandler added in v0.5.0

func (p *MapImageProxy) MapAnnotationImageProxyHandler(c *core.WebContext) (*httputil.ReverseProxy, *errs.Error)

MapAnnotationImageProxyHandler returns map annotation image

func (*MapImageProxy) MapTileImageProxyHandler added in v0.4.0

func (p *MapImageProxy) MapTileImageProxyHandler(c *core.WebContext) (*httputil.ReverseProxy, *errs.Error)

MapTileImageProxyHandler returns map tile image

type ModelContextProtocolAPI added in v0.10.0

type ModelContextProtocolAPI struct {
	ApiUsingConfig
	// contains filtered or unexported fields
}

ModelContextProtocolAPI represents model context protocol api

func (*ModelContextProtocolAPI) CallToolHandler added in v0.10.0

func (a *ModelContextProtocolAPI) CallToolHandler(c *core.WebContext, jsonRPCRequest *core.JSONRPCRequest) (any, *errs.Error)

CallToolHandler returns the result of calling a specific tool for model context protocol

func (*ModelContextProtocolAPI) GetAccountService added in v0.10.0

func (a *ModelContextProtocolAPI) GetAccountService() *services.AccountService

GetAccountService implements the MCPAvailableServices interface

func (*ModelContextProtocolAPI) GetTransactionCategoryService added in v0.10.0

func (a *ModelContextProtocolAPI) GetTransactionCategoryService() *services.TransactionCategoryService

GetTransactionCategoryService implements the MCPAvailableServices interface

func (*ModelContextProtocolAPI) GetTransactionService added in v0.10.0

func (a *ModelContextProtocolAPI) GetTransactionService() *services.TransactionService

GetTransactionService implements the MCPAvailableServices interface

func (*ModelContextProtocolAPI) GetTransactionTagService added in v0.10.0

func (a *ModelContextProtocolAPI) GetTransactionTagService() *services.TransactionTagService

GetTransactionTagService implements the MCPAvailableServices interface

func (*ModelContextProtocolAPI) GetUserService added in v0.10.0

func (a *ModelContextProtocolAPI) GetUserService() *services.UserService

GetUserService implements the MCPAvailableServices interface

func (*ModelContextProtocolAPI) InitializeHandler added in v0.10.0

func (a *ModelContextProtocolAPI) InitializeHandler(c *core.WebContext, jsonRPCRequest *core.JSONRPCRequest) (any, *errs.Error)

InitializeHandler returns the initialize response for model context protocol

func (*ModelContextProtocolAPI) ListResourcesHandler added in v0.10.0

func (a *ModelContextProtocolAPI) ListResourcesHandler(c *core.WebContext, jsonRPCRequest *core.JSONRPCRequest) (any, *errs.Error)

ListResourcesHandler returns the list of resources for model context protocol

func (*ModelContextProtocolAPI) ListToolsHandler added in v0.10.0

func (a *ModelContextProtocolAPI) ListToolsHandler(c *core.WebContext, jsonRPCRequest *core.JSONRPCRequest) (any, *errs.Error)

ListToolsHandler returns the list of tools for model context protocol

func (*ModelContextProtocolAPI) PingHandler added in v0.10.0

func (a *ModelContextProtocolAPI) PingHandler(c *core.WebContext, jsonRPCRequest *core.JSONRPCRequest) (any, *errs.Error)

PingHandler return the ping response for model context protocol

func (*ModelContextProtocolAPI) ReadResourceHandler added in v0.10.0

func (a *ModelContextProtocolAPI) ReadResourceHandler(c *core.WebContext, jsonRPCRequest *core.JSONRPCRequest) (any, *errs.Error)

ReadResourceHandler returns the resource details for a specific resource in model context protocol

type OAuth2AuthenticationApi added in v1.2.0

type OAuth2AuthenticationApi struct {
	ApiUsingConfig
	ApiUsingDuplicateChecker
	// contains filtered or unexported fields
}

OAuth2AuthenticationApi represents OAuth 2.0 authorization api

func (*OAuth2AuthenticationApi) CallbackHandler added in v1.2.0

func (a *OAuth2AuthenticationApi) CallbackHandler(c *core.WebContext) (string, *errs.Error)

CallbackHandler handles OAuth 2.0 callback request

func (*OAuth2AuthenticationApi) LoginHandler added in v1.2.0

func (a *OAuth2AuthenticationApi) LoginHandler(c *core.WebContext) (string, *errs.Error)

LoginHandler handles user login request via OAuth 2.0

type QrCodesApi added in v0.4.0

type QrCodesApi struct {
	ApiUsingConfig
}

QrCodesApi represents qrcode generator api

func (*QrCodesApi) MobileUrlQrCodeHandler added in v0.4.0

func (a *QrCodesApi) MobileUrlQrCodeHandler(c *core.WebContext) ([]byte, string, *errs.Error)

MobileUrlQrCodeHandler returns a mobile url qr code image

type ServerSettingsApi added in v0.7.0

type ServerSettingsApi struct {
	ApiUsingConfig
}

ServerSettingsApi represents server settings api

func (*ServerSettingsApi) ServerSettingsJavascriptHandler added in v0.7.0

func (a *ServerSettingsApi) ServerSettingsJavascriptHandler(c *core.WebContext) ([]byte, string, *errs.Error)

ServerSettingsJavascriptHandler returns the javascript contains server settings

type SystemsApi added in v0.10.0

type SystemsApi struct{}

SystemsApi represents system api

func (*SystemsApi) VersionHandler added in v0.10.0

func (a *SystemsApi) VersionHandler(c *core.WebContext) (any, *errs.Error)

VersionHandler returns the server version and commit hash

type TokensApi

type TokensApi struct {
	ApiUsingConfig
	ApiWithUserInfo
	// contains filtered or unexported fields
}

TokensApi represents token api

func (*TokensApi) TokenGenerateAPIHandler added in v1.2.0

func (a *TokensApi) TokenGenerateAPIHandler(c *core.WebContext) (any, *errs.Error)

TokenGenerateAPIHandler generates a new API token for current user

func (*TokensApi) TokenGenerateMCPHandler added in v0.10.0

func (a *TokensApi) TokenGenerateMCPHandler(c *core.WebContext) (any, *errs.Error)

TokenGenerateMCPHandler generates a new MCP token for current user

func (*TokensApi) TokenListHandler

func (a *TokensApi) TokenListHandler(c *core.WebContext) (any, *errs.Error)

TokenListHandler returns available token list of current user

func (*TokensApi) TokenRefreshHandler

func (a *TokensApi) TokenRefreshHandler(c *core.WebContext) (any, *errs.Error)

TokenRefreshHandler refresh current token of current user

func (*TokensApi) TokenRevokeAllHandler

func (a *TokensApi) TokenRevokeAllHandler(c *core.WebContext) (any, *errs.Error)

TokenRevokeAllHandler revokes all tokens of current user except current token

func (*TokensApi) TokenRevokeCurrentHandler

func (a *TokensApi) TokenRevokeCurrentHandler(c *core.WebContext) (any, *errs.Error)

TokenRevokeCurrentHandler revokes current token of current user

func (*TokensApi) TokenRevokeHandler

func (a *TokensApi) TokenRevokeHandler(c *core.WebContext) (any, *errs.Error)

TokenRevokeHandler revokes specific token of current user

type TransactionCategoriesApi

type TransactionCategoriesApi struct {
	ApiUsingConfig
	ApiUsingDuplicateChecker
	// contains filtered or unexported fields
}

TransactionCategoriesApi represents transaction category api

func (*TransactionCategoriesApi) CategoryCreateBatchHandler

func (a *TransactionCategoriesApi) CategoryCreateBatchHandler(c *core.WebContext) (any, *errs.Error)

CategoryCreateBatchHandler saves some new transaction category by request parameters for current user

func (*TransactionCategoriesApi) CategoryCreateHandler

func (a *TransactionCategoriesApi) CategoryCreateHandler(c *core.WebContext) (any, *errs.Error)

CategoryCreateHandler saves a new transaction category by request parameters for current user

func (*TransactionCategoriesApi) CategoryDeleteHandler

func (a *TransactionCategoriesApi) CategoryDeleteHandler(c *core.WebContext) (any, *errs.Error)

CategoryDeleteHandler deletes an existed transaction category by request parameters for current user

func (*TransactionCategoriesApi) CategoryGetHandler

func (a *TransactionCategoriesApi) CategoryGetHandler(c *core.WebContext) (any, *errs.Error)

CategoryGetHandler returns one specific transaction category of current user

func (*TransactionCategoriesApi) CategoryHideHandler

func (a *TransactionCategoriesApi) CategoryHideHandler(c *core.WebContext) (any, *errs.Error)

CategoryHideHandler hides an existed transaction category by request parameters for current user

func (*TransactionCategoriesApi) CategoryListHandler

func (a *TransactionCategoriesApi) CategoryListHandler(c *core.WebContext) (any, *errs.Error)

CategoryListHandler returns transaction category list of current user

func (*TransactionCategoriesApi) CategoryModifyHandler

func (a *TransactionCategoriesApi) CategoryModifyHandler(c *core.WebContext) (any, *errs.Error)

CategoryModifyHandler saves an existed transaction category by request parameters for current user

func (*TransactionCategoriesApi) CategoryMoveHandler

func (a *TransactionCategoriesApi) CategoryMoveHandler(c *core.WebContext) (any, *errs.Error)

CategoryMoveHandler moves display order of existed transaction categories by request parameters for current user

type TransactionPicturesApi added in v0.6.0

type TransactionPicturesApi struct {
	ApiUsingConfig
	ApiUsingDuplicateChecker
	// contains filtered or unexported fields
}

TransactionPicturesApi represents transaction pictures api

func (*TransactionPicturesApi) TransactionPictureGetHandler added in v0.6.0

func (a *TransactionPicturesApi) TransactionPictureGetHandler(c *core.WebContext) ([]byte, string, *errs.Error)

TransactionPictureGetHandler returns transaction picture data for current user

func (*TransactionPicturesApi) TransactionPictureRemoveUnusedHandler added in v0.6.0

func (a *TransactionPicturesApi) TransactionPictureRemoveUnusedHandler(c *core.WebContext) (any, *errs.Error)

TransactionPictureRemoveUnusedHandler removes unused transaction picture by request parameters for current user

func (*TransactionPicturesApi) TransactionPictureUploadHandler added in v0.6.0

func (a *TransactionPicturesApi) TransactionPictureUploadHandler(c *core.WebContext) (any, *errs.Error)

TransactionPictureUploadHandler saves transaction picture by request parameters for current user

type TransactionTagGroupsApi added in v1.3.0

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

TransactionTagGroupsApi represents transaction tag group api

func (*TransactionTagGroupsApi) TagGroupCreateHandler added in v1.3.0

func (a *TransactionTagGroupsApi) TagGroupCreateHandler(c *core.WebContext) (any, *errs.Error)

TagGroupCreateHandler saves a new transaction tag group by request parameters for current user

func (*TransactionTagGroupsApi) TagGroupDeleteHandler added in v1.3.0

func (a *TransactionTagGroupsApi) TagGroupDeleteHandler(c *core.WebContext) (any, *errs.Error)

TagGroupDeleteHandler deletes an existed transaction tag group by request parameters for current user

func (*TransactionTagGroupsApi) TagGroupGetHandler added in v1.3.0

func (a *TransactionTagGroupsApi) TagGroupGetHandler(c *core.WebContext) (any, *errs.Error)

TagGroupGetHandler returns one specific transaction tag group of current user

func (*TransactionTagGroupsApi) TagGroupListHandler added in v1.3.0

func (a *TransactionTagGroupsApi) TagGroupListHandler(c *core.WebContext) (any, *errs.Error)

TagGroupListHandler returns transaction tag group list of current user

func (*TransactionTagGroupsApi) TagGroupModifyHandler added in v1.3.0

func (a *TransactionTagGroupsApi) TagGroupModifyHandler(c *core.WebContext) (any, *errs.Error)

TagGroupModifyHandler saves an existed transaction tag group by request parameters for current user

func (*TransactionTagGroupsApi) TagGroupMoveHandler added in v1.3.0

func (a *TransactionTagGroupsApi) TagGroupMoveHandler(c *core.WebContext) (any, *errs.Error)

TagGroupMoveHandler moves display order of existed transaction tag groups by request parameters for current user

type TransactionTagsApi

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

TransactionTagsApi represents transaction tag api

func (*TransactionTagsApi) TagCreateBatchHandler added in v0.9.0

func (a *TransactionTagsApi) TagCreateBatchHandler(c *core.WebContext) (any, *errs.Error)

TagCreateBatchHandler saves some new transaction tags by request parameters for current user

func (*TransactionTagsApi) TagCreateHandler

func (a *TransactionTagsApi) TagCreateHandler(c *core.WebContext) (any, *errs.Error)

TagCreateHandler saves a new transaction tag by request parameters for current user

func (*TransactionTagsApi) TagDeleteHandler

func (a *TransactionTagsApi) TagDeleteHandler(c *core.WebContext) (any, *errs.Error)

TagDeleteHandler deletes an existed transaction tag by request parameters for current user

func (*TransactionTagsApi) TagGetHandler

func (a *TransactionTagsApi) TagGetHandler(c *core.WebContext) (any, *errs.Error)

TagGetHandler returns one specific transaction tag of current user

func (*TransactionTagsApi) TagHideHandler

func (a *TransactionTagsApi) TagHideHandler(c *core.WebContext) (any, *errs.Error)

TagHideHandler hides a transaction tag by request parameters for current user

func (*TransactionTagsApi) TagListHandler

func (a *TransactionTagsApi) TagListHandler(c *core.WebContext) (any, *errs.Error)

TagListHandler returns transaction tag list of current user

func (*TransactionTagsApi) TagModifyHandler

func (a *TransactionTagsApi) TagModifyHandler(c *core.WebContext) (any, *errs.Error)

TagModifyHandler saves an existed transaction tag by request parameters for current user

func (*TransactionTagsApi) TagMoveHandler

func (a *TransactionTagsApi) TagMoveHandler(c *core.WebContext) (any, *errs.Error)

TagMoveHandler moves display order of existed transaction tags by request parameters for current user

type TransactionTemplatesApi added in v0.5.0

type TransactionTemplatesApi struct {
	ApiUsingConfig
	ApiUsingDuplicateChecker
	// contains filtered or unexported fields
}

TransactionTemplatesApi represents transaction template api

func (*TransactionTemplatesApi) TemplateCreateHandler added in v0.5.0

func (a *TransactionTemplatesApi) TemplateCreateHandler(c *core.WebContext) (any, *errs.Error)

TemplateCreateHandler saves a new transaction template by request parameters for current user

func (*TransactionTemplatesApi) TemplateDeleteHandler added in v0.5.0

func (a *TransactionTemplatesApi) TemplateDeleteHandler(c *core.WebContext) (any, *errs.Error)

TemplateDeleteHandler deletes an existed transaction template by request parameters for current user

func (*TransactionTemplatesApi) TemplateGetHandler added in v0.5.0

func (a *TransactionTemplatesApi) TemplateGetHandler(c *core.WebContext) (any, *errs.Error)

TemplateGetHandler returns one specific transaction template of current user

func (*TransactionTemplatesApi) TemplateHideHandler added in v0.5.0

func (a *TransactionTemplatesApi) TemplateHideHandler(c *core.WebContext) (any, *errs.Error)

TemplateHideHandler hides a transaction template by request parameters for current user

func (*TransactionTemplatesApi) TemplateListHandler added in v0.5.0

func (a *TransactionTemplatesApi) TemplateListHandler(c *core.WebContext) (any, *errs.Error)

TemplateListHandler returns transaction template list of current user

func (*TransactionTemplatesApi) TemplateModifyHandler added in v0.5.0

func (a *TransactionTemplatesApi) TemplateModifyHandler(c *core.WebContext) (any, *errs.Error)

TemplateModifyHandler saves an existed transaction template by request parameters for current user

func (*TransactionTemplatesApi) TemplateMoveHandler added in v0.5.0

func (a *TransactionTemplatesApi) TemplateMoveHandler(c *core.WebContext) (any, *errs.Error)

TemplateMoveHandler moves display order of existed transaction templates by request parameters for current user

type TransactionsApi

type TransactionsApi struct {
	ApiUsingConfig
	ApiUsingDuplicateChecker
	// contains filtered or unexported fields
}

TransactionsApi represents transaction api

func (*TransactionsApi) TransactionAmountsHandler

func (a *TransactionsApi) TransactionAmountsHandler(c *core.WebContext) (any, *errs.Error)

TransactionAmountsHandler returns transaction amounts of current user

func (*TransactionsApi) TransactionCountHandler

func (a *TransactionsApi) TransactionCountHandler(c *core.WebContext) (any, *errs.Error)

TransactionCountHandler returns transaction total count of current user

func (*TransactionsApi) TransactionCreateHandler

func (a *TransactionsApi) TransactionCreateHandler(c *core.WebContext) (any, *errs.Error)

TransactionCreateHandler saves a new transaction by request parameters for current user

func (*TransactionsApi) TransactionDeleteHandler

func (a *TransactionsApi) TransactionDeleteHandler(c *core.WebContext) (any, *errs.Error)

TransactionDeleteHandler deletes an existed transaction by request parameters for current user

func (*TransactionsApi) TransactionGetHandler

func (a *TransactionsApi) TransactionGetHandler(c *core.WebContext) (any, *errs.Error)

TransactionGetHandler returns one specific transaction of current user

func (*TransactionsApi) TransactionImportHandler added in v0.6.0

func (a *TransactionsApi) TransactionImportHandler(c *core.WebContext) (any, *errs.Error)

TransactionImportHandler imports transactions by request parameters for current user

func (*TransactionsApi) TransactionImportProcessHandler added in v0.9.0

func (a *TransactionsApi) TransactionImportProcessHandler(c *core.WebContext) (any, *errs.Error)

TransactionImportProcessHandler returns the process of specified transaction import task by request parameters for current user

func (*TransactionsApi) TransactionListAllHandler added in v1.3.0

func (a *TransactionsApi) TransactionListAllHandler(c *core.WebContext) (any, *errs.Error)

TransactionListAllHandler returns all transaction list of current user

func (*TransactionsApi) TransactionListHandler

func (a *TransactionsApi) TransactionListHandler(c *core.WebContext) (any, *errs.Error)

TransactionListHandler returns transaction list of current user

func (*TransactionsApi) TransactionModifyHandler

func (a *TransactionsApi) TransactionModifyHandler(c *core.WebContext) (any, *errs.Error)

TransactionModifyHandler saves an existed transaction by request parameters for current user

func (*TransactionsApi) TransactionMonthListHandler

func (a *TransactionsApi) TransactionMonthListHandler(c *core.WebContext) (any, *errs.Error)

TransactionMonthListHandler returns all transaction list of current user by month

func (*TransactionsApi) TransactionMoveAllBetweenAccountsHandler added in v1.2.0

func (a *TransactionsApi) TransactionMoveAllBetweenAccountsHandler(c *core.WebContext) (any, *errs.Error)

TransactionMoveAllBetweenAccountsHandler moves all transactions from one account to another account for current user

func (*TransactionsApi) TransactionParseImportDsvFileDataHandler added in v0.8.0

func (a *TransactionsApi) TransactionParseImportDsvFileDataHandler(c *core.WebContext) (any, *errs.Error)

TransactionParseImportDsvFileDataHandler returns the parsed file data by request parameters for current user

func (*TransactionsApi) TransactionParseImportFileHandler added in v0.6.0

func (a *TransactionsApi) TransactionParseImportFileHandler(c *core.WebContext) (any, *errs.Error)

TransactionParseImportFileHandler returns the parsed transaction data by request parameters for current user

func (*TransactionsApi) TransactionReconciliationStatementHandler added in v1.0.0

func (a *TransactionsApi) TransactionReconciliationStatementHandler(c *core.WebContext) (any, *errs.Error)

TransactionReconciliationStatementHandler returns transaction reconciliation statement list of current user

func (*TransactionsApi) TransactionStatisticsAssetTrendsHandler added in v1.2.0

func (a *TransactionsApi) TransactionStatisticsAssetTrendsHandler(c *core.WebContext) (any, *errs.Error)

TransactionStatisticsAssetTrendsHandler returns transaction statistics asset trends of current user

func (*TransactionsApi) TransactionStatisticsHandler

func (a *TransactionsApi) TransactionStatisticsHandler(c *core.WebContext) (any, *errs.Error)

TransactionStatisticsHandler returns transaction statistics of current user

func (*TransactionsApi) TransactionStatisticsTrendsHandler added in v0.5.0

func (a *TransactionsApi) TransactionStatisticsTrendsHandler(c *core.WebContext) (any, *errs.Error)

TransactionStatisticsTrendsHandler returns transaction statistics trends of current user

type TwoFactorAuthorizationsApi

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

TwoFactorAuthorizationsApi represents 2fa api

func (*TwoFactorAuthorizationsApi) TwoFactorDisableHandler

func (a *TwoFactorAuthorizationsApi) TwoFactorDisableHandler(c *core.WebContext) (any, *errs.Error)

TwoFactorDisableHandler disables 2fa for current user

func (*TwoFactorAuthorizationsApi) TwoFactorEnableConfirmHandler

func (a *TwoFactorAuthorizationsApi) TwoFactorEnableConfirmHandler(c *core.WebContext) (any, *errs.Error)

TwoFactorEnableConfirmHandler enables 2fa for current user

func (*TwoFactorAuthorizationsApi) TwoFactorEnableRequestHandler

func (a *TwoFactorAuthorizationsApi) TwoFactorEnableRequestHandler(c *core.WebContext) (any, *errs.Error)

TwoFactorEnableRequestHandler returns a new 2fa secret and qr code for current user to set 2fa and verify passcode next

func (*TwoFactorAuthorizationsApi) TwoFactorRecoveryCodeRegenerateHandler

func (a *TwoFactorAuthorizationsApi) TwoFactorRecoveryCodeRegenerateHandler(c *core.WebContext) (any, *errs.Error)

TwoFactorRecoveryCodeRegenerateHandler returns new 2fa recovery codes and revokes old recovery codes for current user

func (*TwoFactorAuthorizationsApi) TwoFactorStatusHandler

func (a *TwoFactorAuthorizationsApi) TwoFactorStatusHandler(c *core.WebContext) (any, *errs.Error)

TwoFactorStatusHandler returns 2fa status of current user

type UserApplicationCloudSettingsApi added in v0.10.0

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

UserApplicationCloudSettingsApi represents user application cloud settings api

func (*UserApplicationCloudSettingsApi) ApplicationSettingsDisableHandler added in v0.10.0

func (a *UserApplicationCloudSettingsApi) ApplicationSettingsDisableHandler(c *core.WebContext) (any, *errs.Error)

ApplicationSettingsDisableHandler disabled user application cloud settings by request parameters for current user

func (*UserApplicationCloudSettingsApi) ApplicationSettingsGetHandler added in v0.10.0

func (a *UserApplicationCloudSettingsApi) ApplicationSettingsGetHandler(c *core.WebContext) (any, *errs.Error)

ApplicationSettingsGetHandler returns application cloud settings of current user

func (*UserApplicationCloudSettingsApi) ApplicationSettingsUpdateHandler added in v0.10.0

func (a *UserApplicationCloudSettingsApi) ApplicationSettingsUpdateHandler(c *core.WebContext) (any, *errs.Error)

ApplicationSettingsUpdateHandler updates user application cloud settings by request parameters for current user

type UserExternalAuthsApi added in v1.2.0

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

UserExternalAuthsApi represents user external auth api

func (*UserExternalAuthsApi) ExternalAuthListHanlder added in v1.2.0

func (a *UserExternalAuthsApi) ExternalAuthListHanlder(c *core.WebContext) (any, *errs.Error)

ExternalAuthListHanlder returns external authentications list of current user

func (*UserExternalAuthsApi) UnlinkExternalAuthHandler added in v1.2.0

func (a *UserExternalAuthsApi) UnlinkExternalAuthHandler(c *core.WebContext) (any, *errs.Error)

UnlinkExternalAuthHandler unlinks external authentication for current user

type UsersApi

type UsersApi struct {
	ApiUsingConfig
	ApiWithUserInfo
	// contains filtered or unexported fields
}

UsersApi represents user api

func (*UsersApi) UserEmailVerifyHandler added in v0.4.0

func (a *UsersApi) UserEmailVerifyHandler(c *core.WebContext) (any, *errs.Error)

UserEmailVerifyHandler sets user email address verified

func (*UsersApi) UserGetAvatarHandler added in v0.5.0

func (a *UsersApi) UserGetAvatarHandler(c *core.WebContext) ([]byte, string, *errs.Error)

UserGetAvatarHandler returns user avatar data for current user

func (*UsersApi) UserProfileHandler

func (a *UsersApi) UserProfileHandler(c *core.WebContext) (any, *errs.Error)

UserProfileHandler returns user profile of current user

func (*UsersApi) UserRegisterHandler

func (a *UsersApi) UserRegisterHandler(c *core.WebContext) (any, *errs.Error)

UserRegisterHandler saves a new user by request parameters

func (*UsersApi) UserRemoveAvatarHandler added in v0.5.0

func (a *UsersApi) UserRemoveAvatarHandler(c *core.WebContext) (any, *errs.Error)

UserRemoveAvatarHandler removes user avatar by request parameters for current user

func (*UsersApi) UserSendVerifyEmailByLoginedUserHandler added in v0.4.0

func (a *UsersApi) UserSendVerifyEmailByLoginedUserHandler(c *core.WebContext) (any, *errs.Error)

UserSendVerifyEmailByLoginedUserHandler sends logined user verify email

func (*UsersApi) UserSendVerifyEmailByUnloginUserHandler added in v0.4.0

func (a *UsersApi) UserSendVerifyEmailByUnloginUserHandler(c *core.WebContext) (any, *errs.Error)

UserSendVerifyEmailByUnloginUserHandler sends unlogin user verify email

func (*UsersApi) UserUpdateAvatarHandler added in v0.5.0

func (a *UsersApi) UserUpdateAvatarHandler(c *core.WebContext) (any, *errs.Error)

UserUpdateAvatarHandler saves user avatar by request parameters for current user

func (*UsersApi) UserUpdateProfileHandler

func (a *UsersApi) UserUpdateProfileHandler(c *core.WebContext) (any, *errs.Error)

UserUpdateProfileHandler saves user profile by request parameters for current user

Jump to

Keyboard shortcuts

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