crm.core/code/Crm.Core.Domain/Dto/CRM/ExternalUserDto.cs

51 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Crm.Core.Domain.Dto.CRM
{
public class ExternalUserDto
{
public ExternalUserDto(ExternalContactDto external_contact, List<FollowUserDto> followUsers, string corpId)
{
External_contact = external_contact;
FollowUsers = followUsers;
CorpId = corpId;
}
[JsonPropertyName("External_contact")]
public ExternalContactDto External_contact { get; set; }
[JsonPropertyName("Follow_user")]
public List<FollowUserDto> FollowUsers { get; set; }
[JsonPropertyName("Corpid")]
public string CorpId { get; set; }
}
public class ExternalContactDto
{
[JsonPropertyName("External_userid")]
public string? ExternalUserId { get; set; }
public string? Name { get; set; }
}
public class FollowUserDto
{
public string? Saleeid { get; set; }
public string? Userid { get; set; }
public string? Remark { get; set; }
public string? Description { get; set; }
public long Createtime { get; set; }
public string? Bindtime { get; set; }
[JsonPropertyName("Remark_mobiles")]
public List<string>? RemarkMobiles { get; set; }
public string? Uname { get; set; }
}
}