master
2022-03-16 26d7c4cb292025dad56635dc02bf32a348ee62ef
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column, PrimaryGeneratedColumn } from 'typeorm';
 
/**
 * 商品
 */
@EntityModel('t_base_deviceinfo')
export class DemoDeviceEntity extends BaseEntity {
  @PrimaryGeneratedColumn({ comment: 'id' })
  id: number;
 
  @Column({ comment: '逻辑ID' })
  logic_id: string;
 
  @Column({ comment: '物理ID' })
  device_id: string;
 
  @Column({ comment: '设备名称', default: "可见光-毫米波-采集设备" })
  name: string;
 
  @Column({ comment: '安装位置', default: "华能电厂二号煤棚-第一马道-北" })
  location: string;
 
  @Column({ comment: '经度', type: 'double', default: 121.222222 })
  longitude: number;
 
  @Column({ comment: '纬度', type: 'double', default: 31.222222 })
  latitude: number;
 
  @Column({ comment: '高度', type: 'double', default: 40 })
  altitude: number;
 
  @Column({ comment: '设备尺寸', default: "110*110" })
  dimension: string;
 
  @Column({ comment: '设备精度', default: "3" })
  precision: string;
 
  @Column({ comment: '航向角', default: "90" })
  heading_angle: string;
 
  @Column({ comment: '俯仰角', default: "90" })
  petch_angle: string;
 
  @Column({ comment: '横滚角', default: "90" })
  roll_angle: string;
 
  @Column({ comment: 'IP地址', default: "127.0.0.1" })
  ipaddress: string;
 
  @Column({ comment: '端口', default: "8001" })
  device_port: string;
 
  @Column({ comment: '账号', default: "admin" })
  device_account: string;
 
  @Column({ comment: '密码', default: "123456" })
  device_psw: string;
 
  @Column({ comment: '运维负责人' })
  operator: string;
 
  @Column({ comment: '备注', default: "无" })
  remark: string;
 
  @Column({ comment: '状态', default: 1 })
  status: number;
}