feat: 添加 muzi 服务并接入 ivyz3p9m
This commit is contained in:
@@ -622,7 +622,7 @@ func (s *ProductApplicationServiceImpl) mergePackageItemsDocumentation(ctx conte
|
||||
// 合并文档内容
|
||||
mergedDoc := &responses.DocumentationResponse{
|
||||
ProductID: packageItems[0].ProductID, // 使用第一个子产品的ID作为标识
|
||||
RequestMethod: "POST", // 默认方法
|
||||
RequestMethod: "POST", // 默认方法
|
||||
Version: "1.0",
|
||||
}
|
||||
|
||||
@@ -755,7 +755,7 @@ func (s *ProductApplicationServiceImpl) buildCombPackageResponseExample(subProdu
|
||||
}
|
||||
builder.WriteString(" {\n")
|
||||
builder.WriteString(fmt.Sprintf(" \"api_code\": \"%s\",\n", spDoc.item.ProductCode))
|
||||
|
||||
|
||||
// 第一个示例显示成功,其他可能显示部分失败
|
||||
if i == 0 {
|
||||
builder.WriteString(" \"success\": true,\n")
|
||||
@@ -804,7 +804,7 @@ func (s *ProductApplicationServiceImpl) buildCombPackageResponseExample(subProdu
|
||||
if len(subProductDocs) > 0 {
|
||||
builder.WriteString("## 各子产品详细响应示例\n\n")
|
||||
builder.WriteString("以下为各个子产品的详细响应示例,组合包响应中的 `data` 字段即为对应子产品的完整响应数据。\n\n")
|
||||
|
||||
|
||||
for i, spDoc := range subProductDocs {
|
||||
if i > 0 {
|
||||
builder.WriteString("\n---\n\n")
|
||||
@@ -823,10 +823,6 @@ func (s *ProductApplicationServiceImpl) buildCombPackageResponseExample(subProdu
|
||||
return builder.String()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// paramField 参数字段信息
|
||||
type paramField struct {
|
||||
Name string
|
||||
@@ -1017,6 +1013,7 @@ func (s *ProductApplicationServiceImpl) getDTOMap() map[string]interface{} {
|
||||
"FLXG8B4D": &dto.FLXG8B4DReq{},
|
||||
"IVYZ81NC": &dto.IVYZ81NCReq{},
|
||||
"IVYZ7F3A": &dto.IVYZ7F3AReq{},
|
||||
"IVYZ3P9M": &dto.IVYZ3P9MReq{},
|
||||
"IVYZ3A7F": &dto.IVYZ3A7FReq{},
|
||||
"IVYZ9D2E": &dto.IVYZ9D2EReq{},
|
||||
"DWBG7F3A": &dto.DWBG7F3AReq{},
|
||||
@@ -1127,7 +1124,7 @@ func (s *ProductApplicationServiceImpl) generateFieldDescription(jsonTag string,
|
||||
descMap := map[string]string{
|
||||
"mobile_no": "手机号码(11位)",
|
||||
"id_card": "身份证号码(18位)",
|
||||
"name": "姓名",
|
||||
"name": "姓名",
|
||||
"man_name": "男方姓名",
|
||||
"woman_name": "女方姓名",
|
||||
"man_id_card": "男方身份证号码",
|
||||
@@ -1183,4 +1180,4 @@ func (s *ProductApplicationServiceImpl) mapFieldTypeToDocType(frontendType strin
|
||||
default:
|
||||
return "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user