72 lines
2.4 KiB
C#
72 lines
2.4 KiB
C#
using System;
|
||||
|
|
|
|||
|
|
namespace Assets.MyGame.Scripts.Net.APIRequest.Params
|
|||
|
|
{
|
|||
|
|
// ============================================================
|
|||
|
|
// 补充参数类:以下接口暂未接入业务,但已注册到 APIManager,
|
|||
|
|
// 方便后续快速接入。按 swagger 路径分组放置。
|
|||
|
|
// ============================================================
|
|||
|
|
|
|||
|
|
// ---------------- /api/Login/LoginByPassword(POST) ----------------
|
|||
|
|
/// <summary>密码登录请求体</summary>
|
|||
|
|
[Serializable]
|
|||
|
|
public class LoginByPasswordParam : RequestParamBase
|
|||
|
|
{
|
|||
|
|
/// <summary>账号(手机号/用户名)</summary>
|
|||
|
|
public string account;
|
|||
|
|
/// <summary>密码</summary>
|
|||
|
|
public string password;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// ---------------- /api/User/GetFishingReturnInfo(GET) ----------------
|
|||
|
|
/// <summary>获取捕鱼返利信息参数</summary>
|
|||
|
|
[Serializable]
|
|||
|
|
public class GetFishingReturnInfoParam : RequestParamBase
|
|||
|
|
{
|
|||
|
|
// 后端文档未明确字段,预留 userId;按需补充
|
|||
|
|
public string userId;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// ---------------- /api/User/ClaimFishingReturn(GET) ----------------
|
|||
|
|
/// <summary>领取捕鱼返利参数</summary>
|
|||
|
|
[Serializable]
|
|||
|
|
public class ClaimFishingReturnParam : RequestParamBase
|
|||
|
|
{
|
|||
|
|
public string userId;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// ---------------- /api/Lottery/Draw(GET) ----------------
|
|||
|
|
/// <summary>抽奖参数</summary>
|
|||
|
|
[Serializable]
|
|||
|
|
public class LotteryDrawParam : RequestParamBase
|
|||
|
|
{
|
|||
|
|
/// <summary>抽奖活动 ID(按后端定义补充)</summary>
|
|||
|
|
public int lotteryId;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// ---------------- /api/SummonCard/use(GET) ----------------
|
|||
|
|
/// <summary>使用召唤卡参数</summary>
|
|||
|
|
[Serializable]
|
|||
|
|
public class SummonCardUseParam : RequestParamBase
|
|||
|
|
{
|
|||
|
|
/// <summary>召唤卡编号</summary>
|
|||
|
|
public string cardNumber;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// ---------------- /api/Dict/GetByCode(GET) ----------------
|
|||
|
|
/// <summary>字典查询参数(按 code 取单条)</summary>
|
|||
|
|
[Serializable]
|
|||
|
|
public class DictGetByCodeParam : RequestParamBase
|
|||
|
|
{
|
|||
|
|
public string code;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// ---------------- /api/Dict/GetListByCode(GET) ----------------
|
|||
|
|
/// <summary>字典列表查询参数(按 code 取列表)</summary>
|
|||
|
|
[Serializable]
|
|||
|
|
public class DictGetListByCodeParam : RequestParamBase
|
|||
|
|
{
|
|||
|
|
public string code;
|
|||
|
|
}
|
|||
|
|
}
|