JumboTCMS_src/JumboTCMS.API/Discuz/Toolkit/User.cs

(开头部分) 14KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using Newtonsoft.Json;

namespace JumboTCMS.API.Discuz.Toolkit
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class User : Friend
    {
        public static readonly string[] FIELDS = { "uid", "user_name", "nick_name", "password", "space_id", "secques", "gender", 
                                                     "admin_id", "group_id", "group_expiry", "reg_ip", "join_date", "last_ip", 
                                                     "last_visit", "last_activity", "last_post", "last_post_id", "last_post_title", 
                                                     "post_count", "digest_post_count", "online_time", "page_view_count", "credits", 
                                                     "ext_credits_1", "ext_credits_2", "ext_credits_3", "ext_credits_4", 
                                                     "ext_credits_5", "ext_credits_6", "ext_credits_7", "ext_credits_8", "email", 
                                                     "birthday", "tpp", "ppp", "template_id", "pm_sound", "show_email", "invisible", 
                                                     "has_new_pm", "new_pm_count", "access_masks", "online_state", "web_site", "icq", 
                                                     "qq", "yahoo", "msn", "skype", "location", "custom_status", "avatar", 
                                                     "avatar_width", "avatar_height", "medals", "about_me", "sign_html", "real_name", 
                                                     "id_card", "mobile", "telephone" };
        //[XmlElement("user_id", IsNullable=false)]
        //public int Uid;	//用户uid

        [XmlElement("user_name", IsNullable = true)]
        [JsonPropertyAttribute("user_name")]
        public string UserName;	//用户名

        [XmlElement("nick_name", IsNullable = true)]
        [JsonPropertyAttribute("nick_name")]
        public string NickName;	//昵称

        [XmlElement("password", IsNullable = true)]
        [JsonPropertyAttribute("password")]
        public string Password;	//用户密码

        [XmlElement("space_id", IsNullable = true)]
        [JsonPropertyAttribute("space_id")]
        public int? SpaceId; //个人空间ID,0为用户还未申请空间;负数是用户已经申请,等待管理员开通,绝对值为开通以后的真实Spaceid;正数是用户已经开通的Spaceid

        [XmlElement("secques", IsNullable = true)]
        [JsonPropertyAttribute("secques")]
        public string Secques;	//用户安全提问码

        [XmlElement("gender", IsNullable = true)]
        [JsonPropertyAttribute("gender")]
        public int? Gender;	//性别

        [XmlElement("admin_id", IsNullable = true)]
        [JsonPropertyAttribute("admin_id")]
        public int? Adminid;	//管理组ID

        [XmlElement("group_id", IsNullable = true)]
        [JsonPropertyAttribute("group_id")]
        public int? GroupId;	//用户组ID

        [XmlElement("group_expiry", IsNullable = true)]
后面还有 367 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。