ComplianceServer/oldcode/ZXDService/IOrderService.cs

269 lines
12 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using CRM.Core.BLL.Util;
using CRM.Core.BLL.Wx;
using CRM.Core.DTO;
using CRM.Core.DTO.Ord;
using CRM.Core.Model.EntityStock;
using System;
using System.Collections.Generic;
using System.IO;
using System.ServiceModel;
using System.ServiceModel.Web;
namespace ZXDService
{
// 注意: 使用“重构”菜单上的“重命名”命令可以同时更改代码和配置文件中的接口名“IOrderService”。
[ServiceContract]
public interface IOrderService
{
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "DoWork/get/{id}")]
JsonResult<string> DoWork(string id);
/// <summary>
/// 订单审核
/// </summary>
/// <param name="content"></param>
/// <param name="clientid"></param>
/// <param name="sign"></param>
/// <returns></returns>
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/Audit?content={content}&clientid={clientid}&sign={sign}")]
Stream OrderAudit(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/Create?content={content}&clientid={clientid}&sign={sign}")]
Stream OrderCreate(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
//RequestFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/Update?orderId={orderId}&source={source}&customerusername={customerusername}&wework_remoteid={wework_remoteid}&external_userid={external_userid}&remark={remark}&fujian={fujian}&jobuserid={jobuserid}&corpid={corpid}&orderType={orderType}&estimateotime={estimateotime}")]
JsonResult<string> OrderUpdate(int orderId, string source, string customerusername, string wework_remoteid, string external_userid, string remark, string fujian, string jobuserid, string corpid, int orderType, string estimateotime);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "OrderPay/Create?content={content}&clientid={clientid}&sign={sign}")]
Stream OrderPayCreate(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "FreeOrder/Open?content={content}&clientid={clientid}&sign={sign}")]
Stream OpenFreeOrder(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "FreeOrderByUserName/Open?content={content}&clientid={clientid}&sign={sign}")]
Stream OpenFreeOrderByUserName(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "FreeOrder/Close?content={content}&clientid={clientid}&sign={sign}")]
Stream CloeaFreeeOrder(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Contract/SignRet?content={content}&clientid={clientid}&sign={sign}")]
Stream Contract_Sign_Ret(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Protocol/SignRet?content={content}&clientid={clientid}&sign={sign}")]
Stream Contract_Sign_Protocol_Ret(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Protocol/Status?content={content}&clientid={clientid}&sign={sign}")]
Stream Protocol_Status(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "RefundContract/SignRet?content={content}&clientid={clientid}&sign={sign}")]
Stream RefundContract(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/Supply?content={content}&clientid={clientid}&sign={sign}")]
Stream SupplyOrder(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Contract/Audit?content={content}&clientid={clientid}&sign={sign}")]
Stream ContractAudit(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "RefundContract/Audit?content={content}&clientid={clientid}&sign={sign}")]
Stream RefundContractAudit(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "POST",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/RefundApply")]
Stream RefundApply(Stream file);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/Refund?content={content}&clientid={clientid}&sign={sign}")]
Stream Refund(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/HgRecord?content={content}&clientid={clientid}&sign={sign}")]
Stream OrderHgRecord(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "OrderDeposit/Add?content={content}&clientid={clientid}&sign={sign}")]
Stream OrderDepositAdd(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "OrderDeposit/Use?content={content}&clientid={clientid}&sign={sign}")]
Stream OrderDepositUse(string content, string clientid, string sign);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/SetOrderEid?orderid={orderid}&channel={channel}&deptcode={deptcode}")]
JsonResult<string> SetOrderEid(int orderid, int channel, string deptcode);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/Get?page={page}&limit={limit}&orderId={orderId}&orderType={orderType}&stime={stime}&etime={etime}&orderStatus={orderStatus}&resId={resId}&companyCode={companyCode}&szzyOrderId={szzyOrderId}&productId={productId}&subProductId={subProductId}&channel={channel}&aiCallType={aiCallType}&aistime={aistime}&aietime={aietime}")]
JsonResult<List<OrderDto>> GetOrder(int page, int limit, decimal orderId, decimal orderType, DateTime stime, DateTime etime, string orderStatus, string resId, string companyCode, decimal szzyOrderId, int productId, int subProductId, string channel,int aiCallType,DateTime aistime,DateTime aietime);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/GetAiStatus?orderIdList={orderIdList}&resId={resId}")]
JsonResult<List<WX_SZZYORDER_AIStatusView>> GetOrderByIdList(string orderIdList,string resId);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/GetAiConfig")]
JsonResult<List<AI_CallTaskConfig>> GetAiConfig();
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/GetAiAudioRecord?page={page}&limit={limit}&resId={resId}")]
JsonResult<List<AiAudioRecord>> GetAiAudioRecord(int page,int limit,string resId);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
//RequestFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/UpdateAiTime?orderId={orderId}&startTime={startTime}&endTime={endtime}")]
JsonResult<string> OrderUpdateAiTime(int orderId, string startTime, string endtime);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
//RequestFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/UpdateAiStatus?filterId={filterId}&status={status}&type={type}")]
JsonResult<string> OrderUpdateAiStatus(string filterId, int status, int type = 1);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Stock/Get?page={page}&limit={limit}&gpcode={gpcode}")]
JsonResult<List<StockPoolDataFlash>> GetStockFlash(int page, int limit, string gpcode);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Cache/Clear")]
string ClearCache();
/// <summary>
/// 人工赠送订单
/// </summary>
/// <param name="content"></param>
/// <param name="clientid"></param>
/// <param name="sign"></param>
/// <returns></returns>
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "OrderHandleGift/Add?content={content}&clientid={clientid}&sign={sign}")]
Stream OrderHandleGift(string content, string clientid, string sign);
/// <summary>
/// 根据订单id获取手工赠送订单商品
/// </summary>
/// <param name="content"></param>
/// <param name="clientid"></param>
/// <param name="sign"></param>
/// <returns></returns>
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Order/GetSuProductIdByOrderId?content={content}&clientid={clientid}&sign={sign}")]
Stream GetSuProductIdByOrderId(string content, string clientid, string sign);
//[OperationContract]
//[WebInvoke(Method = "*",
// ResponseFormat = WebMessageFormat.Json,
// BodyStyle = WebMessageBodyStyle.Bare,
// UriTemplate = "Order/Get?page={page}&limit={limit}&orderId={orderId}")]
//JsonResult<List<OrderDto>> GetOrder(int page, int limit, decimal orderId);
}
}