Exemple #1
0
            /// <summary>
            /// 删除分组
            /// </summary>
            /// <param name="code">分组唯一标志</param>
            /// <param name="cancellationToken"></param>
            /// <returns></returns>
            public async Task <CommonMessage> Delete(string code, CancellationToken cancellationToken = default)
            {
                var param = new DeleteGroupsParam(new string[] { code });

                var res = await client.Request <DeleteGroupsResponse>(param.CreateRequest(), cancellationToken);

                return(res.Result);
            }
Exemple #2
0
            /// <summary>
            /// 批量删除分组
            /// </summary>
            /// <param name="codeList">分组唯一标志列表</param>
            /// <param name="cancellationToken"></param>
            /// <returns></returns>
            public async Task <CommonMessage> DeleteMany(IEnumerable <string> codeList, CancellationToken cancellationToken = default)
            {
                var param = new DeleteGroupsParam(codeList);

                var res = await client.Request <DeleteGroupsResponse>(param.CreateRequest(), cancellationToken);

                return(res.Result);
            }