2024-11-26 00:07:12 +08:00
|
|
|
|
using System;
|
2024-11-15 23:31:54 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class Global : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public logoPanel.ServerResponse serverResponse;
|
2024-11-16 02:05:07 +08:00
|
|
|
|
public ServerResponse response;
|
2024-11-15 23:31:54 +08:00
|
|
|
|
public static Global global ;
|
2024-11-27 01:48:52 +08:00
|
|
|
|
public RealPlayerInfo realPlayerInfo;
|
2024-12-01 05:09:07 +08:00
|
|
|
|
public Scene_main_jiekou scene_Main_Jiekou;
|
|
|
|
|
|
2024-11-15 23:31:54 +08:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
global = this;
|
|
|
|
|
DontDestroyOnLoad(this);
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-26 00:07:12 +08:00
|
|
|
|
// 创建请求头,使用最新的 token
|
2024-11-15 23:31:54 +08:00
|
|
|
|
public Dictionary<string, string> CreateHeaders()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(Global.global.serverResponse.data.token))
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
Debug.LogWarning("尝试创建请求头时,token 未设置。");
|
2024-11-15 23:31:54 +08:00
|
|
|
|
return new Dictionary<string, string>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new Dictionary<string, string>
|
|
|
|
|
{
|
|
|
|
|
{ "Authorization", Global.global.serverResponse.data.token }
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class GameEscapeRoomResponseVo
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public int escapeId; // 游戏的ID
|
|
|
|
|
public int roomNo; // 房间编号
|
|
|
|
|
public float roomBeansCoin; // 房间下注欢乐豆
|
2024-11-21 00:04:33 +08:00
|
|
|
|
public int roomUserNo;
|
2024-11-15 23:31:54 +08:00
|
|
|
|
}
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class userIDgameId
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public int userId; // 用户id
|
|
|
|
|
public int escapeId; // 游戏id
|
|
|
|
|
public int orderByDesc;//参与记录正序或倒叙,1正序,其他倒叙
|
|
|
|
|
public int weekType;//1是昨天,0是今天
|
2024-11-15 23:31:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Data
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public int carrySeconds; // 携带时间秒数
|
|
|
|
|
public List<GameEscapeRoomResponseVo> gameEscapeRoomResponseVoList; // 房间列表
|
|
|
|
|
public GameEscapeModel gameEscapeModel; // 游戏逃亡模型 (目前未处理)
|
|
|
|
|
public object gameEscapeUserModel; // 游戏逃亡用户模型 (目前未处理)
|
2024-11-15 23:31:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-11-16 02:05:07 +08:00
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Data514
|
|
|
|
|
{
|
|
|
|
|
public int id;
|
|
|
|
|
public string gameNo;
|
|
|
|
|
public int demonMode;
|
|
|
|
|
public string startTime;
|
|
|
|
|
public string betTime;
|
|
|
|
|
public string countTime;
|
|
|
|
|
public string settleTime;
|
|
|
|
|
public int status;
|
|
|
|
|
public string roomNoKill;
|
|
|
|
|
public string roomNoRemain;
|
|
|
|
|
public float beansCoinAll;
|
|
|
|
|
public float beansCoinKill;
|
|
|
|
|
public float beansCoinRemain;
|
|
|
|
|
public float beansCoinFee;
|
|
|
|
|
public float beansCoinRank;
|
|
|
|
|
public float beansCoinDivide;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-16 05:56:57 +08:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class Data515
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public float bet;//当前用户的下注
|
|
|
|
|
public int roomNo;//当前用户下注的房间号
|
|
|
|
|
public int outcome;//默认0还没结果,1胜利,2失败
|
|
|
|
|
public float win;//获胜后赢得多少欢乐豆
|
|
|
|
|
public float beansCoin;//本局最终获得多少欢乐豆
|
|
|
|
|
public float ichorCoin;//本局最终获得的灵液
|
2024-11-16 05:56:57 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class ServerResponse515 : Response
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public Data515 data; // 数据对象
|
2024-11-16 05:56:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-11-15 23:31:54 +08:00
|
|
|
|
[Serializable]
|
2024-11-16 02:05:07 +08:00
|
|
|
|
public class ServerResponse: Response
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public Data data; // 数据对象
|
2024-11-16 02:05:07 +08:00
|
|
|
|
}
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class ServerResponse514: Response
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public Data514 data; // 数据对象
|
2024-11-16 02:05:07 +08:00
|
|
|
|
}
|
2024-11-26 02:09:38 +08:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class ServerResponse18 : Response
|
|
|
|
|
{
|
2024-11-26 02:14:48 +08:00
|
|
|
|
public object data; // <20><><EFBFBD>ݶ<EFBFBD><DDB6><EFBFBD>
|
2024-11-26 02:09:38 +08:00
|
|
|
|
}
|
|
|
|
|
[Serializable]
|
2024-11-16 02:05:07 +08:00
|
|
|
|
public class Response
|
2024-11-15 23:31:54 +08:00
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public int code; // 响应状态码
|
|
|
|
|
public string message; // 提示语
|
2024-11-15 23:31:54 +08:00
|
|
|
|
}
|
2024-11-26 00:07:12 +08:00
|
|
|
|
// 数据类
|
2024-11-15 23:31:54 +08:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class GameEscapeModel
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public int id; // 游戏 ID
|
|
|
|
|
public string gameNo; // 游戏编号
|
|
|
|
|
public int demonMode; // 恶魔模式
|
|
|
|
|
public string startTime; // 开始时间
|
|
|
|
|
public string betTime; // 下注时间
|
|
|
|
|
public string countTime; // 结算时间
|
|
|
|
|
public string settleTime; // 最终结算时间
|
|
|
|
|
public int status; // 游戏状态
|
|
|
|
|
public string roomNoKill; // 无杀房间号
|
|
|
|
|
public string roomNoRemain; // 剩余房间号
|
|
|
|
|
public float beansCoinAll; // 总豆币数
|
|
|
|
|
public float beansCoinKill; // 击杀豆币数
|
|
|
|
|
public float beansCoinRemain; // 剩余豆币数
|
|
|
|
|
public float beansCoinFee; // 手续费
|
|
|
|
|
public float beansCoinRank; // 排名奖励豆币
|
|
|
|
|
public float beansCoinDivide; // 分成豆币
|
2024-11-18 16:53:39 +08:00
|
|
|
|
|
2024-11-15 23:31:54 +08:00
|
|
|
|
}
|
2024-11-21 00:04:33 +08:00
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class ServerResponse513 : Response
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public int code; // 数据对象
|
2024-11-21 00:04:33 +08:00
|
|
|
|
public string mesage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-26 00:07:12 +08:00
|
|
|
|
//玩家信息
|
2024-11-18 18:52:31 +08:00
|
|
|
|
[Serializable]
|
2024-11-20 10:24:18 +08:00
|
|
|
|
public class UserInfomation14: Response
|
2024-11-18 18:52:31 +08:00
|
|
|
|
{
|
|
|
|
|
public UserInfomation14Data data;
|
|
|
|
|
}
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class UserInfomation14Data
|
|
|
|
|
{
|
|
|
|
|
public int userId;//id
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public long userName;//用户名(电话)
|
2024-11-18 18:52:31 +08:00
|
|
|
|
public string token;
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public string nickName;//昵称
|
|
|
|
|
public string headImg;//头像
|
|
|
|
|
public int gender;//性别,1男2女
|
|
|
|
|
public string birthday;//出生,"yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
public float voluteCoin;//蜗壳
|
|
|
|
|
public float beansCoin;//蜗蛋
|
2024-11-26 17:13:34 +08:00
|
|
|
|
public float ichorCoin;//灵液
|
2024-11-26 17:54:34 +08:00
|
|
|
|
public string idCard;//身份证
|
2024-11-18 18:52:31 +08:00
|
|
|
|
public string inviteCodeMy;//=============
|
|
|
|
|
public string inviteCodeBind;//==========
|
|
|
|
|
public string bindTime;//===========
|
|
|
|
|
public int station;//=========
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public string cuteNo;//靓号
|
2024-11-18 18:52:31 +08:00
|
|
|
|
public string menberTime;//===============
|
|
|
|
|
public bool isMember;
|
2024-11-26 00:07:12 +08:00
|
|
|
|
//public int cuteNo;//靓号
|
2024-11-20 02:41:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class ServerResponse516 : Response
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public Data516 data; // 数据对象
|
2024-11-20 02:41:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Data516
|
|
|
|
|
{
|
|
|
|
|
public List<gameEscapeRoomKillCountResponseVo> gameEscapeRoomKillCountResponseVoList;
|
|
|
|
|
public List<gameEscapeModel> gameEscapeModelList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class gameEscapeRoomKillCountResponseVo
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public int roomNo;//房间号
|
|
|
|
|
public int kill;//击杀次数
|
2024-11-20 02:41:39 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class gameEscapeModel
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public string gameNo;//游戏编号
|
|
|
|
|
public string roomNoKill;//击杀的房间 "5,6,7,8"这种
|
2024-11-20 02:41:39 +08:00
|
|
|
|
|
2024-11-25 14:37:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class ServerResponse517 : Response
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public Data517 data; // 数据对象
|
2024-11-25 14:37:44 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Data517
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public float beansCoinBet;//当前用户总投入的欢乐豆
|
|
|
|
|
public float beansCoinWin;//当前用户总赚取的欢乐豆
|
|
|
|
|
public gameEscapeUserRecordResponseVoPageResult gameEscapeUserRecordResponseVoPageResult; //用户参与的大逃亡分页
|
2024-11-25 14:37:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class gameEscapeUserRecordResponseVoPageResult
|
|
|
|
|
{
|
|
|
|
|
|
2024-11-25 15:57:15 +08:00
|
|
|
|
public List<dataList> dataList;
|
2024-11-25 14:37:44 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class dataList
|
|
|
|
|
{
|
|
|
|
|
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public string gameNo;//游戏编号
|
|
|
|
|
public float bet;//下注欢乐豆
|
|
|
|
|
public int roomNo;//下注房间号
|
|
|
|
|
public string roomNoKill;//击杀房间号
|
|
|
|
|
public int outcome;//本局结果:默认0还未结束,1胜利,2失败
|
|
|
|
|
public float beansCoin;//本局最终获得欢乐豆
|
|
|
|
|
public string createTime;//创建时间
|
2024-11-25 14:37:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2024-11-25 21:25:28 +08:00
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class ServerResponse518 : Response
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public Data518 data; // 数据对象
|
2024-11-25 21:25:28 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Data518
|
|
|
|
|
{
|
2024-11-26 14:07:07 +08:00
|
|
|
|
public List<gameEscapeUserBetResponseVoList> gameEscapeUserBetResponseVoList;
|
2024-11-25 21:25:28 +08:00
|
|
|
|
public userBetInfo userBetInfo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class gameEscapeUserBetResponseVoList
|
|
|
|
|
{
|
|
|
|
|
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public string userId;//用户id
|
|
|
|
|
public string nickName;// 昵称
|
|
|
|
|
public string headImg;// 头像
|
|
|
|
|
public float bet;// 下注总额
|
|
|
|
|
public int orderNo;// 排名
|
2024-11-26 14:07:07 +08:00
|
|
|
|
//public float rankBonus;// 排名奖金
|
2024-11-25 21:25:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class userBetInfo
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public string userId;//用户id
|
|
|
|
|
public string nickName;// 昵称
|
|
|
|
|
public string headImg;// 头像
|
2024-11-26 14:07:07 +08:00
|
|
|
|
private float? _bet; // 用于存储下注总额的私有字段
|
|
|
|
|
|
|
|
|
|
public float? bet
|
|
|
|
|
{
|
|
|
|
|
get { return _bet; } // 返回私有字段 _bet
|
|
|
|
|
set { _bet = value ?? 0f; } // 如果 value 为 null,设置为 0f
|
|
|
|
|
}
|
|
|
|
|
public string orderNo;// 排名
|
|
|
|
|
//public float rankBonus;// 排名奖金
|
2024-11-25 21:25:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Body518
|
|
|
|
|
{
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public int userId; // 用户id
|
2024-11-25 21:25:28 +08:00
|
|
|
|
|
2024-11-26 14:07:07 +08:00
|
|
|
|
public int dayType;//1是昨天,0是今天
|
2024-11-25 21:25:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-25 22:11:11 +08:00
|
|
|
|
//==================================================================================
|
|
|
|
|
|
2024-11-26 00:07:12 +08:00
|
|
|
|
|
|
|
|
|
//========1.7================================================================
|
|
|
|
|
//===============================================================================
|
|
|
|
|
//===============================================================================
|
|
|
|
|
//========================================
|
|
|
|
|
//=======================================
|
|
|
|
|
//========================================
|
|
|
|
|
//========521===================================================================================
|
|
|
|
|
//521<32><31>ѯ<EFBFBD><D1AF><EFBFBD>
|
|
|
|
|
public class ClosestKnight : Response
|
|
|
|
|
{
|
|
|
|
|
public ClosestKnightData Data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ClosestKnightData
|
|
|
|
|
{
|
|
|
|
|
public int CarrySeconds { get; set; }
|
|
|
|
|
public GameKnightModel GameKnightModel { get; set; }
|
|
|
|
|
public List<GameKnightRoomResponseVo> GameKnightRoomResponseVoList { get; set; }
|
|
|
|
|
public List<GameKnightUserModel> GameKnightUserModelList { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class GameKnightModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public string GameNo { get; set; }
|
|
|
|
|
public int GameSession { get; set; }
|
|
|
|
|
public string StartTime { get; set; }
|
|
|
|
|
public string BetTime { get; set; }
|
|
|
|
|
public string CountTime { get; set; }
|
|
|
|
|
public string SettleTime { get; set; }
|
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
public string HorseNoAll { get; set; }
|
|
|
|
|
public string HorseNoKill { get; set; }
|
|
|
|
|
public string HorseNoRemain { get; set; }
|
|
|
|
|
public float BeansCoinAll { get; set; }
|
|
|
|
|
public float BeansCoinKill { get; set; }
|
|
|
|
|
public float BeansCoinRemain { get; set; }
|
|
|
|
|
public float BeansCoinFee { get; set; }
|
|
|
|
|
public float BeansCoinDivide { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class GameKnightRoomResponseVo
|
|
|
|
|
{
|
|
|
|
|
public int KnightId { get; set; }
|
|
|
|
|
public int HorseNo { get; set; }
|
|
|
|
|
public int HorseUserNo { get; set; }
|
|
|
|
|
public float HorseBeansCoin { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class GameKnightUserModel
|
|
|
|
|
{
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>JSON<4F><4E>GameKnightUserModelList<73><74>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>顣<EFBFBD><E9A1A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD><D0BE><EFBFBD><EFBFBD>ֶΣ<D6B6><CEA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶΡ<D6B6>
|
|
|
|
|
}
|
|
|
|
|
//====522=====================================================
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
public class QueryKnightRoomListBody
|
|
|
|
|
{
|
|
|
|
|
public int userId { get; set; }
|
|
|
|
|
public int knightId { get; set; }
|
|
|
|
|
}
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
public class KnightRoomBetList
|
|
|
|
|
{
|
|
|
|
|
public int Code { get; set; } // <20><>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD>
|
|
|
|
|
public string Message { get; set; } // <20><>Ӧ<EFBFBD><D3A6>Ϣ
|
|
|
|
|
public KnightRoomBetData Data { get; set; } // <20><><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class KnightRoomBetData
|
|
|
|
|
{
|
|
|
|
|
public int CarrySeconds { get; set; } // Я<><D0AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
public GameKnightModel GameKnightModel { get; set; } // <20><>Ϸ<EFBFBD><CFB7>ʿģ<CABF>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD><EFBFBD>Ϊnull
|
|
|
|
|
public List<GameKnightRoomResponseVo> GameKnightRoomResponseVoList { get; set; } // <20><>ʿ<EFBFBD><CABF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>б<EFBFBD>
|
|
|
|
|
public List<GameKnightUserModel> GameKnightUserModelList { get; set; } // <20><>ʿ<EFBFBD>û<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊnull
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class GameKnightModel2
|
|
|
|
|
{
|
|
|
|
|
// <20><>Ϊʾ<CEAA><CABE><EFBFBD>е<EFBFBD> `gameKnightModel` Ϊ null<6C><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD>
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD>˻᷵<CBBB>ظò<D8B8><C3B2>֣<EFBFBD><D6A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Щ<EFBFBD>ֶ<EFBFBD>
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public string GameNo { get; set; }
|
|
|
|
|
public int GameSession { get; set; }
|
|
|
|
|
public string StartTime { get; set; }
|
|
|
|
|
public string BetTime { get; set; }
|
|
|
|
|
public string CountTime { get; set; }
|
|
|
|
|
public string SettleTime { get; set; }
|
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
public string HorseNoAll { get; set; }
|
|
|
|
|
public string HorseNoKill { get; set; }
|
|
|
|
|
public string HorseNoRemain { get; set; }
|
|
|
|
|
public float BeansCoinAll { get; set; }
|
|
|
|
|
public float BeansCoinKill { get; set; }
|
|
|
|
|
public float BeansCoinRemain { get; set; }
|
|
|
|
|
public float BeansCoinFee { get; set; }
|
|
|
|
|
public float BeansCoinDivide { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class GameKnightRoomResponseVo2
|
|
|
|
|
{
|
|
|
|
|
public int KnightId { get; set; } // <20><>ʿID
|
|
|
|
|
public int HorseNo { get; set; } // <20><>ƥ<EFBFBD><C6A5><EFBFBD>
|
|
|
|
|
public int HorseUserNo { get; set; } // <20><>ƥ<EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>
|
|
|
|
|
public decimal HorseBeansCoin { get; set; } // <20><>ƥ<EFBFBD><C6A5><EFBFBD>ң<EFBFBD>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9> decimal <20>Ա<EFBFBD><D4B1>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class GameKnightUserModel2
|
|
|
|
|
{
|
|
|
|
|
// <20><>Ϊʾ<CEAA><CABE><EFBFBD>е<EFBFBD> `gameKnightUserModelList` Ϊ null<6C><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD>
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
}
|
|
|
|
|
//========523======================================================
|
|
|
|
|
public class KnightBetBody
|
|
|
|
|
{
|
|
|
|
|
public int knightId { get; set; }
|
|
|
|
|
public int userId { get; set; }
|
|
|
|
|
public int horseNo { get; set; }
|
|
|
|
|
public float bet { get; set; }
|
|
|
|
|
}
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
public class KnightBetResponse : Response
|
|
|
|
|
{
|
|
|
|
|
public string knighBetData;
|
|
|
|
|
}
|
|
|
|
|
//=======524========================================================
|
|
|
|
|
public class KnightKill : Response
|
|
|
|
|
{
|
|
|
|
|
public KnightBetData data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class KnightBetData
|
|
|
|
|
{
|
|
|
|
|
public int id { get; set; }
|
|
|
|
|
public string gameNo { get; set; }
|
|
|
|
|
public int gameSession { get; set; }
|
|
|
|
|
public string startTime { get; set; }
|
|
|
|
|
public string betTime { get; set; }
|
|
|
|
|
public string countTime { get; set; }
|
|
|
|
|
public string settleTime { get; set; }
|
|
|
|
|
public int status { get; set; }
|
|
|
|
|
public string horseNoAll { get; set; }
|
|
|
|
|
public string horseNoKill { get; set; }
|
|
|
|
|
public string horseNoRemain { get; set; }
|
|
|
|
|
public float beansCoinAll { get; set; }
|
|
|
|
|
public float beansCoinKill { get; set; }
|
|
|
|
|
public float beansCoinRemain { get; set; }
|
|
|
|
|
public float beansCoinFee { get; set; }
|
|
|
|
|
public float beansCoinDivide { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//======525========================================================
|
2024-12-04 14:42:07 +08:00
|
|
|
|
//[Serializable]
|
|
|
|
|
//public class KnightBetResult : Response
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
// public Data data;
|
|
|
|
|
|
|
|
|
|
// [Serializable]
|
|
|
|
|
// public class Data
|
|
|
|
|
// {
|
|
|
|
|
// public int id;
|
|
|
|
|
// public string gameNo;
|
|
|
|
|
// public int gameSession;
|
|
|
|
|
// public string startTime;
|
|
|
|
|
// public string betTime;
|
|
|
|
|
// public string countTime;
|
|
|
|
|
// public string settleTime;
|
|
|
|
|
// public int status;
|
|
|
|
|
// public string horseNoAll;
|
|
|
|
|
// public string horseNoKill;
|
|
|
|
|
// public string horseNoRemain;
|
|
|
|
|
// public float beansCoinAll;
|
|
|
|
|
// public float beansCoinKill;
|
|
|
|
|
// public float beansCoinRemain;
|
|
|
|
|
// public float beansCoinFee;
|
|
|
|
|
// public float beansCoinDivide;
|
|
|
|
|
// }
|
|
|
|
|
//}
|
2024-11-26 00:07:12 +08:00
|
|
|
|
//======526========================================================
|
|
|
|
|
public class QueryKnightRecordBody
|
|
|
|
|
{
|
|
|
|
|
public int userId;
|
|
|
|
|
public int orderByDesc { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class GameKnightModelRecord
|
|
|
|
|
{
|
|
|
|
|
public int id { get; set; }
|
|
|
|
|
public string gameNo { get; set; }
|
|
|
|
|
public int gameSession { get; set; }
|
|
|
|
|
public string startTime { get; set; }
|
|
|
|
|
public string betTime { get; set; }
|
|
|
|
|
public string countTime { get; set; }
|
|
|
|
|
public string settleTime { get; set; }
|
|
|
|
|
public int status { get; set; }
|
|
|
|
|
public string horseNoAll { get; set; }
|
|
|
|
|
public string horseNoKill { get; set; }
|
|
|
|
|
public string horseNoRemain { get; set; }
|
|
|
|
|
public float beansCoinAll { get; set; }
|
|
|
|
|
public float beansCoinKill { get; set; }
|
|
|
|
|
public float beansCoinRemain { get; set; }
|
|
|
|
|
public float beansCoinFee { get; set; }
|
|
|
|
|
public float beansCoinDivide { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class KnightRecordtData
|
|
|
|
|
{
|
|
|
|
|
public float beansCoinBet { get; set; }
|
|
|
|
|
public float beansCoinWin { get; set; }
|
|
|
|
|
public List<GameKnightModelRecord> gameKnightModelList { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class KnightRecord : Response
|
|
|
|
|
{
|
|
|
|
|
public KnightRecordtData data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
//============================================
|
|
|
|
|
//工会分页
|
|
|
|
|
public class UnionPageBody//请求体
|
2024-11-25 22:11:11 +08:00
|
|
|
|
{
|
|
|
|
|
public int orderByDesc { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UnionDataInPage
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Cover { get; set; }
|
|
|
|
|
public int Level { get; set; }
|
|
|
|
|
public string Slogan { get; set; }
|
|
|
|
|
public int LeaderId { get; set; }
|
|
|
|
|
public string LeaderUserName { get; set; }
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public string CreateTime { get; set; } // 由于createTime可能为null,且类型未明确,这里使用object类型,可根据实际情况调整为DateTime?或其他类型
|
2024-11-25 22:11:11 +08:00
|
|
|
|
public string UpdateTime { get; set; }
|
2024-12-05 16:59:31 +08:00
|
|
|
|
public string qq;
|
|
|
|
|
public string wx;
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return
|
|
|
|
|
$"{nameof(qq)}: {qq}, {nameof(wx)}: {wx}, {nameof(Id)}: {Id}, {nameof(Name)}: {Name}, {nameof(Cover)}: {Cover}, {nameof(Level)}: {Level}, {nameof(Slogan)}: {Slogan}, {nameof(LeaderId)}: {LeaderId}, {nameof(LeaderUserName)}: {LeaderUserName}, {nameof(CreateTime)}: {CreateTime}, {nameof(UpdateTime)}: {UpdateTime}";
|
|
|
|
|
}
|
2024-11-25 22:11:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UnionPageData
|
|
|
|
|
{
|
|
|
|
|
public int PageNo { get; set; }
|
|
|
|
|
public int PageSize { get; set; }
|
|
|
|
|
public int TotalCount { get; set; }
|
|
|
|
|
public List<UnionDataInPage> DataList { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UnionPage : Response
|
|
|
|
|
{
|
|
|
|
|
public UnionPageData Data { get; set; }
|
|
|
|
|
}
|
2024-11-25 22:57:46 +08:00
|
|
|
|
//========1.7================================================================
|
|
|
|
|
|
|
|
|
|
public class BizUnionModel
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Cover { get; set; }
|
|
|
|
|
public int Level { get; set; }
|
|
|
|
|
public string Slogan { get; set; }
|
|
|
|
|
public int LeaderId { get; set; }
|
|
|
|
|
public string LeaderUserName { get; set; }
|
2024-11-26 00:07:12 +08:00
|
|
|
|
public string CreateTime { get; set; } // 可以根据实际情况调整为DateTime?
|
2024-11-25 22:57:46 +08:00
|
|
|
|
public string UpdateTime { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class BizUnionUserModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public int UnionId { get; set; }
|
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
public string UserName { get; set; }
|
|
|
|
|
public int Station { get; set; }
|
|
|
|
|
public int HigherUserId { get; set; }
|
|
|
|
|
public int HigherStation { get; set; }
|
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
public string CreateTime { get; set; }
|
|
|
|
|
public string UpdateTime { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UnionDetalResponseData
|
|
|
|
|
{
|
|
|
|
|
public BizUnionModel BizUnionModel { get; set; }
|
|
|
|
|
public List<BizUnionUserModel> BizUnionUserModelList { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UnionDetalResponse : Response
|
|
|
|
|
{
|
|
|
|
|
public UnionDetalResponseData Data { get; set; }
|
2024-11-26 00:07:12 +08:00
|
|
|
|
}
|
|
|
|
|
//====4.1============================
|
|
|
|
|
//查询靓号分页
|
2024-11-26 17:12:11 +08:00
|
|
|
|
public class GoodIdResponse : Response
|
2024-11-26 00:07:12 +08:00
|
|
|
|
{
|
2024-11-26 17:12:11 +08:00
|
|
|
|
public GoodIdData Data { get; set; }
|
2024-11-26 00:07:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class GoodIdData
|
|
|
|
|
{
|
2024-11-26 17:12:11 +08:00
|
|
|
|
public int PageNo { get; set; }
|
|
|
|
|
public int PageSize { get; set; }
|
|
|
|
|
public int TotalCount { get; set; }
|
|
|
|
|
public List<GoodIdItem> DataList { get; set; }
|
2024-11-26 00:07:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-11-26 17:12:11 +08:00
|
|
|
|
public class GoodIdItem
|
2024-11-26 00:07:12 +08:00
|
|
|
|
{
|
2024-11-26 17:12:11 +08:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public string CuteNo { get; set; }
|
2024-11-26 21:16:12 +08:00
|
|
|
|
public decimal BeansCoin { get; set; }
|
2024-11-26 17:12:11 +08:00
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
public int Type { get; set; }
|
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
public string CreateTime { get; set; }
|
|
|
|
|
public string UpdateTime { get; set; }
|
2024-11-26 00:07:12 +08:00
|
|
|
|
}
|
2024-11-26 17:12:11 +08:00
|
|
|
|
public class GoodIdPageBody
|
2024-11-26 00:41:57 +08:00
|
|
|
|
{
|
2024-11-26 17:12:11 +08:00
|
|
|
|
public int orderByDesc { get; set; }
|
2024-11-26 21:16:12 +08:00
|
|
|
|
}
|
|
|
|
|
//====4.2购买靓号=========================================================
|
|
|
|
|
//请求体
|
|
|
|
|
public class BuyGoodIdBody
|
|
|
|
|
{
|
|
|
|
|
public int userId { get; set; }
|
|
|
|
|
public int cutePoolId { get; set; }
|
|
|
|
|
}
|
|
|
|
|
//返回值
|
|
|
|
|
|
|
|
|
|
public class BuyGoodIdResponse : Response
|
|
|
|
|
{
|
|
|
|
|
public BuyGoodIdData Data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class BuyGoodIdData
|
|
|
|
|
{
|
|
|
|
|
public int PageNo { get; set; }
|
|
|
|
|
public int PageSize { get; set; }
|
|
|
|
|
public int TotalCount { get; set; }
|
|
|
|
|
public List<object> DataList { get; set; } // 你可以根据需要将List<object>替换为List<YourDataType>===========================================================
|
|
|
|
|
}
|
2024-11-27 00:17:30 +08:00
|
|
|
|
//1.4个人信息新============================================================
|
|
|
|
|
[System.Serializable] // 确保这个类可以被序列化/反序列化
|
|
|
|
|
public class RealPlayerInfo : Response
|
|
|
|
|
{
|
|
|
|
|
public RealPlayerInfoData data; // 玩家信息的实际数据
|
2024-11-26 21:16:12 +08:00
|
|
|
|
|
2024-11-27 00:17:30 +08:00
|
|
|
|
// 内部类,对应JSON中的"data"字段
|
|
|
|
|
[System.Serializable]
|
|
|
|
|
public class RealPlayerInfoData
|
|
|
|
|
{
|
|
|
|
|
public int userId;
|
|
|
|
|
public long userName;
|
|
|
|
|
public string token; // 使用object类型以处理可能的null值,或者根据实际需要使用具体类型
|
|
|
|
|
public string nickName;
|
|
|
|
|
public string headImg;
|
|
|
|
|
public int gender;
|
|
|
|
|
public string birthday; // 同上,处理可能的null值
|
|
|
|
|
public double voluteCoin;
|
|
|
|
|
public double beansCoin;
|
|
|
|
|
public double ichorCoin;
|
|
|
|
|
public string idCard;
|
|
|
|
|
public string bank;
|
|
|
|
|
public string realName;
|
|
|
|
|
public int isCert;
|
|
|
|
|
public string inviteCodeMy;
|
|
|
|
|
public string inviteCodeBind;
|
|
|
|
|
public string bindTime;
|
|
|
|
|
public int station;
|
|
|
|
|
public string cuteNo;
|
|
|
|
|
public string memberTime;
|
|
|
|
|
public bool isMember;
|
|
|
|
|
public int unionId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//======================================================
|
|
|
|
|
public class InviteHigherInfo : Response
|
|
|
|
|
{
|
|
|
|
|
public InviteHigherInfoData data { get; set; }
|
|
|
|
|
}
|
2024-11-26 21:16:12 +08:00
|
|
|
|
|
2024-11-27 00:17:30 +08:00
|
|
|
|
public class InviteHigherInfoData
|
|
|
|
|
{
|
|
|
|
|
public int userId { get; set; }
|
|
|
|
|
public string userName { get; set; }
|
|
|
|
|
public string token { get; set; }
|
|
|
|
|
public string nickName { get; set; }
|
|
|
|
|
public string headImg { get; set; }
|
|
|
|
|
public int gender { get; set; }
|
|
|
|
|
public string birthday { get; set; }
|
|
|
|
|
public string voluteCoin { get; set; }
|
|
|
|
|
public string beansCoin { get; set; }
|
|
|
|
|
public string ichorCoin { get; set; }
|
|
|
|
|
public string idCard { get; set; }
|
|
|
|
|
public string bank { get; set; }
|
|
|
|
|
public string realName { get; set; }
|
|
|
|
|
public bool? isCert { get; set; }
|
|
|
|
|
public string inviteCodeMy { get; set; }
|
|
|
|
|
public string inviteCodeBind { get; set; }
|
|
|
|
|
public string bindTime { get; set; }
|
|
|
|
|
public string station { get; set; }
|
|
|
|
|
public string cuteNo { get; set; }
|
|
|
|
|
public string memberTime { get; set; }
|
|
|
|
|
public bool? isMember { get; set; }
|
|
|
|
|
public string unionId { get; set; }
|
|
|
|
|
}
|
|
|
|
|
//===========6.2=====================================================
|
|
|
|
|
public class InviteInfoList
|
|
|
|
|
{
|
|
|
|
|
public int code { get; set; }
|
|
|
|
|
public string message { get; set; }
|
|
|
|
|
public InviteData data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class InviteData
|
|
|
|
|
{
|
|
|
|
|
public int pageNo { get; set; }
|
|
|
|
|
public int pageSize { get; set; }
|
|
|
|
|
public int totalCount { get; set; }
|
|
|
|
|
public List<InviteUserInfo> dataList { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class InviteUserInfo
|
|
|
|
|
{
|
|
|
|
|
public int userId { get; set; }
|
|
|
|
|
public string userName { get; set; }
|
|
|
|
|
public string token { get; set; }
|
|
|
|
|
public string nickName { get; set; }
|
|
|
|
|
public string headImg { get; set; }
|
|
|
|
|
public int gender { get; set; }
|
|
|
|
|
public string birthday { get; set; }
|
|
|
|
|
public string voluteCoin { get; set; }
|
|
|
|
|
public string beansCoin { get; set; }
|
|
|
|
|
public string ichorCoin { get; set; }
|
|
|
|
|
public string idCard { get; set; }
|
|
|
|
|
public string bank { get; set; }
|
|
|
|
|
public string realName { get; set; }
|
|
|
|
|
public string isCert { get; set; }
|
|
|
|
|
public string inviteCodeMy { get; set; }
|
|
|
|
|
public string inviteCodeBind { get; set; }
|
|
|
|
|
public string bindTime { get; set; }
|
|
|
|
|
public string station { get; set; }
|
|
|
|
|
public string cuteNo { get; set; }
|
|
|
|
|
public string memberTime { get; set; }
|
|
|
|
|
public bool? isMember { get; set; }
|
|
|
|
|
public string unionId { get; set; }
|
2024-11-27 15:54:29 +08:00
|
|
|
|
}
|
|
|
|
|
//=========81==========================================
|
|
|
|
|
//添加地址请求体
|
|
|
|
|
public class newAddressBody
|
|
|
|
|
{
|
|
|
|
|
public string receiveName { get; set; }
|
|
|
|
|
public string receivePhone { get; set; }
|
|
|
|
|
public string area { get; set; }
|
|
|
|
|
public string address { get; set; }
|
|
|
|
|
}
|
|
|
|
|
public class newAddressResponse : Response
|
|
|
|
|
{
|
|
|
|
|
public string data;
|
|
|
|
|
}
|
|
|
|
|
//======8.2================================================
|
|
|
|
|
//请求体
|
|
|
|
|
public class updateAddressBody
|
|
|
|
|
{
|
|
|
|
|
public int id { get; set; }
|
|
|
|
|
public string receiveName { get; set; }
|
|
|
|
|
public string receivePhone { get; set; }
|
|
|
|
|
public string area { get; set; }
|
|
|
|
|
public string address { get; set; }
|
|
|
|
|
}
|
|
|
|
|
//返回
|
|
|
|
|
public class updateAddressResponse : Response
|
|
|
|
|
{
|
|
|
|
|
public string data;
|
|
|
|
|
}
|
|
|
|
|
//=========8.3=================================================
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class Address
|
|
|
|
|
{
|
|
|
|
|
public int id;
|
|
|
|
|
public int userId;
|
|
|
|
|
public string receiveName;
|
|
|
|
|
public string receivePhone;
|
|
|
|
|
public string area;
|
|
|
|
|
public string address;
|
|
|
|
|
public int status;
|
|
|
|
|
public string createTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class AdressResponse : Response
|
|
|
|
|
{
|
|
|
|
|
public List<Address> data; // 包含多个地址的列表
|
|
|
|
|
}
|
|
|
|
|
//8.4===================================================================
|
|
|
|
|
public class AdressInfoResponse : Response
|
|
|
|
|
{
|
|
|
|
|
public AddressInfoData data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AddressInfoData
|
|
|
|
|
{
|
|
|
|
|
public int id { get; set; }
|
|
|
|
|
public int userId { get; set; }
|
|
|
|
|
public string receiveName { get; set; }
|
|
|
|
|
public string receivePhone { get; set; }
|
|
|
|
|
public string area { get; set; }
|
|
|
|
|
public string address { get; set; }
|
|
|
|
|
public int status { get; set; }
|
|
|
|
|
public string createTime { get; set; }
|
2024-11-27 19:07:04 +08:00
|
|
|
|
}
|
2024-12-09 19:57:03 +08:00
|
|
|
|
//背包1.11==============================================================
|
2024-11-28 05:10:50 +08:00
|
|
|
|
[Serializable]
|
2024-12-09 19:57:03 +08:00
|
|
|
|
public class bag111:Response
|
|
|
|
|
{
|
|
|
|
|
public bagData111 data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class bagData111
|
2024-11-28 05:10:50 +08:00
|
|
|
|
{
|
2024-12-09 19:57:03 +08:00
|
|
|
|
public int id;
|
2024-11-28 05:10:50 +08:00
|
|
|
|
public int snailCount; // 数据对象
|
|
|
|
|
public int slotCount;
|
2024-12-09 19:57:03 +08:00
|
|
|
|
|
2024-11-28 05:10:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-11-27 19:07:04 +08:00
|
|
|
|
//2.1========================================================
|
|
|
|
|
public class getMallListBody
|
|
|
|
|
{
|
|
|
|
|
public int productType { get; set; }//商品类型,0实物商品,1虚拟商品
|
|
|
|
|
public int pageNo { get; set; }//默认1
|
|
|
|
|
public int pageSize { get; set; }//默认20
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 响应的最外层结构
|
|
|
|
|
public class MallResponsePro:Response
|
|
|
|
|
{
|
|
|
|
|
public MallDataPro Data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 内层 Data 结构
|
|
|
|
|
public class MallDataPro
|
|
|
|
|
{
|
|
|
|
|
public int PageNo { get; set; }
|
|
|
|
|
public int PageSize { get; set; }
|
|
|
|
|
public int TotalCount { get; set; }
|
|
|
|
|
public List<ProductPro> DataList { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 商品结构
|
|
|
|
|
public class ProductPro
|
|
|
|
|
{
|
|
|
|
|
public int ProductId { get; set; }
|
|
|
|
|
public int ProductType { get; set; }
|
|
|
|
|
public string ProductName { get; set; }
|
|
|
|
|
public string ProductPic { get; set; }
|
|
|
|
|
public string ProductCover { get; set; }
|
|
|
|
|
public float Price { get; set; }
|
|
|
|
|
public int SellOpen { get; set; }
|
|
|
|
|
public string CreateTime { get; set; } // CreateTime可能是 null,表示没有时间信息
|
|
|
|
|
}
|
2024-11-28 05:52:04 +08:00
|
|
|
|
//2.2===================================================
|
2024-11-27 19:07:04 +08:00
|
|
|
|
public class getProdectBody
|
|
|
|
|
{
|
|
|
|
|
public int productId { get; set; }
|
|
|
|
|
}
|
|
|
|
|
[System.Serializable]
|
|
|
|
|
public class getProductResponse:Response
|
|
|
|
|
{
|
2024-11-28 05:52:04 +08:00
|
|
|
|
public ProductInfo Data;
|
2024-11-27 19:07:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[System.Serializable]
|
2024-11-28 05:52:04 +08:00
|
|
|
|
//public class MallProduct
|
|
|
|
|
//{
|
|
|
|
|
// public int PageNo;
|
|
|
|
|
// public int PageSize;
|
|
|
|
|
// public int TotalCount;
|
|
|
|
|
// public List<ProductInfo> DataList;
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//[System.Serializable]
|
2024-11-27 19:07:04 +08:00
|
|
|
|
public class ProductInfo
|
|
|
|
|
{
|
|
|
|
|
public int ProductId;
|
|
|
|
|
public int ProductType;
|
|
|
|
|
public string ProductName;
|
|
|
|
|
public string ProductPic;
|
|
|
|
|
public string ProductCover;
|
|
|
|
|
public float Price;
|
|
|
|
|
public int SellOpen;
|
|
|
|
|
public string CreateTime; // 可以是 null
|
|
|
|
|
}
|
|
|
|
|
//2.3============================================
|
|
|
|
|
//请求体
|
|
|
|
|
public class BuyProductBody
|
|
|
|
|
{
|
|
|
|
|
public int productId;//商品ID
|
|
|
|
|
public int userId;//用户ID
|
|
|
|
|
public string receiveName;//接收者姓名
|
|
|
|
|
public string receivePhone;//接收者手机
|
|
|
|
|
public string area;//地址
|
|
|
|
|
public string address;//区域
|
|
|
|
|
}
|
|
|
|
|
//回
|
|
|
|
|
public class BuyProductResponse : Response
|
|
|
|
|
{
|
|
|
|
|
public string data;
|
2024-11-27 23:34:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//====3.1===============================================
|
|
|
|
|
public class announcementPageBody
|
|
|
|
|
{
|
|
|
|
|
public int userId;
|
|
|
|
|
public int pageNo;
|
|
|
|
|
public int pageSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 表示公告页
|
|
|
|
|
public class announcementPage : Response
|
|
|
|
|
{
|
|
|
|
|
public AnnouncementData data { get; set; } // 包含公告数据的对象
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 包含公告数据
|
|
|
|
|
public class AnnouncementData
|
|
|
|
|
{
|
|
|
|
|
public int pageNo { get; set; } // 当前页码
|
|
|
|
|
public int pageSize { get; set; } // 每页数据量
|
|
|
|
|
public int totalCount { get; set; } // 总记录数
|
|
|
|
|
public List<Announcement> dataList { get; set; } // 公告列表
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 单条公告
|
|
|
|
|
public class Announcement
|
|
|
|
|
{
|
|
|
|
|
public int id { get; set; } // 公告ID
|
|
|
|
|
public string title { get; set; } // 公告标题
|
|
|
|
|
public string icon { get; set; } // 公告图标URL
|
|
|
|
|
public string content { get; set; } // 公告内容
|
|
|
|
|
public int onShelves { get; set; } // 是否上架 (1为上架,0为下架)
|
|
|
|
|
public string createTime { get; set; } // 创建时间
|
2024-12-01 05:09:07 +08:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return
|
|
|
|
|
$"{nameof(id)}: {id}, {nameof(title)}: {title}, {nameof(icon)}: {icon}, {nameof(content)}: {content}, {nameof(onShelves)}: {onShelves}, {nameof(createTime)}: {createTime}";
|
|
|
|
|
}
|
2024-11-27 23:34:21 +08:00
|
|
|
|
}
|
|
|
|
|
//========3.2=======================================================
|
|
|
|
|
// 响应结果的根类
|
|
|
|
|
public class annDetail : Response
|
|
|
|
|
{
|
|
|
|
|
public AnnDetailData data { get; set; } // 包含具体公告数据的对象
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 公告数据的对象
|
|
|
|
|
public class AnnDetailData
|
|
|
|
|
{
|
|
|
|
|
public int id { get; set; } // 公告ID
|
|
|
|
|
public string title { get; set; } // 公告标题
|
|
|
|
|
public string icon { get; set; } // 公告图标URL
|
|
|
|
|
public string content { get; set; } // 公告内容
|
|
|
|
|
public int onShelves { get; set; } // 是否上架 (1为上架,0为下架)
|
|
|
|
|
public string createTime { get; set; } // 创建时间
|
2024-11-27 00:17:30 +08:00
|
|
|
|
}
|