155 lines
3.1 KiB
Go
155 lines
3.1 KiB
Go
package main
|
|
|
|
type get_rs_resp struct {
|
|
Data []Repair_state `json:"data"`
|
|
}
|
|
|
|
type Repair_state struct {
|
|
ID int `json:"id"`
|
|
Rs string `json:"rs"`
|
|
}
|
|
|
|
type cal_completion_date_resp struct {
|
|
Completion_date string `json:"completion_date"`
|
|
}
|
|
|
|
type get_ma_username_resp struct {
|
|
Data []string `json:"data"`
|
|
}
|
|
|
|
type get_p_name_resp struct {
|
|
P_name string `json:"p_name"`
|
|
}
|
|
|
|
type get_p_id_options_resp struct {
|
|
Data []string `json:"data"`
|
|
}
|
|
|
|
type get_ma_plan_resp struct {
|
|
Data []pp_plan `json:"data"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
type get_process_resp struct {
|
|
Data []process_info `json:"data"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
type process_info struct {
|
|
ID int `json:"id"`
|
|
P_id string `json:"p_id"`
|
|
Process_name string `json:"process_name"`
|
|
Process_t string `json:"process_t"`
|
|
}
|
|
|
|
type upload_resp struct {
|
|
Ret int `json:"ret"`
|
|
}
|
|
|
|
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_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"`
|
|
}
|
|
|
|
type download_file_Resp struct {
|
|
FileId string `json:"fileId"`
|
|
}
|
|
|
|
type getUserNamesResp struct {
|
|
Names []usernams `json:"names"`
|
|
}
|
|
|
|
type usernams struct {
|
|
Value string `json:"value"`
|
|
Label string `json:"label"`
|
|
}
|
|
|
|
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"`
|
|
|
|
If_buyer int `json:"if_buyer"`
|
|
}
|
|
|
|
type CommonResp struct {
|
|
Ret int `json:"r"`
|
|
Context string `json:"context"`
|
|
}
|