public class WxMaCloudServiceImpl extends Object implements WxMaCloudService
| 构造器和说明 | 
|---|
WxMaCloudServiceImpl()  | 
public String invokeCloudFunction(String name, String body) throws WxErrorException
WxMaCloudServiceinvokeCloudFunction 在接口中 WxMaCloudServicename - 云函数名称body - 云函数的传入参数,具体结构由开发者定义WxErrorException - 调用失败时抛出public String invokeCloudFunction(String env, String name, String body) throws WxErrorException
WxMaCloudServiceinvokeCloudFunction 在接口中 WxMaCloudServiceenv - 云开发环境IDname - 云函数名称body - 云函数的传入参数,具体结构由开发者定义WxErrorException - 调用失败时抛出public List<String> add(String collection, List<?> list) throws WxErrorException
WxMaCloudServiceadd 在接口中 WxMaCloudServicecollection - 集合名称list - 要添加的记录列表WxErrorException - 添加失败时抛出public String add(String collection, Object obj) throws WxErrorException
WxMaCloudServiceadd 在接口中 WxMaCloudServicecollection - 集合名称obj - 要添加的记录对象WxErrorException - 添加失败时抛出public com.google.gson.JsonArray databaseAdd(String query) throws WxErrorException
WxMaCloudServicedatabaseAdd 在接口中 WxMaCloudServicequery - 数据库操作语句WxErrorException - 插入失败时抛出public com.google.gson.JsonArray databaseAdd(String env, String query) throws WxErrorException
WxMaCloudServicedatabaseAdd 在接口中 WxMaCloudServiceenv - 云环境IDquery - 数据库操作语句WxErrorException - 插入失败时抛出public Integer delete(String collection, String whereJson) throws WxErrorException
WxMaCloudServicedelete 在接口中 WxMaCloudServicecollection - 集合名称whereJson - 查询条件JSON字符串WxErrorException - 删除失败时抛出public int databaseDelete(String query) throws WxErrorException
WxMaCloudServicedatabaseDelete 在接口中 WxMaCloudServicequery - 数据库操作语句WxErrorException - 删除失败时抛出public int databaseDelete(String env, String query) throws WxErrorException
WxMaCloudServicedatabaseDelete 在接口中 WxMaCloudServiceenv - 云环境IDquery - 数据库操作语句WxErrorException - 删除失败时抛出public WxCloudDatabaseUpdateResult update(String collection, String whereJson, String updateJson) throws WxErrorException
WxMaCloudServiceupdate 在接口中 WxMaCloudServicecollection - 集合名称whereJson - 查询条件JSON字符串updateJson - 更新内容JSON字符串WxErrorException - 更新失败时抛出public WxCloudDatabaseUpdateResult databaseUpdate(String query) throws WxErrorException
WxMaCloudServicedatabaseUpdate 在接口中 WxMaCloudServicequery - 数据库操作语句WxErrorException - 更新失败时抛出public WxCloudDatabaseUpdateResult databaseUpdate(String env, String query) throws WxErrorException
WxMaCloudServicedatabaseUpdate 在接口中 WxMaCloudServiceenv - 云环境IDquery - 数据库操作语句WxErrorException - 更新失败时抛出public WxCloudDatabaseQueryResult query(String collection, String whereJson, Map<String,String> orderBy, Integer skip, Integer limit) throws WxErrorException
WxMaCloudServicequery 在接口中 WxMaCloudServicecollection - 集合名称whereJson - 查询条件JSON字符串orderBy - 排序条件Mapskip - 跳过记录数limit - 限制返回记录数WxErrorException - 查询失败时抛出public WxCloudDatabaseQueryResult databaseQuery(String query) throws WxErrorException
WxMaCloudServicedatabaseQuery 在接口中 WxMaCloudServicequery - 数据库操作语句WxErrorException - 查询失败时抛出public WxCloudDatabaseQueryResult databaseQuery(String env, String query) throws WxErrorException
WxMaCloudServicedatabaseQuery 在接口中 WxMaCloudServiceenv - 云环境IDquery - 数据库操作语句WxErrorException - 查询失败时抛出public com.google.gson.JsonArray databaseAggregate(String query) throws WxErrorException
WxMaCloudServicedatabaseAggregate 在接口中 WxMaCloudServicequery - 数据库操作语句WxErrorException - 聚合失败时抛出public com.google.gson.JsonArray databaseAggregate(String env, String query) throws WxErrorException
WxMaCloudServicedatabaseAggregate 在接口中 WxMaCloudServiceenv - 云环境IDquery - 数据库操作语句WxErrorException - 聚合失败时抛出public Long count(String collection, String whereJson) throws WxErrorException
WxMaCloudServicecount 在接口中 WxMaCloudServicecollection - 集合名称whereJson - 查询条件JSON字符串WxErrorException - 统计失败时抛出public Long databaseCount(String query) throws WxErrorException
WxMaCloudServicedatabaseCount 在接口中 WxMaCloudServicequery - 数据库操作语句WxErrorException - 统计失败时抛出public Long databaseCount(String env, String query) throws WxErrorException
WxMaCloudServicedatabaseCount 在接口中 WxMaCloudServiceenv - 云环境IDquery - 数据库操作语句WxErrorException - 统计失败时抛出public void updateIndex(String collectionName, List<WxCloudDatabaseCreateIndexRequest> createIndexes, List<String> dropIndexNames) throws WxErrorException
WxMaCloudServiceupdateIndex 在接口中 WxMaCloudServicecollectionName - 集合名称createIndexes - 新增索引对象列表dropIndexNames - 要删除的索引名称列表WxErrorException - 更新失败时抛出public void updateIndex(String env, String collectionName, List<WxCloudDatabaseCreateIndexRequest> createIndexes, List<String> dropIndexNames) throws WxErrorException
WxMaCloudServiceupdateIndex 在接口中 WxMaCloudServiceenv - 云环境IDcollectionName - 集合名称createIndexes - 新增索引对象列表dropIndexNames - 要删除的索引名称列表WxErrorException - 更新失败时抛出public Long databaseMigrateImport(String collectionName, String filePath, int fileType, boolean stopOnError, int conflictMode) throws WxErrorException
WxMaCloudServicedatabaseMigrateImport 在接口中 WxMaCloudServicecollectionName - 导入collection名filePath - 导入文件路径fileType - 导入文件类型,1:JSON,2:CSVstopOnError - 是否在遇到错误时停止导入conflictMode - 冲突处理模式,1:INSERT,2:UPSERTWxErrorException - 导入失败时抛出public Long databaseMigrateImport(String env, String collectionName, String filePath, int fileType, boolean stopOnError, int conflictMode) throws WxErrorException
WxMaCloudServicedatabaseMigrateImport 在接口中 WxMaCloudServiceenv - 云环境IDcollectionName - 导入collection名filePath - 导入文件路径fileType - 导入文件类型,1:JSON,2:CSVstopOnError - 是否在遇到错误时停止导入conflictMode - 冲突处理模式,1:INSERT,2:UPSERTWxErrorException - 导入失败时抛出public Long databaseMigrateExport(String filePath, int fileType, String query) throws WxErrorException
WxMaCloudServicedatabaseMigrateExport 在接口中 WxMaCloudServicefilePath - 导出文件路径fileType - 导出文件类型,1:JSON,2:CSVquery - 导出条件WxErrorException - 导出失败时抛出public Long databaseMigrateExport(String env, String filePath, int fileType, String query) throws WxErrorException
WxMaCloudServicedatabaseMigrateExport 在接口中 WxMaCloudServiceenv - 云环境IDfilePath - 导出文件路径fileType - 导出文件类型,1:JSON,2:CSVquery - 导出条件WxErrorException - 导出失败时抛出public WxCloudCloudDatabaseMigrateQueryInfoResult databaseMigrateQueryInfo(Long jobId) throws WxErrorException
WxMaCloudServicedatabaseMigrateQueryInfo 在接口中 WxMaCloudServicejobId - 迁移任务IDWxErrorException - 查询失败时抛出public WxCloudCloudDatabaseMigrateQueryInfoResult databaseMigrateQueryInfo(String env, Long jobId) throws WxErrorException
WxMaCloudServicedatabaseMigrateQueryInfo 在接口中 WxMaCloudServiceenv - 云环境IDjobId - 迁移任务IDWxErrorException - 查询失败时抛出public WxCloudUploadFileResult uploadFile(String path) throws WxErrorException
WxMaCloudServiceuploadFile 在接口中 WxMaCloudServicepath - 上传路径WxErrorException - 获取失败时抛出public WxCloudUploadFileResult uploadFile(String env, String path) throws WxErrorException
WxMaCloudServiceuploadFile 在接口中 WxMaCloudServiceenv - 云环境IDpath - 上传路径WxErrorException - 获取失败时抛出public WxCloudBatchDownloadFileResult batchDownloadFile(String[] fileIds, long[] maxAges) throws WxErrorException
WxMaCloudServicebatchDownloadFile 在接口中 WxMaCloudServicefileIds - 文件ID数组maxAges - 下载链接有效期数组,对应文件id列表WxErrorException - 获取失败时抛出public WxCloudBatchDownloadFileResult batchDownloadFile(String env, String[] fileIds, long[] maxAges) throws WxErrorException
WxMaCloudServicebatchDownloadFile 在接口中 WxMaCloudServiceenv - 云环境IDfileIds - 文件ID数组maxAges - 下载链接有效期数组,对应文件id列表WxErrorException - 获取失败时抛出public WxCloudBatchDeleteFileResult batchDeleteFile(String[] fileIds) throws WxErrorException
WxMaCloudServicebatchDeleteFile 在接口中 WxMaCloudServicefileIds - 文件ID数组WxErrorException - 删除失败时抛出public WxCloudBatchDeleteFileResult batchDeleteFile(String env, String[] fileIds) throws WxErrorException
WxMaCloudServicebatchDeleteFile 在接口中 WxMaCloudServiceenv - 云环境IDfileIds - 文件ID数组WxErrorException - 删除失败时抛出public WxCloudGetQcloudTokenResult getQcloudToken(long lifeSpan) throws WxErrorException
WxMaCloudServicegetQcloudToken 在接口中 WxMaCloudServicelifeSpan - 有效期(单位为秒,最大7200)WxErrorException - 获取失败时抛出public void databaseCollectionAdd(String collectionName) throws WxErrorException
WxMaCloudServicedatabaseCollectionAdd 在接口中 WxMaCloudServicecollectionName - 集合名称WxErrorException - 新增失败时抛出public void databaseCollectionAdd(String env, String collectionName) throws WxErrorException
WxMaCloudServicedatabaseCollectionAdd 在接口中 WxMaCloudServiceenv - 云环境IDcollectionName - 集合名称WxErrorException - 新增失败时抛出public void databaseCollectionDelete(String collectionName) throws WxErrorException
WxMaCloudServicedatabaseCollectionDelete 在接口中 WxMaCloudServicecollectionName - 集合名称WxErrorException - 删除失败时抛出public void databaseCollectionDelete(String env, String collectionName) throws WxErrorException
WxMaCloudServicedatabaseCollectionDelete 在接口中 WxMaCloudServiceenv - 云环境IDcollectionName - 集合名称WxErrorException - 删除失败时抛出public WxCloudDatabaseCollectionGetResult databaseCollectionGet(Long limit, Long offset) throws WxErrorException
WxMaCloudServicedatabaseCollectionGet 在接口中 WxMaCloudServicelimit - 获取数量限制,默认值:10offset - 偏移量,默认值:0WxErrorException - 获取失败时抛出public WxCloudDatabaseCollectionGetResult databaseCollectionGet(String env, Long limit, Long offset) throws WxErrorException
WxMaCloudServicedatabaseCollectionGet 在接口中 WxMaCloudServiceenv - 云环境IDlimit - 获取数量限制,默认值:10offset - 偏移量,默认值:0WxErrorException - 获取失败时抛出public WxCloudSendSmsV2Result sendSmsV2(WxCloudSendSmsV2Request request) throws WxErrorException
WxMaCloudServicesendSmsV2 在接口中 WxMaCloudServicerequest - 短信发送请求对象WxErrorException - 发送失败时抛出Copyright © 2025. All rights reserved.