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 ¶
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 ¶
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 ¶
func (*Client) BatchTransferLicense ¶
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 ¶
取消订单 https://developer.work.weixin.qq.com/document/path/96106
func (*Client) CreateNewOrder ¶
func (clt *Client) CreateNewOrder(ctx context.Context, req *request.RequestCreateNewOrder) (string, error)
下单购买账号 https://developer.work.weixin.qq.com/document/path/95644
func (*Client) CreateRenewOrderJob ¶
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 ¶
func (*Client) GetActiveInfoByUser ¶
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 ¶
func (clt *Client) GetAppLicenseInfo(ctx context.Context, corpID string) (*model.LicenseInfo, error)
获取应用的接口许可状态 https://developer.work.weixin.qq.com/document/path/95844
func (*Client) GetAutoActiveStatus ¶
查询企业的许可自动激活状态 https://developer.work.weixin.qq.com/document/path/95874
func (*Client) GetOrder ¶
获取订单详情 https://developer.work.weixin.qq.com/document/path/95648
func (*Client) ListActivatedAccount ¶
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 ¶
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 ¶
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 ¶
func (clt *Client) SetAutoActiveStatus(ctx context.Context, corpID string, autoActiveStatus int) error
设置企业的许可自动激活状态 https://developer.work.weixin.qq.com/document/path/95873