c# - autoMapper 相关错误,在 lambda_method19(Closure , Head , Head , ResolutionContext )
问题描述
请帮助问候自动映射器
个人资料页 -
CreateMap<ReqPay,ReqPayDb>()
.ForMember(dest => dest.ReqpayID,opt => opt.Ignore() )
.ForMember(dest => dest.Etc,opt => opt.Ignore() )
.ForMember(dest => dest.Head, opt => opt.MapFrom(src => src.Head))
.ForMember(dest => dest.Txn, opt => opt.MapFrom(src => src.Txn))
.ForMember(dest => dest.Merchant, opt => opt.MapFrom(Src => Src.Merchant))
.ForMember(dest => dest.Meta, opt => opt.MapFrom(src => src.Meta))
.ForMember(dest => dest.Vehicle, opt => opt.MapFrom(src => src.Vehicle))
.ForMember(dest => dest.Payer, opt => opt.MapFrom(src => src.Payer))
.ForMember(dest => dest.Payee, opt => opt.MapFrom(src => src.Payee))
;
Reqpay 是我们的 DTO 类
namespace Dtos.ReqPay
{
[Serializable, XmlRoot(ElementName = "ReqPay")]
public class ReqPay
{
[XmlElement(ElementName = "Head")]
public Head Head { get; set; }
[XmlElement(ElementName = "Txn")]
public Txn Txn { get; set; }
[XmlElement(ElementName = "Merchant")]
public Merchant Merchant { get; set; }
[XmlElement(ElementName = "Meta")]
public Meta Meta { get; set; }
[XmlElement(ElementName = "Vehicle")]
public Vehicle Vehicle { get; set; }
[XmlElement(ElementName = "Payer")]
public Payer Payer { get; set; }
[XmlElement(ElementName = "Payee")]
public Payee Payee { get; set; }
[XmlElement(ElementName = "Signature", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public Signature Signature { get; set; }
[XmlAttribute(AttributeName = "etc", Namespace = "http://www.w3.org/2000/xmlns/")]
public string Etc { get; set; }
}
[XmlRoot(ElementName = "Head")]
public class Head
{
[XmlAttribute(AttributeName = "ver")]
public string Ver { get; set; }
[XmlAttribute(AttributeName = "ts")]
public string Ts { get; set; }
[XmlAttribute(AttributeName = "orgId")]
public string OrgId { get; set; }
[XmlAttribute(AttributeName = "msgId")]
public string MsgId { get; set; }
}
[XmlRoot(ElementName = "Tag")]
public class Tag
{
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "value")]
public string Value { get; set; }
}
[XmlRoot(ElementName = "Meta")]
public class Meta
{
[XmlElement(ElementName = "Tag")]
public List<Tag> Tag { get; set; }
}
[XmlRoot(ElementName = "Score")]
public class Score
{
[XmlAttribute(AttributeName = "provider")]
public string Provider { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
[XmlAttribute(AttributeName = "value")]
public string Value { get; set; }
}
[XmlRoot(ElementName = "RiskScores")]
public class RiskScores
{
[XmlElement(ElementName = "Score")]
public Score Score { get; set; }
}
public partial class Txn
{
[XmlElement(ElementName = "RiskScores")]
public RiskScores RiskScores { get; set; }
[XmlAttribute(AttributeName = "id")]
public string Id { get; set; }
[XmlAttribute(AttributeName = "note")]
public string Note { get; set; }
[XmlAttribute(AttributeName = "refId")]
public string RefId { get; set; }
[XmlAttribute(AttributeName = "refUrl")]
public string RefUrl { get; set; }
[XmlAttribute(AttributeName = "ts")]
public string Ts { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
[XmlAttribute(AttributeName = "orgTxnId")]
public string OrgTxnId { get; set; }
}
[XmlRoot(ElementName = "Lane")]
public class Lane
{
[XmlAttribute(AttributeName = "id")]
public string Id { get; set; }
[XmlAttribute(AttributeName = "direction")]
public string Direction { get; set; }
[XmlAttribute(AttributeName = "readerId")]
public string ReaderId { get; set; }
}
[XmlRoot(ElementName = "Parking")]
public class Parking
{
[XmlAttribute(AttributeName = "floor")]
public string Floor { get; set; }
[XmlAttribute(AttributeName = "zone")]
public string Zone { get; set; }
[XmlAttribute(AttributeName = "slotId")]
public string SlotId { get; set; }
[XmlAttribute(AttributeName = "readerId")]
public string ReaderId { get; set; }
}
[Serializable, XmlRoot(ElementName = "ReaderVerificationResult")]
public class ReaderVerificationResult
{
[XmlAttribute(AttributeName = "tsRead")]
public string TsRead { get; set; }
[XmlAttribute(AttributeName = "signData")]
public string SignData { get; set; }
[XmlAttribute(AttributeName = "signAuth")]
public string SignAuth { get; set; }
[XmlAttribute(AttributeName = "epcVerified")]
public string EpcVerified { get; set; }
[XmlAttribute(AttributeName = "procRestrictionResult")]
public string ProcRestrictionResult { get; set; }
[XmlAttribute(AttributeName = "vehicleAuth")]
public string VehicleAuth { get; set; }
[XmlAttribute(AttributeName = "publicKeyCVV")]
public string PublicKeyCVV { get; set; }
[XmlAttribute(AttributeName = "txnCounter")]
public string TxnCounter { get; set; }
[XmlAttribute(AttributeName = "txnStatus")]
public string TxnStatus { get; set; }
}
[Serializable, XmlRoot(ElementName = "Merchant")]
public class Merchant
{
[XmlElement(ElementName = "Lane")]
public Lane Lane { get; set; }
[XmlElement(ElementName = "Parking")]
public Parking Parking { get; set; }
[XmlElement(ElementName = "ReaderVerificationResult")]
public ReaderVerificationResult ReaderVerificationResult { get; set; }
[XmlAttribute(AttributeName = "id")]
public string Id { get; set; }
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "geoCode")]
public string GeoCode { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
[XmlAttribute(AttributeName = "subtype")]
public string Subtype { get; set; }
}
public class Detail
{
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "value")]
public string Value { get; set; }
}
public class VehicleDetails
{
[XmlElement(ElementName = "Detail")]
public List<Detail> Detail { get; set; }
}
public partial class Vehicle
{
[XmlAttribute(AttributeName = "tagId")]
public string TagId { get; set; }
[XmlAttribute(AttributeName = "TID")]
public string TID { get; set; }
[XmlAttribute(AttributeName = "avc")]
public string Avc { get; set; }
[XmlAttribute(AttributeName = "wim")]
public string Wim { get; set; }
[XmlElement(ElementName = "VehicleDetails")]
public VehicleDetails VehicleDetails { get; set; }
}
[Serializable, XmlRoot(ElementName = "Amount")]
public class Amount
{
[XmlAttribute(AttributeName = "value")]
public string Value { get; set; }
[XmlAttribute(AttributeName = "curr")]
public string Curr { get; set; }
}
[Serializable, XmlRoot(ElementName = "Payer")]
public class Payer
{
[XmlElement(ElementName = "Amount")]
public Amount Amount { get; set; }
[XmlAttribute(AttributeName = "addr")]
public string Addr { get; set; }
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
}
[Serializable, XmlRoot(ElementName = "Payee")]
public class Payee
{
[XmlAttribute(AttributeName = "addr")]
public string Addr { get; set; }
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
}
[Serializable, XmlRoot(ElementName = "Signature", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public class Signature
{
[XmlElement(ElementName = "SignedInfo", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public SignedInfo SignedInfo { get; set; }
[XmlElement(ElementName = "SignatureValue", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public string SignatureValue { get; set; }
[XmlElement(ElementName = "KeyInfo", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public KeyInfo KeyInfo { get; set; }
[XmlAttribute(AttributeName = "xmlns")]
public string Xmlns { get; set; }
}
[Serializable, XmlRoot(ElementName = "SignedInfo", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public class SignedInfo
{
[XmlElement(ElementName = "CanonicalizationMethod", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public CanonicalizationMethod CanonicalizationMethod { get; set; }
[XmlElement(ElementName = "SignatureMethod", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public SignatureMethod SignatureMethod { get; set; }
[XmlElement(ElementName = "Reference", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public Reference Reference { get; set; }
}
[Serializable, XmlRoot(ElementName = "CanonicalizationMethod", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public class CanonicalizationMethod
{
[XmlAttribute(AttributeName = "Algorithm")]
public string Algorithm { get; set; }
}
[Serializable, XmlRoot(ElementName = "SignatureMethod", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public class SignatureMethod
{
[XmlAttribute(AttributeName = "Algorithm")]
public string Algorithm { get; set; }
}
[Serializable, XmlRoot(ElementName = "Reference", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public class Reference
{
[XmlElement(ElementName = "Transforms", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public Transforms Transforms { get; set; }
[XmlElement(ElementName = "DigestMethod", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public DigestMethod DigestMethod { get; set; }
[XmlElement(ElementName = "DigestValue", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public string DigestValue { get; set; }
[XmlAttribute(AttributeName = "URI")]
public string URI { get; set; }
}
[Serializable, XmlRoot(ElementName = "Transforms", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public class Transforms
{
[XmlElement(ElementName = "Transform", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public Transform Transform { get; set; }
}
public class Transform
{
[XmlAttribute(AttributeName = "Algorithm")]
public string Algorithm { get; set; }
}
[Serializable, XmlRoot(ElementName = "DigestMethod", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public class DigestMethod
{
[XmlAttribute(AttributeName = "Algorithm")]
public string Algorithm { get; set; }
}
[Serializable, XmlRoot(ElementName = "KeyInfo", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public class KeyInfo
{
[XmlElement(ElementName = "X509Data", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public X509Data X509Data { get; set; }
}
[Serializable, XmlRoot(ElementName = "X509Data", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public class X509Data
{
[XmlElement(ElementName = "X509SubjectName", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public string X509SubjectName { get; set; }
[XmlElement(ElementName = "X509Certificate", Namespace = "http://www.w3.org/2000/09/xmldsig#")]
public string X509Certificate { get; set; }
}
}
Reqpaydb 用于数据库类
namespace ModelRequest
{
//[XmlRoot(ElementName = "ReqPay", Namespace = "http://npci.org/etc/schema/")]
[Serializable, XmlRoot(ElementName = "ReqPay")]
public class ReqPayDb
{
[Key]
public int ReqpayID { get; set; }
[XmlElement(ElementName = "Head")]
public Head Head { get; set; }
[XmlElement(ElementName = "Txn")]
public Txn Txn { get; set; }
[XmlElement(ElementName = "Merchant")]
public Merchant Merchant { get; set; }
[XmlElement(ElementName = "Meta")]
public Meta Meta { get; set; }
[XmlElement(ElementName = "Vehicle")]
public Vehicle Vehicle { get; set; }
[XmlElement(ElementName = "Payer")]
public Payer Payer { get; set; }
[XmlElement(ElementName = "Payee")]
public Payee Payee { get; set; }
[XmlAttribute(AttributeName = "etc", Namespace = "http://www.w3.org/2000/xmlns/")]
public string Etc { get; set; }
}
[XmlRoot(ElementName = "Head")]
public class Head
{
[Key]
public int HeadID { get; set; }
[XmlAttribute(AttributeName = "ver")]
public string Ver { get; set; }
[XmlAttribute(AttributeName = "ts")]
public string Ts { get; set; }
[XmlAttribute(AttributeName = "orgId")]
public string OrgId { get; set; }
[XmlAttribute(AttributeName = "msgId")]
public string MsgId { get; set; }
}
[XmlRoot(ElementName = "Tag")]
public class Tag
{
[Key]
public int TagID { get; set; }
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "value")]
public string Value { get; set; }
}
[XmlRoot(ElementName = "Meta")]
public class Meta
{
[Key]
public int MetaID { get; set; }
[XmlElement(ElementName = "Tag")]
public List<Tag> Tag { get; set; }
}
[XmlRoot(ElementName = "Score")]
public class Score
{
[Key]
public int ScoreID { get; set; }
[XmlAttribute(AttributeName = "provider")]
public string Provider { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
[XmlAttribute(AttributeName = "value")]
public string Value { get; set; }
}
[XmlRoot(ElementName = "RiskScores")]
public class RiskScores
{
[Key]
public int RiskScorID { get; set; }
[XmlElement(ElementName = "Score")]
public Score Score { get; set; }
}
public partial class Txn
{
[Key]
public int TxnID { get; set; }
[XmlElement(ElementName = "RiskScores")]
public RiskScores RiskScores { get; set; }
[XmlAttribute(AttributeName = "id")]
public string Id { get; set; }
[XmlAttribute(AttributeName = "note")]
public string Note { get; set; }
[XmlAttribute(AttributeName = "refId")]
public string RefId { get; set; }
[XmlAttribute(AttributeName = "refUrl")]
public string RefUrl { get; set; }
[XmlAttribute(AttributeName = "ts")]
public string Ts { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
[XmlAttribute(AttributeName = "orgTxnId")]
public string OrgTxnId { get; set; }
}
[XmlRoot(ElementName = "Lane")]
public class Lane
{
[Key]
public int LaneID { get; set; }
[XmlAttribute(AttributeName = "id")]
public string Id { get; set; }
[XmlAttribute(AttributeName = "direction")]
public string Direction { get; set; }
[XmlAttribute(AttributeName = "readerId")]
public string ReaderId { get; set; }
}
[XmlRoot(ElementName = "Parking")]
public class Parking
{
[Key]
public int ParkingID { get; set; }
[XmlAttribute(AttributeName = "floor")]
public string Floor { get; set; }
[XmlAttribute(AttributeName = "zone")]
public string Zone { get; set; }
[XmlAttribute(AttributeName = "slotId")]
public string SlotId { get; set; }
[XmlAttribute(AttributeName = "readerId")]
public string ReaderId { get; set; }
}
[Serializable, XmlRoot(ElementName = "ReaderVerificationResult")]
public class ReaderVerificationResult
{
[Key]
public int RederVerResID { get; set; }
[XmlAttribute(AttributeName = "tsRead")]
public string TsRead { get; set; }
[XmlAttribute(AttributeName = "signData")]
public string SignData { get; set; }
[XmlAttribute(AttributeName = "signAuth")]
public string SignAuth { get; set; }
[XmlAttribute(AttributeName = "epcVerified")]
public string EpcVerified { get; set; }
[XmlAttribute(AttributeName = "procRestrictionResult")]
public string ProcRestrictionResult { get; set; }
[XmlAttribute(AttributeName = "vehicleAuth")]
public string VehicleAuth { get; set; }
[XmlAttribute(AttributeName = "publicKeyCVV")]
public string PublicKeyCVV { get; set; }
[XmlAttribute(AttributeName = "txnCounter")]
public string TxnCounter { get; set; }
[XmlAttribute(AttributeName = "txnStatus")]
public string TxnStatus { get; set; }
}
[Serializable, XmlRoot(ElementName = "Merchant")]
public class Merchant
{
[Key]
public int MerchantID { get; set; }
[XmlElement(ElementName = "Lane")]
public Lane Lane { get; set; }
[XmlElement(ElementName = "Parking")]
public Parking Parking { get; set; }
[XmlElement(ElementName = "ReaderVerificationResult")]
public ReaderVerificationResult ReaderVerificationResult { get; set; }
[XmlAttribute(AttributeName = "id")]
public string Id { get; set; }
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "geoCode")]
public string GeoCode { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
[XmlAttribute(AttributeName = "subtype")]
public string Subtype { get; set; }
}
public class Detail
{
[Key]
public int DetailID { get; set; }
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "value")]
public string Value { get; set; }
}
public class VehicleDetails
{
[Key]
public int VehicleDetailsID { get; set; }
[XmlElement(ElementName = "Detail")]
public List<Detail> Detail { get; set; }
}
public partial class Vehicle
{
[Key]
public int VehicleID { get; set; }
[XmlAttribute(AttributeName = "tagId")]
public string TagId { get; set; }
[XmlAttribute(AttributeName = "TID")]
public string TID { get; set; }
[XmlAttribute(AttributeName = "avc")]
public string Avc { get; set; }
[XmlAttribute(AttributeName = "wim")]
public string Wim { get; set; }
[XmlElement(ElementName = "VehicleDetails")]
public VehicleDetails VehicleDetails { get; set; }
}
[Serializable, XmlRoot(ElementName = "Amount")]
public class Amount
{
[Key]
public int AmtId { get; set; }
[XmlAttribute(AttributeName = "value")]
public string Value { get; set; }
[XmlAttribute(AttributeName = "curr")]
public string Curr { get; set; }
}
[Serializable, XmlRoot(ElementName = "Payer")]
public class Payer
{
[Key]
public int PayerID { get; set; }
[XmlElement(ElementName = "Amount")]
public Amount Amount { get; set; }
[XmlAttribute(AttributeName = "addr")]
public string Addr { get; set; }
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
}
[Serializable, XmlRoot(ElementName = "Payee")]
public class Payee
{
[Key]
public int PayeeID { get; set; }
[XmlAttribute(AttributeName = "addr")]
public string Addr { get; set; }
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
[XmlAttribute(AttributeName = "type")]
public string Type { get; set; }
}
}
在控制器上 { var teststr = "";
using (var reader = new StreamReader(Request.Body, Encoding.UTF8))
{
var textFromBody = await reader.ReadToEndAsync();
teststr = textFromBody;
}
ReqPay ReqReturn = new ReqPay();
// if pass this value as return then json as output
ReqReturn = DeserializeXML.Deserialize<ReqPay>(teststr, "etc:ReqPay", "ReqPay");
// this is for Serialize XML, result into string , output as xml
var nextstr1 = SerializeXML.XmlSerialize<ReqPay>(ReqReturn, "ReqPay", "etc:ReqPay");
ReqPayDb reqPayEntry = _mapper.Map<ReqPayDb>(ReqReturn);
}
邮递员 500 内部错误
AutoMapper.AutoMapperMappingException:错误映射类型。
映射类型:
ReqPay -> ReqPayDb
Dtos.ReqPay.ReqPay -> ModelRequest.ReqPayDb
类型地图配置:
ReqPay -> ReqPayDb
Dtos.ReqPay.ReqPay -> ModelRequest.ReqPayDb
目的地会员:
头
---> AutoMapper.AutoMapperMappingException:缺少类型映射配置或不支持的映射。
映射类型:
头 -> 头
Dtos.ReqPay.Head -> ModelRequest.Head
在 lambda_method19(闭包,头部,头部,ResolutionContext)
在 lambda_method18(闭包,对象,ReqPayDb,ResolutionContext)
--- 内部异常堆栈跟踪结束 ---
在 lambda_method18(闭包,对象,ReqPayDb,ResolutionContext)
在 D:\Comvision\Acquirer_net5\Controllers\ReqPayController.cs:line 80 中的 Controllers.ReqPayController.ReqPay()
在 Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper 映射器,ObjectMethodExecutor 执行器,对象控制器,对象 [] 参数)
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker 调用程序,ValueTask`1 actionResultValueTask)
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker 调用程序,任务 lastTask,下一个状态,作用域范围,对象状态,布尔 isCompleted)
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed 上下文)
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(状态&下一个,范围&范围,对象&状态,布尔& isCompleted)
在 Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- 上一个位置的堆栈跟踪结束 ---
在 Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker 调用程序,任务 lastTask,下一个状态,作用域范围,对象状态,布尔 isCompleted)
在 Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker 调用程序,任务任务,IDisposable 范围)
在 Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(端点端点,任务 requestTask,ILogger 记录器)
在 Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext 上下文)
在 Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext 上下文)
在 Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
在 Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext,ISwaggerProvider swaggerProvider)
在 Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext 上下文)
标题
=======
连接:保持活动
内容类型:应用程序/xml
接受:/
接受编码:gzip、deflate、br
主机:本地主机:5001
用户代理:PostmanRuntime/7.28.0
内容长度:4754
邮递员令牌:61ebaba3-ec84-4ad8-ae44-79add3b24ecc
请帮帮我
出了什么问题,
或通过电子邮件 anandtri@gmail.com 提出建议
提前致谢
解决方案
我认为您需要从 Head DTO 到 Head DbModel 的 Map
CreateMap<Dtos.ReqPay.Head,ModelRequest.Head>();
推荐阅读
- javascript - Stripe:如何在给定信用卡信息的情况下创建客户对象
- node.js - 如何解决 AWS Lambda 中的 Runtime.HandlerNotFound 错误
- laravel - 在 Laravel 中为关系分配 id
- android - 单一原因导致主线程上的网络或来自错误线程异常的查看根
- swift - 如何在 Xcode 中向 Google Maps API 添加叠加层
- css - 在 CSS 中选择最内部的等效规则
- java - 如何根据比较连续的列表元素将 Java 流减少为布尔值
- javascript - gif动画只有在包含slick.js幻灯片后才能启动吗?
- python - Python中的嵌套字典并更新键中的特定键
- typescript - 如何将变压器传递给 ts-node?