Merge pull request 'fix:bug' (#3) from test into master
All checks were successful
Build and Deploy / deploy (push) Successful in 1m12s
All checks were successful
Build and Deploy / deploy (push) Successful in 1m12s
Reviewed-on: #3
This commit is contained in:
commit
23e597ecf1
@ -108,7 +108,10 @@ public class InterfaceService : ApplicationService
|
|||||||
|
|
||||||
// 构造参数
|
// 构造参数
|
||||||
var paras = await InterfaceRepository.GetParameterListByIdAsync(id);
|
var paras = await InterfaceRepository.GetParameterListByIdAsync(id);
|
||||||
|
// 上游入参树;下游改走 requestBody / mappingBody,不再填 inParameterList
|
||||||
|
res.InParameterList = interfaceEntity.IsUpStream
|
||||||
|
? paras.Where(x => x.IsInPara).ToList()
|
||||||
|
: [];
|
||||||
res.RequestBodyParameterList = !interfaceEntity.IsUpStream && interfaceEntity.ContentType is ContentType.Json or ContentType.Xml
|
res.RequestBodyParameterList = !interfaceEntity.IsUpStream && interfaceEntity.ContentType is ContentType.Json or ContentType.Xml
|
||||||
? paras.Where(x => x.IsInPara && x.ParaKind == ParameterParaKind.Normal).ToList()
|
? paras.Where(x => x.IsInPara && x.ParaKind == ParameterParaKind.Normal).ToList()
|
||||||
: [];
|
: [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user