更新swagger
This commit is contained in:
@@ -239,6 +239,7 @@ import {PaginationDTO, Response} from '../enums';
|
||||
* @property {string} name
|
||||
* @property {string} description
|
||||
* @property {Array<RawMaterialNutrientDTO>} raw_material_nutrients
|
||||
* @property {number} [reference_price] - 参考价格(kg/元)
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -251,6 +252,8 @@ import {PaginationDTO, Response} from '../enums';
|
||||
* @typedef {object} RawMaterialsParams
|
||||
* @property {string} [name] - 按原料名称模糊查询
|
||||
* @property {string} [nutrient_name] - 按营养名称模糊查询
|
||||
* @property {number} [max_reference_price] - 参考价格最大值
|
||||
* @property {number} [min_reference_price] - 参考价格最小值
|
||||
* @property {string} [order_by] - 排序字段,例如 "id DESC"
|
||||
* @property {number} [page]
|
||||
* @property {number} [page_size]
|
||||
@@ -260,12 +263,14 @@ import {PaginationDTO, Response} from '../enums';
|
||||
* @typedef {object} CreateRawMaterialRequest
|
||||
* @property {string} name - 原料名称
|
||||
* @property {string} [description] - 描述
|
||||
* @property {number} [reference_price] - 参考价格(kg/元)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {object} UpdateRawMaterialRequest
|
||||
* @property {string} name - 原料名称
|
||||
* @property {string} [description] - 描述
|
||||
* @property {number} [reference_price] - 参考价格(kg/元)
|
||||
*/
|
||||
|
||||
// --- Recipe ---
|
||||
|
||||
Reference in New Issue
Block a user