Documentation
¶
Index ¶
- Constants
- type ApiConfig
- func (ac *ApiConfig) ApiCall() Response
- func (ac *ApiConfig) AuditSearch() Response
- func (ac *ApiConfig) Auth() Response
- func (ac *ApiConfig) AuthCheckModifyPassword() Response
- func (ac *ApiConfig) BaseBatchOnlineDrop() Response
- func (ac *ApiConfig) BaseBindIp() Response
- func (ac *ApiConfig) BaseCreateMac() Response
- func (ac *ApiConfig) BaseCreateMacAuth() Response
- func (ac *ApiConfig) BaseDeleteMac() Response
- func (ac *ApiConfig) BaseDeleteMacAuth() Response
- func (ac *ApiConfig) BaseGetIp() Response
- func (ac *ApiConfig) BaseListMacAuth() Response
- func (ac *ApiConfig) BaseMacs() Response
- func (ac *ApiConfig) BaseOnlineData() Response
- func (ac *ApiConfig) BaseOnlineDrop() Response
- func (ac *ApiConfig) BaseOnlineEquipment() Response
- func (ac *ApiConfig) BasePhoneAuth() Response
- func (ac *ApiConfig) BaseUpdateMac() Response
- func (ac *ApiConfig) BaseUpdateMacAuth() Response
- func (ac *ApiConfig) BaseUpdateVlan() Response
- func (ac *ApiConfig) CheckoutListDetail() Response
- func (ac *ApiConfig) DetailTop() Response
- func (ac *ApiConfig) Details() Response
- func (ac *ApiConfig) FinancialCreatePayment() Response
- func (ac *ApiConfig) FinancialDeletePayment() Response
- func (ac *ApiConfig) FinancialExtraPay() Response
- func (ac *ApiConfig) FinancialPackageRechargeRecord() Response
- func (ac *ApiConfig) FinancialPayType() Response
- func (ac *ApiConfig) FinancialPaymentDataSync() Response
- func (ac *ApiConfig) FinancialPaymentOverview() Response
- func (ac *ApiConfig) FinancialPaymentRecords() Response
- func (ac *ApiConfig) FinancialRechargeCards() Response
- func (ac *ApiConfig) FinancialRechargeWallet() Response
- func (ac *ApiConfig) FinancialRefund() Response
- func (ac *ApiConfig) FinancialTransfer() Response
- func (ac *ApiConfig) FinancialUpdatePayment() Response
- func (ac *ApiConfig) FlowSearch() Response
- func (ac *ApiConfig) GetAccessToken() string
- func (ac *ApiConfig) GroupSubscribe() Response
- func (ac *ApiConfig) Groups() Response
- func (ac *ApiConfig) GroupsCreate() Response
- func (ac *ApiConfig) LogAuthErr() Response
- func (ac *ApiConfig) LogAuthErrorTotal() Response
- func (ac *ApiConfig) LogLogin() Response
- func (ac *ApiConfig) LogSys() Response
- func (ac *ApiConfig) Message() Response
- func (ac *ApiConfig) MessageNew() Response
- func (ac *ApiConfig) MessageNotice() Response
- func (ac *ApiConfig) ProductCanSubscribeProducts() Response
- func (ac *ApiConfig) ProductCancel() Response
- func (ac *ApiConfig) ProductCancelReservationTransferProducts() Response
- func (ac *ApiConfig) ProductCheckOperators() Response
- func (ac *ApiConfig) ProductCreate() Response
- func (ac *ApiConfig) ProductDelete() Response
- func (ac *ApiConfig) ProductDisableProduct() Response
- func (ac *ApiConfig) ProductEnableProduct() Response
- func (ac *ApiConfig) ProductExpire() Response
- func (ac *ApiConfig) ProductIndex() Response
- func (ac *ApiConfig) ProductNextBillingCycle() Response
- func (ac *ApiConfig) ProductOperators() Response
- func (ac *ApiConfig) ProductProductRecharge() Response
- func (ac *ApiConfig) ProductRecharge() Response
- func (ac *ApiConfig) ProductRefund() Response
- func (ac *ApiConfig) ProductReservationTransferProducts() Response
- func (ac *ApiConfig) ProductSubscribe() Response
- func (ac *ApiConfig) ProductTransferProduct() Response
- func (ac *ApiConfig) ProductUpdate() Response
- func (ac *ApiConfig) ProductUseNumber() Response
- func (ac *ApiConfig) ProductView() Response
- func (ac *ApiConfig) SafeDisable() Response
- func (ac *ApiConfig) StatisticsDayByte() Response
- func (ac *ApiConfig) StatisticsDayTime() Response
- func (ac *ApiConfig) StatisticsMonthByte() Response
- func (ac *ApiConfig) StrategyBillingCreate() Response
- func (ac *ApiConfig) StrategyControlCreate() Response
- func (ac *ApiConfig) UserAddManager() Response
- func (ac *ApiConfig) UserBalance() Response
- func (ac *ApiConfig) UserBindingPhone() Response
- func (ac *ApiConfig) UserCode() Response
- func (ac *ApiConfig) UserCreateInvite() Response
- func (ac *ApiConfig) UserDelete() Response
- func (ac *ApiConfig) UserDisabledInvite() Response
- func (ac *ApiConfig) UserEventVisitors() Response
- func (ac *ApiConfig) UserForgetResetPassword() Response
- func (ac *ApiConfig) UserGetPassword() Response
- func (ac *ApiConfig) UserInviteVisitors() Response
- func (ac *ApiConfig) UserMaxOnlineNum() Response
- func (ac *ApiConfig) UserResetPassword() Response
- func (ac *ApiConfig) UserResetPasswordManager() Response
- func (ac *ApiConfig) UserSearch() Response
- func (ac *ApiConfig) UserSearchMobilePhone() Response
- func (ac *ApiConfig) UserSendCode() Response
- func (ac *ApiConfig) UserSuperResetPassword() Response
- func (ac *ApiConfig) UserSuperResetPasswordManager() Response
- func (ac *ApiConfig) UserSuperSearch() Response
- func (ac *ApiConfig) UserTokenVisitors() Response
- func (ac *ApiConfig) UserUpdate() Response
- func (ac *ApiConfig) UserUseInvite() Response
- func (ac *ApiConfig) UserUserStatusControl() Response
- func (ac *ApiConfig) UserValidateManager() Response
- func (ac *ApiConfig) UserValidateUsers() Response
- func (ac *ApiConfig) UserView() Response
- func (ac *ApiConfig) UserViewInvite() Response
- func (ac *ApiConfig) UserVisitors() Response
- func (ac *ApiConfig) Users() Response
- func (ac *ApiConfig) VisitorCreateEventVisitor() Response
- func (ac *ApiConfig) VisitorCreateVisitorWhite() Response
- func (ac *ApiConfig) VisitorDeleteEventVisitor() Response
- func (ac *ApiConfig) VisitorDeleteVisitorWhite() Response
- func (ac *ApiConfig) VisitorUpdateEventVisitor() Response
- func (ac *ApiConfig) VisitorViewEventVisitor() Response
- type BaseAuth
- type Cache
- type Detail
- type Financial
- type Group
- type HTTPClient
- type HttpClient
- type Logs
- type Manage
- type Messages
- type Operator
- type Product
- type Request
- type Response
- type SDK
- type Safe
- type Strategy
- type SyncMapCache
- type User
- type Visitor
Constants ¶
View Source
const ( KeyApiSdkAccessToken = "key:api:sdk:access_token" AuthGetAccessToken = "/api/v2/auth/get-access-token" Users = "/api/v2/users" UserUpdate = "/api/v2/user/update" UserDelete = "/api/v2/user/delete" UserCode = "/api/v2/user/code" UserForgetResetPassword = "/api/v2/user/forget-reset-password" AuthCheckModifyPassword = "/api/v2/auth/check-modify-password" UserGetPassword = "/api/v2/user/get-password" UserSuperResetPassword = "/api/v2/user/super-reset-password" UserResetPassword = "/api/v2/user/reset-password" UserView = "/api/v2/user/view" UserSuperSearch = "/api/v2/user/super-search" UserSearch = "/api/v2/user/search" UserUserStatusControl = "/api/v2/user/user-status-control" UserValidateUsers = "/api/v2/user/validate-users" UserBalance = "/api/v2/user/balance" UserSendCode = "/api/v2/user/send-code" UserMaxOnlineNum = "/api/v2/user/max-online-num" UserBindingPhone = "/api/v2/user/binding-phone" // UserVisitors 访客相关 UserVisitors = "/api/v2/user/visitors" UserTokenVisitors = "/api/v2/user/token-visitors" // UserEventVisitors 事件访客 UserEventVisitors = "/api/v2/user/event-visitors" VisitorViewEventVisitor = "/api/v2/visitor/view-event-visitor" VisitorCreateEventVisitor = "/api/v2/visitor/create-event-visitor" VisitorUpdateEventVisitor = "/api/v2/visitor/update-event-visitor" VisitorDeleteEventVisitor = "/api/v2/visitor/delete-event-visitor" // UserViewInvite 邀请码访客 UserViewInvite = "/api/v2/user/view-invite" UserInviteVisitors = "/api/v2/user/invite-visitors" UserUseInvite = "/api/v2/user/use-invite" UserCreateInvite = "/api/v2/user/create-invite" UserDisableInvite = "/api/v2/user/disabled-invite" // VisitorCreateVisitorWhite 访客白名单 VisitorCreateVisitorWhite = "/api/v2/visitor/create-visitor-white" VisitorDeleteVisitorWhite = "/api/v2/visitor/delete-visitor-white" // Groups 用户组相关 Groups = "/api/v2/groups" GroupSubscribe = "/api/v2/group/subscribe" // StrategyBillingCreate 计费策略相关 StrategyBillingCreate = "/api/v2/strategy/billing-create" StrategyControlCreate = "/api/v2/strategy/control-create" ProductView = "/api/v2/product/view" ProductCreate = "/api/v2/product/create" ProductDelete = "/api/v2/product/delete" ProductUpdate = "/api/v2/product/update" ProductIndex = "/api/v2/product/index" // FinancialRechargeWallet 财务相关 FinancialRechargeWallet = "/api/v2/financial/recharge-wallet" FinancialPayType = "/api/v2/financial/pay-type" FinancialCreatePayment = "/api/v2/financial/create-payment" FinancialDeletePayment = "/api/v2/financial/delete-payment" FinancialUpdatePayment = "/api/v2/financial/update-payment" FinancialExtraPay = "/api/v2/financial/extra-pay" FinancialTransfer = "/api/v2/financial/transfer" FinancialRechargeCards = "/api/v2/financial/recharge-cards" FinancialPaymentRecords = "/api/v2/financial/payment-records" FinancialPaymentOverview = "/api/v2/financial/payment-overview" FinancialPaymentDataSync = "/api/v2/financial/payment-data-sync" FinancialRefund = "/api/v2/financial/refund" FinancialPackageRechargeRecord = "/api/v2/financial/package-recharge-record" CheckoutListDetail = "/api/v2/checkoutlist/detail" // ProductProductRecharge 产品相关 ProductProductRecharge = "/api/v2/product/product-recharge" ProductRecharge = "/api/v2/product/recharge" ProductUseNumber = "/api/v2/product/use-number" ProductSubscribe = "/api/v2/product/subscribe" ProductCanSubscribeProducts = "/api/v2/product/can-subscribe-products" ProductCancel = "/api/v2/product/cancel" ProductRefund = "/api/v2/product/refund" ProductExpire = "/api/v2/product/expire" ProductDisableProduct = "/api/v2/product/disable-product" ProductEnableProduct = "/api/v2/product/enable-product" ProductNextBillingCycle = "/api/v2/product/next-billing-cycle" ProductTransferProduct = "/api/v2/product/transfer-product" ProductReservationTransferProducts = "/api/v2/product/reservation-transfer-products" ProductCancelReservationTransferProducts = "/api/v2/product/cancel-reservation-transfer-products" // PackageUsersPackages 套餐相关 PackageUsersPackages = "/api/v2/package/users-packages" PackageBuy = "/api/v2/package/buy" PackageBuySuper = "/api/v2/package/buy-super" Packages = "/api/v2/packages" PackageBuys = "/api/v2/package/buys" PackageBatch = "/api/v2/package/batch" // UserSearchMobilePhone 运营商相关 UserSearchMobilePhone = "/api/v2/user/search-mobile-phone" ProductCheckOperators = "/api/v2/product/check-operators" ProductOperators = "/api/v2/product/operators" // BaseListMacAuth 无感知相关 BaseListMacAuth = "/api/v2/base/list-mac-auth" BaseCreateMacAuth = "/api/v2/base/create-mac-auth" BaseDeleteMacAuth = "/api/v2/base/delete-mac-auth" BaseUpdateMacAuth = "/api/v2/base/update-mac-auth" BasePhoneAuth = "/api/v2/base/phone-auth" BaseMacs = "/api/v2/base/macs" BaseCreateMac = "/api/v2/base/create-mac" BaseDeleteMac = "/api/v2/base/delete-mac" BaseUpdateMac = "/api/v2/base/update-mac" BaseUpdateVlan = "/api/v2/base/update-vlan" BaseGetIp = "/api/v2/base/get-ip" BaseBindIp = "/api/v2/base/bind-ip" // BaseOnlineDrop 在线相关 BaseOnlineDrop = "/api/v2/base/online-drop" BaseBatchOnlineDrop = "/api/v2/base/batch-online-drop" Auth = "/api/v2/auth" BaseOnlineEquipment = "/api/v2/base/online-equipment" BaseOnlineData = "/api/v2/base/online-data" // Details 上网明细相关 Details = "/api/v2/details" DetailTop = "/api/v2/detail/top" // MessageNew 通知公告相关 MessageNew = "/api/v2/message/new-message" Message = "/api/v2/message" MessageNotice = "/api/v2/message/notice" // UserValidateManager 管理员相关 UserValidateManager = "/api/v2/user/validate-manager" UserAddManager = "/api/v2/user/add-manager" UserResetPasswordManager = "/api/v2/user/reset-password-manager" UserSuperResetPasswordManager = "/api/v2/user/super-reset-password-manager" // LogLogin 日志相关 LogLogin = "/api/v2/log/login" LogAuthErr = "/api/v2/log/auth-err" LogAuthErrorTotal = "/api/v2/log/auth-error-total" LogSys = "/api/v2/log/sys" StatisticsDayByte = "/api/v2/statistics/day-byte" StatisticsDayTime = "/api/v2/statistics/day-time" StatisticsMonthByte = "/api/v2/statistics/month-byte" FlowSearch = "/api/v2/flow/search" AuditSearch = "/api/v2/audit/search" // SafeDisable 上网设备相关 SafeDisable = "/api/v2/safe/disable" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiConfig ¶
type ApiConfig struct {
AppID string
AppSecret string
Scheme string
Host string
Port int
Version int
Request
}
func (*ApiConfig) FinancialPackageRechargeRecord ¶
func (*ApiConfig) FinancialPaymentDataSync ¶
func (*ApiConfig) FinancialPaymentOverview ¶
func (*ApiConfig) GetAccessToken ¶
GetAccessToken 获取令牌 /**
func (*ApiConfig) ProductCanSubscribeProducts ¶
func (*ApiConfig) ProductCancelReservationTransferProducts ¶
func (*ApiConfig) ProductReservationTransferProducts ¶
func (*ApiConfig) UserResetPasswordManager ¶
func (*ApiConfig) UserSuperResetPasswordManager ¶
func (*ApiConfig) VisitorCreateEventVisitor ¶
func (*ApiConfig) VisitorCreateVisitorWhite ¶
func (*ApiConfig) VisitorDeleteEventVisitor ¶
func (*ApiConfig) VisitorDeleteVisitorWhite ¶
func (*ApiConfig) VisitorUpdateEventVisitor ¶
type BaseAuth ¶
type BaseAuth interface {
BaseListMacAuth() Response
BaseCreateMacAuth() Response
BaseDeleteMacAuth() Response
BaseUpdateMacAuth() Response
BasePhoneAuth() Response
BaseMacs() Response
BaseCreateMac() Response
BaseDeleteMac() Response
BaseUpdateMac() Response
BaseUpdateVlan() Response
BaseGetIp() Response
BaseBindIp() Response
BaseOnlineDrop() Response
BaseBatchOnlineDrop() Response
Auth() Response
BaseOnlineEquipment() Response
BaseOnlineData() Response
}
type Cache ¶
type Financial ¶
type Financial interface {
FinancialRechargeWallet() Response
FinancialPayType() Response
FinancialCreatePayment() Response
FinancialDeletePayment() Response
FinancialUpdatePayment() Response
FinancialExtraPay() Response
FinancialTransfer() Response
FinancialRechargeCards() Response
FinancialPaymentDataSync() Response
CheckoutListDetail() Response
FinancialPaymentRecords() Response
FinancialPaymentOverview() Response
FinancialRefund() Response
FinancialPackageRechargeRecord() Response
}
type Group ¶
type HTTPClient ¶
HTTPClient 定义HTTP请求接口
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func (*HttpClient) DoRequest ¶
func (c *HttpClient) DoRequest(ac *ApiConfig) (Response, error)
DoRequest 发起请求
type Logs ¶
type Manage ¶
type Messages ¶
type Operator ¶
type Product ¶
type Product interface {
ProductView() Response
ProductCreate() Response
ProductDelete() Response
ProductUpdate() Response
ProductIndex() Response
ProductNextBillingCycle() Response
ProductTransferProduct() Response
ProductReservationTransferProducts() Response
ProductCancelReservationTransferProducts() Response
ProductProductRecharge() Response
ProductRecharge() Response
ProductUseNumber() Response
ProductSubscribe() Response
ProductCanSubscribeProducts() Response
ProductCancel() Response
ProductRefund() Response
ProductExpire() Response
ProductDisableProduct() Response
ProductEnableProduct() Response
}
type Request ¶
type Response ¶
type Strategy ¶
type SyncMapCache ¶
func (*SyncMapCache) GetCache ¶
func (c *SyncMapCache) GetCache(key string) string
GetCache 从 sync.Map 缓存中获取值
func (*SyncMapCache) SetCache ¶
func (c *SyncMapCache) SetCache(key, value string, expireAt float64)
SetCache 向 sync.Map 缓存中设置值
type User ¶
type User interface {
Users() Response
UserUpdate() Response
UserDelete() Response
UserUserStatusControl() Response
UserValidateUsers() Response
UserBalance() Response
UserSendCode() Response
UserMaxOnlineNum() Response
UserBindingPhone() Response
UserCode() Response
UserForgetResetPassword() Response
AuthCheckModifyPassword() Response
UserGetPassword() Response
UserSuperResetPassword() Response
UserResetPassword() Response
UserView() Response
UserSuperSearch() Response
UserSearch() Response
}
type Visitor ¶
type Visitor interface {
UserVisitors() Response
UserTokenVisitors() Response
UserEventVisitors() Response
VisitorViewEventVisitor() Response
VisitorCreateEventVisitor() Response
VisitorUpdateEventVisitor() Response
VisitorDeleteEventVisitor() Response
UserViewInvite() Response
UserInviteVisitors() Response
UserUseInvite() Response
UserCreateInvite() Response
UserDisabledInvite() Response
VisitorCreateVisitorWhite() Response
VisitorDeleteVisitorWhite() Response
}
Source Files
¶
- basic.go
- cache.go
- http_client.go
- models.go
- request.go
- response.go
- sdk_baseauth.go
- sdk_detail.go
- sdk_financial.go
- sdk_group.go
- sdk_logs.go
- sdk_manage.go
- sdk_message.go
- sdk_operator.go
- sdk_product.go
- sdk_safe.go
- sdk_strategy.go
- sdk_user.go
- sdk_visitor.go
Click to show internal directories.
Click to hide internal directories.