Documentation ¶
Index ¶
- type Client
- func (clt *Client) ActiveAccount(ctx context.Context, corpID string, userID string, activeCode string) error
- func (clt *Client) BatchActiveAccount(ctx context.Context, corpID string, list []model.ActiveInfo) error
- func (clt *Client) BatchGetActiveInfoByCode(ctx context.Context, corpID string, activeCodeList []string) ([]model.ActiveInfo, error)
- func (clt *Client) BatchTransferLicense(ctx context.Context, corpID string, transferList []model.TransferInfo) ([]model.TransferInfo, error)
- func (clt *Client) CancelOrder(ctx context.Context, corpID string, orderID string) error
- func (clt *Client) CreateNewOrder(ctx context.Context, req *request.RequestCreateNewOrder) (string, error)
- func (clt *Client) CreateRenewOrderJob(ctx context.Context, req *request.RequestCreateRenewOrderJob) (*response.ResponseCreateRenewOrderJob, error)
- func (clt *Client) GetActiveInfoByCode(ctx context.Context, corpID string, activeCode string) (*model.ActiveInfo, error)
- func (clt *Client) GetActiveInfoByUser(ctx context.Context, corpID string, userID string) (*response.ResponseGetActiveInfoByUser, error)
- func (clt *Client) GetAppLicenseInfo(ctx context.Context, corpID string) (*model.LicenseInfo, error)
- func (clt *Client) GetAutoActiveStatus(ctx context.Context, corpID string) (int, error)
- func (clt *Client) GetOrder(ctx context.Context, orderID string) (*model.Order, error)
- func (clt *Client) ListActivatedAccount(ctx context.Context, corpID string, limit int, cursor string) (*response.ResponseListActivatedAccount, error)
- func (clt *Client) ListOrder(ctx context.Context, req *request.RequestListOrder) (*response.ResponseListOrder, error)
- func (clt *Client) ListOrderAccount(ctx context.Context, orderID string, limit int, cursor string) (*response.ResponseListOrderAccount, error)
- func (clt *Client) SetAutoActiveStatus(ctx context.Context, corpID string, autoActiveStatus int) error
- func (clt *Client) SubmitOrderJob(ctx context.Context, req *request.RequestSubmitOrderJob) (string, error)
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 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 (*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
取消订单 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) CreateRenewOrderJob ¶ added in v3.2.0
func (clt *Client) CreateRenewOrderJob(ctx context.Context, req *request.RequestCreateRenewOrderJob) (*response.ResponseCreateRenewOrderJob, error)
创建续期任务 https://developer.work.weixin.qq.com/document/path/95646
func (*Client) GetActiveInfoByCode ¶ added in v3.2.0
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
查询企业的许可自动激活状态 https://developer.work.weixin.qq.com/document/path/95874
func (*Client) GetOrder ¶ added in v3.2.0
获取订单详情 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
func (clt *Client) ListOrder(ctx context.Context, req *request.RequestListOrder) (*response.ResponseListOrder, error)
获取订单列表 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