field | Description | Example |
---|---|---|
modelName | Model name |
|
modelDesc | Model description |
|
<FIELD_NAME> | Field name of the domain full model |
|
desc-<FIELD_NAME> | Field description of the domain full model |
|
Model name
1modelName: ['Drone', '드론']
Model description
1modelDesc: [
2 'drone is a flying robot...',
3 '드론은 임베디드 시스템...'
4]
Field name of the domain full model
1name: ['Name', '이름']
Field description of the domain full model
1'desc-name': ['Name of the drone', '드론의 이름']
field | Description | Example |
---|---|---|
<FIELD_NAME> | Field name of the domain insight model |
|
desc-<FIELD_NAME> | Field description of the domain insight model |
|
Field name of the domain insight model
1count: ['Count', '개수']
Field description of the domain insight model
1'desc-count': ['Drone count in...', '현재 쿼리 설정에...']
field | Description | Example |
---|---|---|
<FIELD_NAME> | Field name of the domain sort |
|
desc-<FIELD_NAME> | Field description of the domain sort |
|
Field name of the domain sort
1count: ['Count', '계수']
Field description of the domain sort
1'desc-count': ['Drone count in...', '현재 쿼리 설정에...']
field | Description | Example |
---|---|---|
enum<FIELD_NAME><ENUM_VALUE> | Field name of the domain enum |
|
enumdesc<FIELD_NAME><ENUM_VALUE> | Field description of the domain enum |
|
Field name of the domain enum
1'enum-status-active': ['Active', '활성']
Field description of the domain enum
1'enumdesc-status-active': ['Active status', '활성 상태']
1Term definition: land: ['Land', '착륙']
1Error message: noDroneError: ['Drone does not exist', '드론이 존재하지 않습니다']
field | Description | Example |
---|---|---|
<FIELD_NAME> | Field name of the domain summary model |
|
desc-<FIELD_NAME> | Field description of the domain summary model |
|
Field name of the domain summary model
1totalDrone: ['Total Drone', '총 Drone 수']
Field description of the domain summary model
1'desc-totalDrone': ['Total drone count...', '데이터베이스에...']
field | Description | Example |
---|---|---|
api<SIGNAL_KEY> | Role of the API endpoint |
|
apidesc<SIGNAL_KEY> | Description of the API endpoint |
|
arg<SIGNAL_KEY><ARG_NAME> | Parameter of the API endpoint |
|
argdesc<SIGNAL_KEY><ARG_NAME> | Description of the API endpoint parameter |
|
Role of the API endpoint
1'api-droneListInPublic': ['Drone List In Public', '공개된 Drone 리스트']
Description of the API endpoint
1'apidesc-droneListInPublic': ['Get a list of...', '공개된 Drone의...']
Parameter of the API endpoint
1'arg-droneListInPublic-statuses': ['Statuses', '상태']
Description of the API endpoint parameter
1'argdesc-droneListInPublic-statuses': ['Statuses to filter', '필터링할 상태']
1import { ModelDictionary, SignalDictionary, wbaseTrans, getBaseSignalTrans } from '@core/base';
2import type { Drone, DroneInsight, DroneSummary, droneSort } from './drone.constant';
3import type { DroneSignal } from './drone.signal';
4
5const modelDictionary = {
6 ...baseTrans,
7 modelName: ['Drone', '드론'],
8 modelDesc: [
9 'drone is a flying robot that can be remotely controlled or fly autonomously through software-controlled flight plans in their embedded systems, working in conjunction with onboard sensors and GPS.',
10 '드론은 임베디드 시스템에서 작동하는 소프트웨어 제어 비행 계획을 통해 원격으로 제어되거나 자율적으로 비행할 수 있는 비행 로봇입니다.',
11 ],
12 // * --- Model --- * //
13 name: ['Name', '이름'],
14 'desc-name': ['Name of the drone', '드론의 이름'],
15 wsUrl: ['Websocket URL', '웹소켓 URL'],
16 'desc-wsUrl': ['Websocket URL of the drone', '드론의 웹소켓 URL'],
17 // * --- Model --- * //
18 // * --- Insight --- * //
19 count: ['Count', '개수'],
20 'desc-count': ['Drone count in current query setting', '현재 쿼리 설정에 맞는 Drone 수'],
21 // * --- Insight --- * //
22 // * --- Sort --- * //
23 highPriority: ['High Priority', '높은 우선순위'],
24 'desc-highPriority': ['High priority sort', '높은 우선순위 정렬'],
25 // * --- Sort --- * //
26 // * --- Etc --- * //
27 'enum-status-active': ['Active', '활성'],
28 'enumdesc-status-active': ['Active status', '활성 상태'],
29 'enum-status-offline': ['Offline', '오프라인'],
30 'enumdesc-status-offline': ['Offline status', '오프라인 상태'],
31 land: ['Land', '착륙'],
32 return: ['RTB', '복귀'],
33 terminate: ['Terminate', '종료'],
34} satisfies ModelDictionary<Drone, DroneInsight, typeof droneSort>;
35
36const signalDictionary = {
37 ...getBaseSignalTrans('drone' as const),
38 // * --- Endpoint --- * //
39 'api-droneListInPublic': ['Drone List In Public', '공개된 Drone 리스트'],
40 'apidesc-droneListInPublic': ['Get a list of public drone', '공개된 Drone의 리스트를 가져올니다'],
41 'arg-droneListInPublic-statuses': ['Statuses', '상태'],
42 'argdesc-droneListInPublic-statuses': ['Statuses to filter', '필터링할 상태'],
43 // * --- Endpoint --- * //
44} satisfies SignalDictionary<DroneSignal, Drone>;
45
46export const droneDictionary = { ...modelDictionary, ...signalDictionary };