package main type get_cur_well_dep_resp struct { Wellname string `json:"wellname"` X string `json:"x"` Y string `json:"y"` Cur_well_dep string `json:"cur_well_dep"` Drilling_num string `json:"Drilling_num"` //钻次 Servicer string `json:"Servicer"` Wait_time string `json:"Wait_time"` Work_time string `json:"Work_time"` } type get_csv_resp struct { FileId string `json:"fileId"` } type get_up_off_well_info_resp struct { Data []Up_off_well `json:"data"` Total int `json:"total"` } type Up_off_well struct { Wellname string `json:"wellname"` Service_type string `json:"service_type"` User string `json:"user"` Up_well_time string `json:"up_well_time"` Entry_time string `json:"entry_time"` Out_time string `json:"out_time"` Off_well_time string `json:"off_well_time"` Op_type string `json:"op_type"` } type get_well_files_resp struct { Data []Well_file `json:"data"` } type Well_file struct { ID int `json:"id"` Filename string `json:"filename"` } type get_dev_manage_resp struct { Data []Dev_manage `json:"data"` } type get_tool_warning_resp struct { Data []Tool_warning `json:"data"` } type get_srr_event_resp struct { Data []Srr_event `json:"data"` } type get_srr_state_resp struct { Data []Srr_state `json:"data"` } type get_srr_base_resp struct { Wellname string `json:"wellname"` Uploadname string `json:"upload_name"` Ip string `json:"ip"` Location string `json:"location"` } type get_cmr_pdf_resp getDeesAuthDbResp type get_cmr_record_resp struct { Data []Cmr_input_record `json:"data"` Total int `json:"total"` } type Cmr_input_record_ex struct { Time string `json:"time"` V1 string `json:"v1"` V2 string `json:"v2"` V3 string `json:"v3"` V4 string `json:"v4"` } type Cmr_input_record struct { Time string `json:"time"` Context string `json:"context"` } type get_vibration_resp struct { OpUser string `json:"opUser"` Wellname string `json:"wellname"` //井名 WellNameSource string `json:"WELLNameSource"` //井名对应库 Uploadname string `json:"upload_name"` WellTeam string `json:"well_team"` } // 定义接收查询结果的结构体,左 type VibrationStatLeft struct { Range string Count int Percentage string } // 定义振动粘滑查询结果结构体 type VibrationStatData struct { Deep float64 `json:"DEEP"` Time string `json:"TIME"` Code int `json:"CODE"` Value float64 `json:"VALUE"` Level int `json:"LEVEL"` // 指针类型处理NULL } // TimeDepthRange 包含时间范围和深度范围 type TimeDepthRange struct { FromTime string // 最早时间 "2025-02-20 08:46:04" ToTime string // 最晚时间 MinDepth float64 // 最小深度 MaxDepth float64 // 最大深度 } type get_cmr_resp struct { Data Cmr `json:"data"` } type get_nb_csv_resp exportWellHisResp type get_nb_his_resp struct { Data []battery_his_info `json:"data"` Total int `json:"total"` } type battery_his_info struct { ID int `json:"id"` Wellname string `json:"wellname"` Sid string `json:"sid"` Iid string `json:"iid"` Bid string `json:"b_id"` Bcode string `json:"b_code"` Uset float32 `json:"uset"` Action string `json:"action"` Bt string `json:"bt"` Et string `json:"et"` Flag int `json:"flag"` } type get_nb_resp struct { Data []battery_info `json:"data"` Total int `json:"total"` } type Well_battery_info struct { Bid string `json:"b_id"` Bcode string `json:"b_code"` Sid string `json:"sid"` Iid string `json:"iid"` Uset float32 `json:"uset"` Bt string `json:"bt"` Et string `json:"et"` Flag int `json:"flag"` WellName string `json:"wellname"` Cloud_account string `json:"Cloud_account"` Service_type int `json:"service_type"` B_life float32 `json:"b_life"` } type battery_info struct { Bid string `json:"b_id"` Bcode string `json:"b_code"` Uset float32 `json:"uset"` Remaining_t float32 `json:"remaining_t"` Remaining_t1 string `json:"remaining_t1"` B_life string `json:"b_life"` WellName string `json:"wellname"` } type getNotifyResp struct { Data string `json:"data"` } type GetLcmMssResp struct { Data []GetLcmMssRespData `json:"data"` Total int `json:"total"` } type GetLcmMssRespData struct { WellName string `json:"wellname"` WorkTime string `json:"workTime"` TotalWorkTime string `json:"totalWorkTime"` TotalFootage float32 `json:"totalFootage"` Service_personnel string `json:"sp"` //服务人员 } type GetLcmDeviceResp struct { Data []GetLcmDeviceRespData `json:"data"` Total int `json:"total"` } type GetLcmDeviceRespData struct { ID string `json:"id"` Series string `json:"series"` InstrumentID string `json:"instrument_id"` Ver string `json:"ver"` OpUser string `json:"op_user"` Op_time string `json:"op_time"` IfWarning bool `json:"if_warning"` } type GetLcmResp_ex struct { Data []GetLcmRespData_ex `json:"data"` Total int `json:"total"` } type GetLcmRespData_ex struct { ID string `json:"id"` Series string `json:"series"` InstrumentID string `json:"instrument_id"` Op_user string `json:"op_user"` Note string `json:"note"` Time string `json:"time"` IfShowOp bool `json:"if_show_op"` } type GetLcmResp struct { Data []GetLcmRespData `json:"data"` Total int `json:"total"` } type GetLcmRespData struct { ID string `json:"id"` Series string `json:"series"` InstrumentID string `json:"instrument_id"` Repair_cnt string `json:"repair_cnt"` Repair_level string `json:"repair_level"` Applicanter string `json:"applicanter"` Note string `json:"note"` Time string `json:"time"` IfShowOp bool `json:"if_show_op"` } type getWellAnalysisResultResp struct { WellInline int `json:"well_online"` WellOffline int `json:"well_offline"` MWD_cnt int `json:"mwd"` Near_bit int `json:"near_bit"` //近钻头 Resistivity int `json:"resistivity"` //电阻率 Gamma1 int `json:"gamma1"` //探管式方位伽马 Gamma2 int `json:"gamma2"` //钻铤式方位伽马 Context string `json:"context"` } type getAuthHisPosResp struct { Data []getAuthHisPosRespD `json:"data"` Total int `json:"total"` } type getAuthHisPosRespD struct { Series string `json:"series"` InstrumentID string `json:"instrument_id"` Auth_date string `json:"auth_date"` Expire_date string `json:"expire_date"` Longitude string `json:"longitude"` Latitude string `json:"latitude"` Auth_Mark string `json:"auth_mark"` Authorizer string `json:"authorizer"` ReportLongitude string `json:"report_longitude"` ReportLatitude string `json:"report_latitude"` ReportLongitudeX string `json:"x"` ReportLatitudeY string `json:"y"` WellName string `json:"wellname"` } type getUserLoginCntResp struct { Data []getUserLoginCntRespD `json:"data"` Total int `json:"total"` } type getUserLoginCntRespD struct { UserName string `json:"username"` LoginCnt int `json:"login_cnt"` OpText string `json:"op_text"` } type getUserLoginCntCsvResp getDeesAuthDbResp type getExCsvResp getDeesAuthDbResp type EngineeringServices struct { wellCreateTime string Wellname string `json:"Wellname"` Locale string `json:"Locale"` //服务地点 ServiceType string `json:"ServiceType"` //服务类型 ClientName string `json:"ClientName"` //客户名字 DrillingCrewName string `json:"DrillingCrewName"` //井队名称 DrillingCrewCompany string `json:"DrillingCrewCompany"` //井队所属公司 Welltype string `json:"Welltype"` //井型 OpUser string `json:"OpUser"` //服务人员 WorkState string `json:"WorkState"` //工作状态 SpecialNote string `json:"SpecialNote"` //特殊说明 DesignDepth string `json:"DesignDepth"` //设计井深 WellDeviation string `json:"WellDeviation"` //设计最大井斜 DesignOrientation string `json:"DesignOrientation"` //设计方位 LongitudeLatitude string `json:"LongitudeLatitude"` //经纬度 GTBTDIP string `json:"GTBTDIP"` //井位标称值 Length_of_horizontal_section string `json:"Length_of_horizontal_section"` //水平段长度 Rate string `json:"Rate"` DrillingTimes string `json:"DrillingTimes"` //钻次 Instrument_angle_difference string `json:"Instrument_angle_difference"` //仪器角差 Angle_difference_of_drilling_tool string `json:"Angle_difference_of_drilling_tool"` //钻具角差 MudType string `json:"MudType"` //泥浆类型 MudDensity float32 `json:"MudDensity"` //泥浆密度 MudViscosity float32 `json:"MudViscosity"` //泥浆粘度 OutputVolume float32 `json:"OutputVolume"` //排量 Sediment_concentration float32 `json:"Sediment_concentration"` //含沙量 Screw_curvature float32 `json:"Screw_curvature"` //螺杆弯度 LoopTime float32 `json:"LoopTime"` //循环时间 EntryWellDepth float32 `json:"EntryWellDepth"` TotalFootage float32 `json:"TotalFootage"` BHA string `json:"BHA"` //钻具组合 InstrumentCombination string `json:"InstrumentCombination"` //仪器组合 MaxPressure float32 `json:"MaxPressure"` MaxTemp float32 `json:"MaxTemp"` } type GetWellExResp struct { Data []wellExData `json:"data"` Total int `json:"total"` } type wellExData struct { WellNameSource string `json:"wellNameSource"` Wellstate string `json:"wellstate"` Welltime string `json:"welltime"` Welloperator string `json:"welloperator"` Rt_flag bool `json:"rt_flag"` Es_flag bool `json:"es_flag"` Upload_user string `json:"upload_user"` Tool_state_warning bool `json:"tsw"` } type SeriesWarning struct { Wellname string `json:"wellname"` Series string `json:"series"` InstrumentID string `json:"instrument_id"` Grade int `json:"grade"` Type int `json:"type"` Warning_time int `json:"warning_time"` Special string `json:"special"` IsInvalid int `json:"is_invalid"` DevName string `json:"dev_name"` DefWarningTime int `json:"def_warning_time"` Ver string `json:"cur_ver"` LstVer string `json:"lst_ver"` } type GetAuthPosCsvResp getDeesAuthDbResp type GetAuthPosData struct { ID string `json:"id"` Series string `json:"series"` InstrumentID string `json:"instrument_id"` Auth_date string `json:"auth_date"` Expire_date string `json:"expire_date"` Area_code string `json:"area_code"` Country string `json:"country"` Longitude string `json:"longitude"` Latitude string `json:"latitude"` Auth_count string `json:"auth_count"` Auth_Mark string `json:"auth_mark"` Authorizer string `json:"authorizer"` ReportLongitude string `json:"report_longitude"` ReportLatitude string `json:"report_latitude"` ReportLongitudeX string `json:"x"` ReportLatitudeY string `json:"y"` WellName string `json:"wellname"` } type wellWorkingCondition struct { Es EngineeringServices `json:"es"` ReportLongitude string `json:"report_longitude"` ReportLatitude string `json:"report_latitude"` ReportLongitudeX string `json:"report_longitude_x"` ReportLatitudeY string `json:"report_latitude_y"` } type addUserByDeesResp struct { Ret int `json:"ret"` } type exportWellHisResp getDeesAuthDbResp type postMsSettingResp struct { Ret int `json:"r"` } type getMsSettingResp struct { Data []msSetting `json:"data"` } type msSetting struct { ID int `json:"id"` Series_num string `json:"series_num"` Series_num_new string `json:"series_num_new"` } type getMhSettingResp struct { Series_num string `json:"series_num"` Series_num_new string `json:"series_num_new"` } type updateMhSettingResp struct { Ret int `json:"r"` } type mt struct { Series string Instrument_id string WorkTime string RepairCnt string SaveTime string TotalWorkTime string } type getWellTestTypeResp struct { Data []wellTestType `json:"data"` Total int `json:"total"` } type wellTestType struct { Wellname string `json:"wellname"` Type string `json:"type"` WellCreateTime string `json:"well_create_time"` } type footage struct { TotalFootage float64 `json:"total_footage"` CurFootage float64 `json:"cur_footage"` } type getFaultRateResp struct { Data []faultRate `json:"data"` Total int `json:"total"` } type faultRate struct { Series string `json:"series"` RepairCnt int `json:"repairCnt"` TotalFootage string `json:"total_footage"` Rate string `json:"rate"` tfootage float64 } type GetTsResp struct { Data []tsData `json:"data"` Total int `json:"total"` } type tsData struct { WellName string `json:"wellname"` Series string `json:"series"` InstrumentID string `json:"instrument_id"` TempSection string `json:"temp_section"` WorkTime string `json:"work_time"` BeginTime string `json:"bt"` wt int `json:"wt"` } type getUserOpHistoryResp struct { Data []getUserOpHistoryRespData `json:"data"` Total int `json:"total"` } type getUserOpHistoryRespData struct { UserName string `json:"username"` Time string `json:"time"` OpText string `json:"op_text"` } type DownFileResp getDeesAuthDbResp type GetMssResp struct { Data []GetMssRespData `json:"data"` Total int `json:"total"` } type GetMsResp struct { Data []GetMsRespData `json:"data"` Total int `json:"total"` } type GetMssRespData struct { WellName string `json:"wellname"` Series string `json:"series"` InstrumentID string `json:"instrument_id"` SaveTime string `json:"saveTime"` Ver string `json:"ver"` LastVer string `json:"lastVer"` WorkTime string `json:"workTime"` TotalWorkTime string `json:"totalWorkTime"` State string `json:"state"` UseTime string `json:"useTime"` WellEntryTime string `json:"wellEntryTime"` RepairCnt string `json:"repairCnt"` Warn_type string `json:"warn_type"` } type GetMsRespData struct { Series string `json:"series"` RepairCnt int `json:"repairCnt"` TotalTime int `json:"totalTime"` MtbfTime int `json:"mtbfTime"` } type MhExportResp getDeesAuthDbResp type GetMhSResp struct { Data []GetMhSRespData `json:"data"` Total int `json:"total"` } type GetMhSRespData struct { WellName string `json:"wellname"` WellOper string `json:"welloper"` WorkState string `json:"workState"` SaveTime string `json:"saveTime"` Note string `json:"note"` } type GetMhResp struct { Data []GetMhRespData `json:"data"` Total int `json:"total"` } type GetMhRespData struct { WellName string `json:"wellname"` WellOper string `json:"welloper"` WellCreateT string `json:"wellCreateTime"` WellBeginT string `json:"wellBeginTime"` WellEndT string `json:"wellEndTime"` WellWorkT string `json:"wellWorkTime"` State string `json:"state"` } type GetMenuResp struct { MenuData []GetMenuRespData `json:"data"` } type Svg struct { First string `json:"first"` Second string `json:"second"` } type GetMenuRespData struct { Title string `json:"title"` Class string `json:"classname"` SvgData Svg `json:"svg"` Index string `json:"index"` Key string `json:"key"` Items []menuItem `json:"items"` } type menuItem struct { Title string `json:"title"` Index string `json:"index"` Key string `json:"key"` } type getDeesAuthDbResp struct { FileId string `json:"fileId"` } type GetDeesAuthResp struct { Series string `json:"series"` InstrumentID string `json:"instrument_id"` Auth_date string `json:"auth_date"` Expire_date string `json:"expire_date"` Area_code string `json:"area_code"` Country string `json:"country"` Longitude string `json:"longitude"` Latitude string `json:"latitude"` Auth_count string `json:"auth_count"` Auth_Mark string `json:"auth_mark"` Authorizer string `json:"authorizer"` } type GetAuthResp struct { Data []GetAuthRespData `json:"data"` Total int `json:"total"` } type GetAuthRespData struct { ID string `json:"id"` Series string `json:"series"` InstrumentID string `json:"instrument_id"` Auth_date string `json:"auth_date"` Expire_date string `json:"expire_date"` Area_code string `json:"area_code"` Country string `json:"country"` Longitude string `json:"longitude"` Latitude string `json:"latitude"` Auth_count string `json:"auth_count"` Auth_Mark string `json:"auth_mark"` Authorizer string `json:"authorizer"` Applicanter string `json:"applicanter"` Note string `json:"note"` } type CommonResp struct { Ret int `json:"r"` } type LoginResp struct { Ret int `json:"r"` Uuid string `json:"uuid"` Level int `json:"level"` Url string `json:"url"` DID int `json:"did"` Err_text string `json:"err_text"` } type PostUserResp struct { Ret int `json:"r"` } type GetWellDataResp struct { Data []wellData `json:"data"` Total int `json:"total"` } type wellData struct { WellID int `json:"wellID"` WellNameSource string `json:"wellNameSource"` WellName string `json:"wellName"` Wellstate string `json:"wellstate"` Welltime string `json:"welltime"` Wellip string `json:"wellip"` Welloperator string `json:"welloperator"` Rt_flag bool `json:"rt_flag"` Es_flag bool `json:"es_flag"` Cloud_account string `json:"Cloud_account"` Service_type int `json:"service_type"` } type GetWellNamesResp struct { Value string `json:"value"` Label string `json:"label"` } type jx struct { Value string `json:"value"` Time string `json:"time"` } type getWellRealTimeDataResp struct { Data []GetHisWellRespdata `json:"data"` Total int `json:"total"` Fw jx `json:"fw"` Jx jx `json:"jx"` Time_warn int `json:"time_warn"` //客户端时间异常预警 } type GetHisWellResp struct { Data []GetHisWellRespdata `json:"data"` Total int `json:"total"` Time_warn int `json:"time_warn"` //客户端时间异常预警 } type GetHisWellRespdata struct { Time string `json:"time"` WellDepth float32 `json:"welldepth"` Paraname string `json:"paraname"` DecodeValue string `json:"decodevalue"` Precision float32 `json:"precision"` Wellname string `json:"wellname"` Wellnum string `json:"wellnum"` IfWarning int `json:"ifWarning"` Unit string `json:"unit"` } type wellHistoryData struct { Time string `json:"time"` WellDepth float64 `json:"welldepth"` Paraname string `json:"paraname"` DecodeValue string `json:"decodevalue"` Precision float64 `json:"precision"` Wellname string `json:"wellname"` Wellnum string `json:"wellnum"` IfWarning int `json:"ifWarning"` Unit string `json:"unit"` } type GetUsersResp struct { Data []GetUsersRespdata `json:"data"` Total int `json:"total"` } type GetUsersRespdata struct { Userid int `json:"userid"` Username string `json:"username"` Password string `json:"password"` Userrole string `json:"userrole"` UserDepartment string `json:"user_department"` Cnt int `json:"cnt"` LoginTime string `json:"loginTime"` } // 仪器汇总 type InstrumentMessRespdata struct { ID string `json:"id"` WellName string `json:"wellName"` //井名称 Time string `json:"time"` //出厂日期 Series string `json:"series"` //系列号 Instrument string `json:"instrument"` //仪器号 Version string `json:"version"` //版本号 WorkTime string `json:"workTime"` //累计工作时间 WorkTimes string `json:"workTimes"` //本次工作时间 Dept string `json:"dept"` //仪器所属部门 Content string `json:"content"` //仪器工作状态 WorkMessList []WellMessRespdata `json:"data"` //上井情况汇总 GetLcmRespData []GetLcmRespData `json:"data1"` //维保情况 GetToolMess []Tool_warning `json:"data2"` //异常信息 } // 上井情况汇总 type WellMessRespdata struct { WellName string `json:"wellName"` //井名称 SampleField string `json:"sampleField"` //入井状态 ValueInterval string `json:"valueInterval"` //入井井深 GlobalMax1 string `json:"globalMax1"` //最高工作温度 GlobalMax2 string `json:"globalMax2"` //最高承压 PersonnelList string `json:"personnelList"` //累计工作时间 Content string `json:"content"` //仪器工作情况 Flag string `json:"flag"` //仪器工作情况标识 }