...
|
...
|
@@ -7,6 +7,145 @@ import ( |
|
|
)
|
|
|
|
|
|
//共创实体
|
|
|
type CooperationApplication struct {
|
|
|
Company struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
CooperationApplicationApplicant struct {
|
|
|
Company struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
Department struct {
|
|
|
DepartmentID int `json:"departmentId"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
} `json:"department"`
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
UserBaseID int `json:"userBaseId"`
|
|
|
UserID int `json:"userId"`
|
|
|
UserInfo struct {
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
} `json:"userInfo"`
|
|
|
UserType int `json:"userType"`
|
|
|
} `json:"cooperationApplicationApplicant"`
|
|
|
CooperationApplicationAttachment []struct {
|
|
|
FileSize float64 `json:"fileSize"`
|
|
|
FileType string `json:"fileType"`
|
|
|
Name string `json:"name"`
|
|
|
URL string `json:"url"`
|
|
|
} `json:"cooperationApplicationAttachment"`
|
|
|
CooperationApplicationDescription string `json:"cooperationApplicationDescription"`
|
|
|
CooperationApplicationID int `json:"cooperationApplicationId"`
|
|
|
CooperationApplicationStatus int `json:"cooperationApplicationStatus"`
|
|
|
CooperationApplicationVerifier struct {
|
|
|
Company struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
Department struct {
|
|
|
DepartmentID int `json:"departmentId"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
IsOrganization bool `json:"isOrganization"`
|
|
|
} `json:"department"`
|
|
|
Org struct {
|
|
|
Company struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
UserBaseID int `json:"userBaseId"`
|
|
|
UserID int `json:"userId"`
|
|
|
UserInfo struct {
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
} `json:"userInfo"`
|
|
|
UserType int `json:"userType"`
|
|
|
} `json:"cooperationApplicationVerifier"`
|
|
|
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
|
|
|
CooperationApplicationVerifyTime time.Time `json:"cooperationApplicationVerifyTime"`
|
|
|
CooperationApplyTime time.Time `json:"cooperationApplyTime"`
|
|
|
CooperationProject struct {
|
|
|
Company struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"`
|
|
|
CooperationProjectID int `json:"cooperationProjectId"`
|
|
|
CooperationProjectName string `json:"cooperationProjectName"`
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"`
|
|
|
CooperationProjectPublishTime string `json:"cooperationProjectPublishTime"`
|
|
|
CooperationProjectSponsor struct {
|
|
|
Company struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
Department struct {
|
|
|
DepartmentID int `json:"departmentId"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
IsOrganization bool `json:"isOrganization"`
|
|
|
} `json:"department"`
|
|
|
Org struct {
|
|
|
Company struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
Status int `json:"status"`
|
|
|
UserBaseID int `json:"userBaseId"`
|
|
|
UserID int `json:"userId"`
|
|
|
UserInfo struct {
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
} `json:"userInfo"`
|
|
|
UserType int `json:"userType"`
|
|
|
} `json:"cooperationProjectSponsor"`
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"`
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
DeletedAt string `json:"deletedAt"`
|
|
|
OperateTime string `json:"operateTime"`
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
Status int `json:"status"`
|
|
|
UpdatedAt string `json:"updatedAt"`
|
|
|
} `json:"cooperationProject"`
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
IsCanceled bool `json:"isCanceled"`
|
|
|
UpdatedAt string `json:"updatedAt"`
|
|
|
}
|
|
|
|
|
|
//更新共创申请
|
|
|
type (
|
...
|
...
|
@@ -18,9 +157,12 @@ type ( |
|
|
}
|
|
|
)
|
|
|
|
|
|
//共创申请一键审核
|
|
|
//共创申请批量审核
|
|
|
type (
|
|
|
ReqCooperationApplicationBatchApproval struct {
|
|
|
CooperationApplicationIds []string `json:"cooperationApplicationIds"`
|
|
|
CooperationApplicationDescription string `json:"cooperationApplicationDescription"` //描述
|
|
|
Action int `json:"action"` //审核动作,1同意,2拒绝
|
|
|
}
|
|
|
|
|
|
DataCooperationApplicationBatchApproval struct {
|
...
|
...
|
@@ -30,7 +172,7 @@ type ( |
|
|
//取消共创申请
|
|
|
type (
|
|
|
ReqCooperationApplicationCancel struct {
|
|
|
ApplicationId int
|
|
|
ApplicationId int `json:"applicationId"`
|
|
|
}
|
|
|
|
|
|
DataCooperationApplicationCancel struct {
|
...
|
...
|
@@ -40,7 +182,7 @@ type ( |
|
|
//审核-同意共创申请
|
|
|
type (
|
|
|
ReqCooperationApplicationAgree struct {
|
|
|
CooperationApplicationId []int `json:"cooperationApplicationId"`
|
|
|
CooperationApplicationId int `json:"cooperationApplicationId"`
|
|
|
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
|
|
|
}
|
|
|
|
...
|
...
|
@@ -51,7 +193,7 @@ type ( |
|
|
//审核-拒绝共创申请
|
|
|
type (
|
|
|
ReqCooperationApplicationReject struct {
|
|
|
CooperationApplicationId []int `json:"cooperationApplicationId"`
|
|
|
CooperationApplicationId int `json:"cooperationApplicationId"`
|
|
|
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
|
|
|
}
|
|
|
|
...
|
...
|
@@ -83,72 +225,16 @@ type ( |
|
|
ApplicantName string `json:"applicantName"` //申请人姓名
|
|
|
CooperationApplicationStatus int `json:"cooperationApplicationStatus"` //共创申请审核状态,1待审核,2已同意,3已拒绝
|
|
|
CooperationProjectName string `json:"cooperationProjectName"` //共创项目名称
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"` //共创项目编号
|
|
|
PageNumber int `json:"pageNumber"`
|
|
|
PageSize int `json:"pageSize"`
|
|
|
}
|
|
|
|
|
|
DataCooperationApplicationSearch struct {
|
|
|
Gride struct {
|
|
|
Total int
|
|
|
List []struct {
|
|
|
//公司
|
|
|
Company struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
//申请人
|
|
|
CooperationApplicationApplicant struct {
|
|
|
//申请人部门
|
|
|
Department struct {
|
|
|
DepartmentID int `json:"departmentId"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
} `json:"department"`
|
|
|
//申请人组织
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
UserBaseID int `json:"userBaseId"`
|
|
|
UserID int `json:"userId"`
|
|
|
UserInfo struct {
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
} `json:"userInfo"`
|
|
|
UserType int `json:"userType"`
|
|
|
} `json:"cooperationApplicationApplicant"`
|
|
|
//附件信息
|
|
|
CooperationApplicationAttachment []struct {
|
|
|
FileSize int `json:"fileSize"`
|
|
|
FileType string `json:"fileType"`
|
|
|
Name string `json:"name"`
|
|
|
URL string `json:"url"`
|
|
|
} `json:"cooperationApplicationAttachment"`
|
|
|
//申请描述
|
|
|
CooperationApplicationDescription string `json:"cooperationApplicationDescription"`
|
|
|
//id
|
|
|
CooperationApplicationID int `json:"cooperationApplicationId"`
|
|
|
//申请单状态 ,共创申请审核状态,1待审核,2已同意,3已拒绝
|
|
|
CooperationApplicationStatus int `json:"cooperationApplicationStatus"`
|
|
|
//是否已取消
|
|
|
IsCanceled bool `json:"isCanceled"`
|
|
|
//描述
|
|
|
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
|
|
|
//审核时间
|
|
|
CooperationApplicationVerifyTime time.Time `json:"cooperationApplicationVerifyTime"`
|
|
|
//申请时间
|
|
|
CooperationApplyTime time.Time `json:"cooperationApplyTime"`
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
} `json:"list"`
|
|
|
}
|
|
|
Total int `json:"total"`
|
|
|
List []CooperationApplication `json:"list"`
|
|
|
} `json:"gride"`
|
|
|
}
|
|
|
)
|
|
|
|
...
|
...
|
@@ -187,135 +273,17 @@ type ( |
|
|
}
|
|
|
|
|
|
DataCooperationApplicationGet struct {
|
|
|
Company struct {
|
|
|
CompanyID float64 `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
//申请人
|
|
|
CooperationApplicationApplicant struct {
|
|
|
Department struct {
|
|
|
DepartmentID float64 `json:"departmentId"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
IsOrganization bool `json:"isOrganization"`
|
|
|
} `json:"department"`
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
UserBaseID int `json:"userBaseId"`
|
|
|
UserID int `json:"userId"`
|
|
|
UserInfo struct {
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
} `json:"userInfo"`
|
|
|
UserType float64 `json:"userType"`
|
|
|
} `json:"cooperationApplicationApplicant"`
|
|
|
//附件
|
|
|
CooperationApplicationAttachment []struct {
|
|
|
FileSize float64 `json:"fileSize"`
|
|
|
FileType string `json:"fileType"`
|
|
|
Name string `json:"name"`
|
|
|
URL string `json:"url"`
|
|
|
} `json:"cooperationApplicationAttachment"`
|
|
|
CooperationApplicationDescription string `json:"cooperationApplicationDescription"`
|
|
|
CooperationApplicationID float64 `json:"cooperationApplicationId"`
|
|
|
CooperationApplicationStatus float64 `json:"cooperationApplicationStatus"`
|
|
|
//审核人
|
|
|
CooperationApplicationVerifier struct {
|
|
|
Department struct {
|
|
|
DepartmentID float64 `json:"departmentId"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
IsOrganization bool `json:"isOrganization"`
|
|
|
} `json:"department"`
|
|
|
Org struct {
|
|
|
OrgID float64 `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
UserBaseID float64 `json:"userBaseId"`
|
|
|
UserID float64 `json:"userId"`
|
|
|
UserInfo struct {
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
} `json:"userInfo"`
|
|
|
UserType float64 `json:"userType"`
|
|
|
} `json:"cooperationApplicationVerifier"`
|
|
|
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
|
|
|
//审核时间
|
|
|
CooperationApplicationVerifyTime string `json:"cooperationApplicationVerifyTime"`
|
|
|
// 共创申请时间
|
|
|
CooperationApplyTime string `json:"cooperationApplyTime"`
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
UpdatedAt string `json:"updatedAt"`
|
|
|
//共创项目
|
|
|
CooperationProject struct {
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"`
|
|
|
CooperationProjectID float64 `json:"cooperationProjectId"`
|
|
|
CooperationProjectName string `json:"cooperationProjectName"`
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"`
|
|
|
CooperationProjectPublishTime string `json:"cooperationProjectPublishTime"`
|
|
|
CooperationProjectPublisher struct {
|
|
|
Department struct {
|
|
|
DepartmentID float64 `json:"departmentId"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
} `json:"department"`
|
|
|
Org struct {
|
|
|
OrgID float64 `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
UserBaseID float64 `json:"userBaseId"`
|
|
|
UserID float64 `json:"userId"`
|
|
|
UserInfo struct {
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
} `json:"userInfo"`
|
|
|
UserType float64 `json:"userType"`
|
|
|
} `json:"cooperationProjectPublisher"`
|
|
|
//项目发起人
|
|
|
CooperationProjectSponsor struct {
|
|
|
Department struct {
|
|
|
DepartmentID float64 `json:"departmentId"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
} `json:"department"`
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
UserBaseID int `json:"userBaseId"`
|
|
|
UserID int `json:"userId"`
|
|
|
UserInfo struct {
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
} `json:"userInfo"`
|
|
|
UserType float64 `json:"userType"`
|
|
|
} `json:"cooperationProjectSponsor"`
|
|
|
CooperationProjectUndertakerType []float64 `json:"cooperationProjectUndertakerType"`
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
Status float64 `json:"status"`
|
|
|
} `json:"cooperationProject"`
|
|
|
CooperationApplication
|
|
|
}
|
|
|
)
|
|
|
|
|
|
//共创申请一键审核
|
|
|
type (
|
|
|
ReqCooperationApplicationOneclickApproval struct {
|
|
|
CooperationApplicationDescription string `json:"cooperationApplicationDescription"` //审核描述
|
|
|
Action int `json:"action"` //审核动作,1同意,2拒绝
|
|
|
}
|
|
|
|
|
|
DataCooperationApplicationOneclickApproval struct {
|
|
|
}
|
|
|
) |
...
|
...
|
|