license

package
v3.2.22 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseClient *kernel.BaseClient
}

func NewClient

func NewClient(app kernel.ApplicationInterface) (*Client, error)

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)

func (*Client) ActiveAccount added in v3.2.0

func (clt *Client) ActiveAccount(ctx context.Context, corpID string, userID string, activeCode string) error

激活账号 https://developer.work.weixin.qq.com/document/path/95553#%E6%BF%80%E6%B4%BB%E5%B8%90%E5%8F%B7

func (*Client) BatchActiveAccount added in v3.2.0

func (clt *Client) BatchActiveAccount(ctx context.Context, corpID string, list []model.ActiveInfo) error

批量激活账号 https://qyapi.weixin.qq.com/cgi-bin/license/batch_active_account?provider_access_token=ACCESS_TOKEN

func (*Client) BatchGetActiveInfoByCode added in v3.2.0

func (clt *Client) BatchGetActiveInfoByCode(ctx context.Context, corpID string, activeCodeList []string) ([]model.ActiveInfo, error)

批量获取激活码详情 https://developer.work.weixin.qq.com/document/path/95552#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E6%BF%80%E6%B4%BB%E7%A0%81%E8%AF%A6%E6%83%85

func (*Client) BatchTransferLicense added in v3.2.0

func (clt *Client) BatchTransferLicense(ctx context.Context, corpID string, transferList []model.TransferInfo) ([]model.TransferInfo, error)

账号继承 https://developer.work.weixin.qq.com/document/path/95673

func (*Client) CancelOrder added in v3.2.0

func (clt *Client) CancelOrder(ctx context.Context, corpID string, orderID string) error

取消订单 https://developer.work.weixin.qq.com/document/path/96106

func (*Client) CreateNewOrder added in v3.2.0

func (clt *Client) CreateNewOrder(ctx context.Context, req *request.RequestCreateNewOrder) (string, error)

下单购买账号 https://developer.work.weixin.qq.com/document/path/95644

func (*Client) GetActiveInfoByUser added in v3.2.0

func (clt *Client) GetActiveInfoByUser(ctx context.Context, corpID string, userID string) (*response.ResponseGetActiveInfoByUser, error)

获取成员的激活详情 https://developer.work.weixin.qq.com/document/path/95555

func (*Client) GetAppLicenseInfo added in v3.2.0

func (clt *Client) GetAppLicenseInfo(ctx context.Context, corpID string) (*model.LicenseInfo, error)

获取应用的接口许可状态 https://developer.work.weixin.qq.com/document/path/95844

func (*Client) GetAutoActiveStatus added in v3.2.0

func (clt *Client) GetAutoActiveStatus(ctx context.Context, corpID string) (int, error)

查询企业的许可自动激活状态 https://developer.work.weixin.qq.com/document/path/95874

func (*Client) GetOrder added in v3.2.0

func (clt *Client) GetOrder(ctx context.Context, orderID string) (*model.Order, error)

获取订单详情 https://developer.work.weixin.qq.com/document/path/95648

func (*Client) ListActivatedAccount added in v3.2.0

func (clt *Client) ListActivatedAccount(ctx context.Context, corpID string, limit int, cursor string) (*response.ResponseListActivatedAccount, error)

获取企业的账号列表 https://developer.work.weixin.qq.com/document/path/95544

func (*Client) ListOrder added in v3.2.0

获取订单列表 https://developer.work.weixin.qq.com/document/path/95647

func (*Client) ListOrderAccount added in v3.2.0

func (clt *Client) ListOrderAccount(ctx context.Context, orderID string, limit int, cursor string) (*response.ResponseListOrderAccount, error)

获取订单中的账号列表 https://developer.work.weixin.qq.com/document/path/95649

func (*Client) SetAutoActiveStatus added in v3.2.0

func (clt *Client) SetAutoActiveStatus(ctx context.Context, corpID string, autoActiveStatus int) error

设置企业的许可自动激活状态 https://developer.work.weixin.qq.com/document/path/95873

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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