using Microsoft.AspNetCore.Mvc;
|
using Newtonsoft.Json;
|
using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEAWCS_Core;
|
using WIDESEAWCS_Core.BaseRepository;
|
using WIDESEAWCS_Core.BaseServices;
|
using WIDESEAWCS_IBasicInfoService;
|
using WIDESEAWCS_Model.Models;
|
|
|
namespace WIDESEAWCS_BasicInfoService
|
{
|
public class InterfaceLogService : ServiceBase<Dt_InterfaceLog, IRepository<Dt_InterfaceLog>>, IInterfaceLogService
|
{
|
public InterfaceLogService(IRepository<Dt_InterfaceLog> BaseDal) : base(BaseDal)
|
{
|
}
|
|
public IRepository<Dt_InterfaceLog> Repository => BaseDal;
|
/// <summary>
|
/// 添加日志
|
/// </summary>
|
/// <param name="ApiCode">接口编号</param>
|
/// <param name="ApiName">接口名称</param>
|
/// <param name="ApiAddress">接口地址</param>
|
/// <param name="Requestor">请求方</param>
|
/// <param name="RequestParameters">请求内容</param>
|
/// <param name="Recipient">接收方</param>
|
/// <param name="ResponseParameters">响应内容</param>
|
/// <param name="Add">是否添加</param>
|
/// <returns></returns>
|
public WebResponseContent AddInterfaceLog(string ApiCode, string ApiName, string ApiAddress, string Requestor, string RequestParameters, string Recipient, string ResponseParameters, bool Add)
|
{
|
WebResponseContent content = new WebResponseContent();
|
try
|
{
|
|
}
|
catch (Exception ex)
|
{
|
content.Error(ex.Message);
|
}
|
return content;
|
}
|
}
|
}
|