使用枚举
This commit is contained in:
@@ -420,6 +420,9 @@ definitions:
|
||||
description: 原料名称
|
||||
maxLength: 100
|
||||
type: string
|
||||
reference_price:
|
||||
description: 参考价格(kg/元)
|
||||
type: number
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
@@ -1438,6 +1441,9 @@ definitions:
|
||||
items:
|
||||
$ref: '#/definitions/dto.RawMaterialNutrientDTO'
|
||||
type: array
|
||||
reference_price:
|
||||
description: 参考价格(kg/元)
|
||||
type: number
|
||||
type: object
|
||||
dto.RecipeIngredientDto:
|
||||
properties:
|
||||
@@ -1724,7 +1730,7 @@ definitions:
|
||||
source_id:
|
||||
type: integer
|
||||
source_type:
|
||||
type: string
|
||||
$ref: '#/definitions/models.StockLogSourceType'
|
||||
type: object
|
||||
dto.SubPlanResponse:
|
||||
properties:
|
||||
@@ -2146,6 +2152,9 @@ definitions:
|
||||
description: 原料名称
|
||||
maxLength: 100
|
||||
type: string
|
||||
reference_price:
|
||||
description: 参考价格(kg/元)
|
||||
type: number
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
@@ -2617,6 +2626,38 @@ definitions:
|
||||
- DPanicLevel
|
||||
- PanicLevel
|
||||
- FatalLevel
|
||||
models.StockLogSourceType:
|
||||
enum:
|
||||
- 采购入库
|
||||
- 饲喂出库
|
||||
- 变质出库
|
||||
- 售卖出库
|
||||
- 杂用领取
|
||||
- 手动盘点
|
||||
- 发酵出库
|
||||
- 发酵入库
|
||||
type: string
|
||||
x-enum-comments:
|
||||
StockLogSourceFermentEnd: 发酵料产出,作为新原料计入库存
|
||||
StockLogSourceFermentStart: 原料投入发酵,从库存中扣除
|
||||
x-enum-descriptions:
|
||||
- ""
|
||||
- ""
|
||||
- ""
|
||||
- ""
|
||||
- ""
|
||||
- ""
|
||||
- 原料投入发酵,从库存中扣除
|
||||
- 发酵料产出,作为新原料计入库存
|
||||
x-enum-varnames:
|
||||
- StockLogSourcePurchase
|
||||
- StockLogSourceFeeding
|
||||
- StockLogSourceDeteriorate
|
||||
- StockLogSourceSale
|
||||
- StockLogSourceMiscellaneous
|
||||
- StockLogSourceManual
|
||||
- StockLogSourceFermentStart
|
||||
- StockLogSourceFermentEnd
|
||||
models.TaskType:
|
||||
enum:
|
||||
- 计划分析
|
||||
@@ -4351,6 +4392,14 @@ paths:
|
||||
get:
|
||||
description: 获取所有原料的列表,支持分页和过滤。
|
||||
parameters:
|
||||
- description: 参考价格最大值
|
||||
in: query
|
||||
name: max_reference_price
|
||||
type: number
|
||||
- description: 参考价格最小值
|
||||
in: query
|
||||
name: min_reference_price
|
||||
type: number
|
||||
- description: 按原料名称模糊查询
|
||||
in: query
|
||||
name: name
|
||||
@@ -4393,7 +4442,7 @@ paths:
|
||||
- application/json
|
||||
description: 创建一个新的原料。
|
||||
parameters:
|
||||
- description: 原料信息
|
||||
- description: 原料信息,包含名称、描述和参考价格
|
||||
in: body
|
||||
name: rawMaterial
|
||||
required: true
|
||||
@@ -4472,7 +4521,7 @@ paths:
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: 更新后的原料信息
|
||||
- description: 更新后的原料信息,包含名称、描述和参考价格
|
||||
in: body
|
||||
name: rawMaterial
|
||||
required: true
|
||||
@@ -4767,6 +4816,15 @@ paths:
|
||||
description: 按来源类型查询
|
||||
in: query
|
||||
items:
|
||||
enum:
|
||||
- 采购入库
|
||||
- 饲喂出库
|
||||
- 变质出库
|
||||
- 售卖出库
|
||||
- 杂用领取
|
||||
- 手动盘点
|
||||
- 发酵出库
|
||||
- 发酵入库
|
||||
type: string
|
||||
name: source_types
|
||||
type: array
|
||||
|
||||
Reference in New Issue
Block a user