补充文档
All checks were successful
Deploy on Tag / build-and-deploy (push) Successful in 28s

This commit is contained in:
wzj 2024-11-21 21:57:50 +08:00
parent 3c34997623
commit ca9d697a6a
3 changed files with 44 additions and 12 deletions

View File

@ -677,9 +677,15 @@ const docTemplate = `{
"id": {
"type": "integer"
},
"img": {
"imgString": {
"type": "string"
},
"imgs": {
"type": "array",
"items": {
"type": "string"
}
},
"itemname": {
"type": "string"
},
@ -738,9 +744,15 @@ const docTemplate = `{
"example": "这是一个女大自用的iPhone18"
},
"img": {
"description": "@description 图片ID请用 /file/upload/item-img 接口上传图片后获取的图片唯一标识",
"type": "string",
"example": "123456789012"
"description": "@description 图片ID请用 /file/upload/item-img 接口上传图片后获取的图片唯一标识,多张图片请数组上传",
"type": "array",
"items": {
"type": "string"
},
"example": [
"123456789012",
"abcdefghijkl"
]
},
"itemname": {
"type": "string",

View File

@ -671,9 +671,15 @@
"id": {
"type": "integer"
},
"img": {
"imgString": {
"type": "string"
},
"imgs": {
"type": "array",
"items": {
"type": "string"
}
},
"itemname": {
"type": "string"
},
@ -732,9 +738,15 @@
"example": "这是一个女大自用的iPhone18"
},
"img": {
"description": "@description 图片ID请用 /file/upload/item-img 接口上传图片后获取的图片唯一标识",
"type": "string",
"example": "123456789012"
"description": "@description 图片ID请用 /file/upload/item-img 接口上传图片后获取的图片唯一标识,多张图片请数组上传",
"type": "array",
"items": {
"type": "string"
},
"example": [
"123456789012",
"abcdefghijkl"
]
},
"itemname": {
"type": "string",

View File

@ -8,8 +8,12 @@ definitions:
type: string
id:
type: integer
img:
imgString:
type: string
imgs:
items:
type: string
type: array
itemname:
type: string
price:
@ -44,9 +48,13 @@ definitions:
example: 这是一个女大自用的iPhone18
type: string
img:
description: '@description 图片ID请用 /file/upload/item-img 接口上传图片后获取的图片唯一标识'
example: "123456789012"
description: '@description 图片ID请用 /file/upload/item-img 接口上传图片后获取的图片唯一标识,多张图片请数组上传'
example:
- "123456789012"
- abcdefghijkl
items:
type: string
type: array
itemname:
example: 女大自用iPhone18
maxLength: 12