feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
This commit is contained in:
80
ObjectModel/Backend/BMAdminModel.cs
Normal file
80
ObjectModel/Backend/BMAdminModel.cs
Normal file
@ -0,0 +1,80 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ObjectModel.Backend
|
||||
{
|
||||
/// <summary>
|
||||
/// 后台玩家信息,后台用户也是推广用户。
|
||||
/// </summary>
|
||||
public class BMAdminModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public int id;
|
||||
|
||||
/// <summary>
|
||||
/// 用户名
|
||||
/// </summary>
|
||||
public string username;
|
||||
|
||||
/// <summary>
|
||||
/// 密码
|
||||
/// </summary>
|
||||
public string pwd;
|
||||
|
||||
/// <summary>
|
||||
/// 哪个渠道,也可以是个人
|
||||
/// </summary>
|
||||
public string paltTag;
|
||||
|
||||
/// <summary>
|
||||
/// 对应用户的Id --个人是对应游戏id,渠道是对应后台Id
|
||||
/// </summary>
|
||||
public int userid;
|
||||
|
||||
/// <summary>
|
||||
/// 身份:1系统管理员 2运营 3渠道 4个人
|
||||
/// <see cref="AuthorityType"/>
|
||||
/// </summary>
|
||||
public int authority;
|
||||
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
/// </summary>
|
||||
public string NickName;
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime createTime;
|
||||
|
||||
/// <summary>
|
||||
/// 权限列表
|
||||
/// 0-10 表示系统权限 1表示查询 2表示管理
|
||||
/// 10-100 表示用户权限 10 表示查询 20表示管理
|
||||
/// 100-1000 表示比赛权限 100表示查询 200表示管理
|
||||
/// 例如:111 表示 有比赛的查询权限,用户的查询权限 和系统的查询权限
|
||||
/// 212 表示:有比赛的管理权限,用户的查询权限 和系统的管理权限
|
||||
/// </summary>
|
||||
public string PermissionList;
|
||||
|
||||
public BMAdminModel() { }
|
||||
|
||||
public BMAdminModel(DataRow row) {
|
||||
this.username = row["username"].ToString();
|
||||
this.pwd = row["pwd"].ToString();
|
||||
this.paltTag = row["paltTag"].ToString();
|
||||
this.NickName = row["NickName"].ToString();
|
||||
this.userid = (int)row["userid"];
|
||||
this.id = (int)row["id"];
|
||||
this.authority = (int)row["authority"];
|
||||
this.createTime = (DateTime)row["createTime"];
|
||||
this.PermissionList = row["PermissionList"].ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user