using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YBDevice.Entity
{
    /// <summary>
    /// 获取的订单信息
    /// </summary>
    public class OrderInfo
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        public Guid id { get; set; }
        /// <summary>
        /// 订单内容,为链接或者公众号二维码
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 健康码,如果为非认证的号或者个人号,则此项生效,默认支持固定关键字【体重】
        /// </summary>
        public string vrcode { get; set; } = "";
        /// <summary>
        /// 订单类型,1-公众号,2-链接,3-小程序
        /// </summary>
        public OrderType type { get; set; }
        /// <summary>
        /// 如果大于0,则有错误,参考ErrorInfoDesc
        /// </summary>
        public int code = 0;
        /// <summary>
        /// 公众号类型,1-认证的服务号,2-非认证号,3-个人号,4-小程序,参考OfficeType
        /// </summary>
        public int officetype { get; set; } = 2;
        /// <summary>
        /// 原始id
        /// </summary>
        public string appid { get; set; } = "";
        /// <summary>
        /// 是否为绑定操作,true-是,false-否
        /// </summary>
        public bool isbind { get; set; } = false;
        /// <summary>
        /// 用户id
        /// </summary>
        public Guid WxFansId { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; } = "每日一称";
        /// <summary>
        /// 头像
        /// </summary>
        public string HeadImg { get; set; } = "~/images/logo.png";
    }
}
