diff --git a/entry/src/main/ets/common/DavClient.ets b/entry/src/main/ets/common/DavClient.ets index ce04569..77c0868 100644 --- a/entry/src/main/ets/common/DavClient.ets +++ b/entry/src/main/ets/common/DavClient.ets @@ -465,6 +465,16 @@ export class DavClient { return DavClient.reportComponents(href, auth, 'VTODO', ''); } + /** 不带 comp-filter 的全量 calendar-query(诊断用) */ + static async reportAll(href: string, auth: string): Promise { + const body: string = '' + + '' + + '' + + '' + + ''; + return DavClient.reportRaw(href, auth, body, 'ALL'); + } + /** 通用 REPORT:按组件类型过滤拉取 calendar-data + getetag */ private static async reportComponents(href: string, auth: string, compName: string, timeRange: string): Promise { @@ -475,6 +485,12 @@ export class DavClient { `` + timeRange + ''; + return DavClient.reportRaw(href, auth, body, compName); + } + + /** 通用 REPORT 执行器:传完整 body,返回解析后的资源列表 */ + static async reportRaw(href: string, auth: string, body: string, + compName: string): Promise { const httpRequest = http.createHttp(); try { const resp: http.HttpResponse = await httpRequest.request(href, {