Documentation ¶
Index ¶
- type Logic
- func (l *Logic) AccessToken(ctx context.Context) (*model.TokenResponse, error)
- func (l *Logic) AccountCreation(ctx context.Context, gwid string, req model.AccountData) error
- func (l *Logic) AccountDelete(ctx context.Context, gwid string, id int64) error
- func (l *Logic) AccountEdit(ctx context.Context, gwid string, req model.AccountData) error
- func (l *Logic) AccountList(ctx context.Context, gwid string) ([]model.AccountData, error)
- func (l *Logic) AccountStatus(ctx context.Context, gwid string, id int64, status model.AccountStatus) error
- func (l *Logic) CouponAdding(ctx context.Context, gwid string, req model.CouponParam) error
- func (l *Logic) CouponDelete(ctx context.Context, gwid string, id int64) error
- func (l *Logic) CouponEdit(ctx context.Context, gwid string, req model.CouponParam) error
- func (l *Logic) CouponList(ctx context.Context, gwid string, skip, limit int64) ([]model.Coupon, error)
- func (l *Logic) CustomAuthUserDelete(ctx context.Context, gwid string, username string) error
- func (l *Logic) CustomAuthUserUpdate(ctx context.Context, gwid string, req model.Draft) error
- func (l *Logic) FindAccountByUsername(ctx context.Context, gwid string, username string) ([]model.AccountData, error)
- func (l *Logic) GetCustomAuthUserList(ctx context.Context, gwid string) ([]model.Draft, error)
- func (l *Logic) GetDeviceList(ctx context.Context) ([]model.Device, error)
- func (l *Logic) GetRouterInfo(ctx context.Context, gwid string) (*model.RouterBasic, error)
- func (l *Logic) InitRam(ctx context.Context) error
- func (l *Logic) OnlineUserKickByMac(ctx context.Context, gwid string, mac string) error
- func (l *Logic) OnlineUserKickByUserName(ctx context.Context, gwid string, username string) error
- func (l *Logic) OnlineUserList(ctx context.Context, gwid string, skip, limit int64) ([]model.OnlineUser, error)
- func (l *Logic) PushCustomAuthInfo(ctx context.Context, gwid string, req model.Draft) ([]model.Draft, error)
- func (l *Logic) RefreshToken(ctx context.Context, accessToken, clientId string) (*model.TokenResponse, error)
- func (l *Logic) SetRouterWebWhiteList(ctx context.Context, gwid string, webList model.WhiteList) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logic ¶
type Logic struct {
// contains filtered or unexported fields
}
func (*Logic) AccessToken ¶
AccessToken token 获取
func (*Logic) AccountCreation ¶
AccountCreation 创建用户
func (*Logic) AccountDelete ¶
AccountDelete 账户删除
func (*Logic) AccountEdit ¶
AccountEdit 账户编辑
func (*Logic) AccountList ¶
AccountList 获取账号列表
func (*Logic) AccountStatus ¶
func (l *Logic) AccountStatus(ctx context.Context, gwid string, id int64, status model.AccountStatus) error
AccountStatus 账户状态
func (*Logic) CouponAdding ¶
CouponAdding 添加优惠券
func (*Logic) CouponDelete ¶
CouponDelete 删除优惠券
func (*Logic) CouponEdit ¶
CouponEdit 编辑优惠券
func (*Logic) CouponList ¶
func (l *Logic) CouponList(ctx context.Context, gwid string, skip, limit int64) ([]model.Coupon, error)
CouponList 优惠券列表
func (*Logic) CustomAuthUserDelete ¶
CustomAuthUserDelete 删除自定义认证信息
func (*Logic) CustomAuthUserUpdate ¶
CustomAuthUserUpdate 更新自定义认证信息
func (*Logic) FindAccountByUsername ¶
func (l *Logic) FindAccountByUsername(ctx context.Context, gwid string, username string) ([]model.AccountData, error)
FindAccountByUsername 查看用户
func (*Logic) GetCustomAuthUserList ¶
GetCustomAuthUserList 获取自定义认证用户列表
func (*Logic) GetDeviceList ¶
GetDeviceList 获取设备列表
func (*Logic) GetRouterInfo ¶
GetRouterInfo 获取路由信息
func (*Logic) OnlineUserKickByMac ¶
OnlineUserKickByMac 强制用户下线ByMac
func (*Logic) OnlineUserKickByUserName ¶
OnlineUserKickByUserName 强制用户下线ByUserName
func (*Logic) OnlineUserList ¶
func (l *Logic) OnlineUserList(ctx context.Context, gwid string, skip, limit int64) ([]model.OnlineUser, error)
OnlineUserList 用户在线列表
func (*Logic) PushCustomAuthInfo ¶
func (l *Logic) PushCustomAuthInfo(ctx context.Context, gwid string, req model.Draft) ([]model.Draft, error)
PushCustomAuthInfo 推送更新自定义认证信息
func (*Logic) RefreshToken ¶
func (l *Logic) RefreshToken(ctx context.Context, accessToken, clientId string) (*model.TokenResponse, error)
RefreshToken token 刷新
Click to show internal directories.
Click to hide internal directories.