Documentation
¶
Index ¶
- type AppleLoginCallbackRequest
- type AuthMethodConfig
- type AuthPlatformInfoSnapshot
- type AuthPlatformResponse
- type BatchDeleteUserRequest
- type BindOAuthCallbackRequest
- type BindOAuthRequest
- type BindOAuthResponse
- type BindTelegramResponse
- type CheckUserRequest
- type CheckUserResponse
- type CheckVerificationCodeRequest
- type CheckVerificationCodeRespone
- type CreateUserAuthMethodRequest
- type CreateUserRequest
- type DeleteUserAuthMethodRequest
- type DeleteUserDeivceRequest
- type DeviceLoginRequest
- type GetAuthMethodConfigRequest
- type GetAuthMethodListResponse
- type GetDetailRequest
- type GetDeviceListResponse
- type GetLoginLogRequest
- type GetLoginLogResponse
- type GetOAuthMethodsResponse
- type GetUserAuthMethodRequest
- type GetUserAuthMethodResponse
- type GetUserListRequest
- type GetUserListResponse
- type GetUserLoginLogsRequest
- type GetUserLoginLogsResponse
- type KickOfflineRequest
- type LoginResponse
- type OAthLoginRequest
- type OAuthLoginGetTokenRequest
- type OAuthLoginResponse
- type ResetPasswordRequest
- type SendCodeRequest
- type SendCodeResponse
- type SendSmsCodeRequest
- type TelephoneCheckUserRequest
- type TelephoneCheckUserResponse
- type TelephoneLoginRequest
- type TelephoneRegisterRequest
- type TelephoneResetPasswordRequest
- type TestEmailSendRequest
- type TestSmsSendRequest
- type UnbindDeviceRequest
- type UnbindOAuthRequest
- type UpdateAuthMethodConfigRequest
- type UpdateBindEmailRequest
- type UpdateBindMobileRequest
- type UpdateUserAuthMethodRequest
- type UpdateUserBasiceInfoRequest
- type UpdateUserNotifyRequest
- type UpdateUserNotifySettingRequest
- type UpdateUserPasswordRequest
- type UpdateUserRulesRequest
- type User
- type UserAuthMethod
- type UserDevice
- type UserLoginLog
- type UserLoginRequest
- type UserRegisterRequest
- type VerifyEmailRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMethodConfig ¶
type AuthPlatformResponse ¶
type AuthPlatformResponse struct {
List []AuthPlatformInfoSnapshot `json:"list"`
} // @name dto.PlatformResponse
type BatchDeleteUserRequest ¶
type BatchDeleteUserRequest struct {
Ids []int64 `json:"ids" validate:"required"`
}
type BindOAuthCallbackRequest ¶
type BindOAuthCallbackRequest struct {
Method string `json:"method" validate:"required,oneof=google apple telegram github"`
Callback interface{} `json:"callback" validate:"required"`
}
type BindOAuthRequest ¶
type BindOAuthResponse ¶
type BindOAuthResponse struct {
Redirect string `json:"redirect"`
}
type BindTelegramResponse ¶
type CheckUserRequest ¶
type CheckUserRequest struct {
Email string `form:"email" validate:"required,email"`
}
type CheckUserResponse ¶
type CheckUserResponse struct {
Exist bool `json:"exist"`
}
type CheckVerificationCodeRespone ¶
type CheckVerificationCodeRespone struct {
Status bool `json:"status"`
}
type CreateUserRequest ¶
type CreateUserRequest struct {
Email string `json:"email"`
Telephone string `json:"telephone"`
TelephoneAreaCode string `json:"telephone_area_code"`
Password string `json:"password"`
ProductId int64 `json:"product_id"`
Duration int64 `json:"duration"`
ReferralPercentage uint8 `json:"referral_percentage"`
OnlyFirstPurchase bool `json:"only_first_purchase"`
RefererUser string `json:"referer_user"`
ReferCode string `json:"refer_code"`
Balance int64 `json:"balance"`
Commission int64 `json:"commission"`
GiftAmount int64 `json:"gift_amount"`
IsAdmin bool `json:"is_admin"`
}
type DeleteUserDeivceRequest ¶
type DeleteUserDeivceRequest struct {
Id int64 `json:"id"`
}
type DeviceLoginRequest ¶
type GetAuthMethodConfigRequest ¶
type GetAuthMethodConfigRequest struct {
Method string `form:"method"`
}
type GetAuthMethodListResponse ¶
type GetAuthMethodListResponse struct {
List []AuthMethodConfig `json:"list"`
}
type GetDetailRequest ¶
type GetDetailRequest struct {
Id int64 `form:"id" validate:"required"`
}
type GetDeviceListResponse ¶
type GetDeviceListResponse struct {
List []UserDevice `json:"list"`
Total int64 `json:"total"`
}
type GetLoginLogRequest ¶
type GetLoginLogRequest struct {
Page int `form:"page" validate:"required,gt=0"`
Size int `form:"size" validate:"required,gt=0,lte=100"`
}
Cross-domain view types are module-owned snapshots. They deliberately duplicate JSON shapes instead of coupling one module's API to another.
type GetLoginLogResponse ¶
type GetLoginLogResponse struct {
List []UserLoginLog `json:"list"`
Total int64 `json:"total"`
}
type GetOAuthMethodsResponse ¶
type GetOAuthMethodsResponse struct {
Methods []UserAuthMethod `json:"methods"`
}
type GetUserAuthMethodRequest ¶
type GetUserAuthMethodRequest struct {
UserId int64 `json:"user_id"`
}
type GetUserAuthMethodResponse ¶
type GetUserAuthMethodResponse struct {
AuthMethods []UserAuthMethod `json:"auth_methods"`
}
type GetUserListRequest ¶
type GetUserListRequest struct {
Page int `form:"page" validate:"required,gt=0"`
Size int `form:"size" validate:"required,gt=0,lte=100"`
Search string `form:"search,omitempty"`
UserId *int64 `form:"user_id,omitempty"`
Unscoped bool `form:"unscoped,omitempty"`
SubscribeId *int64 `form:"subscribe_id,omitempty"`
UserSubscribeId *int64 `form:"user_subscribe_id,omitempty"`
UserSubscribeToken string `form:"user_subscribe_token,omitempty"`
}
type GetUserListResponse ¶
type GetUserLoginLogsRequest ¶
type GetUserLoginLogsResponse ¶
type GetUserLoginLogsResponse struct {
List []UserLoginLog `json:"list"`
Total int64 `json:"total"`
}
type KickOfflineRequest ¶
type KickOfflineRequest struct {
Id int64 `json:"id"`
}
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type OAthLoginRequest ¶
type OAuthLoginResponse ¶
type OAuthLoginResponse struct {
Redirect string `json:"redirect"`
}
type ResetPasswordRequest ¶
type ResetPasswordRequest struct {
Identifier string `json:"identifier"`
Email string `json:"email" validate:"required,email"`
Password string `json:"password" validate:"required,min=8,max=128"`
Code string `json:"code,optional"`
IP string `header:"X-Original-Forwarded-For" swaggerignore:"true"`
UserAgent string `header:"User-Agent" swaggerignore:"true"`
LoginType string `header:"Login-Type" swaggerignore:"true"`
CfToken string `json:"cf_token,optional"`
}
type SendCodeRequest ¶
type SendCodeResponse ¶
type SendSmsCodeRequest ¶
type TelephoneCheckUserResponse ¶
type TelephoneCheckUserResponse struct {
Exist bool `json:"exist"`
}
type TelephoneLoginRequest ¶
type TelephoneLoginRequest struct {
Identifier string `json:"identifier"`
Telephone string `json:"telephone" validate:"required"`
TelephoneCode string `json:"telephone_code"`
TelephoneAreaCode string `json:"telephone_area_code" validate:"required"`
Password string `json:"password"`
IP string `header:"X-Original-Forwarded-For" swaggerignore:"true"`
UserAgent string `header:"User-Agent" swaggerignore:"true"`
LoginType string `header:"Login-Type" swaggerignore:"true"`
CfToken string `json:"cf_token,optional"`
}
type TelephoneRegisterRequest ¶
type TelephoneRegisterRequest struct {
Identifier string `json:"identifier"`
Telephone string `json:"telephone" validate:"required"`
TelephoneAreaCode string `json:"telephone_area_code" validate:"required"`
Password string `json:"password" validate:"required,min=8,max=128"`
Invite string `json:"invite,optional"`
Code string `json:"code,optional"`
IP string `header:"X-Original-Forwarded-For" swaggerignore:"true"`
UserAgent string `header:"User-Agent" swaggerignore:"true"`
LoginType string `header:"Login-Type,optional" swaggerignore:"true"`
CfToken string `json:"cf_token,optional"`
}
type TelephoneResetPasswordRequest ¶
type TelephoneResetPasswordRequest struct {
Identifier string `json:"identifier"`
Telephone string `json:"telephone" validate:"required"`
TelephoneAreaCode string `json:"telephone_area_code" validate:"required"`
Password string `json:"password" validate:"required,min=8,max=128"`
Code string `json:"code,optional"`
IP string `header:"X-Original-Forwarded-For" swaggerignore:"true"`
UserAgent string `header:"User-Agent" swaggerignore:"true"`
LoginType string `header:"Login-Type,optional" swaggerignore:"true"`
CfToken string `json:"cf_token,optional"`
}
type TestEmailSendRequest ¶
type TestEmailSendRequest struct {
Email string `json:"email" validate:"required,email"`
}
type TestSmsSendRequest ¶
type UnbindDeviceRequest ¶
type UnbindDeviceRequest struct {
Id int64 `json:"id" validate:"required"`
}
type UnbindOAuthRequest ¶
type UnbindOAuthRequest struct {
Method string `json:"method"`
}
type UpdateBindEmailRequest ¶
type UpdateBindEmailRequest struct {
Email string `json:"email" validate:"required,email"`
}
type UpdateBindMobileRequest ¶
type UpdateUserBasiceInfoRequest ¶
type UpdateUserBasiceInfoRequest struct {
UserId int64 `json:"user_id" validate:"required"`
Password string `json:"password"`
Avatar string `json:"avatar"`
Balance int64 `json:"balance"`
Commission int64 `json:"commission"`
ReferralPercentage uint8 `json:"referral_percentage"`
OnlyFirstPurchase bool `json:"only_first_purchase"`
GiftAmount int64 `json:"gift_amount"`
Telegram int64 `json:"telegram"`
ReferCode string `json:"refer_code"`
RefererId int64 `json:"referer_id"`
Enable bool `json:"enable"`
IsAdmin bool `json:"is_admin"`
}
type UpdateUserNotifyRequest ¶
type UpdateUserNotifySettingRequest ¶
type UpdateUserNotifySettingRequest struct {
UserId int64 `json:"user_id" validate:"required"`
EnableBalanceNotify bool `json:"enable_balance_notify"`
EnableLoginNotify bool `json:"enable_login_notify"`
EnableSubscribeNotify bool `json:"enable_subscribe_notify"`
EnableTradeNotify bool `json:"enable_trade_notify"`
}
type UpdateUserPasswordRequest ¶
type UpdateUserPasswordRequest struct {
Password string `json:"password" validate:"required,min=8,max=128"`
}
type UpdateUserRulesRequest ¶
type UpdateUserRulesRequest struct {
Rules []string `json:"rules" validate:"required"`
}
type User ¶
type User struct {
Id int64 `json:"id"`
Avatar string `json:"avatar"`
Balance int64 `json:"balance"`
Commission int64 `json:"commission"`
ReferralPercentage uint8 `json:"referral_percentage"`
OnlyFirstPurchase bool `json:"only_first_purchase"`
GiftAmount int64 `json:"gift_amount"`
Telegram int64 `json:"telegram"`
ReferCode string `json:"refer_code"`
RefererId int64 `json:"referer_id"`
Enable bool `json:"enable"`
IsAdmin bool `json:"is_admin,omitempty"`
EnableBalanceNotify bool `json:"enable_balance_notify"`
EnableLoginNotify bool `json:"enable_login_notify"`
EnableSubscribeNotify bool `json:"enable_subscribe_notify"`
EnableTradeNotify bool `json:"enable_trade_notify"`
AuthMethods []UserAuthMethod `json:"auth_methods"`
UserDevices []UserDevice `json:"user_devices"`
Rules []string `json:"rules"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
DeletedAt int64 `json:"deleted_at,omitempty"`
}
type UserAuthMethod ¶
type UserDevice ¶
type UserLoginLog ¶
type UserLoginRequest ¶
type UserLoginRequest struct {
Identifier string `json:"identifier"`
Email string `json:"email" validate:"required,email"`
Password string `json:"password" validate:"required"`
IP string `header:"X-Original-Forwarded-For" swaggerignore:"true"`
UserAgent string `header:"User-Agent" swaggerignore:"true"`
LoginType string `header:"Login-Type" swaggerignore:"true"`
CfToken string `json:"cf_token,optional"`
}
type UserRegisterRequest ¶
type UserRegisterRequest struct {
Identifier string `json:"identifier"`
Email string `json:"email" validate:"required,email"`
Password string `json:"password" validate:"required,min=8,max=128"`
Invite string `json:"invite,optional"`
Code string `json:"code,optional"`
IP string `header:"X-Original-Forwarded-For" swaggerignore:"true"`
UserAgent string `header:"User-Agent" swaggerignore:"true"`
LoginType string `header:"Login-Type" swaggerignore:"true"`
CfToken string `json:"cf_token,optional"`
}
type VerifyEmailRequest ¶
Click to show internal directories.
Click to hide internal directories.