license

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 8 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
	// contains filtered or unexported fields
}

func NewClient

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

func (*Client) ActiveAccount added in v3.2.0

func (comp *Client) ActiveAccount(ctx context.Context, 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) BatchTransferLicense added in v3.2.0

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

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

func (*Client) CancelOrder added in v3.2.0

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

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

func (*Client) CreateNewOrder added in v3.2.0

func (comp *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 (comp *Client) GetActiveInfoByUser(ctx context.Context, userID string) (*response.ResponseGetActiveInfoByUser, error)

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

func (*Client) GetAppLicenseInfo added in v3.2.0

func (comp *Client) GetAppLicenseInfo(ctx context.Context) (*model.LicenseInfo, error)

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

func (*Client) GetAutoActiveStatus added in v3.2.0

func (comp *Client) GetAutoActiveStatus(ctx context.Context) (int, error)

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

func (*Client) GetOrder added in v3.2.0

func (comp *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 (comp *Client) ListActivatedAccount(ctx context.Context, 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 (comp *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 (comp *Client) SetAutoActiveStatus(ctx context.Context, 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