31个文件已删除
55个文件已添加
6个文件已修改
| | |
| | | import { Context } from 'egg'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { LoginDTO } from '../../dto/login'; |
| | | import * as fs from 'fs'; |
| | | import { BaseSysLoginService } from '../../service/sys/login'; |
| | | import { BaseSysParamService } from '../../service/sys/param'; |
| | | import { DataService } from '../../service/dataapi/dataapi'; |
| | | import { CommEntity } from '../../entity/app/commentity'; |
| | | import { CreateEntityUtil } from '../../utils/createEntity'; |
| | | |
| | | /** |
| | | * 不需要登录的后台接口 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'info', 'list', 'page'], |
| | | entity: CommEntity |
| | | }) |
| | | @CoolController() |
| | | export class BaseOpenController extends BaseController { |
| | | @Inject() |
| | | baseSysLoginService: BaseSysLoginService; |
| | |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | import { EntityModel } from '@midwayjs/orm'; |
| | | import { BaseEntity } from '@cool-midway/core'; |
| | | import { Column, Double } from 'typeorm'; |
| | | |
| | | /** |
| | | * 综合实体类 |
| | | */ |
| | | @EntityModel('t_sys_comm_column') |
| | | export class CommEntity extends BaseEntity { |
| | | @Column({ comment: '附件名称', type: 'varchar', default: 'null' }) |
| | | deviceattachment_attach_name: string; |
| | | |
| | | @Column({ comment: '顺序编号', type: 'varchar', default: 'null' }) |
| | | deviceattachment_attach_sort: string; |
| | | |
| | | @Column({ comment: '附件类型, 1-使用说明 2-安装位置照片 ...', type: 'varchar', default: 'null' }) |
| | | deviceattachment_attach_type: string; |
| | | |
| | | @Column({ comment: '附件访问路径', type: 'varchar', default: 'null' }) |
| | | deviceattachment_attach_url: string; |
| | | |
| | | @Column({ comment: '附件提供人', type: 'varchar', default: 'null' }) |
| | | deviceattachment_configurator: string; |
| | | |
| | | @Column({ comment: '设备物理ID', type: 'varchar', default: 'null' }) |
| | | deviceattachment_device_id: string; |
| | | |
| | | @Column({ comment: '逻辑ID', type: 'varchar', default: 'null' }) |
| | | deviceattachment_logic_id: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | deviceattachment_remark: string; |
| | | |
| | | @Column({ comment: '状态,1-启用 0-停用', type: 'int', default: '1' }) |
| | | deviceattachment_status: number; |
| | | |
| | | @Column({ comment: '分组设置人员', type: 'varchar', default: 'null' }) |
| | | devicegroup_configurator: string; |
| | | |
| | | @Column({ comment: '逻辑ID', type: 'varchar', default: 'null' }) |
| | | devicegroup_logic_id: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: '无' }) |
| | | devicegroup_remark: string; |
| | | |
| | | @Column({ comment: '状态', type: 'tinyint', default: '1' }) |
| | | devicegroup_status: number; |
| | | |
| | | @Column({ comment: '设备物理ID', type: 'varchar', default: 'null' }) |
| | | deviceopreraterecord_device_id: string; |
| | | |
| | | @Column({ comment: '设备逻辑ID', type: 'varchar', default: 'null' }) |
| | | deviceopreraterecord_logic_id: string; |
| | | |
| | | @Column({ comment: '运维内容', type: 'varchar', default: 'null' }) |
| | | deviceopreraterecord_operate_content: string; |
| | | |
| | | @Column({ comment: '运维类型 1-巡检 2-维修', type: 'varchar', default: 'null' }) |
| | | deviceopreraterecord_operate_type: string; |
| | | |
| | | @Column({ comment: '运维人员', type: 'varchar', default: 'null' }) |
| | | deviceopreraterecord_operator: string; |
| | | |
| | | @Column({ comment: '附件访问路径', type: 'varchar', default: 'null' }) |
| | | deviceopreraterecord_pic_url: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | deviceopreraterecord_remark: string; |
| | | |
| | | @Column({ comment: '状态,1-启用 0-停用', type: 'int', default: '1' }) |
| | | deviceopreraterecord_status: number; |
| | | |
| | | @Column({ comment: '高度', type: 'double', default: '40' }) |
| | | basedeviceinfo_altitude: Double; |
| | | |
| | | @Column({ comment: '账号', type: 'varchar', default: 'admin' }) |
| | | basedeviceinfo_device_account: string; |
| | | |
| | | @Column({ comment: '物理ID', type: 'varchar', default: 'null' }) |
| | | basedeviceinfo_device_id: string; |
| | | |
| | | @Column({ comment: '端口', type: 'varchar', default: '8001' }) |
| | | basedeviceinfo_device_port: string; |
| | | |
| | | @Column({ comment: '密码', type: 'varchar', default: '123456' }) |
| | | basedeviceinfo_device_psw: string; |
| | | |
| | | @Column({ comment: '设备尺寸', type: 'varchar', default: '110*110' }) |
| | | basedeviceinfo_dimension: string; |
| | | |
| | | @Column({ comment: '航向角', type: 'varchar', default: '90' }) |
| | | basedeviceinfo_heading_angle: string; |
| | | |
| | | @Column({ comment: 'IP地址', type: 'varchar', default: '127.0.0.1' }) |
| | | basedeviceinfo_ipaddress: string; |
| | | |
| | | @Column({ comment: '纬度', type: 'double', default: '31' }) |
| | | basedeviceinfo_latitude: Double; |
| | | |
| | | @Column({ comment: '安装位置', type: 'varchar', default: '华能电厂二号煤棚-第一马道-北' }) |
| | | basedeviceinfo_location: string; |
| | | |
| | | @Column({ comment: '逻辑ID', type: 'varchar', default: 'null' }) |
| | | basedeviceinfo_logic_id: string; |
| | | |
| | | @Column({ comment: '经度', type: 'double', default: '121' }) |
| | | basedeviceinfo_longitude: Double; |
| | | |
| | | @Column({ comment: '设备名称', type: 'varchar', default: '可见光-毫米波-采集设备' }) |
| | | basedeviceinfo_name: string; |
| | | |
| | | @Column({ comment: '运维负责人', type: 'varchar', default: 'null' }) |
| | | basedeviceinfo_operator: string; |
| | | |
| | | @Column({ comment: '俯仰角', type: 'varchar', default: '90' }) |
| | | basedeviceinfo_petch_angle: string; |
| | | |
| | | @Column({ comment: '设备精度', type: 'varchar', default: '3' }) |
| | | basedeviceinfo_precision: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: '无' }) |
| | | basedeviceinfo_remark: string; |
| | | |
| | | @Column({ comment: '横滚角', type: 'varchar', default: '90' }) |
| | | basedeviceinfo_roll_angle: string; |
| | | |
| | | @Column({ comment: '状态', type: 'int', default: '1' }) |
| | | basedeviceinfo_status: number; |
| | | |
| | | @Column({ comment: '配置人', type: 'varchar', default: 'null' }) |
| | | basedeviceparams_configurator: string; |
| | | |
| | | @Column({ comment: '设备物理ID', type: 'varchar', default: 'null' }) |
| | | basedeviceparams_device_id: string; |
| | | |
| | | @Column({ comment: '设备逻辑ID', type: 'varchar', default: 'null' }) |
| | | basedeviceparams_logic_id: string; |
| | | |
| | | @Column({ comment: 'key', type: 'varchar', default: 'null' }) |
| | | basedeviceparams_param_key: string; |
| | | |
| | | @Column({ comment: '参数类型', type: 'int', default: 'null' }) |
| | | basedeviceparams_param_type: number; |
| | | |
| | | @Column({ comment: '参数值', type: 'varchar', default: 'null' }) |
| | | basedeviceparams_param_value: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | basedeviceparams_remark: string; |
| | | |
| | | @Column({ comment: '状态,1-启用 0-停用', type: 'int', default: '1' }) |
| | | basedeviceparams_status: number; |
| | | |
| | | @Column({ comment: '配置人', type: 'varchar', default: 'null' }) |
| | | basedevicesection_configurator: string; |
| | | |
| | | @Column({ comment: '设备物理ID', type: 'varchar', default: 'null' }) |
| | | basedevicesection_device_id: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | basedevicesection_remark: string; |
| | | |
| | | @Column({ comment: '组件名称', type: 'varchar', default: 'null' }) |
| | | basedevicesection_section_name: string; |
| | | |
| | | @Column({ comment: '顺序编号', type: 'varchar', default: 'null' }) |
| | | basedevicesection_section_sort: string; |
| | | |
| | | @Column({ comment: '组件类型', type: 'int', default: 'null' }) |
| | | basedevicesection_section_type: number; |
| | | |
| | | @Column({ comment: '状态,1-启用 0-停用', type: 'int', default: '1' }) |
| | | basedevicesection_status: number; |
| | | |
| | | @Column({ comment: '类别 1-心跳 2-告警', type: 'int', default: 'null' }) |
| | | basedevicestatus_alarm_type: number; |
| | | |
| | | @Column({ comment: '设备物理ID', type: 'varchar', default: 'null' }) |
| | | basedevicestatus_device_id: string; |
| | | |
| | | @Column({ comment: '设备逻辑ID', type: 'varchar', default: 'null' }) |
| | | basedevicestatus_logic_id: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | basedevicestatus_remark: string; |
| | | |
| | | @Column({ comment: '上报内容,可以是json格式', type: 'varchar', default: 'null' }) |
| | | basedevicestatus_report_content: string; |
| | | |
| | | @Column({ comment: '上报时间', type: 'datetime', default: 'null' }) |
| | | basedevicestatus_report_time: Date; |
| | | |
| | | @Column({ comment: '状态,1-启用 0-停用', type: 'int', default: '1' }) |
| | | basedevicestatus_status: number; |
| | | |
| | | @Column({ comment: '旋转直径', type: 'varchar', default: 'null' }) |
| | | doutrubine_diameter_wheel: string; |
| | | |
| | | @Column({ comment: 'dou_wheel_volumn', type: 'varchar', default: 'null' }) |
| | | doutrubine_dou_wheel_volumn: string; |
| | | |
| | | @Column({ comment: 'max_reclaiming', type: 'varchar', default: 'null' }) |
| | | doutrubine_max_reclaiming: string; |
| | | |
| | | @Column({ comment: '煤堆2', type: 'varchar', default: 'null' }) |
| | | doutrubine_max_windrow: string; |
| | | |
| | | @Column({ comment: 'petch_angle', type: 'varchar', default: 'null' }) |
| | | doutrubine_petch_angle: string; |
| | | |
| | | @Column({ comment: '旋转直径', type: 'varchar', default: 'null' }) |
| | | doutrubine_pie_height_down: string; |
| | | |
| | | @Column({ comment: '旋转直径', type: 'varchar', default: 'null' }) |
| | | doutrubine_pie_height_up: string; |
| | | |
| | | @Column({ comment: 'rated_reclaiming', type: 'varchar', default: 'null' }) |
| | | doutrubine_rated_reclaiming: string; |
| | | |
| | | @Column({ comment: '煤堆1', type: 'varchar', default: 'null' }) |
| | | doutrubine_rated_windrow: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | doutrubine_remark: string; |
| | | |
| | | @Column({ comment: '状态', type: 'tinyint', default: '1' }) |
| | | doutrubine_status: number; |
| | | |
| | | @Column({ comment: '斗轮机名称', type: 'varchar', default: 'null' }) |
| | | doutrubine_trubine_name: string; |
| | | |
| | | @Column({ comment: '斗轮机编号', type: 'varchar', default: 'null' }) |
| | | doutrubine_trubine_no: string; |
| | | |
| | | @Column({ comment: '型号尺寸', type: 'varchar', default: 'null' }) |
| | | doutrubine_trubine_size: string; |
| | | |
| | | @Column({ comment: '斗轮机类别', type: 'varchar', default: 'null' }) |
| | | doutrubine_trubine_type: string; |
| | | |
| | | @Column({ comment: '高度', type: 'double', default: 'null' }) |
| | | trubinelocation_elevation: Double; |
| | | |
| | | @Column({ comment: '方位角', type: 'varchar', default: 'null' }) |
| | | trubinelocation_heading_angle: string; |
| | | |
| | | @Column({ comment: '经度', type: 'double', default: 'null' }) |
| | | trubinelocation_latitude: Double; |
| | | |
| | | @Column({ comment: '纬度', type: 'double', default: 'null' }) |
| | | trubinelocation_longitude: Double; |
| | | |
| | | @Column({ comment: '精度', type: 'varchar', default: 'null' }) |
| | | trubinelocation_precision: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | trubinelocation_remark: string; |
| | | |
| | | @Column({ comment: '1-启用 0-禁用', type: 'int', default: '1' }) |
| | | trubinelocation_status: number; |
| | | |
| | | @Column({ comment: '分类ID', type: 'bigint', default: 0 }) |
| | | baseentity_classifyId: number; |
| | | |
| | | @Column({ comment: '类型', type: 'varchar', default: 'null' }) |
| | | baseentity_type: string; |
| | | |
| | | @Column({ comment: '地址', type: 'varchar', default: 'null' }) |
| | | baseentity_url: string; |
| | | |
| | | @Column({ comment: '账号', type: 'varchar', default: 'null' }) |
| | | interfacelist_auth_account: string; |
| | | |
| | | @Column({ comment: '密码', type: 'varchar', default: 'null' }) |
| | | interfacelist_auth_psw: string; |
| | | |
| | | @Column({ comment: '认证方式', type: 'varchar', default: 'null' }) |
| | | interfacelist_interface_auth: string; |
| | | |
| | | @Column({ comment: '接口IP', type: 'varchar', default: 'null' }) |
| | | interfacelist_interface_ip: string; |
| | | |
| | | @Column({ comment: '接口名称', type: 'varchar', default: 'null' }) |
| | | interfacelist_interface_name: string; |
| | | |
| | | @Column({ comment: '端口', type: 'varchar', default: 'null' }) |
| | | interfacelist_interface_port: string; |
| | | |
| | | @Column({ comment: '接口协议', type: 'varchar', default: 'null' }) |
| | | interfacelist_interface_protocal: string; |
| | | |
| | | @Column({ comment: '接口类型', type: 'varchar', default: 'null' }) |
| | | interfacelist_interface_type: string; |
| | | |
| | | @Column({ comment: '接口地址', type: 'varchar', default: 'null' }) |
| | | interfacelist_interface_url: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | interfacelist_remark: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | interfacelist_share_service: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | interfacelist_share_url: string; |
| | | |
| | | @Column({ comment: '', type: 'int', default: 'null' }) |
| | | interfacelist_status: number; |
| | | |
| | | @Column({ comment: '调用结束时间', type: 'datetime', default: 'null' }) |
| | | interfacerecord_end_time: Date; |
| | | |
| | | @Column({ comment: '接口调用地址', type: 'varchar', default: 'null' }) |
| | | interfacerecord_interface_direct: string; |
| | | |
| | | @Column({ comment: '接口清单ID', type: 'varchar', default: 'null' }) |
| | | interfacerecord_interface_id: string; |
| | | |
| | | @Column({ comment: '调用参数,json格式', type: 'varchar', default: 'null' }) |
| | | interfacerecord_params: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | interfacerecord_remark: string; |
| | | |
| | | @Column({ comment: '请求类型', type: 'varchar', default: 'null' }) |
| | | interfacerecord_request_type: string; |
| | | |
| | | @Column({ comment: '调用结果', type: 'varchar', default: 'null' }) |
| | | interfacerecord_result: string; |
| | | |
| | | @Column({ comment: '开始时间', type: 'datetime', default: 'null' }) |
| | | interfacerecord_start_time: Date; |
| | | |
| | | @Column({ comment: '1-启用 0-禁用', type: 'int', default: '1' }) |
| | | interfacerecord_status: number; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_citycode: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_cityEn: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_cityname: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_cloud: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_humidity: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_iconDay: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_iconNight: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_moonPhase: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_moonPhaseIcon: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_moonrise: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_moonset: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_posttime: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_precip: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_pressure: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_responsedata: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_sunrise: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_sunset: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_tempMax: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_tempMin: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_textDay: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_textNight: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_type: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_uvIndex: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_vis: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_wind360Day: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_wind360Night: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_windDirDay: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_windDirNight: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_windScaleDay: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_windScaleNight: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_windSpeedDay: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherday_windSpeedNight: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_citycode: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_cityEn: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_cityname: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_cloud: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_dew: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_feelsLike: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_humidity: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_icon: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_posttime: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_precip: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_pressure: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_responsedata: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_temp: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_text: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_type: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_vis: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_wind360: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_windDir: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_windScale: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | weatherhour_windSpeed: string; |
| | | |
| | | @Column({ comment: 'id', type: 'varchar', default: 'null' }) |
| | | hnall_logic_id: string; |
| | | |
| | | @Column({ comment: '', type: 'int', default: 'null' }) |
| | | comconfig_com_model_id: number; |
| | | |
| | | @Column({ comment: '', type: 'int', default: 'null' }) |
| | | comconfig_model_id: number; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | comconfig_remark: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | comconfig_sortby: string; |
| | | |
| | | @Column({ comment: '', type: 'int', default: 'null' }) |
| | | comconfig_status: number; |
| | | |
| | | @Column({ comment: '数据内容', type: 'varchar', default: 'null' }) |
| | | modelcombination_data_content: string; |
| | | |
| | | @Column({ comment: '数据文件路径,url格式,域名可由服务端或者前端配置', type: 'varchar', default: 'null' }) |
| | | modelcombination_data_path: string; |
| | | |
| | | @Column({ comment: '1-周期任务 0-即时任务', type: 'int', default: 'null' }) |
| | | modelcombination_is_periodic: number; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | modelcombination_remark: string; |
| | | |
| | | @Column({ comment: '1-启用 0-禁用', type: 'int', default: 'null' }) |
| | | modelcombination_status: number; |
| | | |
| | | @Column({ comment: '任务ID,周期任务表或者即时任务表主键', type: 'int', default: 'null' }) |
| | | modelcombination_task_id: number; |
| | | |
| | | @Column({ comment: '监测记录ID', type: 'int', default: 'null' }) |
| | | modelcombination_task_monitor_id: number; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | pointcloud_remark: string; |
| | | |
| | | @Column({ comment: '数据内容', type: 'varchar', default: 'null' }) |
| | | pointmodel_data_content: string; |
| | | |
| | | @Column({ comment: '数据文件路径,存放url', type: 'varchar', default: 'null' }) |
| | | pointmodel_data_path: string; |
| | | |
| | | @Column({ comment: '设备物理ID', type: 'varchar', default: 'null' }) |
| | | pointmodel_device_id: string; |
| | | |
| | | @Column({ comment: '1-周期任务 0-即时性任务', type: 'int', default: 'null' }) |
| | | pointmodel_is_periodic: number; |
| | | |
| | | @Column({ comment: '点云数据来源的设备逻辑编号', type: 'varchar', default: 'null' }) |
| | | pointmodel_logic_id: string; |
| | | |
| | | @Column({ comment: '点云名称,格式:以${logic_id#YYYYMMDDHHMMSS}', type: 'varchar', default: 'null' }) |
| | | pointmodel_name: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | pointmodel_remark: string; |
| | | |
| | | @Column({ comment: '状态, 1-启用 0-禁用', type: 'int', default: '1' }) |
| | | pointmodel_status: number; |
| | | |
| | | @Column({ comment: '任务ID,周期任务表或者即时任务表主键', type: 'int', default: 'null' }) |
| | | pointmodel_task_id: number; |
| | | |
| | | @Column({ comment: '监测记录id', type: 'int', default: 'null' }) |
| | | pointmodel_task_monitor_id: number; |
| | | |
| | | @Column({ comment: '数据内容', type: 'varchar', default: 'null' }) |
| | | modelstatic_data_content: string; |
| | | |
| | | @Column({ comment: '数据文件路径,存放url', type: 'varchar', default: 'null' }) |
| | | modelstatic_data_path: string; |
| | | |
| | | @Column({ comment: '物理模型的逻辑ID', type: 'varchar', default: 'null' }) |
| | | modelstatic_logic_id: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | modelstatic_name: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | modelstatic_remark: string; |
| | | |
| | | @Column({ comment: '状态, 1-启用 0-禁用', type: 'int', default: '1' }) |
| | | modelstatic_status: number; |
| | | |
| | | @Column({ comment: '数据内容', type: 'varchar', default: 'null' }) |
| | | colletdata_data_content: string; |
| | | |
| | | @Column({ comment: '数据存储路径,url格式,域名可由服务端或者前端配置进行访问', type: 'varchar', default: 'null' }) |
| | | colletdata_data_path: string; |
| | | |
| | | @Column({ comment: '1-周期任务 0-即时性任务', type: 'int', default: 'null' }) |
| | | colletdata_is_periodic: number; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | colletdata_remark: string; |
| | | |
| | | @Column({ comment: '', type: 'int', default: '1' }) |
| | | colletdata_status: number; |
| | | |
| | | @Column({ comment: '任务ID,周期任务表主键或者即时任务表主键', type: 'int', default: 'null' }) |
| | | colletdata_task_id: number; |
| | | |
| | | @Column({ comment: '监测记录ID', type: 'int', default: 'null' }) |
| | | colletdata_task_monitor_id: number; |
| | | |
| | | @Column({ comment: '', type: 'int', default: 'null' }) |
| | | colletmeta_collet_data_id: number; |
| | | |
| | | @Column({ comment: '', type: 'int', default: 'null' }) |
| | | colletmeta_meta_data_id: number; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | colletmeta_remark: string; |
| | | |
| | | @Column({ comment: '', type: 'int', default: '1' }) |
| | | colletmeta_status: number; |
| | | |
| | | @Column({ comment: '数据文件内容描述', type: 'varchar', default: 'null' }) |
| | | metadata_data_content: string; |
| | | |
| | | @Column({ comment: '数据文件路径,url格式,域名可由前端或者服务端配置', type: 'varchar', default: 'null' }) |
| | | metadata_data_path: string; |
| | | |
| | | @Column({ comment: '设备ID', type: 'varchar', default: 'null' }) |
| | | metadata_device_id: string; |
| | | |
| | | @Column({ comment: '执行记录', type: 'int', default: 'null' }) |
| | | metadata_exec_record_id: number; |
| | | |
| | | @Column({ comment: '1-周期任务 0-即时性任务', type: 'int', default: 'null' }) |
| | | metadata_is_periodic: number; |
| | | |
| | | @Column({ comment: '逻辑ID', type: 'varchar', default: 'null' }) |
| | | metadata_logic_id: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | metadata_remark: string; |
| | | |
| | | @Column({ comment: '状态,1-有效 0-无效 默认为1', type: 'int', default: '1' }) |
| | | metadata_status: number; |
| | | |
| | | @Column({ comment: '任务ID', type: 'int', default: 'null' }) |
| | | metadata_task_id: number; |
| | | |
| | | @Column({ comment: '监测记录ID', type: 'int', default: 'null' }) |
| | | metadata_task_monitor_id: number; |
| | | |
| | | @Column({ comment: '点云计算花费时间,单位毫秒', type: 'int', default: 'null' }) |
| | | statdata_avg_caculater_time: number; |
| | | |
| | | @Column({ comment: '平均文件大小', type: 'int', default: 'null' }) |
| | | statdata_avg_filesize: number; |
| | | |
| | | @Column({ comment: '平均花费时间,单位毫秒', type: 'int', default: 'null' }) |
| | | statdata_avg_task_time: number; |
| | | |
| | | @Column({ comment: '数据传输时间,毫秒', type: 'int', default: 'null' }) |
| | | statdata_avg_transmission_time: number; |
| | | |
| | | @Column({ comment: 'CPU 占用率,百分比', type: 'int', default: 'null' }) |
| | | statdata_cpu_rate: number; |
| | | |
| | | @Column({ comment: '统计截止时间', type: 'datetime', default: 'null' }) |
| | | statdata_end_time: Date; |
| | | |
| | | @Column({ comment: '内存,', type: 'int', default: 'null' }) |
| | | statdata_memory: number; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | statdata_remark: string; |
| | | |
| | | @Column({ comment: '统计起始时间', type: 'datetime', default: 'null' }) |
| | | statdata_start_time: Date; |
| | | |
| | | @Column({ comment: '', type: 'int', default: '1' }) |
| | | statdata_status: number; |
| | | |
| | | @Column({ comment: '任务类型: 1-抓图 2-雷达扫描 3-除尘 ', type: 'int', default: 'null' }) |
| | | statdata_task_type: number; |
| | | |
| | | @Column({ comment: '统计时间粒度,5-5分钟 10-10分钟 30-30分钟 60-60分钟 1440-1天 43200-1月 ', type: 'int', default: 'null' }) |
| | | statdata_time: number; |
| | | |
| | | @Column({ comment: '煤种标记', type: 'varchar', default: 'null' }) |
| | | planinventory_coal_marker: string; |
| | | |
| | | @Column({ comment: '煤堆体积', type: 'varchar', default: 'null' }) |
| | | planinventory_coal_volume: string; |
| | | |
| | | @Column({ comment: '煤堆重量,单位吨', type: 'varchar', default: 'null' }) |
| | | planinventory_coal_weight: string; |
| | | |
| | | @Column({ comment: '组合点云ID', type: 'int', default: 'null' }) |
| | | planinventory_com_model_id: number; |
| | | |
| | | @Column({ comment: '盘煤计划ID', type: 'int', default: 'null' }) |
| | | planinventory_plan_id: number; |
| | | |
| | | @Column({ comment: '盘煤名称', type: 'varchar', default: 'null' }) |
| | | planinventory_plan_name: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | planinventory_remark: string; |
| | | |
| | | @Column({ comment: '1-启用 0-禁用', type: 'int', default: '1' }) |
| | | planinventory_status: number; |
| | | |
| | | @Column({ comment: '设备物理ID', type: 'varchar', default: 'null' }) |
| | | execrecord_device_id: string; |
| | | |
| | | @Column({ comment: '设备执行任务时刻的相关参数,json格式。', type: 'varchar', default: 'null' }) |
| | | execrecord_device_params: string; |
| | | |
| | | @Column({ comment: '结束时间,任务执行完成时间', type: 'datetime', default: 'null' }) |
| | | execrecord_end_time: Date; |
| | | |
| | | @Column({ comment: '执行结果', type: 'varchar', default: 'null' }) |
| | | execrecord_exec_result: string; |
| | | |
| | | @Column({ comment: '执行耗时', type: 'varchar', default: 'null' }) |
| | | execrecord_exec_time: string; |
| | | |
| | | @Column({ comment: '1-周期任务 0-即时性任务', type: 'int', default: 'null' }) |
| | | execrecord_is_periodic: number; |
| | | |
| | | @Column({ comment: '设备的逻辑ID', type: 'varchar', default: 'null' }) |
| | | execrecord_logic_id: string; |
| | | |
| | | @Column({ comment: '服务端数据接收时间', type: 'datetime', default: 'null' }) |
| | | execrecord_receive_time: Date; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | execrecord_remark: string; |
| | | |
| | | @Column({ comment: '数据回传时间', type: 'datetime', default: 'null' }) |
| | | execrecord_send_time: Date; |
| | | |
| | | @Column({ comment: '开始时间,设备收到指令时间', type: 'datetime', default: 'null' }) |
| | | execrecord_start_time: Date; |
| | | |
| | | @Column({ comment: '无意义,框架需要', type: 'int', default: '1' }) |
| | | execrecord_status: number; |
| | | |
| | | @Column({ comment: '任务指令', type: 'varchar', default: 'null' }) |
| | | execrecord_task_command: string; |
| | | |
| | | @Column({ comment: '任务ID,对应t_task_periodic_setting的主键,或者t_task_immediately主键', type: 'int', default: 'null' }) |
| | | execrecord_task_id: number; |
| | | |
| | | @Column({ comment: '监测记录ID,对应t_task_monitor的主键', type: 'int', default: 'null' }) |
| | | execrecord_task_monitor_id: number; |
| | | |
| | | @Column({ comment: '逻辑ID', type: 'varchar', default: 'null' }) |
| | | taskimmediately_logic_ids: string; |
| | | |
| | | @Column({ comment: '设置时间', type: 'varchar', default: 'null' }) |
| | | taskimmediately_operate_time: string; |
| | | |
| | | @Column({ comment: '操作人', type: 'varchar', default: 'null' }) |
| | | taskimmediately_operator: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | taskimmediately_remark: string; |
| | | |
| | | @Column({ comment: '0-未执行 1-执行中 2-已执行', type: 'int', default: 'null' }) |
| | | taskimmediately_status: number; |
| | | |
| | | @Column({ comment: '任务指令', type: 'varchar', default: 'null' }) |
| | | taskimmediately_task_command: string; |
| | | |
| | | @Column({ comment: '任务内容描述', type: 'varchar', default: 'null' }) |
| | | taskimmediately_task_content: string; |
| | | |
| | | @Column({ comment: '任务参数,如点云参数', type: 'varchar', default: 'null' }) |
| | | taskimmediately_task_params: string; |
| | | |
| | | @Column({ comment: '任务类型: 1-抓图 2-雷达扫描 3-除尘 ', type: 'int', default: 'null' }) |
| | | taskimmediately_task_type: number; |
| | | |
| | | @Column({ comment: '1-周期任务 0-即时性任务', type: 'int', default: 'null' }) |
| | | messagerecord_is_periodic: number; |
| | | |
| | | @Column({ comment: '消息', type: 'varchar', default: 'null' }) |
| | | messagerecord_message: string; |
| | | |
| | | @Column({ comment: '发送源 ', type: 'varchar', default: 'null' }) |
| | | messagerecord_msg_source: string; |
| | | |
| | | @Column({ comment: '发送目标', type: 'varchar', default: 'null' }) |
| | | messagerecord_msg_target: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | messagerecord_remark: string; |
| | | |
| | | @Column({ comment: '发送时间', type: 'datetime', default: 'null' }) |
| | | messagerecord_send_time: Date; |
| | | |
| | | @Column({ comment: '消息状态 1-已发送 0-未发送 默认为0', type: 'int', default: '0' }) |
| | | messagerecord_status: number; |
| | | |
| | | @Column({ comment: '任务来源ID', type: 'int', default: 'null' }) |
| | | messagerecord_task_id: number; |
| | | |
| | | @Column({ comment: '监测记录ID', type: 'int', default: 'null' }) |
| | | messagerecord_task_monitor_id: number; |
| | | |
| | | @Column({ comment: '周期任务周期设置,调度表达式', type: 'varchar', default: 'null' }) |
| | | taskmonitor_crontab_rule: string; |
| | | |
| | | @Column({ comment: '1-周期任务 0-即时性任务', type: 'int', default: 'null' }) |
| | | taskmonitor_is_periodic: number; |
| | | |
| | | @Column({ comment: '设备逻辑id集合,逗号分隔', type: 'varchar', default: 'null' }) |
| | | taskmonitor_logic_ids: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | taskmonitor_operator: string; |
| | | |
| | | @Column({ comment: '', type: 'datetime', default: 'null' }) |
| | | taskmonitor_opertate_time: Date; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | taskmonitor_remark: string; |
| | | |
| | | @Column({ comment: '0-未执行 1-执行中 2-已执行', type: 'int', default: '0' }) |
| | | taskmonitor_status: number; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | taskmonitor_task_command: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: 'null' }) |
| | | taskmonitor_task_content: string; |
| | | |
| | | @Column({ comment: '任务ID, 周期任务的主键或者是即时任务的主键', type: 'int', default: 'null' }) |
| | | taskmonitor_task_id: number; |
| | | |
| | | @Column({ comment: '任务参数', type: 'varchar', default: 'null' }) |
| | | taskmonitor_task_params: string; |
| | | |
| | | @Column({ comment: '任务类型: 1-抓图 2-雷达扫描 3-除尘 ', type: 'int', default: 'null' }) |
| | | taskmonitor_task_type: number; |
| | | |
| | | @Column({ comment: '周期任务', type: 'varchar', default: 'null' }) |
| | | periodicsetting_crontab_rule: string; |
| | | |
| | | @Column({ comment: '任务结束时间', type: 'datetime', default: 'null' }) |
| | | periodicsetting_end_time: Date; |
| | | |
| | | @Column({ comment: '设备分组ID', type: 'int', default: 'null' }) |
| | | periodicsetting_group_id: number; |
| | | |
| | | @Column({ comment: '设置人', type: 'varchar', default: 'null' }) |
| | | periodicsetting_operator: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: 'null' }) |
| | | periodicsetting_remark: string; |
| | | |
| | | @Column({ comment: '状态', type: 'tinyint', default: '1' }) |
| | | periodicsetting_status: number; |
| | | |
| | | @Column({ comment: '任务命令格式', type: 'varchar', default: 'null' }) |
| | | periodicsetting_task_command: string; |
| | | |
| | | @Column({ comment: '任务内容描述', type: 'varchar', default: 'null' }) |
| | | periodicsetting_task_content: string; |
| | | |
| | | @Column({ comment: '任务参数', type: 'varchar', default: 'null' }) |
| | | periodicsetting_task_params: string; |
| | | |
| | | @Column({ comment: '任务类型', type: 'int', default: 'null' }) |
| | | periodicsetting_task_type: number; |
| | | |
| | | @Column({ comment: '年龄', type: 'int', default: 'null' }) |
| | | tuser_age: number; |
| | | |
| | | @Column({ comment: '出生日期', type: 'datetime', default: 'null' }) |
| | | tuser_birthDate: Date; |
| | | |
| | | @Column({ comment: '头像', type: 'varchar', default: 'null' }) |
| | | tuser_headImg: string; |
| | | |
| | | @Column({ comment: '介绍', type: 'varchar', default: 'null' }) |
| | | tuser_introduce: string; |
| | | |
| | | @Column({ comment: '姓名', type: 'varchar', default: 'null' }) |
| | | tuser_name: string; |
| | | |
| | | @Column({ comment: '性别 0-未知 1-男 2-女', type: 'tinyint', default: '0' }) |
| | | tuser_type: number; |
| | | |
| | | } |
| | | import { BaseEntity } from '@cool-midway/core'; |
| | | import { Column } from 'typeorm'; |
| | | |
| | | /** |
| | | * 文件空间信息 |
| | | */ |
| | | @EntityModel('t_sys_comm_column') |
| | | export class CommEntity extends BaseEntity { |
| | | @Column({ comment: '地址' }) |
| | | url: string; |
| | | |
| | | @Column({ comment: '类型' }) |
| | | type: string; |
| | | |
| | | @Column({ comment: '分类ID', type: 'bigint', nullable: true }) |
| | | classifyId: number; |
| | | } |
| | |
| | | // 中间件 |
| | | middlewares: [], |
| | | // 全局中间件 |
| | | globalMiddlewares: [], |
| | | // globalMiddlewares: [], |
| | | } as ModuleConfig; |
| | | }; |
| New file |
| | |
| | | import { Provide, Inject, } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { BasedeviceinfoEntity } from '../../entity/basedeviceinfo'; |
| | | |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | import { BasedeviceinfoService } from '../../service/basedeviceinfo'; |
| | | |
| | | /** |
| | | * 描述 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'info', 'list', 'page'], |
| | | entity: BasedeviceinfoEntity |
| | | }) |
| | | export class AdminBasedeviceinfoController extends DataController { |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Basedeviceparams } from '../../entity/basedeviceparams'; |
| | | import { BasedeviceparamsService } from '../../service/basedeviceparams'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备参数表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Basedeviceparams, |
| | | service: BasedeviceparamsService, |
| | | }) |
| | | export class AdminBasedeviceparamsController extends DataController { |
| | | @Inject() |
| | | basedeviceparamsService: BasedeviceparamsService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Basedevicesection } from '../../entity/basedevicesection'; |
| | | import { BasedevicesectionService } from '../../service/basedevicesection'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备组件 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Basedevicesection, |
| | | service: BasedevicesectionService, |
| | | }) |
| | | export class AdminBasedevicesectionController extends DataController { |
| | | @Inject() |
| | | basedevicesectionService: BasedevicesectionService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Basedevicestatus } from '../../entity/basedevicestatus'; |
| | | import { BasedevicestatusService } from '../../service/basedevicestatus'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备状态表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Basedevicestatus, |
| | | service: BasedevicestatusService, |
| | | }) |
| | | export class AdminBasedevicestatusController extends DataController { |
| | | @Inject() |
| | | basedevicestatusService: BasedevicestatusService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Colletdata } from '../../entity/colletdata'; |
| | | import { ColletdataService } from '../../service/colletdata'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Colletdata, |
| | | service: ColletdataService, |
| | | }) |
| | | export class AdminColletdataController extends DataController { |
| | | @Inject() |
| | | colletdataService: ColletdataService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Colletmeta } from '../../entity/colletmeta'; |
| | | import { ColletmetaService } from '../../service/colletmeta'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Colletmeta, |
| | | service: ColletmetaService, |
| | | }) |
| | | export class AdminColletmetaController extends DataController { |
| | | @Inject() |
| | | colletmetaService: ColletmetaService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Comconfig } from '../../entity/comconfig'; |
| | | import { ComconfigService } from '../../service/comconfig'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Comconfig, |
| | | service: ComconfigService, |
| | | }) |
| | | export class AdminComconfigController extends DataController { |
| | | @Inject() |
| | | comconfigService: ComconfigService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Deviceattachment } from '../../entity/deviceattachment'; |
| | | import { DeviceattachmentService } from '../../service/deviceattachment'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备相关的附件 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Deviceattachment, |
| | | service: DeviceattachmentService, |
| | | }) |
| | | export class AdminDeviceattachmentController extends DataController { |
| | | @Inject() |
| | | deviceattachmentService: DeviceattachmentService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Devicegroup } from '../../entity/devicegroup'; |
| | | import { DevicegroupService } from '../../service/devicegroup'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备分组表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Devicegroup, |
| | | service: DevicegroupService, |
| | | }) |
| | | export class AdminDevicegroupController extends DataController { |
| | | @Inject() |
| | | devicegroupService: DevicegroupService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Deviceopreraterecord } from '../../entity/deviceopreraterecord'; |
| | | import { DeviceopreraterecordService } from '../../service/deviceopreraterecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备运维记录 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Deviceopreraterecord, |
| | | service: DeviceopreraterecordService, |
| | | }) |
| | | export class AdminDeviceopreraterecordController extends DataController { |
| | | @Inject() |
| | | deviceopreraterecordService: DeviceopreraterecordService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Doutrubine } from '../../entity/doutrubine'; |
| | | import { DoutrubineService } from '../../service/doutrubine'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 斗轮机信息 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Doutrubine, |
| | | service: DoutrubineService, |
| | | }) |
| | | export class AdminDoutrubineController extends DataController { |
| | | @Inject() |
| | | doutrubineService: DoutrubineService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Execrecord } from '../../entity/execrecord'; |
| | | import { ExecrecordService } from '../../service/execrecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 任务执行记录表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Execrecord, |
| | | service: ExecrecordService, |
| | | }) |
| | | export class AdminExecrecordController extends DataController { |
| | | @Inject() |
| | | execrecordService: ExecrecordService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Interfacelist } from '../../entity/interfacelist'; |
| | | import { InterfacelistService } from '../../service/interfacelist'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 接口清单 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Interfacelist, |
| | | service: InterfacelistService, |
| | | }) |
| | | export class AdminInterfacelistController extends DataController { |
| | | @Inject() |
| | | interfacelistService: InterfacelistService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Interfacerecord } from '../../entity/interfacerecord'; |
| | | import { InterfacerecordService } from '../../service/interfacerecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 组合模型 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Interfacerecord, |
| | | service: InterfacerecordService, |
| | | }) |
| | | export class AdminInterfacerecordController extends DataController { |
| | | @Inject() |
| | | interfacerecordService: InterfacerecordService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Messagerecord } from '../../entity/messagerecord'; |
| | | import { MessagerecordService } from '../../service/messagerecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 任务消息记录 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Messagerecord, |
| | | service: MessagerecordService, |
| | | }) |
| | | export class AdminMessagerecordController extends DataController { |
| | | @Inject() |
| | | messagerecordService: MessagerecordService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Metadata } from '../../entity/metadata'; |
| | | import { MetadataService } from '../../service/metadata'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测采集原数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Metadata, |
| | | service: MetadataService, |
| | | }) |
| | | export class AdminMetadataController extends DataController { |
| | | @Inject() |
| | | metadataService: MetadataService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Modelcombination } from '../../entity/modelcombination'; |
| | | import { ModelcombinationService } from '../../service/modelcombination'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 组合模型 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Modelcombination, |
| | | service: ModelcombinationService, |
| | | }) |
| | | export class AdminModelcombinationController extends DataController { |
| | | @Inject() |
| | | modelcombinationService: ModelcombinationService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Modelstatic } from '../../entity/modelstatic'; |
| | | import { ModelstaticService } from '../../service/modelstatic'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 静态模型数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Modelstatic, |
| | | service: ModelstaticService, |
| | | }) |
| | | export class AdminModelstaticController extends DataController { |
| | | @Inject() |
| | | modelstaticService: ModelstaticService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Periodicsetting } from '../../entity/periodicsetting'; |
| | | import { PeriodicsettingService } from '../../service/periodicsetting'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 分组任务参数设置表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Periodicsetting, |
| | | service: PeriodicsettingService, |
| | | }) |
| | | export class AdminPeriodicsettingController extends DataController { |
| | | @Inject() |
| | | periodicsettingService: PeriodicsettingService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Planinventory } from '../../entity/planinventory'; |
| | | import { PlaninventoryService } from '../../service/planinventory'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 盘煤计划 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Planinventory, |
| | | service: PlaninventoryService, |
| | | }) |
| | | export class AdminPlaninventoryController extends DataController { |
| | | @Inject() |
| | | planinventoryService: PlaninventoryService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Pointcloud } from '../../entity/pointcloud'; |
| | | import { PointcloudService } from '../../service/pointcloud'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Pointcloud, |
| | | service: PointcloudService, |
| | | }) |
| | | export class AdminPointcloudController extends DataController { |
| | | @Inject() |
| | | pointcloudService: PointcloudService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Pointmodel } from '../../entity/pointmodel'; |
| | | import { PointmodelService } from '../../service/pointmodel'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 点云模型 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Pointmodel, |
| | | service: PointmodelService, |
| | | }) |
| | | export class AdminPointmodelController extends DataController { |
| | | @Inject() |
| | | pointmodelService: PointmodelService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Statdata } from '../../entity/statdata'; |
| | | import { StatdataService } from '../../service/statdata'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测统计 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Statdata, |
| | | service: StatdataService, |
| | | }) |
| | | export class AdminStatdataController extends DataController { |
| | | @Inject() |
| | | statdataService: StatdataService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Taskimmediately } from '../../entity/taskimmediately'; |
| | | import { TaskimmediatelyService } from '../../service/taskimmediately'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 即时任务记录表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Taskimmediately, |
| | | service: TaskimmediatelyService, |
| | | }) |
| | | export class AdminTaskimmediatelyController extends DataController { |
| | | @Inject() |
| | | taskimmediatelyService: TaskimmediatelyService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Taskmonitor } from '../../entity/taskmonitor'; |
| | | import { TaskmonitorService } from '../../service/taskmonitor'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测任务表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Taskmonitor, |
| | | service: TaskmonitorService, |
| | | }) |
| | | export class AdminTaskmonitorController extends DataController { |
| | | @Inject() |
| | | taskmonitorService: TaskmonitorService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Trubinelocation } from '../../entity/trubinelocation'; |
| | | import { TrubinelocationService } from '../../service/trubinelocation'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 斗轮机信息 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Trubinelocation, |
| | | service: TrubinelocationService, |
| | | }) |
| | | export class AdminTrubinelocationController extends DataController { |
| | | @Inject() |
| | | trubinelocationService: TrubinelocationService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Tuser } from '../../entity/tuser'; |
| | | import { TuserService } from '../../service/tuser'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Tuser, |
| | | service: TuserService, |
| | | }) |
| | | export class AdminTuserController extends DataController { |
| | | @Inject() |
| | | tuserService: TuserService; |
| | | } |
| New file |
| | |
| | | import { Provide, Inject, } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { BasedeviceinfoEntity } from '../../entity/basedeviceinfo'; |
| | | |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | import { BasedeviceinfoService } from '../../service/basedeviceinfo'; |
| | | |
| | | /** |
| | | * 描述 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'info', 'list', 'page'], |
| | | entity: BasedeviceinfoEntity |
| | | }) |
| | | export class AppBasedeviceinfoController extends DataController { |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Basedeviceparams } from '../../entity/basedeviceparams'; |
| | | import { BasedeviceparamsService } from '../../service/basedeviceparams'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备参数表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Basedeviceparams, |
| | | service: BasedeviceparamsService, |
| | | }) |
| | | export class AppBasedeviceparamsController extends DataController { |
| | | @Inject() |
| | | basedeviceparamsService: BasedeviceparamsService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Basedevicesection } from '../../entity/basedevicesection'; |
| | | import { BasedevicesectionService } from '../../service/basedevicesection'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备组件 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Basedevicesection, |
| | | service: BasedevicesectionService, |
| | | }) |
| | | export class AppBasedevicesectionController extends DataController { |
| | | @Inject() |
| | | basedevicesectionService: BasedevicesectionService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Basedevicestatus } from '../../entity/basedevicestatus'; |
| | | import { BasedevicestatusService } from '../../service/basedevicestatus'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备状态表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Basedevicestatus, |
| | | service: BasedevicestatusService, |
| | | }) |
| | | export class AppBasedevicestatusController extends DataController { |
| | | @Inject() |
| | | basedevicestatusService: BasedevicestatusService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Colletdata } from '../../entity/colletdata'; |
| | | import { ColletdataService } from '../../service/colletdata'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Colletdata, |
| | | service: ColletdataService, |
| | | }) |
| | | export class AppColletdataController extends DataController { |
| | | @Inject() |
| | | colletdataService: ColletdataService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Colletmeta } from '../../entity/colletmeta'; |
| | | import { ColletmetaService } from '../../service/colletmeta'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Colletmeta, |
| | | service: ColletmetaService, |
| | | }) |
| | | export class AppColletmetaController extends DataController { |
| | | @Inject() |
| | | colletmetaService: ColletmetaService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Comconfig } from '../../entity/comconfig'; |
| | | import { ComconfigService } from '../../service/comconfig'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Comconfig, |
| | | service: ComconfigService, |
| | | }) |
| | | export class AppComconfigController extends DataController { |
| | | @Inject() |
| | | comconfigService: ComconfigService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Deviceattachment } from '../../entity/deviceattachment'; |
| | | import { DeviceattachmentService } from '../../service/deviceattachment'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备相关的附件 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Deviceattachment, |
| | | service: DeviceattachmentService, |
| | | }) |
| | | export class AppDeviceattachmentController extends DataController { |
| | | @Inject() |
| | | deviceattachmentService: DeviceattachmentService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Devicegroup } from '../../entity/devicegroup'; |
| | | import { DevicegroupService } from '../../service/devicegroup'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备分组表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list', 'page'], |
| | | entity: Devicegroup, |
| | | service: DevicegroupService, |
| | | }) |
| | | export class AppDevicegroupController extends DataController { |
| | | @Inject() |
| | | devicegroupService: DevicegroupService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Deviceopreraterecord } from '../../entity/deviceopreraterecord'; |
| | | import { DeviceopreraterecordService } from '../../service/deviceopreraterecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 设备运维记录 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Deviceopreraterecord, |
| | | service: DeviceopreraterecordService, |
| | | }) |
| | | export class AppDeviceopreraterecordController extends DataController { |
| | | @Inject() |
| | | deviceopreraterecordService: DeviceopreraterecordService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Doutrubine } from '../../entity/doutrubine'; |
| | | import { DoutrubineService } from '../../service/doutrubine'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 斗轮机信息 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Doutrubine, |
| | | service: DoutrubineService, |
| | | }) |
| | | export class AppDoutrubineController extends DataController { |
| | | @Inject() |
| | | doutrubineService: DoutrubineService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Execrecord } from '../../entity/execrecord'; |
| | | import { ExecrecordService } from '../../service/execrecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 任务执行记录表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Execrecord, |
| | | service: ExecrecordService, |
| | | }) |
| | | export class AppExecrecordController extends DataController { |
| | | @Inject() |
| | | execrecordService: ExecrecordService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Interfacelist } from '../../entity/interfacelist'; |
| | | import { InterfacelistService } from '../../service/interfacelist'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 接口清单 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Interfacelist, |
| | | service: InterfacelistService, |
| | | }) |
| | | export class AppInterfacelistController extends DataController { |
| | | @Inject() |
| | | interfacelistService: InterfacelistService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Interfacerecord } from '../../entity/interfacerecord'; |
| | | import { InterfacerecordService } from '../../service/interfacerecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 组合模型 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Interfacerecord, |
| | | service: InterfacerecordService, |
| | | }) |
| | | export class AppInterfacerecordController extends DataController { |
| | | @Inject() |
| | | interfacerecordService: InterfacerecordService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Messagerecord } from '../../entity/messagerecord'; |
| | | import { MessagerecordService } from '../../service/messagerecord'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 任务消息记录 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Messagerecord, |
| | | service: MessagerecordService, |
| | | }) |
| | | export class AppMessagerecordController extends DataController { |
| | | @Inject() |
| | | messagerecordService: MessagerecordService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Metadata } from '../../entity/metadata'; |
| | | import { MetadataService } from '../../service/metadata'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测采集原数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Metadata, |
| | | service: MetadataService, |
| | | }) |
| | | export class AppMetadataController extends DataController { |
| | | @Inject() |
| | | metadataService: MetadataService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Modelcombination } from '../../entity/modelcombination'; |
| | | import { ModelcombinationService } from '../../service/modelcombination'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 组合模型 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Modelcombination, |
| | | service: ModelcombinationService, |
| | | }) |
| | | export class AppModelcombinationController extends DataController { |
| | | @Inject() |
| | | modelcombinationService: ModelcombinationService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Modelstatic } from '../../entity/modelstatic'; |
| | | import { ModelstaticService } from '../../service/modelstatic'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 静态模型数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Modelstatic, |
| | | service: ModelstaticService, |
| | | }) |
| | | export class AppModelstaticController extends DataController { |
| | | @Inject() |
| | | modelstaticService: ModelstaticService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Periodicsetting } from '../../entity/periodicsetting'; |
| | | import { PeriodicsettingService } from '../../service/periodicsetting'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 分组任务参数设置表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Periodicsetting, |
| | | service: PeriodicsettingService, |
| | | }) |
| | | export class AppPeriodicsettingController extends DataController { |
| | | @Inject() |
| | | periodicsettingService: PeriodicsettingService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Planinventory } from '../../entity/planinventory'; |
| | | import { PlaninventoryService } from '../../service/planinventory'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 盘煤计划 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Planinventory, |
| | | service: PlaninventoryService, |
| | | }) |
| | | export class AppPlaninventoryController extends DataController { |
| | | @Inject() |
| | | planinventoryService: PlaninventoryService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Pointcloud } from '../../entity/pointcloud'; |
| | | import { PointcloudService } from '../../service/pointcloud'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测元数据 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Pointcloud, |
| | | service: PointcloudService, |
| | | }) |
| | | export class AppPointcloudController extends DataController { |
| | | @Inject() |
| | | pointcloudService: PointcloudService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Pointmodel } from '../../entity/pointmodel'; |
| | | import { PointmodelService } from '../../service/pointmodel'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 点云模型 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Pointmodel, |
| | | service: PointmodelService, |
| | | }) |
| | | export class AppPointmodelController extends DataController { |
| | | @Inject() |
| | | pointmodelService: PointmodelService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Statdata } from '../../entity/statdata'; |
| | | import { StatdataService } from '../../service/statdata'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测统计 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Statdata, |
| | | service: StatdataService, |
| | | }) |
| | | export class AppStatdataController extends DataController { |
| | | @Inject() |
| | | statdataService: StatdataService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Taskimmediately } from '../../entity/taskimmediately'; |
| | | import { TaskimmediatelyService } from '../../service/taskimmediately'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 即时任务记录表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Taskimmediately, |
| | | service: TaskimmediatelyService, |
| | | }) |
| | | export class AppTaskimmediatelyController extends DataController { |
| | | @Inject() |
| | | taskimmediatelyService: TaskimmediatelyService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Taskmonitor } from '../../entity/taskmonitor'; |
| | | import { TaskmonitorService } from '../../service/taskmonitor'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 监测任务表 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Taskmonitor, |
| | | service: TaskmonitorService, |
| | | }) |
| | | export class AppTaskmonitorController extends DataController { |
| | | @Inject() |
| | | taskmonitorService: TaskmonitorService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Trubinelocation } from '../../entity/trubinelocation'; |
| | | import { TrubinelocationService } from '../../service/trubinelocation'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * 斗轮机信息 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Trubinelocation, |
| | | service: TrubinelocationService, |
| | | }) |
| | | export class AppTrubinelocationController extends DataController { |
| | | @Inject() |
| | | trubinelocationService: TrubinelocationService; |
| | | } |
| New file |
| | |
| | | import { ALL, Body, Inject, Post, Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { Tuser } from '../../entity/tuser'; |
| | | import { TuserService } from '../../service/tuser'; |
| | | import { DataController } from '../../../base/controller/dataController'; |
| | | /** |
| | | * |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'list'], |
| | | entity: Tuser, |
| | | service: TuserService, |
| | | }) |
| | | export class AppTuserController extends DataController { |
| | | @Inject() |
| | | tuserService: TuserService; |
| | | } |
| | |
| | | import { EntityModel } from '@midwayjs/orm'; |
| | | import { BaseEntity } from '@cool-midway/core'; |
| | | import { Column, Double } from 'typeorm'; |
| | | import { Column } from 'typeorm'; |
| | | /** |
| | | * 设备信息表 |
| | | */ |
| | | @EntityModel('t_base_deviceinfo') |
| | | export class Basedeviceinfo extends BaseEntity { |
| | | @Column({ comment:'设备高度', type:'varchar', default:'', length:50}) |
| | | altitude: string; |
| | | @EntityModel('t_base_deviceinfo') |
| | | export class BasedeviceinfoEntity extends BaseEntity { |
| | | @Column({ comment: '设备高度', type: 'varchar', default: '', length: 50 }) |
| | | altitude: string; |
| | | |
| | | @Column({ comment:'账号', type:'varchar', default:'', length:50}) |
| | | device_account: string; |
| | | @Column({ comment: '账号', type: 'varchar', default: '', length: 50 }) |
| | | device_account: string; |
| | | |
| | | @Column({ comment:'唯一索引,设备物理id,如厂编号、subscribeno等', type:'varchar', default:'', length:50}) |
| | | device_id: string; |
| | | @Column({ comment: '唯一索引,设备物理id,如厂编号、subscribeno等', type: 'varchar', default: '', length: 50 }) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'端口', type:'varchar', default:'', length:50}) |
| | | device_port: string; |
| | | @Column({ comment: '端口', type: 'varchar', default: '', length: 50 }) |
| | | device_port: string; |
| | | |
| | | @Column({ comment:'密码', type:'varchar', default:'', length:50}) |
| | | device_psw: string; |
| | | @Column({ comment: '密码', type: 'varchar', default: '', length: 50 }) |
| | | device_psw: string; |
| | | |
| | | @Column({ comment:'设备精度', type:'varchar', default:'', length:50}) |
| | | dimension: string; |
| | | @Column({ comment: '设备精度', type: 'varchar', default: '', length: 50 }) |
| | | dimension: string; |
| | | |
| | | @Column({ comment:'', type:'varchar', default:'', length:50}) |
| | | heading_angle: string; |
| | | @Column({ comment: '', type: 'varchar', default: '', length: 50 }) |
| | | heading_angle: string; |
| | | |
| | | @Column({ comment:'IP地址', type:'varchar', default:'', length:50}) |
| | | ipaddres: string; |
| | | @Column({ comment: 'IP地址', type: 'varchar', default: '', length: 50 }) |
| | | ipaddres: string; |
| | | |
| | | @Column({ comment:'纬度,精确到小数点后6位', type:'varchar', default:'', length:50}) |
| | | latitude: string; |
| | | @Column({ comment: '纬度,精确到小数点后6位', type: 'varchar', default: '', length: 50 }) |
| | | latitude: string; |
| | | |
| | | @Column({ comment:'安装位置,**省**市**区**路**号**楼**方位', type:'varchar', default:'', length:50}) |
| | | location: string; |
| | | @Column({ comment: '安装位置,**省**市**区**路**号**楼**方位', type: 'varchar', default: '', length: 50 }) |
| | | location: string; |
| | | |
| | | @Column({ comment:'设备逻辑ID', type:'varchar', default:'', length:50}) |
| | | logic_id: string; |
| | | @Column({ comment: '设备逻辑ID', type: 'varchar', default: '', length: 50 }) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'经度,精确到小数点后6位', type:'varchar', default:'', length:50}) |
| | | longitude: string; |
| | | @Column({ comment: '经度,精确到小数点后6位', type: 'varchar', default: '', length: 50 }) |
| | | longitude: string; |
| | | |
| | | @Column({ comment:'设备名称', type:'varchar', default:'', length:50}) |
| | | name: string; |
| | | @Column({ comment: '设备名称', type: 'varchar', default: '', length: 50 }) |
| | | name: string; |
| | | |
| | | @Column({ comment:'运维负责人', type:'varchar', default:'', length:50}) |
| | | opertator: string; |
| | | @Column({ comment: '运维负责人', type: 'varchar', default: '', length: 50 }) |
| | | opertator: string; |
| | | |
| | | @Column({ comment:'俯仰角', type:'varchar', default:'', length:50}) |
| | | petch_angle: string; |
| | | @Column({ comment: '俯仰角', type: 'varchar', default: '', length: 50 }) |
| | | petch_angle: string; |
| | | |
| | | @Column({ comment:'航向角', type:'varchar', default:'', length:50}) |
| | | precision: string; |
| | | @Column({ comment: '航向角', type: 'varchar', default: '', length: 50 }) |
| | | precision: string; |
| | | |
| | | @Column({ comment:'备注', type:'varchar', default:'', length:50}) |
| | | remark: string; |
| | | @Column({ comment: '备注', type: 'varchar', default: '', length: 50 }) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'横滚角', type:'varchar', default:'', length:50}) |
| | | roll_angle: string; |
| | | @Column({ comment: '横滚角', type: 'varchar', default: '', length: 50 }) |
| | | roll_angle: string; |
| | | |
| | | @Column({ comment:'状态,1-启用 0-停用', type:'int', default:1, width:0}) |
| | | status: number; |
| | | @Column({ comment: '状态,1-启用 0-停用', type: 'int', default: 1, width: 0 }) |
| | | status: number; |
| | | |
| | | } |
| | |
| | | // import { Provide } from '@midwayjs/decorator'; |
| | | // import { CoolController, BaseController } from '@cool-midway/core'; |
| | | // import { DemodeviceGroupEntity } from '../../entity/deviceGroup'; |
| | | import { Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { DemodeviceGroupEntity } from '../../entity/deviceGroup'; |
| | | |
| | | // /** |
| | | // * 描述 |
| | | // */ |
| | | // @Provide() |
| | | // @CoolController({ |
| | | // api: ['add', 'delete', 'update', 'info', 'list', 'page'], |
| | | // entity: DemodeviceGroupEntity, |
| | | // }) |
| | | // export class DemoAdmindeviceGroupController extends BaseController { } |
| | | /** |
| | | * 描述 |
| | | */ |
| | | @Provide() |
| | | @CoolController({ |
| | | api: ['add', 'delete', 'update', 'info', 'list', 'page'], |
| | | entity: DemodeviceGroupEntity, |
| | | }) |
| | | export class DemoAdmindeviceGroupController extends BaseController { } |
| | |
| | | // import { Provide } from '@midwayjs/decorator'; |
| | | // import { CoolController, BaseController } from '@cool-midway/core'; |
| | | // import { DemodeviceGroupEntity } from '../../entity/deviceGroup'; |
| | | import { Provide } from '@midwayjs/decorator'; |
| | | import { CoolController, BaseController } from '@cool-midway/core'; |
| | | import { DemodeviceGroupEntity } from '../../entity/deviceGroup'; |
| | | |
| | | // /** |
| | | // * test |
| | | // */ |
| | | // @Provide() |
| | | // @CoolController( |
| | | // { |
| | | // api: ['add', 'delete', 'update', 'info', 'list', 'page'], |
| | | // entity: DemodeviceGroupEntity |
| | | // } |
| | | // ) |
| | | // export class DemoAppdGController extends BaseController { } |
| | | /** |
| | | * test |
| | | */ |
| | | @Provide() |
| | | @CoolController( |
| | | { |
| | | api: ['add', 'delete', 'update', 'info', 'list', 'page'], |
| | | entity: DemodeviceGroupEntity |
| | | } |
| | | ) |
| | | export class DemoAppdGController extends BaseController { } |