每日自动提交 2026-04-10 18:30
This commit is contained in:
@@ -95,6 +95,37 @@ namespace Assets.MyGame.Scripts.Net
|
||||
|
||||
// ---------------- System ----------------
|
||||
dic_API[APIType.System_AddUser] = "/api/System/user/add";
|
||||
|
||||
// ---------------- BeautifulNumber ----------------
|
||||
dic_API[APIType.BeautifulNumber_Available] = "/api/BeautifulNumber/available";
|
||||
dic_API[APIType.BeautifulNumber_Check] = "/api/BeautifulNumber/check/{number}";
|
||||
|
||||
// ---------------- Feedback ----------------
|
||||
dic_API[APIType.Feedback_Submit] = "/api/Feedback/Submit";
|
||||
dic_API[APIType.Feedback_MyList] = "/api/Feedback/MyList";
|
||||
dic_API[APIType.Feedback_Detail] = "/api/Feedback/Detail";
|
||||
|
||||
// ---------------- Hall(补充)----------------
|
||||
dic_API[APIType.Hall_GetUserRewardList] = "/api/Hall/GetUserRewardList";
|
||||
|
||||
// ---------------- Login(补充)----------------
|
||||
dic_API[APIType.Login_GetDateTime] = "/api/Login/GetDateTime";
|
||||
|
||||
// ---------------- User ----------------
|
||||
dic_API[APIType.User_RealNameAuth] = "/api/User/RealNameAuth";
|
||||
dic_API[APIType.User_UpdateUserName] = "/api/User/UpdateUserName";
|
||||
dic_API[APIType.User_BindWX] = "/api/User/BindWX";
|
||||
dic_API[APIType.User_BindMobile] = "/api/User/BindMobile";
|
||||
dic_API[APIType.User_UpdateAvatar] = "/api/User/UpdateAvatar";
|
||||
dic_API[APIType.User_GetUser] = "/api/User/GetUser";
|
||||
dic_API[APIType.User_GetUserList] = "/api/User/GetUserList";
|
||||
dic_API[APIType.User_SendEmail] = "/api/User/SendEmail";
|
||||
dic_API[APIType.User_GetEmail] = "/api/User/GetEmail";
|
||||
dic_API[APIType.User_RewardEmail] = "/api/User/RewardEmail";
|
||||
dic_API[APIType.User_DeleteEmail] = "/api/User/DeleteEmail";
|
||||
dic_API[APIType.User_ReadEmailMore] = "/api/User/ReadEmailMore";
|
||||
dic_API[APIType.User_GetNoReadCount] = "/api/User/GetNoReadCount";
|
||||
dic_API[APIType.User_GetEmailByPage] = "/api/User/GetEmailByPage";
|
||||
}
|
||||
|
||||
// ---------------- GET ----------------
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.MyGame.Scripts.Net.APIRequest.Objs
|
||||
{
|
||||
[Serializable]
|
||||
public class GetEmailByPageObj:RequestObjBase
|
||||
{
|
||||
public string keyWord;
|
||||
public int pageIndex;
|
||||
public int pageSize;
|
||||
public int readStatus;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d4cf1e550f8f7b84091ecdd30ee2979e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
|
||||
namespace Assets.MyGame.Scripts.Net.APIRequest.Params
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取邮件详情(GET)
|
||||
/// 参数:id(邮件ID)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class GetEmailParam : RequestParamBase
|
||||
{
|
||||
/// <summary>邮件 ID</summary>
|
||||
public string id;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 领取邮箱奖励(GET)
|
||||
/// type: 1=指定邮件 2=全部未领取的
|
||||
/// id: type=1 时传邮件 ID,type=2 可不传
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class RewardEmailParam : RequestParamBase
|
||||
{
|
||||
/// <summary>1=指定邮件 2=全部未领取的</summary>
|
||||
public int type;
|
||||
|
||||
/// <summary>邮件 ID(type=1 时必填)</summary>
|
||||
public string id;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除已读邮件(GET)
|
||||
/// type: 1=指定邮件 2=全部已读已领取邮件
|
||||
/// id: type=1 时传邮件 ID,type=2 可不传
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class DeleteEmailParam : RequestParamBase
|
||||
{
|
||||
/// <summary>1=指定邮件 2=全部已读已领取邮件</summary>
|
||||
public int type;
|
||||
|
||||
/// <summary>邮件 ID(type=1 时必填)</summary>
|
||||
public string id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using Assets.MyGame.Scripts.Net.APIRequest.Objs;
|
||||
using Assets.MyGame.Scripts.Net.APIRequest.Params;
|
||||
using Assets.MyGame.Scripts.Net.APIResponses.HomeMain_User;
|
||||
using System;
|
||||
|
||||
namespace Assets.MyGame.Scripts.Net
|
||||
{
|
||||
public static partial class APIRequestList
|
||||
{
|
||||
#region User_Email
|
||||
|
||||
/// <summary>
|
||||
/// 获取邮件列表(POST)
|
||||
/// 参数:keyWord / pageIndex / pageSize / readStatus
|
||||
/// 返回:GetEmailByPageResponse(邮件列表,分页)
|
||||
/// </summary>
|
||||
public static void GetEmailByPage(GetEmailByPageObj req, Action<GetEmailByPageResponse> callback)
|
||||
{
|
||||
APIManager.Response<GetEmailByPageResponse>(APIType.User_GetEmailByPage, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取邮件详情,未读自动变为已读(GET)
|
||||
/// 参数:邮件 id (Param)
|
||||
/// 返回:GetEmailByPageResponse(单封邮件)
|
||||
/// </summary>
|
||||
public static void GetEmail(GetEmailParam req, Action<GetEmailByPageResponse> callback)
|
||||
{
|
||||
APIManager.Response<GetEmailByPageResponse>(APIType.User_GetEmail, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 领取邮箱奖励(GET)
|
||||
/// 参数:邮件 id (Param)
|
||||
/// 返回:string(结果提示)
|
||||
/// </summary>
|
||||
public static void RewardEmail(RewardEmailParam req, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<string>(APIType.User_RewardEmail, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除已读邮件(GET)
|
||||
/// 参数:邮件 id (Param)
|
||||
/// 返回:string(结果提示)
|
||||
/// </summary>
|
||||
public static void DeleteEmail(DeleteEmailParam req, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<string>(APIType.User_DeleteEmail, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 一键阅读所有未读邮件(GET,无参)
|
||||
/// 返回:string(结果提示)
|
||||
/// </summary>
|
||||
public static void ReadEmailMore(Action<string> callback)
|
||||
{
|
||||
APIManager.Response<string>(APIType.User_ReadEmailMore, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取未读邮件数量(GET,无参)
|
||||
/// 返回:long(未读数量)
|
||||
/// </summary>
|
||||
public static void GetNoReadCount(Action<long> callback)
|
||||
{
|
||||
APIManager.Response<long>(APIType.User_GetNoReadCount, callback);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a61f39502f16c9e49bb30accc8e5415a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -8,5 +8,5 @@ public class APIResponse<T>
|
||||
public int code;
|
||||
public string info;
|
||||
public T data;
|
||||
|
||||
public int count;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c0ae58a1cbed9fd409487890940edf57
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.MyGame.Scripts.Net.APIResponses.HomeMain_User
|
||||
{
|
||||
[Serializable]
|
||||
public class GetEmailByPageResponse
|
||||
{
|
||||
public string id;
|
||||
public bool isDelete;
|
||||
public CreateInfo createInfo;
|
||||
public string userId;
|
||||
public string title;
|
||||
public string content;
|
||||
public long sendTime;
|
||||
public long readTime;
|
||||
public bool isRead;
|
||||
public bool isReward;
|
||||
public int rewardDiamond;
|
||||
public int rewardGold;
|
||||
public List<RewardItem> rewardItems;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class CreateInfo
|
||||
{
|
||||
public string userId;
|
||||
public string userName;
|
||||
public long optionTime;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class RewardItem
|
||||
{
|
||||
public string number;
|
||||
public string name;
|
||||
public string desc;
|
||||
public string imageUrl;
|
||||
public int type;
|
||||
public int level;
|
||||
public int count;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58538174a4f1cf24c8b70779ba9f769b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d130f9f184c3ff34eb8c8fee71d6138f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.MyGame.Scripts.Net.APIResponses.Login_SubClass
|
||||
{
|
||||
[Serializable]
|
||||
public class DefaultAPIResponse
|
||||
{
|
||||
public int code;
|
||||
public string? info;
|
||||
public string data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c56ed098f6dd7c4c99acaad8c769ed7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -196,6 +196,79 @@
|
||||
|
||||
// ---------------- System ----------------
|
||||
/// <summary>添加系统用户(POST)</summary>
|
||||
System_AddUser
|
||||
System_AddUser,
|
||||
|
||||
|
||||
// ---------------- BeautifulNumber ----------------
|
||||
/// <summary>获取可购买的靓号列表(GET)</summary>
|
||||
BeautifulNumber_Available,
|
||||
|
||||
/// <summary>查询靓号信息(GET)</summary>
|
||||
BeautifulNumber_Check,
|
||||
|
||||
|
||||
// ---------------- Feedback ----------------
|
||||
/// <summary>提交反馈(POST)</summary>
|
||||
Feedback_Submit,
|
||||
|
||||
/// <summary>获取我的反馈列表(GET)</summary>
|
||||
Feedback_MyList,
|
||||
|
||||
/// <summary>获取反馈详情(GET)</summary>
|
||||
Feedback_Detail,
|
||||
|
||||
|
||||
// ---------------- Hall(补充)----------------
|
||||
/// <summary>获取资产变动记录(GET)</summary>
|
||||
Hall_GetUserRewardList,
|
||||
|
||||
|
||||
// ---------------- Login(补充)----------------
|
||||
/// <summary>获取服务器时间(GET)</summary>
|
||||
Login_GetDateTime,
|
||||
|
||||
|
||||
// ---------------- User ----------------
|
||||
/// <summary>实名认证(GET)</summary>
|
||||
User_RealNameAuth,
|
||||
|
||||
/// <summary>修改名称(GET)</summary>
|
||||
User_UpdateUserName,
|
||||
|
||||
/// <summary>绑定微信(GET)</summary>
|
||||
User_BindWX,
|
||||
|
||||
/// <summary>绑定手机号(GET)</summary>
|
||||
User_BindMobile,
|
||||
|
||||
/// <summary>更新头像(GET)</summary>
|
||||
User_UpdateAvatar,
|
||||
|
||||
/// <summary>获取用户信息(GET)</summary>
|
||||
User_GetUser,
|
||||
|
||||
/// <summary>获取用户列表·分页查询(POST)</summary>
|
||||
User_GetUserList,
|
||||
|
||||
/// <summary>发送邮件(POST)</summary>
|
||||
User_SendEmail,
|
||||
|
||||
/// <summary>获取邮件·未读变已读(GET)</summary>
|
||||
User_GetEmail,
|
||||
|
||||
/// <summary>领取邮箱奖励(GET)</summary>
|
||||
User_RewardEmail,
|
||||
|
||||
/// <summary>删除已读邮件(GET)</summary>
|
||||
User_DeleteEmail,
|
||||
|
||||
/// <summary>一键阅读(GET)</summary>
|
||||
User_ReadEmailMore,
|
||||
|
||||
/// <summary>获取未读邮件数量(GET)</summary>
|
||||
User_GetNoReadCount,
|
||||
|
||||
/// <summary>获取邮件列表(POST)</summary>
|
||||
User_GetEmailByPage,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user