45 lines
1.6 KiB
C#
45 lines
1.6 KiB
C#
using Newtonsoft.Json;
|
|
using WX.CRM.Common;
|
|
namespace WX.CRM.Model.DTO.wework
|
|
{
|
|
public class CorpInfo
|
|
{
|
|
public long adminVid { get; set; }//管理员ID
|
|
public string corpLogo { get; set; }//公司logo
|
|
public string corpName { get; set; }//公司名称
|
|
public long corpid { get; set; }//公司ID
|
|
public long createTime { get; set; }//创建时间
|
|
public long vSuperadminVid { get; set; }//超级管理员ID
|
|
public long vid { get; set; }//登陆人ID
|
|
public string ownername { get; set; }//所属人姓名
|
|
public Staff staffInfo { get; set; }
|
|
public class Staff
|
|
{
|
|
public string corpMail { get; set; }
|
|
public string corpPosition { get; set; }
|
|
public string headImage { get; set; }
|
|
public string mail { get; set; }
|
|
public string name { get; set; }
|
|
public string realName { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 获取公司信息MD5
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public string GetCorpInfoMd5()
|
|
{
|
|
string str = string.Format("{0}+{1}+{2}+{3}+{4}+{5}+{6}", corpid, createTime, vSuperadminVid, corpName, corpLogo, adminVid, ownername);
|
|
return Utility.EncryptMD5(str);
|
|
}
|
|
/// <summary>
|
|
/// 企业微信工作微信MD5
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public string GetStaffMd5()
|
|
{
|
|
string str = JsonConvert.SerializeObject(staffInfo) + vid;
|
|
return Utility.EncryptMD5(str);
|
|
}
|
|
}
|
|
}
|