This commit is contained in:
seb
2026-10-07 21:31:33 +02:00
parent 7d537aaa6b
commit 85635cc0a5
9 changed files with 380 additions and 244 deletions

View File

@@ -1162,6 +1162,60 @@
* type: array
* items:
* type: integer
* LabelObject:
* type: object
* required: [id, type, x, y]
* properties:
* id:
* type: string
* type:
* type: string
* enum: [textbox, barcode, png]
* x:
* type: number
* y:
* type: number
* w:
* type: number
* h:
* type: number
* text:
* type: string
* font:
* type: string
* fontSize:
* type: number
* barcodeFormat:
* type: string
* enum: [EAN8, EAN13, CODE128, QR]
* LabelContent:
* type: object
* required: [objects]
* properties:
* objects:
* type: array
* description: Canvas label editor items
* items:
* $ref: '#/components/schemas/LabelObject'
* LabelTemplateSummary:
* type: object
* required: [id, name, width, height, dpi, type]
* properties:
* id:
* type: integer
* name:
* type: string
* width:
* type: number
* height:
* type: number
* dpi:
* type: integer
* type:
* type: string
* thumb:
* type: string
* nullable: true
* LabelTemplate:
* type: object
* required: [id, name, width, height, dpi, type, content]
@@ -1179,7 +1233,7 @@
* type:
* type: string
* content:
* type: object
* $ref: '#/components/schemas/LabelContent'
* thumb:
* type: string
* nullable: true
@@ -1198,7 +1252,7 @@
* type:
* type: string
* content:
* type: object
* $ref: '#/components/schemas/LabelContent'
* LabelTemplateUpdateInput:
* type: object
* properties:
@@ -1213,7 +1267,7 @@
* type:
* type: string
* content:
* type: object
* $ref: '#/components/schemas/LabelContent'
* Warehouse:
* type: object
* required: [id, name, sort]

View File

@@ -61,7 +61,7 @@ export function register(app, basePath = '') {
* labeltemplates:
* type: array
* items:
* $ref: '#/components/schemas/LabelTemplate'
* $ref: '#/components/schemas/LabelTemplateSummary'
* 400:
* description: No company selected
* content: