工单 优化 ,增加图片
This commit is contained in:
1 parent
bf5a70597c
commit
cf2efbcb16
27 files changed
+3555
-1538
No files matched your search
@@ -1,4 +1,4 @@
|
||||
using OrderSupportTicket.Models;
|
||||
using OrderSupportTicket.Models;
|
||||
using OrderSupportTicket.Models.Api;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
@@ -137,14 +137,50 @@ public sealed class TicketService : IDisposable
|
||||
TicketClientOptions options,
|
||||
WorkOrderSummaryDto workOrder,
|
||||
string text,
|
||||
string clientMessageId)
|
||||
string clientMessageId,
|
||||
IList<MessageAttachmentReceipt> attachments = null)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return _api.SendMessageAsync(
|
||||
options,
|
||||
workOrder,
|
||||
text,
|
||||
clientMessageId);
|
||||
clientMessageId,
|
||||
attachments);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 申请单张图片的短时直传凭证。
|
||||
/// </summary>
|
||||
public Task<ImageUploadTicketResponse> CreateImageUploadTicketAsync(
|
||||
TicketClientOptions options,
|
||||
string appId,
|
||||
string wechatOrderId,
|
||||
string fileName,
|
||||
string mimeType,
|
||||
long size,
|
||||
string requestId = null)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return _api.CreateImageUploadTicketAsync(
|
||||
options,
|
||||
appId,
|
||||
wechatOrderId,
|
||||
fileName,
|
||||
mimeType,
|
||||
size,
|
||||
requestId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 将图片二进制直接上传到 COS,返回留言接口需要的回执。
|
||||
/// </summary>
|
||||
public Task<MessageAttachmentReceipt> UploadImageAsync(
|
||||
ImageUploadTicketDto upload,
|
||||
string filePath)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
return _api.UploadImageAsync(upload, filePath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user