每日自动提交 2026-04-14 18:30

This commit is contained in:
2026-04-14 18:30:34 +08:00
parent bedd7c2096
commit ee94087bc2
18 changed files with 1051 additions and 221 deletions
@@ -0,0 +1,92 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.MyGame.Scripts.Net.APIRequest.Objs
{
/// <summary>
/// 发起会话请求对象(POST)
/// </summary>
public class StartConversationObj : RequestObjBase
{
/// <summary>
/// 用户ID
/// </summary>
public string userId;
/// <summary>
/// 用户名称
/// </summary>
public string userName;
}
/// <summary>
/// 发送消息请求对象(POST)
/// </summary>
public class SendMessageObj : RequestObjBase
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
/// <summary>
/// 发送者类型(1:用户 2:客服)
/// </summary>
public int senderType;
/// <summary>
/// 发送者ID
/// </summary>
public string senderId;
/// <summary>
/// 发送者名称
/// </summary>
public string senderName;
/// <summary>
/// 发送者头像
/// </summary>
public string senderAvatar;
/// <summary>
/// 内容类型(1:文字 2:图片)
/// </summary>
public int contentType;
/// <summary>
/// 消息内容(文字内容或图片URL)
/// </summary>
public string content;
}
/// <summary>
/// 结束会话请求对象(POST)
/// </summary>
public class EndConversationObj : RequestObjBase
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
}
/// <summary>
/// 更新客服状态请求对象(POST)
/// </summary>
public class UpdateCustomerStatusObj : RequestObjBase
{
/// <summary>
/// 客服用户ID
/// </summary>
public string userId;
/// <summary>
/// 状态(0:离线 1:在线)
/// </summary>
public int status;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 068e63fe851e0524a98e54d4246c6541
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.MyGame.Scripts.Net.APIRequest.Params
{
/// <summary>
/// 获取会话列表参数(GET)
/// </summary>
[Serializable]
public class GetConversationsParam : RequestParamBase
{
/// <summary>
/// 客服ID(可选)
/// </summary>
public string customerId;
}
/// <summary>
/// 获取消息列表参数(GET)
/// </summary>
[Serializable]
public class GetMessagesParam : RequestParamBase
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2d88d23486653804688ff33c51c1dbb3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: