using MediatR;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FlexJobApi.Core
{
///
/// 绑定微信小程序用户信息
///
[Resource([EnumResourceController.UserServerAuth], AllowAnonymous = true)]
public class BindWxmpUserInfoCommand : IRequest
{
///
/// 访问令牌
///
[Required]
public string AccessToken { get; set; }
///
/// 包括敏感数据在内的完整用户信息的加密数据
///
[Required]
public string EncryptedData { get; set; }
///
/// 加密算法的初始向量
///
[Required]
public string Iv { get; set; }
///
/// 获取会话密钥
///
[Required]
public string SessionKey { get; set; }
}
public class BindWxmpUserInfoCommandEncryptedData
{
public string OpenId { get; set; }
public string PhoneNumber { get; set; }
public string NickName { get; set; }
public int Gender { get; set; }
public string Language { get; set; }
public string City { get; set; }
public string Province { get; set; }
public string Country { get; set; }
public string AvatarUrl { get; set; }
public string CountryCode { get; set; }
}
}