更新swag

This commit is contained in:
2025-11-27 17:55:40 +08:00
parent ede3d6b330
commit 24d9b07c97
2 changed files with 16 additions and 1 deletions

View File

@@ -9206,7 +9206,8 @@
"type": "object",
"required": [
"change_amount",
"raw_material_id"
"raw_material_id",
"source_type"
],
"properties": {
"change_amount": {
@@ -9221,6 +9222,18 @@
"description": "备注",
"type": "string",
"maxLength": 255
},
"source_id": {
"description": "来源ID, 例如: 配方ID, 采购单ID等",
"type": "integer"
},
"source_type": {
"description": "库存变动来源类型",
"allOf": [
{
"$ref": "#/definitions/models.StockLogSourceType"
}
]
}
}
},

View File

@@ -7,6 +7,8 @@ import { PaginationDTO, Response, StockLogSourceType } from '../enums';
* @typedef {object} StockAdjustmentRequest
* @property {number} change_amount - 变动数量, 正数为入库, 负数为出库, 单位: g
* @property {number} raw_material_id - 要调整的原料ID
* @property {StockLogSourceType} source_type - 库存变动来源类型
* @property {number} [source_id] - 来源ID, 例如: 配方ID, 采购单ID等
* @property {string} [remarks] - 备注
*/