/// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="reqData"></param>
        /// <returns></returns>
        public XAIResFDel FDel(XAIReqFDel reqData)
        {
            LogModule.Info("XAI->BIDU:FDel--->入参:" + reqData.ToJson());
            string resJson;

            try
            {
                resJson = client.UserDelete(reqData.GroupId, reqData.UserId).ToJson();
            }
            catch (Exception ex)
            {
                throw new XAIException(7100, "请求人脸识别服务异常,请重试!" + ex.Message);
            }
            LogModule.Info("XAI->BIDU:FDel--->出参:" + resJson);
            var res = resJson.ToEntity <BIDUResponse>();

            if (res.error_code != 0)
            {
                throw new XAIException(7100, typeof(BIDUErrorCodeEnum).GetEnumName(res.error_code.ToInt()));
            }
            return(new XAIResFDel()
            {
            });
        }
Exemple #2
0
 public static BaseResponse DeleteUser(string userId, string groupId)
 {
     return(Execute(client.UserDelete(groupId, userId)));
 }