1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
| import { EntityModel } from '@midwayjs/orm';
| import { BaseEntity } from '@cool-midway/core';
| import { Column, Double } from 'typeorm';
| /**
| * 静态模型数据
| */
| @EntityModel('t_model_static')
| export class Modelstatic extends BaseEntity {
| @Column({ comment: '{name:"数据内容"}', type: 'varchar', default: '', length: 50 })
| data_content: string;
|
| @Column({ comment: '{name:"数据文件路径"}', type: 'varchar', default: '', length: 255 })
| data_path: string;
|
| @Column({ comment: '{name:"设备逻辑ID"}', type: 'varchar', default: '', length: 50 })
| logic_id: string;
|
| @Column({ comment: '', type: 'varchar', default: '', length: 50 })
| name: string;
|
| @Column({ comment: '经度', type: 'varchar', default: '', length: 50 })
| longitude: string;
|
| @Column({ comment: '纬度', type: 'varchar', default: '', length: 50 })
| latitude: string;
|
| @Column({ comment: '高度', type: 'varchar', default: '', length: 50 })
| height: string;
|
| @Column({ comment: '旋转角', type: 'varchar', default: '', length: 50 })
| heading: string;
|
| @Column({ comment: '俯仰角', type: 'varchar', default: '', length: 50 })
| peatch: string;
|
| @Column({ comment: '翻滚角', type: 'varchar', default: '', length: 50 })
| roll: string;
|
| @Column({ comment: '缩放比例', type: 'varchar', default: '', length: 50 })
| scale: string;
|
| @Column({ comment: '{name:"备注"}', type: 'varchar', default: '', length: 50 })
| remark: string;
|
| @Column({ comment: '{name:"状态",dict:{"1":"启用", "0":"停用"}}', type: 'int', default: 1, width: 0 })
| status: number;
|
| }
|
|