669 lines
17 KiB
Go
669 lines
17 KiB
Go
package main
|
|
|
|
type tool_data struct {
|
|
Series string `json:"series"`
|
|
InstrumentID string `json:"instrument_id"`
|
|
}
|
|
|
|
type get_nbpdf_resp struct {
|
|
FileId string `json:"fileId"`
|
|
}
|
|
|
|
type get_nbpdf_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"wellname"`
|
|
BCode string `json:"bcode"`
|
|
}
|
|
|
|
type getSeriesWarningCsv_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
}
|
|
|
|
type remove_battery_base_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
ID int `json:"id"`
|
|
}
|
|
|
|
type get_battery_life_resp struct {
|
|
Data []Battery_life `json:"data"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
type Battery_life struct {
|
|
ID int `json:"id"`
|
|
B_code string `json:"b_code"`
|
|
B_life string `json:"b_life"`
|
|
}
|
|
|
|
type get_battery_base_resp struct {
|
|
Data []Battery_base `json:"data"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
type Battery_base struct {
|
|
ID int `json:"id"`
|
|
S_ID string `json:"sid"`
|
|
IID string `json:"iid"`
|
|
B_ID string `json:"b_id"`
|
|
B_code string `json:"b_code"`
|
|
}
|
|
|
|
type get_battery_base_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
S_ID string `json:"sid"`
|
|
IID string `json:"iid"`
|
|
B_ID string `json:"b_id"`
|
|
B_code string `json:"b_code"`
|
|
}
|
|
|
|
type add_battery_life_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
B_code string `json:"b_code"`
|
|
B_life string `json:"b_life"`
|
|
}
|
|
|
|
type add_battery_base_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
S_ID string `json:"sid"`
|
|
IID string `json:"iid"`
|
|
B_ID string `json:"b_id"`
|
|
B_code string `json:"b_code"`
|
|
}
|
|
|
|
type get_page_setting_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
}
|
|
|
|
type get_page_setting_resp struct {
|
|
R1 string `json:"r1"`
|
|
R2 string `json:"r2"`
|
|
R3 string `json:"r3"`
|
|
|
|
Month bool `json:"r4"`
|
|
R5 string `json:"r5"`
|
|
}
|
|
|
|
type page_setting_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
R1 string `json:"r1"`
|
|
R2 string `json:"r2"`
|
|
R3 string `json:"r3"`
|
|
|
|
Month bool `json:"r4"`
|
|
R5 string `json:"r5"`
|
|
}
|
|
|
|
type get_up_off_well_info_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
Wellname string `json:"wellname"`
|
|
User string `json:"user"`
|
|
If_es bool `json:"if_es"`
|
|
}
|
|
|
|
type get_well_files_req get_srr_base_req
|
|
|
|
type download_file_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Filename string `json:"filename"`
|
|
}
|
|
|
|
type add_dev_manage_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Data Dev_manage `json:"data"`
|
|
}
|
|
|
|
type get_dev_manage_req get_srr_base_req
|
|
|
|
type get_tool_warning_req get_srr_base_req
|
|
|
|
type get_srr_event_req get_srr_base_req
|
|
|
|
type get_srr_state_req get_srr_base_req
|
|
|
|
type get_srr_base_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"wellname"`
|
|
}
|
|
|
|
type get_cmr_pdf_req get_cmr_req
|
|
|
|
type get_cmr_record_req get_cmr_req
|
|
|
|
type get_cmr_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"wellname"`
|
|
Flag bool `json:"flag"`
|
|
}
|
|
|
|
type get_vibration_req struct {
|
|
OpUser string `json:"opUser"`
|
|
Wellname string `json:"wellname"` //井名
|
|
WellNameSource string `json:"wellNameSource"` //井名对应库
|
|
Uploadname string `json:"upload_name"`
|
|
IsMemory bool `json:"is_memory"` //是否勾选存储数据
|
|
}
|
|
|
|
type get_nb_csv_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
}
|
|
|
|
type remove_nb_his_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
|
|
ID int `json:"id"`
|
|
Bid string `json:"b_id"`
|
|
Bcode string `json:"b_code"`
|
|
|
|
WellName string `json:"wellname"`
|
|
}
|
|
|
|
type update_nb_his_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
|
|
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 int `json:"action"`
|
|
Bt string `json:"bt"`
|
|
Et string `json:"et"`
|
|
}
|
|
|
|
type add_nb_his_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
|
|
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 int `json:"action"`
|
|
Bt string `json:"bt"`
|
|
Et string `json:"et"`
|
|
}
|
|
|
|
type get_nb_his_ex_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
Wellname string `json:"wellname"`
|
|
|
|
Checked bool `json:"checked"`
|
|
}
|
|
|
|
type get_nb_his_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Bid string `json:"b_id"`
|
|
Bcode string `json:"b_code"`
|
|
}
|
|
|
|
type get_nb_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
Sid string `json:"series_id"`
|
|
Code string `json:"num"`
|
|
}
|
|
|
|
type getNotifyReq struct {
|
|
UserName string `json:"username"`
|
|
}
|
|
|
|
type GetLcmMssReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
|
|
Series string `json:"sid"`
|
|
Instrument_id string `json:"iid"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type postLcmDeviceReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
OperType int `json:"oper_type"`
|
|
ID string `json:"id"`
|
|
Series string `json:"series"`
|
|
InstrumentID string `json:"instrument_id"`
|
|
Ver string `json:"ver"`
|
|
Op_User string `json:"op_user"`
|
|
Op_time string `json:"op_time"`
|
|
}
|
|
|
|
type getLcmDeviceReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Sid string `json:"sid"`
|
|
Iid string `json:"iid"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
BeginTime string `json:"beginTime"`
|
|
EndTime string `json:"endTime"`
|
|
}
|
|
|
|
type postLcmReq_ex struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
OperType int `json:"oper_type"`
|
|
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"`
|
|
}
|
|
|
|
type postLcmReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
OperType int `json:"oper_type"`
|
|
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"`
|
|
}
|
|
|
|
type getLcmReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Sid string `json:"sid"`
|
|
Iid string `json:"iid"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
BeginTime string `json:"beginTime"`
|
|
EndTime string `json:"endTime"`
|
|
}
|
|
|
|
type getAuthorizePosCsvReq struct {
|
|
SID string `json:"sid"`
|
|
IID string `json:"iid"`
|
|
}
|
|
|
|
type getAuthHisPosReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
SID string `json:"sid"`
|
|
IID string `json:"iid"`
|
|
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type getUserLoginCntCsvReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
SearchUser string `json:"user"`
|
|
BeginTime string `json:"b_time"`
|
|
EndTime string `json:"e_time"`
|
|
}
|
|
|
|
type getUserLoginCntReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
SearchUser string `json:"user"`
|
|
BeginTime string `json:"b_time"`
|
|
EndTime string `json:"e_time"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type getEsCsvReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"Wellname"`
|
|
BeginTime string `json:"BeginTime"`
|
|
EndTime string `json:"EndTime"`
|
|
}
|
|
|
|
type getEsReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"Wellname"`
|
|
}
|
|
|
|
type get_well_ex1_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"Wellname"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
BeginTime string `json:"BeginTime"`
|
|
EndTime string `json:"EndTime"`
|
|
Checked bool `json:"checked"`
|
|
If_warn bool `json:"if_warn"`
|
|
}
|
|
|
|
type GetWellExReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"Wellname"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
BeginTime string `json:"BeginTime"`
|
|
EndTime string `json:"EndTime"`
|
|
}
|
|
|
|
type batchAuthReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Authorizer string `json:"authorizer"`
|
|
Auth_date string
|
|
Expire_date string `json:"expire_date"`
|
|
Data []batchAuthReqData `json:"auth_data"`
|
|
|
|
Applicanter string `json:"applicanter"`
|
|
Note string `json:"note"`
|
|
}
|
|
|
|
type batchAuthReqData struct {
|
|
Series string `json:"series"`
|
|
InstrumentID string `json:"instrument_id"`
|
|
Auth_count string `json:"auth_count"`
|
|
Auth_Mark string `json:"auth_mark"`
|
|
}
|
|
|
|
type getWellWorkingConditionReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
WellName string `json:"wellname"`
|
|
}
|
|
|
|
type postMsSettingReq struct {
|
|
User string `json:"op_user"`
|
|
ID int `json:"id"`
|
|
Series_num string `json:"series_num"`
|
|
Series_num_new string `json:"series_num_new"`
|
|
Oper_type int `json:"oper_type"`
|
|
}
|
|
|
|
type getMsSettingReq struct {
|
|
User string `json:"op_user"`
|
|
}
|
|
|
|
type getMhSettingReq struct {
|
|
User string `json:"op_user"`
|
|
}
|
|
|
|
type updateMhSettingReq struct {
|
|
User string `json:"op_user"`
|
|
Series_num string `json:"series_num"`
|
|
Series_num_new string `json:"series_num_new"`
|
|
}
|
|
|
|
type exportWellTestTypeReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"wellname"`
|
|
Type int `json:"type"`
|
|
BeginTime string `json:"beginTime"`
|
|
EndTime string `json:"endTime"`
|
|
}
|
|
|
|
type getWellTestTypeReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"wellname"`
|
|
Type int `json:"type"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
BeginTime string `json:"beginTime"`
|
|
EndTime string `json:"endTime"`
|
|
}
|
|
|
|
type faultRateExportReq struct {
|
|
Series string `json:"series"`
|
|
Op_user string `json:"op_user"`
|
|
}
|
|
|
|
type getFaultRateReq struct {
|
|
Series string `json:"series"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
Op_user string `json:"op_user"`
|
|
}
|
|
|
|
type TsExportReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
WellName string `json:"wellname"`
|
|
Series string `json:"series"`
|
|
Instrument_id string `json:"instrument_id"`
|
|
T_type string `json:"t_type"`
|
|
}
|
|
|
|
type GetTsReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Series string `json:"series"`
|
|
Instrument_id string `json:"instrument_id"`
|
|
WellName string `json:"wellname"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
T_type string `json:"t_type"`
|
|
}
|
|
|
|
type getUserOpHistoryReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
SearchUser string `json:"user"`
|
|
BeginTime string `json:"b_time"`
|
|
EndTime string `json:"e_time"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type getAuthReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Id string `json:"id"`
|
|
Iid string `json:"iid"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type getUsersReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Id string `json:"id"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type GetMssReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Series string `json:"series"`
|
|
Instrument_id string `json:"instrument_id"`
|
|
WellName string `json:"wellname"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
Checked bool `json:"checked"`
|
|
|
|
If_en bool `json:"if_en"`
|
|
}
|
|
|
|
type GetMhReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Id string `json:"id"`
|
|
BeginTime string `json:"beginTime"`
|
|
EndTime string `json:"endTime"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
IfAll bool `json:"if_all"`
|
|
Checked bool `json:"checked"`
|
|
}
|
|
|
|
type MssExportReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"wellname"`
|
|
|
|
Series string `json:"series"`
|
|
Instrument_id string `json:"instrument_id"`
|
|
|
|
Checked bool `json:"checked"`
|
|
}
|
|
|
|
type MsExportReq struct {
|
|
SerierNum string `json:"seriesNum"`
|
|
Op_user string `json:"op_user"`
|
|
}
|
|
|
|
type GetMsReq struct {
|
|
SearchType string `json:"type"`
|
|
SearchValue string `json:"value"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
Op_user string `json:"op_user"`
|
|
}
|
|
|
|
type MhExportReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Wellname string `json:"wellname"`
|
|
BeginTime string `json:"beginTime"`
|
|
EndTime string `json:"endTime"`
|
|
IfAll bool `json:"if_all"`
|
|
Checked bool `json:"checked"`
|
|
}
|
|
|
|
type getDeesAuthDbReq GetDeesAuthReq
|
|
|
|
type GetMenuReq struct {
|
|
UserName string `json:"username"`
|
|
}
|
|
|
|
// restful interface
|
|
type GetDeesAuthReq struct {
|
|
Series string `json:"series"`
|
|
InstrumentID string `json:"instrument_id"`
|
|
}
|
|
|
|
type PostAuthReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
OperType int `json:"oper_type"`
|
|
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 LoginOutReq struct {
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
type RefreshUserReq struct {
|
|
Uuid string `json:"uuid"`
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
type LoginReq struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type PostUserReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Id int `json:"id"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
Role string `json:"role"`
|
|
Department string `json:"department"`
|
|
OperType int `json:"oper_type"`
|
|
}
|
|
|
|
type GetHisWellReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Id string `json:"id"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
BeginTime string `json:"beginTime"`
|
|
EndTime string `json:"endTime"`
|
|
IfAsc bool `json:"if_asc"`
|
|
IfVip bool `json:"if_vit"`
|
|
R1 string `json:"r1"`
|
|
R2 string `json:"r2"`
|
|
}
|
|
|
|
type getWellRealTimeData_req struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Id string `json:"id"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
R1 string `json:"r1"`
|
|
R2 string `json:"r2"`
|
|
}
|
|
|
|
type CommonReq struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Id string `json:"id"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type GetWellData struct {
|
|
OpUser string `json:"opuser"`
|
|
OpUserUuid string `json:"opuser_uuid"`
|
|
Id string `json:"id"`
|
|
Index int `json:"index"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
// 仪器汇总页面的参数体
|
|
type InstrumentMess struct {
|
|
Instrument string `json:"instrument"`
|
|
Opuser string `json:"opuser"`
|
|
Opuser_uuid string `json:"opuser_uuid"`
|
|
Series string `json:"series"`
|
|
WellName string `json:"wellName"`
|
|
Flag string `json:"flag"`
|
|
Content string `json:"content"`
|
|
}
|