Documentation
¶
Index ¶
- type Ads
- type AlipayNotifyResponse
- type Announcement
- type AnyTLS
- type AppUserSubcbribe
- type AppUserSubscbribeNode
- type AppleLoginCallbackRequest
- type Application
- type ApplicationPlatform
- type ApplicationResponse
- type ApplicationResponseInfo
- type ApplicationVersion
- type AuthConfig
- type AuthMethodConfig
- type BalanceLog
- type BatchDeleteCouponRequest
- type BatchDeleteDocumentRequest
- type BatchDeleteSubscribeGroupRequest
- type BatchDeleteSubscribeRequest
- type BatchDeleteUserRequest
- type BatchSendEmailTask
- type BindOAuthCallbackRequest
- type BindOAuthRequest
- type BindOAuthResponse
- type BindTelegramResponse
- type CheckUserRequest
- type CheckUserResponse
- type CheckVerificationCodeRequest
- type CheckVerificationCodeRespone
- type CheckoutOrderRequest
- type CheckoutOrderResponse
- type CloseOrderRequest
- type CommissionLog
- type CommissionWithdrawRequest
- type Coupon
- type CreateAdsRequest
- type CreateAnnouncementRequest
- type CreateBatchSendEmailTaskRequest
- type CreateCouponRequest
- type CreateDocumentRequest
- type CreateNodeRequest
- type CreateOrderRequest
- type CreatePaymentMethodRequest
- type CreateQuotaTaskRequest
- type CreateServerRequest
- type CreateSubscribeApplicationRequest
- type CreateSubscribeGroupRequest
- type CreateSubscribeRequest
- type CreateTicketFollowRequest
- type CreateUserAuthMethodRequest
- type CreateUserRequest
- type CreateUserSubscribeRequest
- type CreateUserTicketFollowRequest
- type CreateUserTicketRequest
- type Currency
- type CurrencyConfig
- type DeleteAdsRequest
- type DeleteAnnouncementRequest
- type DeleteCouponRequest
- type DeleteDocumentRequest
- type DeleteNodeRequest
- type DeletePaymentMethodRequest
- type DeleteServerRequest
- type DeleteSubscribeApplicationRequest
- type DeleteSubscribeGroupRequest
- type DeleteSubscribeRequest
- type DeleteUserAuthMethodRequest
- type DeleteUserDeivceRequest
- type DeleteUserSubscribeRequest
- type DeviceAuthticateConfig
- type DeviceLoginRequest
- type Document
- type DownloadLink
- type EPayNotifyRequest
- type EmailAuthticateConfig
- type FilterBalanceLogRequest
- type FilterBalanceLogResponse
- type FilterCommissionLogRequest
- type FilterCommissionLogResponse
- type FilterEmailLogResponse
- type FilterGiftLogRequest
- type FilterGiftLogResponse
- type FilterLogParams
- type FilterLoginLogRequest
- type FilterLoginLogResponse
- type FilterMobileLogResponse
- type FilterNodeListRequest
- type FilterNodeListResponse
- type FilterRegisterLogRequest
- type FilterRegisterLogResponse
- type FilterResetSubscribeLogRequest
- type FilterResetSubscribeLogResponse
- type FilterServerListRequest
- type FilterServerListResponse
- type FilterServerTrafficLogRequest
- type FilterServerTrafficLogResponse
- type FilterSubscribeLogRequest
- type FilterSubscribeLogResponse
- type FilterSubscribeTrafficRequest
- type FilterSubscribeTrafficResponse
- type FilterTrafficLogDetailsRequest
- type FilterTrafficLogDetailsResponse
- type Follow
- type GetAdsDetailRequest
- type GetAdsListRequest
- type GetAdsListResponse
- type GetAdsRequest
- type GetAdsResponse
- type GetAnnouncementListRequest
- type GetAnnouncementListResponse
- type GetAnnouncementRequest
- type GetAuthMethodConfigRequest
- type GetAuthMethodListResponse
- type GetAvailablePaymentMethodsResponse
- type GetBatchSendEmailTaskListRequest
- type GetBatchSendEmailTaskListResponse
- type GetBatchSendEmailTaskStatusRequest
- type GetBatchSendEmailTaskStatusResponse
- type GetCouponListRequest
- type GetCouponListResponse
- type GetDetailRequest
- type GetDeviceListResponse
- type GetDocumentDetailRequest
- type GetDocumentListRequest
- type GetDocumentListResponse
- type GetGlobalConfigResponse
- type GetLoginLogRequest
- type GetLoginLogResponse
- type GetMessageLogListRequest
- type GetMessageLogListResponse
- type GetNodeMultiplierResponse
- type GetOAuthMethodsResponse
- type GetOrderListRequest
- type GetOrderListResponse
- type GetPaymentMethodListRequest
- type GetPaymentMethodListResponse
- type GetPreSendEmailCountRequest
- type GetPreSendEmailCountResponse
- type GetServerConfigRequest
- type GetServerConfigResponse
- type GetServerProtocolsRequest
- type GetServerProtocolsResponse
- type GetServerUserListRequest
- type GetServerUserListResponse
- type GetStatResponse
- type GetSubscribeApplicationListRequest
- type GetSubscribeApplicationListResponse
- type GetSubscribeClientResponse
- type GetSubscribeDetailsRequest
- type GetSubscribeGroupListResponse
- type GetSubscribeListRequest
- type GetSubscribeListResponse
- type GetSubscribeLogRequest
- type GetSubscribeLogResponse
- type GetSubscriptionRequest
- type GetSubscriptionResponse
- type GetTicketListRequest
- type GetTicketListResponse
- type GetTicketRequest
- type GetTosResponse
- type GetUserAuthMethodRequest
- type GetUserAuthMethodResponse
- type GetUserListRequest
- type GetUserListResponse
- type GetUserLoginLogsRequest
- type GetUserLoginLogsResponse
- type GetUserSubscribeByIdRequest
- type GetUserSubscribeDevicesRequest
- type GetUserSubscribeDevicesResponse
- type GetUserSubscribeListRequest
- type GetUserSubscribeListResponse
- type GetUserSubscribeLogsRequest
- type GetUserSubscribeLogsResponse
- type GetUserSubscribeResetTrafficLogsRequest
- type GetUserSubscribeResetTrafficLogsResponse
- type GetUserSubscribeTrafficLogsRequest
- type GetUserSubscribeTrafficLogsResponse
- type GetUserTicketDetailRequest
- type GetUserTicketListRequest
- type GetUserTicketListResponse
- type GiftLog
- type GoogleLoginCallbackRequest
- type HasMigrateSeverNodeResponse
- type HeartbeatResponse
- type Hysteria2
- type InviteConfig
- type KickOfflineRequest
- type LogResponse
- type LogSetting
- type LoginLog
- type LoginResponse
- type MessageLog
- type MigrateServerNodeResponse
- type MobileAuthenticateConfig
- type ModuleConfig
- type Node
- type NodeConfig
- type NodeDNS
- type NodeOutbound
- type NodeRelay
- type OAthLoginRequest
- type OAuthLoginGetTokenRequest
- type OAuthLoginResponse
- type OnlineUser
- type OnlineUsersRequest
- type Order
- type OrderDetail
- type OrdersStatistics
- type PaymentConfig
- type PaymentMethod
- type PaymentMethodDetail
- type PlatformInfo
- type PlatformResponse
- type PortalPurchaseRequest
- type PortalPurchaseResponse
- type PreOrderResponse
- type PrePurchaseOrderRequest
- type PrePurchaseOrderResponse
- type PreRenewalOrderResponse
- type PreUnsubscribeRequest
- type PreUnsubscribeResponse
- type PreViewNodeMultiplierResponse
- type PreviewSubscribeTemplateRequest
- type PreviewSubscribeTemplateResponse
- type PrivacyPolicyConfig
- type Protocol
- type PubilcRegisterConfig
- type PubilcVerifyCodeConfig
- type PurchaseOrderRequest
- type PurchaseOrderResponse
- type QueryAnnouncementRequest
- type QueryAnnouncementResponse
- type QueryDocumentDetailRequest
- type QueryDocumentListResponse
- type QueryIPLocationRequest
- type QueryIPLocationResponse
- type QueryNodeTagResponse
- type QueryOrderDetailRequest
- type QueryOrderListRequest
- type QueryOrderListResponse
- type QueryPurchaseOrderRequest
- type QueryPurchaseOrderResponse
- type QueryQuotaTaskListRequest
- type QueryQuotaTaskListResponse
- type QueryQuotaTaskPreCountRequest
- type QueryQuotaTaskPreCountResponse
- type QueryQuotaTaskStatusRequest
- type QueryQuotaTaskStatusResponse
- type QueryServerConfigRequest
- type QueryServerConfigResponse
- type QuerySubscribeGroupListResponse
- type QuerySubscribeListRequest
- type QuerySubscribeListResponse
- type QueryUserAffiliateCountResponse
- type QueryUserAffiliateListRequest
- type QueryUserAffiliateListResponse
- type QueryUserBalanceLogListResponse
- type QueryUserCommissionLogListRequest
- type QueryUserCommissionLogListResponse
- type QueryUserSubscribeListResponse
- type QueryUserSubscribeNodeListResponse
- type QueryWithdrawalLogListRequest
- type QueryWithdrawalLogListResponse
- type QuotaTask
- type RechargeOrderRequest
- type RechargeOrderResponse
- type RegisterConfig
- type RegisterLog
- type RenewalOrderRequest
- type RenewalOrderResponse
- type ResetAllSubscribeTokenResponse
- type ResetPasswordRequest
- type ResetSortRequest
- type ResetSubscribeLog
- type ResetSubscribeTrafficLog
- type ResetTrafficOrderRequest
- type ResetTrafficOrderResponse
- type ResetUserSubscribeTokenRequest
- type ResetUserSubscribeTrafficRequest
- type RevenueStatisticsResponse
- type SecurityConfig
- type SendCodeRequest
- type SendCodeResponse
- type SendSmsCodeRequest
- type Server
- type ServerBasic
- type ServerCommon
- type ServerGroup
- type ServerOnlineIP
- type ServerOnlineUser
- type ServerPushStatusRequest
- type ServerPushUserTrafficRequest
- type ServerRuleGroup
- type ServerStatus
- type ServerTotalDataResponse
- type ServerTrafficData
- type ServerTrafficLog
- type ServerUser
- type SetNodeMultiplierRequest
- type Shadowsocks
- type ShadowsocksProtocol
- type SiteConfig
- type SiteCustomDataContacts
- type SortItem
- type StopBatchSendEmailTaskRequest
- type StripePayment
- type Subscribe
- type SubscribeApplication
- type SubscribeClient
- type SubscribeConfig
- type SubscribeDiscount
- type SubscribeGroup
- type SubscribeItem
- type SubscribeLog
- type SubscribeRequest
- type SubscribeResponse
- type SubscribeSortRequest
- type SubscribeType
- type TelegramConfig
- type TelephoneCheckUserRequest
- type TelephoneCheckUserResponse
- type TelephoneLoginRequest
- type TelephoneRegisterRequest
- type TelephoneResetPasswordRequest
- type TestEmailSendRequest
- type TestSmsSendRequest
- type Ticket
- type TicketWaitRelpyResponse
- type TimePeriod
- type ToggleNodeStatusRequest
- type ToggleUserSubscribeStatusRequest
- type TosConfig
- type TrafficLog
- type TrafficLogDetails
- type TransportConfig
- type Trojan
- type TrojanProtocol
- type Tuic
- type UnbindDeviceRequest
- type UnbindOAuthRequest
- type UnsubscribeRequest
- type UpdateAdsRequest
- type UpdateAnnouncementEnableRequest
- type UpdateAnnouncementRequest
- type UpdateAuthMethodConfigRequest
- type UpdateBindEmailRequest
- type UpdateBindMobileRequest
- type UpdateCouponRequest
- type UpdateDocumentRequest
- type UpdateNodeRequest
- type UpdateOrderStatusRequest
- type UpdatePaymentMethodRequest
- type UpdateServerRequest
- type UpdateSubscribeApplicationRequest
- type UpdateSubscribeGroupRequest
- type UpdateSubscribeRequest
- type UpdateTicketStatusRequest
- type UpdateUserAuthMethodRequest
- type UpdateUserBasiceInfoRequest
- type UpdateUserNotifyRequest
- type UpdateUserNotifySettingRequest
- type UpdateUserPasswordRequest
- type UpdateUserRulesRequest
- type UpdateUserSubscribeNoteRequest
- type UpdateUserSubscribeRequest
- type UpdateUserTicketStatusRequest
- type User
- type UserAffiliate
- type UserAuthMethod
- type UserDevice
- type UserLoginLog
- type UserLoginRequest
- type UserRegisterRequest
- type UserStatistics
- type UserStatisticsResponse
- type UserSubscribe
- type UserSubscribeDetail
- type UserSubscribeInfo
- type UserSubscribeLog
- type UserSubscribeNodeInfo
- type UserSubscribeTrafficLog
- type UserTraffic
- type UserTrafficData
- type VeifyConfig
- type VerifyCodeConfig
- type VerifyConfig
- type VerifyEmailRequest
- type VersionResponse
- type Vless
- type VlessProtocol
- type Vmess
- type VmessProtocol
- type WithdrawalLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ads ¶
type Ads struct {
Id int `json:"id"`
Title string `json:"title"`
Type string `json:"type"`
Content string `json:"content"`
Description string `json:"description"`
TargetURL string `json:"target_url"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
Status int `json:"status"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type AlipayNotifyResponse ¶
type AlipayNotifyResponse struct {
ReturnCode string `json:"return_code"`
}
type Announcement ¶
type AnyTLS ¶ added in v1.0.3
type AnyTLS struct {
Port int `json:"port" validate:"required"`
SecurityConfig SecurityConfig `json:"security_config"`
}
type AppUserSubcbribe ¶
type AppUserSubcbribe struct {
Id int64 `json:"id"`
Name string `json:"name"`
Upload int64 `json:"upload"`
Traffic int64 `json:"traffic"`
Download int64 `json:"download"`
DeviceLimit int64 `json:"device_limit"`
StartTime string `json:"start_time"`
ExpireTime string `json:"expire_time"`
List []AppUserSubscbribeNode `json:"list"`
}
type AppUserSubscbribeNode ¶
type AppUserSubscbribeNode struct {
Id int64 `json:"id"`
Name string `json:"name"`
Uuid string `json:"uuid"`
Protocol string `json:"protocol"`
RelayMode string `json:"relay_mode"`
RelayNode string `json:"relay_node"`
ServerAddr string `json:"server_addr"`
SpeedLimit int `json:"speed_limit"`
Tags []string `json:"tags"`
Traffic int64 `json:"traffic"`
TrafficRatio float64 `json:"traffic_ratio"`
Upload int64 `json:"upload"`
Config string `json:"config"`
Country string `json:"country"`
City string `json:"city"`
Latitude string `json:"latitude"`
Longitude string `json:"longitude"`
CreatedAt int64 `json:"created_at"`
Download int64 `json:"download"`
}
type Application ¶
type ApplicationPlatform ¶
type ApplicationPlatform struct {
IOS []*ApplicationVersion `json:"ios,omitempty"`
MacOS []*ApplicationVersion `json:"macos,omitempty"`
Linux []*ApplicationVersion `json:"linux,omitempty"`
Android []*ApplicationVersion `json:"android,omitempty"`
Windows []*ApplicationVersion `json:"windows,omitempty"`
Harmony []*ApplicationVersion `json:"harmony,omitempty"`
}
type ApplicationResponse ¶
type ApplicationResponse struct {
Applications []ApplicationResponseInfo `json:"applications"`
}
type ApplicationResponseInfo ¶
type ApplicationVersion ¶
type AuthConfig ¶
type AuthConfig struct {
Mobile MobileAuthenticateConfig `json:"mobile"`
Email EmailAuthticateConfig `json:"email"`
Device DeviceAuthticateConfig `json:"device"`
Register PubilcRegisterConfig `json:"register"`
}
type AuthMethodConfig ¶
type BalanceLog ¶ added in v1.1.0
type BatchDeleteCouponRequest ¶
type BatchDeleteCouponRequest struct {
Ids []int64 `json:"ids" validate:"required"`
}
type BatchDeleteDocumentRequest ¶
type BatchDeleteDocumentRequest struct {
Ids []int64 `json:"ids" validate:"required"`
}
type BatchDeleteSubscribeGroupRequest ¶
type BatchDeleteSubscribeGroupRequest struct {
Ids []int64 `json:"ids" validate:"required"`
}
type BatchDeleteSubscribeRequest ¶
type BatchDeleteSubscribeRequest struct {
Ids []int64 `json:"ids" validate:"required"`
}
type BatchDeleteUserRequest ¶
type BatchDeleteUserRequest struct {
Ids []int64 `json:"ids" validate:"required"`
}
type BatchSendEmailTask ¶ added in v1.0.4
type BatchSendEmailTask struct {
Id int64 `json:"id"`
Subject string `json:"subject"`
Content string `json:"content"`
Recipients string `json:"recipients"`
Scope int8 `json:"scope"`
RegisterStartTime int64 `json:"register_start_time"`
RegisterEndTime int64 `json:"register_end_time"`
Additional string `json:"additional"`
Scheduled int64 `json:"scheduled"`
Interval uint8 `json:"interval"`
Limit uint64 `json:"limit"`
Status uint8 `json:"status"`
Errors string `json:"errors"`
Total uint64 `json:"total"`
Current uint64 `json:"current"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type BindOAuthCallbackRequest ¶
type BindOAuthCallbackRequest struct {
Method string `json:"method"`
Callback interface{} `json:"callback"`
}
type BindOAuthRequest ¶
type BindOAuthResponse ¶
type BindOAuthResponse struct {
Redirect string `json:"redirect"`
}
type BindTelegramResponse ¶
type CheckUserRequest ¶
type CheckUserRequest struct {
Email string `form:"email" validate:"required"`
}
type CheckUserResponse ¶
type CheckUserResponse struct {
Exist bool `json:"exist"`
}
type CheckVerificationCodeRespone ¶
type CheckVerificationCodeRespone struct {
Status bool `json:"status"`
}
type CheckoutOrderRequest ¶
type CheckoutOrderResponse ¶
type CheckoutOrderResponse struct {
Type string `json:"type"`
CheckoutUrl string `json:"checkout_url,omitempty"`
Stripe *StripePayment `json:"stripe,omitempty"`
}
type CloseOrderRequest ¶
type CloseOrderRequest struct {
OrderNo string `json:"orderNo" validate:"required"`
}
type CommissionLog ¶
type CommissionWithdrawRequest ¶ added in v1.2.0
type Coupon ¶
type Coupon struct {
Id int64 `json:"id"`
Name string `json:"name"`
Code string `json:"code"`
Count int64 `json:"count"`
Type uint8 `json:"type"`
Discount int64 `json:"discount"`
StartTime int64 `json:"start_time"`
ExpireTime int64 `json:"expire_time"`
UserLimit int64 `json:"user_limit"`
Subscribe []int64 `json:"subscribe"`
UsedCount int64 `json:"used_count"`
Enable bool `json:"enable"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type CreateAdsRequest ¶
type CreateBatchSendEmailTaskRequest ¶ added in v1.0.4
type CreateBatchSendEmailTaskRequest struct {
Subject string `json:"subject"`
Content string `json:"content"`
Scope int8 `json:"scope"`
RegisterStartTime int64 `json:"register_start_time,omitempty"`
RegisterEndTime int64 `json:"register_end_time,omitempty"`
Additional string `json:"additional,omitempty"`
Scheduled int64 `json:"scheduled,omitempty"`
Interval uint8 `json:"interval,omitempty"`
Limit uint64 `json:"limit,omitempty"`
}
type CreateCouponRequest ¶
type CreateCouponRequest struct {
Name string `json:"name" validate:"required"`
Code string `json:"code,omitempty"`
Count int64 `json:"count,omitempty"`
Type uint8 `json:"type" validate:"required"`
Discount int64 `json:"discount" validate:"required"`
StartTime int64 `json:"start_time" validate:"required"`
ExpireTime int64 `json:"expire_time" validate:"required"`
UserLimit int64 `json:"user_limit,omitempty"`
Subscribe []int64 `json:"subscribe,omitempty"`
UsedCount int64 `json:"used_count,omitempty"`
Enable *bool `json:"enable,omitempty"`
}
type CreateDocumentRequest ¶
type CreateNodeRequest ¶
type CreateOrderRequest ¶
type CreateOrderRequest struct {
UserId int64 `json:"user_id" validate:"required"`
Type uint8 `json:"type" validate:"required"`
Quantity int64 `json:"quantity,omitempty"`
Price int64 `json:"price" validate:"required"`
Amount int64 `json:"amount" validate:"required"`
Discount int64 `json:"discount,omitempty"`
Coupon string `json:"coupon,omitempty"`
CouponDiscount int64 `json:"coupon_discount,omitempty"`
Commission int64 `json:"commission"`
FeeAmount int64 `json:"fee_amount" validate:"required"`
PaymentId int64 `json:"payment_id" validate:"required"`
TradeNo string `json:"trade_no,omitempty"`
Status uint8 `json:"status,omitempty"`
SubscribeId int64 `json:"subscribe_id,omitempty"`
}
type CreatePaymentMethodRequest ¶
type CreatePaymentMethodRequest struct {
Name string `json:"name" validate:"required"`
Platform string `json:"platform" validate:"required"`
Description string `json:"description"`
Icon string `json:"icon,omitempty"`
Domain string `json:"domain,omitempty"`
Config interface{} `json:"config" validate:"required"`
FeeMode uint `json:"fee_mode"`
FeePercent int64 `json:"fee_percent,omitempty"`
FeeAmount int64 `json:"fee_amount,omitempty"`
Enable *bool `json:"enable" validate:"required"`
}
type CreateQuotaTaskRequest ¶ added in v1.1.0
type CreateQuotaTaskRequest struct {
Subscribers []int64 `json:"subscribers"`
IsActive *bool `json:"is_active"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
ResetTraffic bool `json:"reset_traffic"`
Days uint64 `json:"days"`
GiftType uint8 `json:"gift_type"`
GiftValue uint64 `json:"gift_value"`
}
type CreateServerRequest ¶ added in v1.1.0
type CreateSubscribeApplicationRequest ¶ added in v1.0.4
type CreateSubscribeApplicationRequest struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Icon string `json:"icon,omitempty"`
Scheme string `json:"scheme,omitempty"`
UserAgent string `json:"user_agent"`
IsDefault bool `json:"is_default"`
SubscribeTemplate string `json:"template"`
OutputFormat string `json:"output_format"`
DownloadLink DownloadLink `json:"download_link"`
}
type CreateSubscribeRequest ¶
type CreateSubscribeRequest struct {
Name string `json:"name" validate:"required"`
Language string `json:"language"`
Description string `json:"description"`
UnitPrice int64 `json:"unit_price"`
UnitTime string `json:"unit_time"`
Discount []SubscribeDiscount `json:"discount"`
Replacement int64 `json:"replacement"`
Inventory int64 `json:"inventory"`
Traffic int64 `json:"traffic"`
SpeedLimit int64 `json:"speed_limit"`
DeviceLimit int64 `json:"device_limit"`
Quota int64 `json:"quota"`
Nodes []int64 `json:"nodes"`
NodeTags []string `json:"node_tags"`
Show *bool `json:"show"`
Sell *bool `json:"sell"`
DeductionRatio int64 `json:"deduction_ratio"`
AllowDeduction *bool `json:"allow_deduction"`
ResetCycle int64 `json:"reset_cycle"`
RenewalReset *bool `json:"renewal_reset"`
ShowOriginalPrice bool `json:"show_original_price"`
}
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 CreateUserTicketRequest ¶
type CurrencyConfig ¶
type DeleteAdsRequest ¶
type DeleteAdsRequest struct {
Id int64 `json:"id"`
}
type DeleteAnnouncementRequest ¶
type DeleteAnnouncementRequest struct {
Id int64 `json:"id" validate:"required"`
}
type DeleteCouponRequest ¶
type DeleteCouponRequest struct {
Id int64 `json:"id" validate:"required"`
}
type DeleteDocumentRequest ¶
type DeleteDocumentRequest struct {
Id int64 `json:"id" validate:"required"`
}
type DeleteNodeRequest ¶
type DeleteNodeRequest struct {
Id int64 `json:"id"`
}
type DeletePaymentMethodRequest ¶
type DeletePaymentMethodRequest struct {
Id int64 `json:"id" validate:"required"`
}
type DeleteServerRequest ¶ added in v1.1.0
type DeleteServerRequest struct {
Id int64 `json:"id"`
}
type DeleteSubscribeApplicationRequest ¶ added in v1.0.4
type DeleteSubscribeApplicationRequest struct {
Id int64 `json:"id"`
}
type DeleteSubscribeGroupRequest ¶
type DeleteSubscribeGroupRequest struct {
Id int64 `json:"id" validate:"required"`
}
type DeleteSubscribeRequest ¶
type DeleteSubscribeRequest struct {
Id int64 `json:"id" validate:"required"`
}
type DeleteUserDeivceRequest ¶
type DeleteUserDeivceRequest struct {
Id int64 `json:"id"`
}
type DeleteUserSubscribeRequest ¶
type DeleteUserSubscribeRequest struct {
UserSubscribeId int64 `json:"user_subscribe_id"`
}
type DeviceAuthticateConfig ¶ added in v1.1.8
type DeviceLoginRequest ¶ added in v1.1.8
type DownloadLink ¶ added in v1.0.4
type EPayNotifyRequest ¶
type EPayNotifyRequest struct {
Pid int64 `json:"pid" form:"pid"`
TradeNo string `json:"trade_no" form:"trade_no"`
OutTradeNo string `json:"out_trade_no" form:"out_trade_no"`
Type string `json:"type" form:"type"`
Name string `json:"name" form:"name"`
Money string `json:"money" form:"money"`
TradeStatus string `json:"trade_status" form:"trade_status"`
Param string `json:"param" form:"param"`
Sign string `json:"sign" form:"sign"`
SignType string `json:"sign_type" form:"sign_type"`
}
type EmailAuthticateConfig ¶
type FilterBalanceLogRequest ¶ added in v1.1.0
type FilterBalanceLogRequest struct {
FilterLogParams
UserId int64 `form:"user_id,optional"`
}
type FilterBalanceLogResponse ¶ added in v1.1.0
type FilterBalanceLogResponse struct {
Total int64 `json:"total"`
List []BalanceLog `json:"list"`
}
type FilterCommissionLogRequest ¶ added in v1.1.0
type FilterCommissionLogRequest struct {
FilterLogParams
UserId int64 `form:"user_id,optional"`
}
type FilterCommissionLogResponse ¶ added in v1.1.0
type FilterCommissionLogResponse struct {
Total int64 `json:"total"`
List []CommissionLog `json:"list"`
}
type FilterEmailLogResponse ¶ added in v1.1.0
type FilterEmailLogResponse struct {
Total int64 `json:"total"`
List []MessageLog `json:"list"`
}
type FilterGiftLogRequest ¶ added in v1.1.0
type FilterGiftLogRequest struct {
FilterLogParams
UserId int64 `form:"user_id,optional"`
}
type FilterGiftLogResponse ¶ added in v1.1.0
type FilterLogParams ¶ added in v1.1.0
type FilterLoginLogRequest ¶ added in v1.1.0
type FilterLoginLogRequest struct {
FilterLogParams
UserId int64 `form:"user_id,optional"`
}
type FilterLoginLogResponse ¶ added in v1.1.0
type FilterMobileLogResponse ¶ added in v1.1.0
type FilterMobileLogResponse struct {
Total int64 `json:"total"`
List []MessageLog `json:"list"`
}
type FilterNodeListRequest ¶ added in v1.1.0
type FilterNodeListResponse ¶ added in v1.1.0
type FilterRegisterLogRequest ¶ added in v1.1.0
type FilterRegisterLogRequest struct {
FilterLogParams
UserId int64 `form:"user_id,optional"`
}
type FilterRegisterLogResponse ¶ added in v1.1.0
type FilterRegisterLogResponse struct {
Total int64 `json:"total"`
List []RegisterLog `json:"list"`
}
type FilterResetSubscribeLogRequest ¶ added in v1.1.0
type FilterResetSubscribeLogRequest struct {
FilterLogParams
UserSubscribeId int64 `form:"user_subscribe_id,optional"`
}
type FilterResetSubscribeLogResponse ¶ added in v1.1.0
type FilterResetSubscribeLogResponse struct {
Total int64 `json:"total"`
List []ResetSubscribeLog `json:"list"`
}
type FilterServerListRequest ¶ added in v1.1.0
type FilterServerListResponse ¶ added in v1.1.0
type FilterServerTrafficLogRequest ¶ added in v1.1.0
type FilterServerTrafficLogRequest struct {
FilterLogParams
ServerId int64 `form:"server_id,optional"`
}
type FilterServerTrafficLogResponse ¶ added in v1.1.0
type FilterServerTrafficLogResponse struct {
Total int64 `json:"total"`
List []ServerTrafficLog `json:"list"`
}
type FilterSubscribeLogRequest ¶ added in v1.1.0
type FilterSubscribeLogRequest struct {
FilterLogParams
UserId int64 `form:"user_id,optional"`
UserSubscribeId int64 `form:"user_subscribe_id,optional"`
}
type FilterSubscribeLogResponse ¶ added in v1.1.0
type FilterSubscribeLogResponse struct {
Total int64 `json:"total"`
List []SubscribeLog `json:"list"`
}
type FilterSubscribeTrafficRequest ¶ added in v1.1.0
type FilterSubscribeTrafficRequest struct {
FilterLogParams
UserId int64 `form:"user_id,optional"`
UserSubscribeId int64 `form:"user_subscribe_id,optional"`
}
type FilterSubscribeTrafficResponse ¶ added in v1.1.0
type FilterSubscribeTrafficResponse struct {
Total int64 `json:"total"`
List []UserSubscribeTrafficLog `json:"list"`
}
type FilterTrafficLogDetailsRequest ¶ added in v1.1.0
type FilterTrafficLogDetailsRequest struct {
FilterLogParams
ServerId int64 `form:"server_id,optional"`
SubscribeId int64 `form:"subscribe_id,optional"`
UserId int64 `form:"user_id,optional"`
}
type FilterTrafficLogDetailsResponse ¶ added in v1.1.0
type FilterTrafficLogDetailsResponse struct {
Total int64 `json:"total"`
List []TrafficLogDetails `json:"list"`
}
type GetAdsDetailRequest ¶
type GetAdsDetailRequest struct {
Id int64 `form:"id"`
}
type GetAdsListRequest ¶
type GetAdsListResponse ¶
type GetAdsRequest ¶
type GetAdsResponse ¶
type GetAdsResponse struct {
List []Ads `json:"list"`
}
type GetAnnouncementListResponse ¶
type GetAnnouncementListResponse struct {
Total int64 `json:"total"`
List []Announcement `json:"list"`
}
type GetAnnouncementRequest ¶
type GetAnnouncementRequest struct {
Id int64 `form:"id" validate:"required"`
}
type GetAuthMethodConfigRequest ¶
type GetAuthMethodConfigRequest struct {
Method string `form:"method"`
}
type GetAuthMethodListResponse ¶
type GetAuthMethodListResponse struct {
List []AuthMethodConfig `json:"list"`
}
type GetAvailablePaymentMethodsResponse ¶
type GetAvailablePaymentMethodsResponse struct {
List []PaymentMethod `json:"list"`
}
type GetBatchSendEmailTaskListRequest ¶ added in v1.0.4
type GetBatchSendEmailTaskListResponse ¶ added in v1.0.4
type GetBatchSendEmailTaskListResponse struct {
Total int64 `json:"total"`
List []BatchSendEmailTask `json:"list"`
}
type GetBatchSendEmailTaskStatusRequest ¶ added in v1.0.4
type GetBatchSendEmailTaskStatusRequest struct {
Id int64 `json:"id"`
}
type GetBatchSendEmailTaskStatusResponse ¶ added in v1.0.4
type GetCouponListRequest ¶
type GetCouponListResponse ¶
type GetDetailRequest ¶
type GetDetailRequest struct {
Id int64 `form:"id" validate:"required"`
}
type GetDeviceListResponse ¶ added in v1.1.8
type GetDeviceListResponse struct {
List []UserDevice `json:"list"`
Total int64 `json:"total"`
}
type GetDocumentDetailRequest ¶
type GetDocumentDetailRequest struct {
Id int64 `json:"id" validate:"required"`
}
type GetDocumentListRequest ¶
type GetDocumentListResponse ¶
type GetGlobalConfigResponse ¶
type GetGlobalConfigResponse struct {
Site SiteConfig `json:"site"`
Verify VeifyConfig `json:"verify"`
Auth AuthConfig `json:"auth"`
Invite InviteConfig `json:"invite"`
Currency Currency `json:"currency"`
Subscribe SubscribeConfig `json:"subscribe"`
VerifyCode PubilcVerifyCodeConfig `json:"verify_code"`
OAuthMethods []string `json:"oauth_methods"`
WebAd bool `json:"web_ad"`
}
type GetLoginLogRequest ¶
type GetLoginLogResponse ¶
type GetLoginLogResponse struct {
List []UserLoginLog `json:"list"`
Total int64 `json:"total"`
}
type GetMessageLogListResponse ¶
type GetMessageLogListResponse struct {
Total int64 `json:"total"`
List []MessageLog `json:"list"`
}
type GetNodeMultiplierResponse ¶
type GetNodeMultiplierResponse struct {
Periods []TimePeriod `json:"periods"`
}
type GetOAuthMethodsResponse ¶
type GetOAuthMethodsResponse struct {
Methods []UserAuthMethod `json:"methods"`
}
type GetOrderListRequest ¶
type GetOrderListResponse ¶
type GetPaymentMethodListResponse ¶
type GetPaymentMethodListResponse struct {
Total int64 `json:"total"`
List []PaymentMethodDetail `json:"list"`
}
type GetPreSendEmailCountRequest ¶ added in v1.0.4
type GetPreSendEmailCountResponse ¶ added in v1.0.4
type GetPreSendEmailCountResponse struct {
Count int64 `json:"count"`
}
type GetServerConfigRequest ¶
type GetServerConfigRequest struct {
ServerCommon
}
type GetServerConfigResponse ¶
type GetServerConfigResponse struct {
Basic ServerBasic `json:"basic"`
Protocol string `json:"protocol"`
Config interface{} `json:"config"`
}
type GetServerProtocolsRequest ¶ added in v1.1.0
type GetServerProtocolsRequest struct {
Id int64 `form:"id"`
}
type GetServerProtocolsResponse ¶ added in v1.1.0
type GetServerProtocolsResponse struct {
Protocols []Protocol `json:"protocols"`
}
type GetServerUserListRequest ¶
type GetServerUserListRequest struct {
ServerCommon
}
type GetServerUserListResponse ¶
type GetServerUserListResponse struct {
Users []ServerUser `json:"users"`
}
type GetStatResponse ¶
type GetSubscribeApplicationListRequest ¶ added in v1.0.4
type GetSubscribeApplicationListResponse ¶ added in v1.0.4
type GetSubscribeApplicationListResponse struct {
Total int64 `json:"total"`
List []SubscribeApplication `json:"list"`
}
type GetSubscribeClientResponse ¶ added in v1.0.4
type GetSubscribeClientResponse struct {
Total int64 `json:"total"`
List []SubscribeClient `json:"list"`
}
type GetSubscribeDetailsRequest ¶
type GetSubscribeDetailsRequest struct {
Id int64 `form:"id" validate:"required"`
}
type GetSubscribeGroupListResponse ¶
type GetSubscribeGroupListResponse struct {
List []SubscribeGroup `json:"list"`
Total int64 `json:"total"`
}
type GetSubscribeListRequest ¶
type GetSubscribeListResponse ¶
type GetSubscribeListResponse struct {
List []SubscribeItem `json:"list"`
Total int64 `json:"total"`
}
type GetSubscribeLogRequest ¶
type GetSubscribeLogResponse ¶
type GetSubscribeLogResponse struct {
List []UserSubscribeLog `json:"list"`
Total int64 `json:"total"`
}
type GetSubscriptionRequest ¶ added in v1.1.0
type GetSubscriptionRequest struct {
Language string `form:"language"`
}
type GetSubscriptionResponse ¶
type GetSubscriptionResponse struct {
List []Subscribe `json:"list"`
}
type GetTicketListRequest ¶
type GetTicketListResponse ¶
type GetTicketRequest ¶
type GetTicketRequest struct {
Id int64 `form:"id" validate:"required"`
}
type GetTosResponse ¶
type GetTosResponse struct {
TosContent string `json:"tos_content"`
}
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"`
Size int `form:"size"`
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"`
}
type GetUserListResponse ¶
type GetUserLoginLogsRequest ¶
type GetUserLoginLogsResponse ¶
type GetUserLoginLogsResponse struct {
List []UserLoginLog `json:"list"`
Total int64 `json:"total"`
}
type GetUserSubscribeByIdRequest ¶
type GetUserSubscribeByIdRequest struct {
Id int64 `form:"id" validate:"required"`
}
type GetUserSubscribeDevicesResponse ¶
type GetUserSubscribeDevicesResponse struct {
List []UserDevice `json:"list"`
Total int64 `json:"total"`
}
type GetUserSubscribeListResponse ¶
type GetUserSubscribeListResponse struct {
List []UserSubscribe `json:"list"`
Total int64 `json:"total"`
}
type GetUserSubscribeLogsResponse ¶
type GetUserSubscribeLogsResponse struct {
List []UserSubscribeLog `json:"list"`
Total int64 `json:"total"`
}
type GetUserSubscribeResetTrafficLogsRequest ¶ added in v1.1.0
type GetUserSubscribeResetTrafficLogsResponse ¶ added in v1.1.0
type GetUserSubscribeResetTrafficLogsResponse struct {
List []ResetSubscribeTrafficLog `json:"list"`
Total int64 `json:"total"`
}
type GetUserSubscribeTrafficLogsResponse ¶
type GetUserSubscribeTrafficLogsResponse struct {
List []TrafficLog `json:"list"`
Total int64 `json:"total"`
}
type GetUserTicketDetailRequest ¶
type GetUserTicketDetailRequest struct {
Id int64 `form:"id" validate:"required"`
}
type HasMigrateSeverNodeResponse ¶ added in v1.1.0
type HasMigrateSeverNodeResponse struct {
HasMigrate bool `json:"has_migrate"`
}
type HeartbeatResponse ¶ added in v1.2.0
type Hysteria2 ¶
type Hysteria2 struct {
Port int `json:"port" validate:"required"`
HopPorts string `json:"hop_ports" validate:"required"`
HopInterval int `json:"hop_interval" validate:"required"`
ObfsPassword string `json:"obfs_password" validate:"required"`
SecurityConfig SecurityConfig `json:"security_config"`
}
type InviteConfig ¶
type KickOfflineRequest ¶
type KickOfflineRequest struct {
Id int64 `json:"id"`
}
type LogResponse ¶
type LogResponse struct {
List interface{} `json:"list"`
}
type LogSetting ¶ added in v1.1.0
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type MessageLog ¶
type MigrateServerNodeResponse ¶ added in v1.1.0
type ModuleConfig ¶ added in v1.2.0
type Node ¶ added in v1.1.0
type Node struct {
Id int64 `json:"id"`
Name string `json:"name"`
Tags []string `json:"tags"`
Port uint16 `json:"port"`
Address string `json:"address"`
ServerId int64 `json:"server_id"`
Protocol string `json:"protocol"`
Enabled *bool `json:"enabled"`
Sort int `json:"sort,omitempty"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type NodeConfig ¶
type NodeConfig struct {
NodeSecret string `json:"node_secret"`
NodePullInterval int64 `json:"node_pull_interval"`
NodePushInterval int64 `json:"node_push_interval"`
TrafficReportThreshold int64 `json:"traffic_report_threshold"`
IPStrategy string `json:"ip_strategy"`
DNS []NodeDNS `json:"dns"`
Block []string `json:"block"`
Outbound []NodeOutbound `json:"outbound"`
}
type NodeOutbound ¶ added in v1.1.2
type OAthLoginRequest ¶
type OAuthLoginGetTokenRequest ¶
type OAuthLoginGetTokenRequest struct {
Method string `json:"method" validate:"required"` // google, facebook, apple, telegram, github etc.
Callback interface{} `json:"callback" validate:"required"`
}
type OAuthLoginResponse ¶
type OAuthLoginResponse struct {
Redirect string `json:"redirect"`
}
type OnlineUser ¶
type OnlineUsersRequest ¶
type OnlineUsersRequest struct {
ServerCommon
Users []OnlineUser `json:"users"`
}
type Order ¶
type Order struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
OrderNo string `json:"order_no"`
Type uint8 `json:"type"`
Quantity int64 `json:"quantity"`
Price int64 `json:"price"`
Amount int64 `json:"amount"`
GiftAmount int64 `json:"gift_amount"`
Discount int64 `json:"discount"`
Coupon string `json:"coupon"`
CouponDiscount int64 `json:"coupon_discount"`
Commission int64 `json:"commission,omitempty"`
Payment PaymentMethod `json:"payment"`
FeeAmount int64 `json:"fee_amount"`
TradeNo string `json:"trade_no"`
Status uint8 `json:"status"`
SubscribeId int64 `json:"subscribe_id"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type OrderDetail ¶
type OrderDetail struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
OrderNo string `json:"order_no"`
Type uint8 `json:"type"`
Quantity int64 `json:"quantity"`
Price int64 `json:"price"`
Amount int64 `json:"amount"`
GiftAmount int64 `json:"gift_amount"`
Discount int64 `json:"discount"`
Coupon string `json:"coupon"`
CouponDiscount int64 `json:"coupon_discount"`
Commission int64 `json:"commission,omitempty"`
Payment PaymentMethod `json:"payment"`
Method string `json:"method"`
FeeAmount int64 `json:"fee_amount"`
TradeNo string `json:"trade_no"`
Status uint8 `json:"status"`
SubscribeId int64 `json:"subscribe_id"`
Subscribe Subscribe `json:"subscribe"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type OrdersStatistics ¶
type OrdersStatistics struct {
Date string `json:"date,omitempty"`
AmountTotal int64 `json:"amount_total"`
NewOrderAmount int64 `json:"new_order_amount"`
RenewalOrderAmount int64 `json:"renewal_order_amount"`
List []OrdersStatistics `json:"list,omitempty"`
}
type PaymentConfig ¶
type PaymentConfig struct {
Id int64 `json:"id" validate:"required"`
Name string `json:"name" validate:"required"`
Platform string `json:"platform" validate:"required"`
Description string `json:"description"`
Icon string `json:"icon,omitempty"`
Domain string `json:"domain,omitempty"`
Config interface{} `json:"config" validate:"required"`
FeeMode uint `json:"fee_mode"`
FeePercent int64 `json:"fee_percent,omitempty"`
FeeAmount int64 `json:"fee_amount,omitempty"`
Enable *bool `json:"enable" validate:"required"`
}
type PaymentMethod ¶
type PaymentMethodDetail ¶
type PaymentMethodDetail struct {
Id int64 `json:"id"`
Name string `json:"name"`
Platform string `json:"platform"`
Description string `json:"description"`
Icon string `json:"icon"`
Domain string `json:"domain"`
Config interface{} `json:"config"`
FeeMode uint `json:"fee_mode"`
FeePercent int64 `json:"fee_percent"`
FeeAmount int64 `json:"fee_amount"`
Enable bool `json:"enable"`
NotifyURL string `json:"notify_url"`
}
type PlatformInfo ¶
type PlatformResponse ¶
type PlatformResponse struct {
List []PlatformInfo `json:"list"`
}
type PortalPurchaseRequest ¶
type PortalPurchaseRequest struct {
AuthType string `json:"auth_type"`
Identifier string `json:"identifier"`
Password string `json:"password,omitempty"`
Payment int64 `json:"payment"`
SubscribeId int64 `json:"subscribe_id"`
Quantity int64 `json:"quantity"`
Coupon string `json:"coupon,omitempty"`
InviteCode string `json:"invite_code,omitempty"`
TurnstileToken string `json:"turnstile_token,omitempty"`
}
type PortalPurchaseResponse ¶
type PortalPurchaseResponse struct {
OrderNo string `json:"order_no"`
}
type PreOrderResponse ¶
type PrePurchaseOrderRequest ¶
type PreRenewalOrderResponse ¶
type PreRenewalOrderResponse struct {
OrderNo string `json:"orderNo"`
}
type PreUnsubscribeRequest ¶
type PreUnsubscribeRequest struct {
Id int64 `json:"id"`
}
type PreUnsubscribeResponse ¶
type PreUnsubscribeResponse struct {
DeductionAmount int64 `json:"deduction_amount"`
}
type PreViewNodeMultiplierResponse ¶ added in v1.1.4
type PreviewSubscribeTemplateRequest ¶ added in v1.0.4
type PreviewSubscribeTemplateRequest struct {
Id int64 `form:"id"`
}
type PreviewSubscribeTemplateResponse ¶ added in v1.0.4
type PreviewSubscribeTemplateResponse struct {
Template string `json:"template"` // 预览的模板内容
}
type PrivacyPolicyConfig ¶
type PrivacyPolicyConfig struct {
PrivacyPolicy string `json:"privacy_policy"`
}
type Protocol ¶ added in v1.1.0
type Protocol struct {
Type string `json:"type"`
Port uint16 `json:"port"`
Enable bool `json:"enable"`
Security string `json:"security,omitempty"`
SNI string `json:"sni,omitempty"`
AllowInsecure bool `json:"allow_insecure,omitempty"`
Fingerprint string `json:"fingerprint,omitempty"`
RealityServerAddr string `json:"reality_server_addr,omitempty"`
RealityServerPort int `json:"reality_server_port,omitempty"`
RealityPrivateKey string `json:"reality_private_key,omitempty"`
RealityPublicKey string `json:"reality_public_key,omitempty"`
RealityShortId string `json:"reality_short_id,omitempty"`
Transport string `json:"transport,omitempty"`
Host string `json:"host,omitempty"`
Path string `json:"path,omitempty"`
ServiceName string `json:"service_name,omitempty"`
Cipher string `json:"cipher,omitempty"`
ServerKey string `json:"server_key,omitempty"`
Flow string `json:"flow,omitempty"`
HopPorts string `json:"hop_ports,omitempty"`
HopInterval int `json:"hop_interval,omitempty"`
ObfsPassword string `json:"obfs_password,omitempty"`
DisableSNI bool `json:"disable_sni,omitempty"`
ReduceRtt bool `json:"reduce_rtt,omitempty"`
UDPRelayMode string `json:"udp_relay_mode,omitempty"`
CongestionController string `json:"congestion_controller,omitempty"`
Multiplex string `json:"multiplex,omitempty"` // mux, eg: off/low/medium/high
PaddingScheme string `json:"padding_scheme,omitempty"` // padding scheme
UpMbps int `json:"up_mbps,omitempty"` // upload speed limit
DownMbps int `json:"down_mbps,omitempty"` // download speed limit
Obfs string `json:"obfs,omitempty"` // obfs, 'none', 'http', 'tls'
ObfsHost string `json:"obfs_host,omitempty"` // obfs host
ObfsPath string `json:"obfs_path,omitempty"` // obfs path
XhttpMode string `json:"xhttp_mode,omitempty"` // xhttp mode
XhttpExtra string `json:"xhttp_extra,omitempty"` // xhttp extra path
Encryption string `json:"encryption,omitempty"` // encryption,'none', 'mlkem768x25519plus'
EncryptionMode string `json:"encryption_mode,omitempty"` // encryption mode,'native', 'xorpub', 'random'
EncryptionRtt string `json:"encryption_rtt,omitempty"` // encryption rtt,'0rtt', '1rtt'
EncryptionTicket string `json:"encryption_ticket,omitempty"` // encryption ticket
EncryptionServerPadding string `json:"encryption_server_padding,omitempty"` // encryption server padding
EncryptionPrivateKey string `json:"encryption_private_key,omitempty"` // encryption private key
EncryptionClientPadding string `json:"encryption_client_padding,omitempty"` // encryption client padding
EncryptionPassword string `json:"encryption_password,omitempty"` // encryption password
Ratio float64 `json:"ratio,omitempty"` // Traffic ratio, default is 1
CertMode string `json:"cert_mode,omitempty"` // Certificate mode, `none`|`http`|`dns`|`self`
CertDNSProvider string `json:"cert_dns_provider,omitempty"` // DNS provider for certificate
CertDNSEnv string `json:"cert_dns_env,omitempty"` // Environment for DNS provider
}
type PubilcRegisterConfig ¶
type PubilcVerifyCodeConfig ¶
type PubilcVerifyCodeConfig struct {
VerifyCodeInterval int64 `json:"verify_code_interval"`
}
type PurchaseOrderRequest ¶
type PurchaseOrderResponse ¶
type PurchaseOrderResponse struct {
OrderNo string `json:"order_no"`
}
type QueryAnnouncementResponse ¶
type QueryAnnouncementResponse struct {
Total int64 `json:"total"`
List []Announcement `json:"announcements"`
}
type QueryDocumentDetailRequest ¶
type QueryDocumentDetailRequest struct {
Id int64 `form:"id" validate:"required"`
}
type QueryIPLocationRequest ¶ added in v1.2.0
type QueryIPLocationRequest struct {
IP string `form:"ip" validate:"required"`
}
type QueryIPLocationResponse ¶ added in v1.2.0
type QueryNodeTagResponse ¶ added in v1.1.0
type QueryNodeTagResponse struct {
Tags []string `json:"tags"`
}
type QueryOrderDetailRequest ¶
type QueryOrderDetailRequest struct {
OrderNo string `form:"order_no" validate:"required"`
}
type QueryOrderListRequest ¶
type QueryOrderListResponse ¶
type QueryOrderListResponse struct {
Total int64 `json:"total"`
List []OrderDetail `json:"list"`
}
type QueryPurchaseOrderResponse ¶
type QueryPurchaseOrderResponse struct {
OrderNo string `json:"order_no"`
Subscribe Subscribe `json:"subscribe"`
Quantity int64 `json:"quantity"`
Price int64 `json:"price"`
Amount int64 `json:"amount"`
Discount int64 `json:"discount"`
Coupon string `json:"coupon"`
CouponDiscount int64 `json:"coupon_discount"`
FeeAmount int64 `json:"fee_amount"`
Payment PaymentMethod `json:"payment"`
Status uint8 `json:"status"`
CreatedAt int64 `json:"created_at"`
Token string `json:"token,omitempty"`
}
type QueryQuotaTaskListRequest ¶ added in v1.1.0
type QueryQuotaTaskListResponse ¶ added in v1.1.0
type QueryQuotaTaskPreCountRequest ¶ added in v1.1.0
type QueryQuotaTaskPreCountResponse ¶ added in v1.1.0
type QueryQuotaTaskPreCountResponse struct {
Count int64 `json:"count"`
}
type QueryQuotaTaskStatusRequest ¶ added in v1.1.0
type QueryQuotaTaskStatusRequest struct {
Id int64 `json:"id"`
}
type QueryQuotaTaskStatusResponse ¶ added in v1.1.0
type QueryServerConfigRequest ¶ added in v1.1.0
type QueryServerConfigResponse ¶ added in v1.1.0
type QueryServerConfigResponse struct {
TrafficReportThreshold int64 `json:"traffic_report_threshold"`
IPStrategy string `json:"ip_strategy"`
DNS []NodeDNS `json:"dns"`
Block []string `json:"block"`
Outbound []NodeOutbound `json:"outbound"`
Protocols []Protocol `json:"protocols"`
Total int64 `json:"total"`
}
type QuerySubscribeGroupListResponse ¶
type QuerySubscribeGroupListResponse struct {
List []SubscribeGroup `json:"list"`
Total int64 `json:"total"`
}
type QuerySubscribeListRequest ¶ added in v1.1.0
type QuerySubscribeListRequest struct {
Language string `form:"language"`
}
type QueryUserAffiliateListResponse ¶
type QueryUserAffiliateListResponse struct {
List []UserAffiliate `json:"list"`
Total int64 `json:"total"`
}
type QueryUserBalanceLogListResponse ¶
type QueryUserBalanceLogListResponse struct {
List []BalanceLog `json:"list"`
Total int64 `json:"total"`
}
type QueryUserCommissionLogListResponse ¶
type QueryUserCommissionLogListResponse struct {
List []CommissionLog `json:"list"`
Total int64 `json:"total"`
}
type QueryUserSubscribeListResponse ¶
type QueryUserSubscribeListResponse struct {
List []UserSubscribe `json:"list"`
Total int64 `json:"total"`
}
type QueryUserSubscribeNodeListResponse ¶ added in v1.1.8
type QueryUserSubscribeNodeListResponse struct {
List []UserSubscribeInfo `json:"list"`
}
type QueryWithdrawalLogListRequest ¶ added in v1.2.0
type QueryWithdrawalLogListResponse ¶ added in v1.2.0
type QueryWithdrawalLogListResponse struct {
List []WithdrawalLog `json:"list"`
Total int64 `json:"total"`
}
type QuotaTask ¶ added in v1.1.0
type QuotaTask struct {
Id int64 `json:"id"`
Subscribers []int64 `json:"subscribers"`
IsActive *bool `json:"is_active"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
ResetTraffic bool `json:"reset_traffic"`
Days uint64 `json:"days"`
GiftType uint8 `json:"gift_type"`
GiftValue uint64 `json:"gift_value"`
Objects []int64 `json:"objects"` // UserSubscribe IDs
Status uint8 `json:"status"`
Total int64 `json:"total"`
Current int64 `json:"current"`
Errors string `json:"errors"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type RechargeOrderRequest ¶
type RechargeOrderResponse ¶
type RechargeOrderResponse struct {
OrderNo string `json:"order_no"`
}
type RegisterConfig ¶
type RegisterConfig struct {
StopRegister bool `json:"stop_register"`
EnableTrial bool `json:"enable_trial"`
TrialSubscribe int64 `json:"trial_subscribe"`
TrialTime int64 `json:"trial_time"`
TrialTimeUnit string `json:"trial_time_unit"`
EnableIpRegisterLimit bool `json:"enable_ip_register_limit"`
IpRegisterLimit int64 `json:"ip_register_limit"`
IpRegisterLimitDuration int64 `json:"ip_register_limit_duration"`
}
type RegisterLog ¶ added in v1.1.0
type RenewalOrderRequest ¶
type RenewalOrderResponse ¶
type RenewalOrderResponse struct {
OrderNo string `json:"order_no"`
}
type ResetAllSubscribeTokenResponse ¶ added in v1.2.0
type ResetAllSubscribeTokenResponse struct {
Success bool `json:"success"`
}
type ResetPasswordRequest ¶
type ResetPasswordRequest struct {
Identifier string `json:"identifier"`
Email string `json:"email" validate:"required"`
Password string `json:"password" validate:"required"`
Code string `json:"code,optional"`
IP string `header:"X-Original-Forwarded-For"`
UserAgent string `header:"User-Agent"`
LoginType string `header:"Login-Type"`
CfToken string `json:"cf_token,optional"`
}
type ResetSortRequest ¶ added in v1.1.0
type ResetSortRequest struct {
Sort []SortItem `json:"sort"`
}
type ResetSubscribeLog ¶ added in v1.1.0
type ResetSubscribeTrafficLog ¶ added in v1.1.0
type ResetTrafficOrderResponse ¶
type ResetTrafficOrderResponse struct {
OrderNo string `json:"order_no"`
}
type ResetUserSubscribeTokenRequest ¶
type ResetUserSubscribeTokenRequest struct {
UserSubscribeId int64 `json:"user_subscribe_id"`
}
type ResetUserSubscribeTrafficRequest ¶ added in v1.2.3
type ResetUserSubscribeTrafficRequest struct {
UserSubscribeId int64 `json:"user_subscribe_id"`
}
type RevenueStatisticsResponse ¶
type RevenueStatisticsResponse struct {
Today OrdersStatistics `json:"today"`
Monthly OrdersStatistics `json:"monthly"`
All OrdersStatistics `json:"all"`
}
type SecurityConfig ¶
type SecurityConfig struct {
SNI string `json:"sni"`
AllowInsecure *bool `json:"allow_insecure"`
Fingerprint string `json:"fingerprint"`
RealityServerAddr string `json:"reality_server_addr"`
RealityServerPort int `json:"reality_server_port"`
RealityPrivateKey string `json:"reality_private_key"`
RealityPublicKey string `json:"reality_public_key"`
RealityShortId string `json:"reality_short_id"`
}
type SendCodeRequest ¶
type SendCodeResponse ¶
type SendSmsCodeRequest ¶
type Server ¶
type Server struct {
Id int64 `json:"id"`
Name string `json:"name"`
Country string `json:"country"`
City string `json:"city"`
Address string `json:"address"`
Sort int `json:"sort"`
Protocols []Protocol `json:"protocols"`
LastReportedAt int64 `json:"last_reported_at"`
Status ServerStatus `json:"status"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type ServerBasic ¶
type ServerCommon ¶
type ServerGroup ¶
type ServerOnlineIP ¶ added in v1.1.0
type ServerOnlineUser ¶ added in v1.1.0
type ServerPushStatusRequest ¶
type ServerPushStatusRequest struct {
ServerCommon
Cpu float64 `json:"cpu"`
Mem float64 `json:"mem"`
Disk float64 `json:"disk"`
UpdatedAt int64 `json:"updated_at"`
}
type ServerPushUserTrafficRequest ¶
type ServerPushUserTrafficRequest struct {
ServerCommon
Traffic []UserTraffic `json:"traffic"`
}
type ServerRuleGroup ¶
type ServerRuleGroup struct {
Id int64 `json:"id"`
Icon string `json:"icon"`
Name string `json:"name" validate:"required"`
Type string `json:"type"`
Tags []string `json:"tags"`
Rules string `json:"rules"`
Enable bool `json:"enable"`
Default bool `json:"default"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type ServerStatus ¶ added in v1.1.0
type ServerTotalDataResponse ¶
type ServerTotalDataResponse struct {
OnlineUsers int64 `json:"online_users"`
OnlineServers int64 `json:"online_servers"`
OfflineServers int64 `json:"offline_servers"`
TodayUpload int64 `json:"today_upload"`
TodayDownload int64 `json:"today_download"`
MonthlyUpload int64 `json:"monthly_upload"`
MonthlyDownload int64 `json:"monthly_download"`
UpdatedAt int64 `json:"updated_at"`
ServerTrafficRankingToday []ServerTrafficData `json:"server_traffic_ranking_today"`
ServerTrafficRankingYesterday []ServerTrafficData `json:"server_traffic_ranking_yesterday"`
UserTrafficRankingToday []UserTrafficData `json:"user_traffic_ranking_today"`
UserTrafficRankingYesterday []UserTrafficData `json:"user_traffic_ranking_yesterday"`
}
type ServerTrafficData ¶
type ServerTrafficLog ¶ added in v1.1.0
type ServerTrafficLog struct {
ServerId int64 `json:"server_id"` // Server ID
Upload int64 `json:"upload"` // Upload traffic in bytes
Download int64 `json:"download"` // Download traffic in bytes
Total int64 `json:"total"` // Total traffic in bytes (Upload + Download)
Date string `json:"date"` // Date in YYYY-MM-DD format
Details bool `json:"details"` // Whether to show detailed traffic
}
type ServerUser ¶
type SetNodeMultiplierRequest ¶
type SetNodeMultiplierRequest struct {
Periods []TimePeriod `json:"periods"`
}
type Shadowsocks ¶
type ShadowsocksProtocol ¶
type SiteConfig ¶
type SiteCustomDataContacts ¶
type StopBatchSendEmailTaskRequest ¶ added in v1.0.4
type StopBatchSendEmailTaskRequest struct {
Id int64 `json:"id"`
}
type StripePayment ¶
type Subscribe ¶
type Subscribe struct {
Id int64 `json:"id"`
Name string `json:"name"`
Language string `json:"language"`
Description string `json:"description"`
UnitPrice int64 `json:"unit_price"`
UnitTime string `json:"unit_time"`
Discount []SubscribeDiscount `json:"discount"`
Replacement int64 `json:"replacement"`
Inventory int64 `json:"inventory"`
Traffic int64 `json:"traffic"`
SpeedLimit int64 `json:"speed_limit"`
DeviceLimit int64 `json:"device_limit"`
Quota int64 `json:"quota"`
Nodes []int64 `json:"nodes"`
NodeTags []string `json:"node_tags"`
Show bool `json:"show"`
Sell bool `json:"sell"`
Sort int64 `json:"sort"`
DeductionRatio int64 `json:"deduction_ratio"`
AllowDeduction bool `json:"allow_deduction"`
ResetCycle int64 `json:"reset_cycle"`
RenewalReset bool `json:"renewal_reset"`
ShowOriginalPrice bool `json:"show_original_price"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type SubscribeApplication ¶ added in v1.0.4
type SubscribeApplication struct {
Id int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
Icon string `json:"icon,omitempty"`
Scheme string `json:"scheme,omitempty"`
UserAgent string `json:"user_agent"`
IsDefault bool `json:"is_default"`
SubscribeTemplate string `json:"template"`
OutputFormat string `json:"output_format"`
DownloadLink DownloadLink `json:"download_link,omitempty"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type SubscribeClient ¶ added in v1.0.4
type SubscribeConfig ¶
type SubscribeDiscount ¶
type SubscribeGroup ¶
type SubscribeItem ¶
type SubscribeLog ¶ added in v1.1.0
type SubscribeRequest ¶
type SubscribeResponse ¶
type SubscribeSortRequest ¶
type SubscribeSortRequest struct {
Sort []SortItem `json:"sort"`
}
type SubscribeType ¶
type SubscribeType struct {
SubscribeTypes []string `json:"subscribe_types"`
}
type TelegramConfig ¶
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"`
UserAgent string `header:"User-Agent"`
LoginType string `header:"Login-Type"`
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"`
Invite string `json:"invite,optional"`
Code string `json:"code,optional"`
IP string `header:"X-Original-Forwarded-For"`
UserAgent string `header:"User-Agent"`
LoginType string `header:"Login-Type,optional"`
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"`
Code string `json:"code,optional"`
IP string `header:"X-Original-Forwarded-For"`
UserAgent string `header:"User-Agent"`
LoginType string `header:"Login-Type,optional"`
CfToken string `json:"cf_token,optional"`
}
type TestEmailSendRequest ¶
type TestEmailSendRequest struct {
Email string `json:"email" validate:"required"`
}
type TestSmsSendRequest ¶
type TicketWaitRelpyResponse ¶
type TicketWaitRelpyResponse struct {
Count int64 `json:"count"`
}
type TimePeriod ¶
type ToggleNodeStatusRequest ¶ added in v1.1.0
type ToggleUserSubscribeStatusRequest ¶ added in v1.2.3
type ToggleUserSubscribeStatusRequest struct {
UserSubscribeId int64 `json:"user_subscribe_id"`
}
type TrafficLog ¶
type TrafficLogDetails ¶ added in v1.1.0
type TransportConfig ¶
type Trojan ¶
type Trojan struct {
Port int `json:"port" validate:"required"`
Transport string `json:"transport" validate:"required"`
TransportConfig TransportConfig `json:"transport_config"`
Security string `json:"security" validate:"required"`
SecurityConfig SecurityConfig `json:"security_config"`
}
type TrojanProtocol ¶
type UnbindDeviceRequest ¶ added in v1.1.8
type UnbindDeviceRequest struct {
Id int64 `json:"id" validate:"required"`
}
type UnbindOAuthRequest ¶
type UnbindOAuthRequest struct {
Method string `json:"method"`
}
type UnsubscribeRequest ¶
type UnsubscribeRequest struct {
Id int64 `json:"id"`
}
type UpdateAdsRequest ¶
type UpdateAdsRequest struct {
Id int64 `json:"id"`
Title string `json:"title"`
Type string `json:"type"`
Content string `json:"content"`
Description string `json:"description"`
TargetURL string `json:"target_url"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
Status int `json:"status"`
}
type UpdateBindEmailRequest ¶
type UpdateBindEmailRequest struct {
Email string `json:"email" validate:"required"`
}
type UpdateBindMobileRequest ¶
type UpdateCouponRequest ¶
type UpdateCouponRequest struct {
Id int64 `json:"id" validate:"required"`
Name string `json:"name" validate:"required"`
Code string `json:"code,omitempty"`
Count int64 `json:"count,omitempty"`
Type uint8 `json:"type" validate:"required"`
Discount int64 `json:"discount" validate:"required"`
StartTime int64 `json:"start_time" validate:"required"`
ExpireTime int64 `json:"expire_time" validate:"required"`
UserLimit int64 `json:"user_limit,omitempty"`
Subscribe []int64 `json:"subscribe,omitempty"`
UsedCount int64 `json:"used_count,omitempty"`
Enable *bool `json:"enable,omitempty"`
}
type UpdateDocumentRequest ¶
type UpdateNodeRequest ¶
type UpdatePaymentMethodRequest ¶
type UpdatePaymentMethodRequest struct {
Id int64 `json:"id" validate:"required"`
Name string `json:"name" validate:"required"`
Platform string `json:"platform" validate:"required"`
Description string `json:"description"`
Icon string `json:"icon,omitempty"`
Domain string `json:"domain,omitempty"`
Config interface{} `json:"config" validate:"required"`
FeeMode uint `json:"fee_mode"`
FeePercent int64 `json:"fee_percent,omitempty"`
FeeAmount int64 `json:"fee_amount,omitempty"`
Enable *bool `json:"enable" validate:"required"`
}
type UpdateServerRequest ¶ added in v1.1.0
type UpdateSubscribeApplicationRequest ¶ added in v1.0.4
type UpdateSubscribeApplicationRequest struct {
Id int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
Icon string `json:"icon,omitempty"`
Scheme string `json:"scheme,omitempty"`
UserAgent string `json:"user_agent"`
IsDefault bool `json:"is_default"`
SubscribeTemplate string `json:"template"`
OutputFormat string `json:"output_format"`
DownloadLink DownloadLink `json:"download_link,omitempty"`
}
type UpdateSubscribeRequest ¶
type UpdateSubscribeRequest struct {
Id int64 `json:"id" validate:"required"`
Name string `json:"name" validate:"required"`
Language string `json:"language"`
Description string `json:"description"`
UnitPrice int64 `json:"unit_price"`
UnitTime string `json:"unit_time"`
Discount []SubscribeDiscount `json:"discount"`
Replacement int64 `json:"replacement"`
Inventory int64 `json:"inventory"`
Traffic int64 `json:"traffic"`
SpeedLimit int64 `json:"speed_limit"`
DeviceLimit int64 `json:"device_limit"`
Quota int64 `json:"quota"`
Nodes []int64 `json:"nodes"`
NodeTags []string `json:"node_tags"`
Show *bool `json:"show"`
Sell *bool `json:"sell"`
Sort int64 `json:"sort"`
DeductionRatio int64 `json:"deduction_ratio"`
AllowDeduction *bool `json:"allow_deduction"`
ResetCycle int64 `json:"reset_cycle"`
RenewalReset *bool `json:"renewal_reset"`
ShowOriginalPrice bool `json:"show_original_price"`
}
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"`
}
type UpdateUserRulesRequest ¶ added in v1.2.0
type UpdateUserRulesRequest struct {
Rules []string `json:"rules" validate:"required"`
}
type UpdateUserSubscribeNoteRequest ¶ added in v1.2.0
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 UserAffiliate ¶
type UserAuthMethod ¶
type UserDevice ¶
type UserLoginLog ¶
type UserLoginRequest ¶
type UserLoginRequest struct {
Identifier string `json:"identifier"`
Email string `json:"email" validate:"required"`
Password string `json:"password" validate:"required"`
IP string `header:"X-Original-Forwarded-For"`
UserAgent string `header:"User-Agent"`
LoginType string `header:"Login-Type"`
CfToken string `json:"cf_token,optional"`
}
type UserRegisterRequest ¶
type UserRegisterRequest struct {
Identifier string `json:"identifier"`
Email string `json:"email" validate:"required"`
Password string `json:"password" validate:"required"`
Invite string `json:"invite,optional"`
Code string `json:"code,optional"`
IP string `header:"X-Original-Forwarded-For"`
UserAgent string `header:"User-Agent"`
LoginType string `header:"Login-Type"`
CfToken string `json:"cf_token,optional"`
}
type UserStatistics ¶
type UserStatistics struct {
Date string `json:"date,omitempty"`
Register int64 `json:"register"`
NewOrderUsers int64 `json:"new_order_users"`
RenewalOrderUsers int64 `json:"renewal_order_users"`
List []UserStatistics `json:"list,omitempty"`
}
type UserStatisticsResponse ¶
type UserStatisticsResponse struct {
Today UserStatistics `json:"today"`
Monthly UserStatistics `json:"monthly"`
All UserStatistics `json:"all"`
}
type UserSubscribe ¶
type UserSubscribe struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
OrderId int64 `json:"order_id"`
SubscribeId int64 `json:"subscribe_id"`
Subscribe Subscribe `json:"subscribe"`
StartTime int64 `json:"start_time"`
ExpireTime int64 `json:"expire_time"`
FinishedAt int64 `json:"finished_at"`
ResetTime int64 `json:"reset_time"`
Traffic int64 `json:"traffic"`
Download int64 `json:"download"`
Upload int64 `json:"upload"`
Token string `json:"token"`
Status uint8 `json:"status"`
Short string `json:"short"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type UserSubscribeDetail ¶
type UserSubscribeDetail struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
User User `json:"user"`
OrderId int64 `json:"order_id"`
SubscribeId int64 `json:"subscribe_id"`
Subscribe Subscribe `json:"subscribe"`
StartTime int64 `json:"start_time"`
ExpireTime int64 `json:"expire_time"`
ResetTime int64 `json:"reset_time"`
Traffic int64 `json:"traffic"`
Download int64 `json:"download"`
Upload int64 `json:"upload"`
Token string `json:"token"`
Status uint8 `json:"status"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type UserSubscribeInfo ¶ added in v1.1.8
type UserSubscribeInfo struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
OrderId int64 `json:"order_id"`
SubscribeId int64 `json:"subscribe_id"`
StartTime int64 `json:"start_time"`
ExpireTime int64 `json:"expire_time"`
FinishedAt int64 `json:"finished_at"`
ResetTime int64 `json:"reset_time"`
Traffic int64 `json:"traffic"`
Download int64 `json:"download"`
Upload int64 `json:"upload"`
Token string `json:"token"`
Status uint8 `json:"status"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
IsTryOut bool `json:"is_try_out"`
Nodes []*UserSubscribeNodeInfo `json:"nodes"`
}
type UserSubscribeLog ¶
type UserSubscribeNodeInfo ¶ added in v1.1.8
type UserSubscribeNodeInfo struct {
Id int64 `json:"id"`
Name string `json:"name"`
Uuid string `json:"uuid"`
Protocol string `json:"protocol"`
Port uint16 `json:"port"`
Address string `json:"address"`
Tags []string `json:"tags"`
Country string `json:"country"`
City string `json:"city"`
CreatedAt int64 `json:"created_at"`
}
type UserSubscribeTrafficLog ¶ added in v1.1.0
type UserSubscribeTrafficLog struct {
SubscribeId int64 `json:"subscribe_id"` // Subscribe ID
UserId int64 `json:"user_id"` // User ID
Upload int64 `json:"upload"` // Upload traffic in bytes
Download int64 `json:"download"` // Download traffic in bytes
Total int64 `json:"total"` // Total traffic in bytes (Upload + Download)
Date string `json:"date"` // Date in YYYY-MM-DD format
Details bool `json:"details"` // Whether to show detailed traffic
}
type UserTraffic ¶
type UserTrafficData ¶
type VeifyConfig ¶
type VerifyCodeConfig ¶
type VerifyConfig ¶
type VerifyConfig struct {
TurnstileSiteKey string `json:"turnstile_site_key"`
TurnstileSecret string `json:"turnstile_secret"`
EnableLoginVerify bool `json:"enable_login_verify"`
EnableRegisterVerify bool `json:"enable_register_verify"`
EnableResetPasswordVerify bool `json:"enable_reset_password_verify"`
}
type VerifyEmailRequest ¶
type VersionResponse ¶ added in v1.0.4
type VersionResponse struct {
Version string `json:"version"`
}
type Vless ¶
type Vless struct {
Port int `json:"port" validate:"required"`
Flow string `json:"flow" validate:"required"`
Transport string `json:"transport" validate:"required"`
TransportConfig TransportConfig `json:"transport_config"`
Security string `json:"security" validate:"required"`
SecurityConfig SecurityConfig `json:"security_config"`
}
type VlessProtocol ¶
type Vmess ¶
type Vmess struct {
Port int `json:"port" validate:"required"`
Transport string `json:"transport" validate:"required"`
TransportConfig TransportConfig `json:"transport_config"`
Security string `json:"security" validate:"required"`
SecurityConfig SecurityConfig `json:"security_config"`
}
type VmessProtocol ¶
type WithdrawalLog ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.