374 lines
7.5 KiB
Go
374 lines
7.5 KiB
Go
|
|
package main
|
||
|
|
|
||
|
|
type export_file_resp struct {
|
||
|
|
FileId string `json:"fileId"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type upload_reportfile_resp struct {
|
||
|
|
Ret int `json:"ret"`
|
||
|
|
Inspection_items_cn string `json:"inspection_items_cn"`
|
||
|
|
Inspection_rs_cn string `json:"inspection_rs_cn"`
|
||
|
|
File string `json:"file"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type del_ds_resp UpdateKpiResp
|
||
|
|
|
||
|
|
type import_ds_file_Resp UpdateKpiResp
|
||
|
|
|
||
|
|
type get_ds_resp struct {
|
||
|
|
Data []ds_file `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ds_file struct {
|
||
|
|
ID int `json:"id"`
|
||
|
|
P_id string `json:"p_id"`
|
||
|
|
P_name string `json:"p_name"`
|
||
|
|
Serial_num string `json:"serial_num"`
|
||
|
|
|
||
|
|
File string `json:"file"`
|
||
|
|
Archive_user string `json:"archive_user"`
|
||
|
|
Archive_time string `json:"archive_time"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type upload_resp struct {
|
||
|
|
Ret int `json:"ret"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type del_pf_resp UpdateKpiResp
|
||
|
|
|
||
|
|
type get_pf_Resp struct {
|
||
|
|
Data []plan_file `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type plan_file struct {
|
||
|
|
ID int `json:"id"`
|
||
|
|
P_id string `json:"p_id"`
|
||
|
|
P_name string `json:"p_name"`
|
||
|
|
Plan_name string `json:"plan_name"`
|
||
|
|
|
||
|
|
Plan_process_file string `json:"plan_process_file"`
|
||
|
|
Filing_time string `json:"filing_time"`
|
||
|
|
Filing_user string `json:"filing_user"`
|
||
|
|
Project_file string `json:"project_file"`
|
||
|
|
P_filing_time string `json:"p_filing_time"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type import_plan_file_Resp UpdateKpiResp
|
||
|
|
|
||
|
|
type mul_update_kpi_1_resp UpdateKpiResp
|
||
|
|
|
||
|
|
type get_cur_did_from_task_resp struct {
|
||
|
|
Department_name string `json:"d_name"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type export_transfer_history_resp exportKpiResp
|
||
|
|
|
||
|
|
type get_del_kpi_his_resp struct {
|
||
|
|
Data string `json:"data"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type get_p_process_options_resp struct {
|
||
|
|
P_id string `json:"p_id"`
|
||
|
|
P_name string `json:"p_name"`
|
||
|
|
Data []plan_process `json:"data"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type plan_process struct {
|
||
|
|
Plan_process_name string `json:"plan_process_name"`
|
||
|
|
Plan_process_t string `json:"plan_process_t"`
|
||
|
|
Plan_process_show string `json:"plan_process_show"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type get_p_id_options_resp struct {
|
||
|
|
Data []string `json:"data"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type import_kpi_resp import_plan_t_resp
|
||
|
|
|
||
|
|
type import_plan_t_resp struct {
|
||
|
|
Ret int `json:"r"`
|
||
|
|
Err_text string `json:"err_text"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type import_p_resp PostUserResp
|
||
|
|
|
||
|
|
type del_p_resp PostUserResp
|
||
|
|
|
||
|
|
type post_p_resp PostUserResp
|
||
|
|
|
||
|
|
type get_p_Resp struct {
|
||
|
|
Data []p_sap `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type p_sap struct {
|
||
|
|
ID int `json:"id"`
|
||
|
|
P_id string `json:"p_id"`
|
||
|
|
P_name string `json:"p_name"`
|
||
|
|
|
||
|
|
P1 string `json:"P1"`
|
||
|
|
P1_t string `json:"P1_t"`
|
||
|
|
|
||
|
|
P2 string `json:"P2"`
|
||
|
|
P2_t string `json:"P2_t"`
|
||
|
|
|
||
|
|
P3 string `json:"P3"`
|
||
|
|
P3_t string `json:"P3_t"`
|
||
|
|
|
||
|
|
P4 string `json:"P4"`
|
||
|
|
P4_t string `json:"P4_t"`
|
||
|
|
|
||
|
|
P5 string `json:"P5"`
|
||
|
|
P5_t string `json:"P5_t"`
|
||
|
|
|
||
|
|
P6 string `json:"P6"`
|
||
|
|
P6_t string `json:"P6_t"`
|
||
|
|
|
||
|
|
P7 string `json:"P7"`
|
||
|
|
P7_t string `json:"P7_t"`
|
||
|
|
|
||
|
|
P8 string `json:"P8"`
|
||
|
|
P8_t string `json:"P8_t"`
|
||
|
|
|
||
|
|
P9 string `json:"P9"`
|
||
|
|
P9_t string `json:"P9_t"`
|
||
|
|
|
||
|
|
P10 string `json:"P10"`
|
||
|
|
P10_t string `json:"P10_t"`
|
||
|
|
|
||
|
|
P11 string `json:"P11"`
|
||
|
|
P11_t string `json:"P11_t"`
|
||
|
|
|
||
|
|
P12 string `json:"P12"`
|
||
|
|
P12_t string `json:"P12_t"`
|
||
|
|
|
||
|
|
P13 string `json:"P13"`
|
||
|
|
P13_t string `json:"P13_t"`
|
||
|
|
|
||
|
|
P14 string `json:"P14"`
|
||
|
|
P14_t string `json:"P14_t"`
|
||
|
|
|
||
|
|
P15 string `json:"P15"`
|
||
|
|
P15_t string `json:"P15_t"`
|
||
|
|
|
||
|
|
P16 string `json:"P16"`
|
||
|
|
P16_t string `json:"P16_t"`
|
||
|
|
|
||
|
|
P17 string `json:"P17"`
|
||
|
|
P17_t string `json:"P17_t"`
|
||
|
|
|
||
|
|
P18 string `json:"P18"`
|
||
|
|
P18_t string `json:"P18_t"`
|
||
|
|
|
||
|
|
P19 string `json:"P19"`
|
||
|
|
P19_t string `json:"P19_t"`
|
||
|
|
|
||
|
|
P20 string `json:"P20"`
|
||
|
|
P20_t string `json:"P20_t"`
|
||
|
|
|
||
|
|
P21 string `json:"P21"`
|
||
|
|
P21_t string `json:"P21_t"`
|
||
|
|
|
||
|
|
P22 string `json:"P22"`
|
||
|
|
P22_t string `json:"P22_t"`
|
||
|
|
|
||
|
|
P23 string `json:"P23"`
|
||
|
|
P23_t string `json:"P23_t"`
|
||
|
|
|
||
|
|
P24 string `json:"P24"`
|
||
|
|
P24_t string `json:"P24_t"`
|
||
|
|
|
||
|
|
P25 string `json:"P25"`
|
||
|
|
P25_t string `json:"P25_t"`
|
||
|
|
|
||
|
|
P26 string `json:"P26"`
|
||
|
|
P26_t string `json:"P26_t"`
|
||
|
|
|
||
|
|
P27 string `json:"P27"`
|
||
|
|
P27_t string `json:"P27_t"`
|
||
|
|
|
||
|
|
P28 string `json:"P28"`
|
||
|
|
P28_t string `json:"P28_t"`
|
||
|
|
|
||
|
|
P29 string `json:"P29"`
|
||
|
|
P29_t string `json:"P29_t"`
|
||
|
|
|
||
|
|
P30 string `json:"P30"`
|
||
|
|
P30_t string `json:"P30_t"`
|
||
|
|
|
||
|
|
P31 string `json:"P31"`
|
||
|
|
P31_t string `json:"P31_t"`
|
||
|
|
|
||
|
|
P32 string `json:"P32"`
|
||
|
|
P32_t string `json:"P32_t"`
|
||
|
|
|
||
|
|
P33 string `json:"P33"`
|
||
|
|
P33_t string `json:"P33_t"`
|
||
|
|
|
||
|
|
P34 string `json:"P34"`
|
||
|
|
P34_t string `json:"P34_t"`
|
||
|
|
|
||
|
|
P35 string `json:"P35"`
|
||
|
|
P35_t string `json:"P35_t"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type download_template_file_Resp exportKpiResp
|
||
|
|
|
||
|
|
type post_b_user_resp PostUserResp
|
||
|
|
|
||
|
|
type get_b_user_Resp struct {
|
||
|
|
Data []b_user `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type b_user struct {
|
||
|
|
Userid int `json:"userid"`
|
||
|
|
Busername string `json:"busername"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type post_p_user_resp PostUserResp
|
||
|
|
|
||
|
|
type get_p_user_Resp struct {
|
||
|
|
Data []p_user `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type p_user struct {
|
||
|
|
Userid int `json:"userid"`
|
||
|
|
Pusername string `json:"pusername"`
|
||
|
|
Group_name string `json:"group_name"`
|
||
|
|
Produce_plan string `json:"produce_plan"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type task_finished_Resp PostUserResp
|
||
|
|
|
||
|
|
type task_transfer_Resp PostUserResp
|
||
|
|
|
||
|
|
type DelKpiResp PostUserResp
|
||
|
|
|
||
|
|
type UpdateKpiResp import_plan_t_resp
|
||
|
|
|
||
|
|
type getUserNamesResp struct {
|
||
|
|
Names []usernams `json:"names"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type usernams struct {
|
||
|
|
Value string `json:"value"`
|
||
|
|
Label string `json:"label"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type exportKpiResp struct {
|
||
|
|
FileId string `json:"fileId"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type getKpiUpdateHistoryResp struct {
|
||
|
|
Data []kpiUpdateRd `json:"data"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type kpiUpdateRd struct {
|
||
|
|
Opuser string `json:"op_user"`
|
||
|
|
OpTime string `json:"op_time"`
|
||
|
|
OpContext string `json:"op_context"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type getKpiResp struct {
|
||
|
|
Data []kpi `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
Pagecnt int `json:"pagecnt"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type getPreKpiResp struct {
|
||
|
|
Data []preKpi `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
Pagecnt int `json:"pagecnt"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type AddKpiResp import_plan_t_resp
|
||
|
|
|
||
|
|
type PostUserResp struct {
|
||
|
|
Ret int `json:"r"`
|
||
|
|
}
|
||
|
|
|
||
|
|
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 LoginResp struct {
|
||
|
|
Ret int `json:"r"`
|
||
|
|
Uuid string `json:"uuid"`
|
||
|
|
RoleId int `json:"roleid"`
|
||
|
|
Url string `json:"url"`
|
||
|
|
DId int `json:"did"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type GetUsersResp struct {
|
||
|
|
Data []useInfo `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type useInfo struct {
|
||
|
|
Userid int `json:"userid"`
|
||
|
|
Username string `json:"username"`
|
||
|
|
Password string `json:"password"`
|
||
|
|
RoleName string `json:"rolename"`
|
||
|
|
RoleId int `json:"roleid"`
|
||
|
|
Department string `json:"department"`
|
||
|
|
DepartmentId int `json:"departmentid"`
|
||
|
|
State string `json:"state"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type CommonResp struct {
|
||
|
|
Ret int `json:"r"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type AddOperationLogResp struct {
|
||
|
|
Ret int `json:"r"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type GetOperationLogResp struct {
|
||
|
|
Data []LogInfo `json:"data"`
|
||
|
|
Total int `json:"total"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type LogInfo struct {
|
||
|
|
ID int `json:"id"`
|
||
|
|
Username string `json:"username"`
|
||
|
|
Operation string `json:"operation"`
|
||
|
|
OperationTime string `json:"operation_time"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type DelOperationLogResp struct {
|
||
|
|
Ret int `json:"r"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type GetOperationLogUserResp struct {
|
||
|
|
Ret int `json:"r"`
|
||
|
|
Data []string `json:"data"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type download_file_Resp struct {
|
||
|
|
FileId string `json:"fileId"`
|
||
|
|
}
|