using MyCode.Project.Infrastructure.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyCode.Project.Domain.Message.Response.EnterpriseWechat
{
public class BaseEnterpriseResp
{
///
/// 错误码,为0才正确,其它都错误
///
public int Errcode { get; set; }
///
/// 错误信息
///
public string ErrMsg { get; set; }
///
/// 结果验证 84061=没有添加任何外部联系人
///
public void CheckResult()
{
if (Errcode != 0 && Errcode != 84061) { throw new BaseException($"{Errcode},{ErrMsg}"); }
}
}
public class BaseEnterpriseNoCheckResp
{
///
/// 错误码,为0才正确,其它都错误
///
public int Errcode { get; set; }
///
/// 错误信息
///
public string ErrMsg { get; set; }
}
}