fix:null required

This commit is contained in:
Antinew 2025-07-13 19:12:30 +08:00
parent 979250b912
commit 3172f17568

View File

@ -57,7 +57,7 @@ public class InterfaceMapPublishService(
/// <returns></returns> /// <returns></returns>
[HttpGet("InterfaceMap/GetPublishCompare")] [HttpGet("InterfaceMap/GetPublishCompare")]
public async Task<InterfaceMapPublishedDifferenceVO> GetPublishCompareAsync([Required] string interfaceCode, public async Task<InterfaceMapPublishedDifferenceVO> GetPublishCompareAsync([Required] string interfaceCode,
[Required] int serviceProviderId, string version) [Required] int serviceProviderId, string? version)
{ {
var systemInterface = await interfaceForwardQuery.GetInterfaceByCodesAsync(interfaceCode); var systemInterface = await interfaceForwardQuery.GetInterfaceByCodesAsync(interfaceCode);
if (systemInterface == null) throw new BusinessException(message: "系统接口不存在"); if (systemInterface == null) throw new BusinessException(message: "系统接口不存在");