- DB 연결: 로컬/Docker 환경 오버라이딩 설정 (.env) - 테넌트 위젯: redirect 버그 수정 (TenantSelectorWidget) - 통계 위젯: 사용자/제품/자재/주문 카드 추가 (StatsOverviewWidget) - 리소스 한국어화: Product, Material 모델 레이블 추가 - 대시보드: 위젯 등록 및 캐시 최적화 🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
80 lines
3.6 KiB
PHP
80 lines
3.6 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Api\V1\Schemas;
|
|
|
|
use OpenApi\Attributes as OA;
|
|
|
|
/**
|
|
* Model Formula related Swagger schemas
|
|
*/
|
|
|
|
#[OA\Schema(
|
|
schema: 'ModelFormulaResource',
|
|
description: 'Model formula resource',
|
|
properties: [
|
|
new OA\Property(property: 'id', type: 'integer', example: 1),
|
|
new OA\Property(property: 'model_id', type: 'integer', example: 1),
|
|
new OA\Property(property: 'name', type: 'string', example: '최종 가로 크기 계산'),
|
|
new OA\Property(property: 'target_parameter', type: 'string', example: 'W1'),
|
|
new OA\Property(property: 'expression', type: 'string', example: 'W0 + (installation_type == "A" ? 50 : 30)'),
|
|
new OA\Property(property: 'description', type: 'string', nullable: true, example: '설치 타입에 따른 최종 가로 크기 계산'),
|
|
new OA\Property(property: 'is_active', type: 'boolean', example: true),
|
|
new OA\Property(property: 'execution_order', type: 'integer', example: 1),
|
|
new OA\Property(property: 'created_at', type: 'string', format: 'date-time', example: '2024-01-01T00:00:00Z'),
|
|
new OA\Property(property: 'updated_at', type: 'string', format: 'date-time', example: '2024-01-01T00:00:00Z')
|
|
]
|
|
)]
|
|
class ModelFormulaResource {}
|
|
|
|
#[OA\Schema(
|
|
schema: 'CreateModelFormulaRequest',
|
|
description: 'Request schema for creating model formula',
|
|
required: ['name', 'target_parameter', 'expression'],
|
|
properties: [
|
|
new OA\Property(property: 'name', type: 'string', maxLength: 100, example: '최종 가로 크기 계산'),
|
|
new OA\Property(
|
|
property: 'target_parameter',
|
|
type: 'string',
|
|
maxLength: 50,
|
|
example: 'W1',
|
|
description: 'Target parameter name (alphanumeric with underscore, must start with letter)'
|
|
),
|
|
new OA\Property(
|
|
property: 'expression',
|
|
type: 'string',
|
|
maxLength: 1000,
|
|
example: 'W0 + (installation_type == "A" ? 50 : 30)',
|
|
description: 'Mathematical expression for calculating the target parameter'
|
|
),
|
|
new OA\Property(property: 'description', type: 'string', maxLength: 500, nullable: true, example: '설치 타입에 따른 최종 가로 크기 계산'),
|
|
new OA\Property(property: 'is_active', type: 'boolean', example: true),
|
|
new OA\Property(property: 'execution_order', type: 'integer', minimum: 0, example: 1)
|
|
]
|
|
)]
|
|
class CreateModelFormulaRequest {}
|
|
|
|
#[OA\Schema(
|
|
schema: 'UpdateModelFormulaRequest',
|
|
description: 'Request schema for updating model formula',
|
|
properties: [
|
|
new OA\Property(property: 'name', type: 'string', maxLength: 100, example: '최종 가로 크기 계산'),
|
|
new OA\Property(
|
|
property: 'target_parameter',
|
|
type: 'string',
|
|
maxLength: 50,
|
|
example: 'W1',
|
|
description: 'Target parameter name (alphanumeric with underscore, must start with letter)'
|
|
),
|
|
new OA\Property(
|
|
property: 'expression',
|
|
type: 'string',
|
|
maxLength: 1000,
|
|
example: 'W0 + (installation_type == "A" ? 50 : 30)',
|
|
description: 'Mathematical expression for calculating the target parameter'
|
|
),
|
|
new OA\Property(property: 'description', type: 'string', maxLength: 500, nullable: true, example: '설치 타입에 따른 최종 가로 크기 계산'),
|
|
new OA\Property(property: 'is_active', type: 'boolean', example: true),
|
|
new OA\Property(property: 'execution_order', type: 'integer', minimum: 0, example: 1)
|
|
]
|
|
)]
|
|
class UpdateModelFormulaRequest {} |