Files
back_cantanBuilding/Assets/Scripts/Services/ClubModel.cs
2026-05-26 16:15:54 +08:00

334 lines
9.5 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace game
{
public enum EClubType : byte
{
UI_ClubCreatePopupPanel_11 = 0, //open
UI_ClubCreatePopupPanel_12 = 1, //application
UI_ClubCreatePopupPanel_13 = 2 //invisible
}
public enum EMemberRole : byte
{
Owner = 0,
Vice = 1,//副会长
Member = 2,
Elder = 3,//长老
//Elite = 4,//精英
}
public class GetSelfClubRequest
{
#pragma warning disable CS8618
public string playerId { get; set; }
#pragma warning restore CS8618
}
public class GetSelfClubResp
{
[DefaultValue(EMemberRole.Member)]
public EMemberRole role { get; set; }
public DateTime? signTime { get; set; }
public ClubInfo clubInfo { get; set; }
public Dictionary<long, string> playerIDs { get; set; }
public List<ClubPlayerProfile> clubPlayerProfiles { get; set; }
}
public class ClubPlayerProfile
{
public DateTime? lastLoginTime { get; set; }
public int level { get; set; }
public string playerId { get; set; }
public long internalId { get; set; }
public long chestIntegral { get; set; }
public string avatar { get; set; }
public string displayName { get; set; }
public EMemberRole role { get; set; } = EMemberRole.Member;
}
public class GetClubsRequest
{
//clubName == null 推荐俱乐部
public string clubName { get; set; }
}
public class GetClubsResp
{
public List<ClubInfo> clubInfo { get; set; }
}
public class GetClubDetailsRequest
{
public ulong id { get; set; }
public string playerId { get; set; }
public bool applyState { get; set; }
}
public class GetClubDetailsResp
{
public string ownerID { get; set; }
public Dictionary<long, string> playerIDs { get; set; }
public List<ClubPlayerProfile> clubPlayerProfiles { get; set; }
public bool applyState { get; set; }
}
public class ClubInfo
{
public ulong id { get; set; }
public ClubSettingData clubSettingData { get; set; }
[DefaultValue(0)]
public int points { get; set; }
public long chestIntegral { get; set; }
[DefaultValue(30)]
public int maxMembers { get; set; }
public int curMembers { get; set; }
}
public class ClubSettingData
{
public string clubName { get; set; }
public int type { get; set; }
public int gradeReq { get; set; }
public string description { get; set; }
public string icon { get; set; }
}
public class CreateClubRequest
{
public string playerId { get; set; }
public string entityKey { get; set; } = "";
public ClubSettingData clubSettingData { get; set; }
}
public class CreateClubResp
{
public int code { get; set; }//0成功 1已经加入了俱乐部 2 失败
public ClubInfo clubInfo { get; set; }
}
public class UpdateClubRequest
{
public ulong id { get; set; }
public ClubSettingData clubSettingData { get; set; }
}
public class UpdateClubResp
{
[DefaultValue(0)]
public int code { get; set; }
}
public class ApplyClubRequest
{
public string playerId { get; set; }
public string entityKey { get; set; } = "";
public ulong id { get; set; }
}
public class ApplyClubResp
{
[DefaultValue(0)]
public int code { get; set; }//0成功 1等待审核 2已经加入了俱乐部 3俱乐部人数已满 4俱乐部不存在
public ClubInfo clubInfo { get; set; }
public Dictionary<long, string> playerIDs { get; set; }
public List<ClubPlayerProfile> clubPlayerProfiles { get; set; }
}
public class QuitClubRequest
{
public string playerId { get; set; }
public string appointId { get; set; }
}
public class QuitClubResp
{
[DefaultValue(0)]
public int code { get; set; }//0成功 1不在俱乐部里 2是会长不能退出俱乐部
}
public class KickoutClubRequest
{
public ulong culbId { get; set; }
public string playerId { get; set; }
public string kickoutId { get; set; }
}
public class KickoutClubResp
{
[DefaultValue(0)]
public int code { get; set; }//0成功 1不在俱乐部里 2不是会长 3被踢的人不在俱乐部里
}
public class DemoteClubRequest
{
public ulong culbId { get; set; }
public string playerId { get; set; }
public string demoteId { get; set; }
}
public class DemoteClubResp
{
[DefaultValue(0)]
public int code { get; set; }//0成功 1不在俱乐部里 2权限不足
}
public class PromoteClubRequest
{
public ulong culbId { get; set; }
public string playerId { get; set; }
public string promoteId { get; set; }
public EMemberRole role { get; set; }
}
public class PromoteClubResp
{
[DefaultValue(0)]
public int code { get; set; }//0成功 1不在俱乐部里 2权限不足
public EMemberRole role { get; set; }
}
public class ReadClubEventRequest
{
public string playerId { get; set; }
}
public class ReadClubEventResp
{
[DefaultValue(0)]
public int code { get; set; }
}
public class GetApplyListRequest
{
public string playerId { get; set; }
public ulong id { get; set; }
}
public class GetApplyListResp
{
public List<string> userIDList { get; set; }
public List<string> entityKeys { get; set; }
public List<ClubPlayerProfile> clubPlayerProfiles { get; set; }
}
public class HandleApplyRequest
{
public ulong id { get; set; }
public string playerId { get; set; }
public string entityKey { get; set; } = "";
public bool isAgree { get; set; }
}
public class HandleApplyResp
{
[DefaultValue(0)]
public int code { get; set; }//0成功 1不在俱乐部里 2不是会长 3申请不存在
}
public class ClubSinginRequest
{
public string playerId { get; set; }
public ulong id { get; set; }
}
public class ClubSinginResp
{
public int code { get; set; }//0成功 1已经签到 2俱乐部不存在
}
//捐赠照片
public class ClubDonateRequest
{
//捐赠人ID
public string donateId { get; set; }
//捐赠消息ID
public long cursorId { get; set; }
//被捐赠人ID
public string playerId { get; set; }
public int pictureID { get; set; }
public ulong id { get; set; }
}
public class ClubDonateResp
{
[DefaultValue(0)]
public int code { get; set; }//0成功 1 已经捐赠
//捐赠人ID
public string donateId { get; set; }
}
//捐赠状态获取
public class GetDonateStatusRequest
{
public long cursorId { get; set; }
public ulong id { get; set; }
}
public class GetDonateStatusResp
{
public string donateId { get; set; }
}
public class GetPictureRequest
{
public string playerId { get; set; }
public DateTime? removeTime { get; set; }
public DateTime? lastTime { get; set; }
}
public class GetPictureResp
{
public List<PictureData> pictureDataList { get; set; }
public List<EventPopupData> eventPopupDatas { get; set; }
}
public class EventPopupData
{
public string playerID { get; set; }
public ReportDataType type { get; set; }
public int redirectID { get; set; }
public string content { get; set; }
public DateTime createTime { get; set; }
public bool IsRead { get; set; }
}
public class PictureData
{
public int pictureID { get; set; }
public string donateId { get; set; }
}
public class ClubLikeRequest
{
public long cursorId { get; set; }
public ulong id { get; set; }
}
public class ClubLikeResp
{
//[DefaultValue(0)]
//public int count { get; set; }
}
public class GetLikeCountRequest
{
public long cursorId { get; set; }
public ulong id { get; set; }
}
public class GetLikeCountResp
{
[DefaultValue(0)]
public int count { get; set; }
}
//体力求助赠送
public class ClubHelpEnergyRequest
{
//捐赠人ID
public string donateId { get; set; }
//捐赠消息ID
public long cursorId { get; set; }
//被捐赠人ID
public string playerId { get; set; }
//工会id
public ulong id { get; set; }
}
public class ClubHelpEnergyResp
{
[DefaultValue(0)]
public int code { get; set; }
public string idContent { get; set; }
}
public class GetHelpEnergyStatusRequest
{
public long cursorId { get; set; }
public ulong id { get; set; }
}
public class GetHelpEnergyStatusResp
{
public string idContent { get; set; }
}
public class MessageChatType
{
public const string IN = "IN";
public const string OUT = "OUT";
public const string SI = "SI";
public const string DEMOTE = "DEMOTE";
public const string PROMOTE = "PROMOTE";
public const string CHEST = "CHEST";
}
}