using Hotline.Share.Enums.KnowledgeBase;
using Hotline.Share.Enums.Snapshot;
using Hotline.Share.Enums.ThirdAccount;
using Hotline.Share.Enums.User;
using System.ComponentModel.DataAnnotations;
namespace Hotline.Share.Dtos.Snapshot;
public class ThirdTokenInDto
{
///
/// 微信小程序登录Code
///
public string LoginCode { get; set; }
///
/// 微信小程序手机号Code
///
public string TelCode { get; set; }
///
/// 第三方平台类型(不传默认微信)
/// 0: 微信
///
public EThirdType ThirdType { get; set; } = EThirdType.WeChat;
///
/// 登录app(不传默认随手拍)
/// 1: 随手拍
/// 2: 部门办件app
/// 3: 市民办件app
///
public EAppType AppType { get; set; } = EAppType.Snapshot;
}
public class ThirdPhoneInDto : ThirdTokenInDto { }
public class ThirdPhoneOutDto
{
///
/// 电话号码
///
public string PhoneNumber { get; set; }
///
/// 是否异常
///
public bool IsError { get; set; }
///
/// 微信返回异常信息
///
public string ErrorMessage { get; set; }
///
/// 微信返回异常Code
///
public int ErrorCode { get; set; }
}
public class ThirdTokenOutDto
{
public string SessionKey { get; set; }
public string OpenId { get; set; }
///
/// UnIconId
///
public string? UnIonId { get; set; }
}
public class GuiderSystemOutDto
{
///
/// 网格员系统Id
///
public string GuiderSystemId { get; set; }
///
/// 附加数据
///
public string JsonData { get; set; }
}
public class ThirdTokenDto : ThirdTokenInDto
{
///
/// 微信AppId
///
public string AppId { get; set; }
///
/// 微信AppSecret
///
public string Secret { get; set; }
}
public class SaveInvitationCodeInDto
{
///
/// 邀请码
///
[Required]
public string InvitationCode { get; set; }
}