|
|
package allied_creation_cooperation
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
type CooperationProject struct {
|
|
|
Company struct {
|
|
|
CompanyId int `json:"companyId,string,"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"` //项目归属企业
|
|
|
Org struct {
|
|
|
OrgId int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"` //项目创建时的组织
|
|
|
CooperationMode struct {
|
|
|
CooperationModeId int `json:"cooperationModeId,string,"`
|
|
|
CooperationModeName string `json:"cooperationModeName"`
|
|
|
CooperationModeNumber string `json:"cooperationModeNumber"`
|
|
|
} `json:"cooperationMode"` //项目模式
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"`
|
|
|
Attachment []struct {
|
|
|
FileType string `json:"fileType"`
|
|
|
Name string `json:"name"`
|
|
|
Url string `json:"url"`
|
|
|
FileSize int `json:"fileSize"`
|
|
|
} `json:"attachment"` //图片附件
|
|
|
CooperationProjectId int `json:"cooperationProjectId,string,"`
|
|
|
CooperationProjectName string `json:"cooperationProjectName"`
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"`
|
|
|
CooperationProjectPublishTime time.Time `json:"cooperationProjectPublishTime"`
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
CooperationProjectPublisher struct {
|
|
|
UsersId int `json:"usersId"`
|
|
|
UserInfo struct {
|
|
|
UsersName string `json:"usersName"`
|
|
|
UsersCode string `json:"usersCode"`
|
|
|
Phone string `json:"phone"`
|
|
|
UsersId int `json:"userId,string,"`
|
|
|
} `json:"userInfo"`
|
|
|
} `json:"cooperationProjectPublisher"` //项目发布人,即操作人
|
|
|
CooperationProjectSponsor struct {
|
|
|
UsersId int `json:"usersId"`
|
|
|
UserInfo struct {
|
|
|
UsersName string `json:"usersName"`
|
|
|
UsersCode string `json:"usersCode"`
|
|
|
Phone string `json:"phone"`
|
|
|
UsersId int `json:"userId,string,"`
|
|
|
} `json:"userInfo"`
|
|
|
} `json:"cooperationProjectSponsor"` //项目发起人
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` //共创合约承接对象,1员工,2共创用户,3公开
|
|
|
Department struct {
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
DepartmentId int `json:"departmentId,string,"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
} `json:"department"` //项目发起部门
|
|
|
Status int `json:"status"`
|
|
|
}
|
|
|
|
|
|
//创建共创项目
|
|
|
type (
|
|
|
ReqCooperationProjectAdd struct {
|
...
|
...
|
@@ -12,7 +68,7 @@ type ( |
|
|
}
|
|
|
|
|
|
DataCooperationProjectAdd struct {
|
|
|
CooperationProjectId int `json:"cooperationProjectId"`
|
|
|
CooperationProject
|
|
|
}
|
|
|
)
|
|
|
|
...
|
...
|
@@ -32,47 +88,7 @@ type ( |
|
|
}
|
|
|
|
|
|
DataCooperationProjectGet struct {
|
|
|
CooperationProject struct {
|
|
|
CooperationMode struct {
|
|
|
CooperationModeID int `json:"cooperationModeId,string"`
|
|
|
CooperationModeName string `json:"cooperationModeName"`
|
|
|
CooperationModeNumber string `json:"cooperationModeNumber"`
|
|
|
} `json:"cooperationMode"`
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"`
|
|
|
Images []string `json:"images"`
|
|
|
CooperationProjectID int `json:"cooperationProjectId,string"`
|
|
|
CooperationProjectName string `json:"cooperationProjectName"`
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"`
|
|
|
CooperationProjectPublishTime string `json:"cooperationProjectPublishTime"`
|
|
|
CooperationProjectPublisher struct {
|
|
|
CooperationCompany string `json:"cooperationCompany"`
|
|
|
CooperationDeadline string `json:"cooperationDeadline"`
|
|
|
Email string `json:"email"`
|
|
|
Phone string `json:"phone"`
|
|
|
Status int `json:"status"`
|
|
|
UsersCode string `json:"usersCode"`
|
|
|
UsersID int `json:"usersId,string"`
|
|
|
UsersName string `json:"usersName"`
|
|
|
} `json:"cooperationProjectPublisher"`
|
|
|
CooperationProjectSponsor struct {
|
|
|
CooperationCompany string `json:"cooperationCompany"`
|
|
|
CooperationDeadline string `json:"cooperationDeadline"`
|
|
|
Email string `json:"email"`
|
|
|
Phone string `json:"phone"`
|
|
|
Status int `json:"status"`
|
|
|
UsersCode string `json:"usersCode"`
|
|
|
UsersID int `json:"usersId,string"`
|
|
|
UsersName string `json:"usersName"`
|
|
|
} `json:"cooperationProjectSponsor"`
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"`
|
|
|
Department struct {
|
|
|
CompanyID int `json:"companyId,string"`
|
|
|
OrgCode string `json:"orgCode"`
|
|
|
OrgID int `json:"orgId,string"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"department"`
|
|
|
Status int `json:"status"`
|
|
|
} `json:"cooperationProject"`
|
|
|
CooperationProject CooperationProject `json:"cooperationProject"`
|
|
|
}
|
|
|
)
|
|
|
|
...
|
...
|
@@ -95,6 +111,7 @@ type ( |
|
|
}
|
|
|
|
|
|
DataCooperationProjectUpdate struct {
|
|
|
CooperationProject
|
|
|
}
|
|
|
)
|
|
|
|
...
|
...
|
@@ -126,52 +143,13 @@ type ( |
|
|
DepartmentName string `json:"departmentName"`
|
|
|
//项目名称
|
|
|
CooperationProjectName string `json:"cooperationProjectName"`
|
|
|
Status int `json:"status"`
|
|
|
// 共创项目状态,1招标中,2结束 0 全部
|
|
|
Status int `json:"status"`
|
|
|
}
|
|
|
|
|
|
DataCooperationProjectSearch struct {
|
|
|
Total int64 `json:"total"`
|
|
|
CooperationProjects []struct {
|
|
|
CooperationMode struct {
|
|
|
CooperationModeID int `json:"cooperationModeId,string,"`
|
|
|
CooperationModeName string `json:"cooperationModeName"`
|
|
|
CooperationModeNumber string `json:"cooperationModeNumber"`
|
|
|
} `json:"cooperationMode"`
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"`
|
|
|
Images []string `json:"images"`
|
|
|
CooperationProjectID int `json:"cooperationProjectId,string,"`
|
|
|
CooperationProjectName string `json:"cooperationProjectName"`
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"`
|
|
|
CooperationProjectPublishTime string `json:"cooperationProjectPublishTime"`
|
|
|
CooperationProjectPublisher struct {
|
|
|
CooperationCompany string `json:"cooperationCompany"`
|
|
|
CooperationDeadline string `json:"cooperationDeadline"`
|
|
|
Email string `json:"email"`
|
|
|
Phone string `json:"phone"`
|
|
|
Status int `json:"status"`
|
|
|
UsersCode string `json:"usersCode"`
|
|
|
UsersID int `json:"usersId,string,"`
|
|
|
UsersName string `json:"usersName"`
|
|
|
} `json:"cooperationProjectPublisher"`
|
|
|
CooperationProjectSponsor struct {
|
|
|
CooperationCompany string `json:"cooperationCompany"`
|
|
|
CooperationDeadline string `json:"cooperationDeadline"`
|
|
|
Email string `json:"email"`
|
|
|
Phone string `json:"phone"`
|
|
|
Status int `json:"status"`
|
|
|
UsersCode string `json:"usersCode"`
|
|
|
UsersID int `json:"usersId,string,"`
|
|
|
UsersName string `json:"usersName"`
|
|
|
} `json:"cooperationProjectSponsor"`
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"`
|
|
|
Department struct {
|
|
|
CompanyID int `json:"companyId,string,"`
|
|
|
OrgCode string `json:"orgCode"`
|
|
|
OrgID int `json:"orgId,string,"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"department"`
|
|
|
Status int `json:"status"`
|
|
|
} `json:"cooperationProjects"`
|
|
|
Total int64 `json:"total"`
|
|
|
CooperationProjects []CooperationProject `json:"cooperationProjects"`
|
|
|
}
|
|
|
)
|
|
|
|
...
|
...
|
|