using LifePayment.Domain.Shared; using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using ZeroD.Util; namespace LifePayment.Application.Contracts { public class LifePayPhoneMesssageCodeLoginInput : ChannelsBaseInput { /// /// 手机号 /// [DisplayName("手机号")] [Required(ErrorMessage = "{0}不能为空")] [RegularExpression(LifePaymentConstant.RegularExpression.PhoneNumberRegEx, ErrorMessage = "{0}格式错误")] public string PhoneNumber { get; set; } } public class LifePayUserMesssageByIduserInput : ChannelsBaseInput { /// /// 用户编号 /// [DisplayName("用户编号")] public Guid Id { get; set; } } public class WxMiniAppIndentityInfo { /// /// 会话密钥 /// public string SessionKey { get; set; } /// /// 小程序OpenId /// public string OpenId { get; set; } /// /// 用户名(该值为空则需手机授权登录,不为空则已有该小程序用户) /// public string UserName { get; set; } /// /// /// public string UnionId { get; set; } } public class CreateAccountInput { /// /// 名称 /// public string Name { get; set; } /// /// 密码 /// public string Password { get; set; } /// /// 用户名 /// //[RegularExpression(LifePaymentConstant.RegularExpression.UserNameEx, ErrorMessage = "账号格式不正确")] public string UserName { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 手机号 /// public string PhoneNumber { get; set; } /// /// 用户端Id /// public string ClientId { get; set; } = Constant.ClientType.Back; /// /// 角色 /// public string[] RoleNames { get; set; } /// /// 渠道编号 /// public string[] ChannlesId { get; set; } /// /// 小程序OpenId /// public string OpenId { get; set; } ///// ///// 联系人 ///// // public string Contact { get; set; } /// /// 企业名称 /// public string EnterpriseName { get; set; } /// /// 企业类型 /// public EnterpriseTypeEnum? AuthType { get; set; } /// /// MatchMaking小程序OpenId /// public string MatchMakingOpenId { get; set; } /// /// 组织架构公司id /// public Guid? CompanyOrgId { get; set; } /// /// 组织架构部门id /// public Guid? DepartmentOrgId { get; set; } } }