...
|
...
|
@@ -5,47 +5,19 @@ import ( |
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_cooperation"
|
|
|
)
|
|
|
|
|
|
//合约模式
|
|
|
type CooperationMode struct {
|
|
|
CooperationModeId int `json:"cooperationModeId,string"`
|
|
|
CooperationModeName string `json:"cooperationModeName"`
|
|
|
CooperationModeNumber string `json:"cooperationModeNumber"`
|
|
|
}
|
|
|
|
|
|
//部门
|
|
|
type Department struct {
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
DepartmentId int `json:"departmentId,string,"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
}
|
|
|
|
|
|
//用户
|
|
|
type UserInfo struct {
|
|
|
UsersName string `json:"usersName"`
|
|
|
Phone string `json:"phone"`
|
|
|
UsersId int `json:"userId,string"`
|
|
|
}
|
|
|
|
|
|
//公司
|
|
|
type CompanyData struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
}
|
|
|
|
|
|
//CooperationProjectItem 返回共创项目列表项
|
|
|
type CooperationProjectItem struct {
|
|
|
CooperationMode CooperationMode `json:"cooperationMode"` //项目模式
|
|
|
CooperationProjectID int `json:"cooperationProjectId,string,"` //id
|
|
|
CooperationProjectName string `json:"cooperationProjectName"` //共创项目名称
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"` //项目编号
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` //承接对象
|
|
|
Department Department `json:"department"` //项目发起部门
|
|
|
Status int `json:"status"` //项目状态
|
|
|
CooperationProjectPublishTime int `json:"cooperationProjectPublishTime"`
|
|
|
CooperationMode domain.CooperationMode `json:"cooperationMode"` //项目模式
|
|
|
CooperationProjectID int `json:"cooperationProjectId,string,"` //id
|
|
|
CooperationProjectName string `json:"cooperationProjectName"` //共创项目名称
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"` //项目编号
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` //承接对象
|
|
|
Department domain.Department `json:"department"` //项目发起部门
|
|
|
Status int `json:"status"` //项目状态
|
|
|
CooperationProjectPublishTime int `json:"cooperationProjectPublishTime"`
|
|
|
CooperationProjectSponsor struct {
|
|
|
UsersId int `json:"usersId"`
|
|
|
UserInfo UserInfo `json:"UserInfo"`
|
|
|
UsersId int `json:"usersId"`
|
|
|
UserInfo domain.UserInfo `json:"UserInfo"`
|
|
|
} `json:"cooperationProjectSponsor"` //共创发起人
|
|
|
}
|
|
|
|
...
|
...
|
@@ -69,18 +41,18 @@ func ToCooperationProjectItem(projecetParam *allied_creation_cooperation.Coopera |
|
|
|
|
|
//CooperationProjectInfo 返回共创项目详情
|
|
|
type CooperationProjectInfo struct {
|
|
|
CooperationMode CooperationMode `json:"cooperationMode"` //共创模式
|
|
|
CooperationProjectID int `json:"cooperationProjectId,string,"` //id
|
|
|
CooperationProjectName string `json:"cooperationProjectName"` //共创项目名称
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"` //项目编号
|
|
|
CooperationProjectPublishTime int `json:"cooperationProjectPublishTime"` //共创项目发布时间
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` //承接对象
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"` //共创描述
|
|
|
Department Department `json:"department"` //项目发起部门
|
|
|
Status int `json:"status"` //项目状态
|
|
|
CooperationMode domain.CooperationMode `json:"cooperationMode"` //共创模式
|
|
|
CooperationProjectID int `json:"cooperationProjectId,string,"` //id
|
|
|
CooperationProjectName string `json:"cooperationProjectName"` //共创项目名称
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"` //项目编号
|
|
|
CooperationProjectPublishTime int `json:"cooperationProjectPublishTime"` //共创项目发布时间
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` //承接对象
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"` //共创描述
|
|
|
Department domain.Department `json:"department"` //项目发起部门
|
|
|
Status int `json:"status"` //项目状态
|
|
|
CooperationProjectSponsor struct {
|
|
|
UsersId int `json:"usersId"`
|
|
|
UserInfo UserInfo `json:"UserInfo"`
|
|
|
UsersId int `json:"usersId"`
|
|
|
UserInfo domain.UserInfo `json:"UserInfo"`
|
|
|
} `json:"cooperationProjectSponsor"` //共创发起人
|
|
|
Attachment []domain.Attachment `json:"attachment"` //图片附件
|
|
|
}
|
...
|
...
|
@@ -106,11 +78,11 @@ func ToCooperationProjectInfo(projecetParam *allied_creation_cooperation.Coopera |
|
|
}
|
|
|
|
|
|
type CooperationApplication struct {
|
|
|
Company CompanyData `json:"company"`
|
|
|
Company domain.CompanyData `json:"company"`
|
|
|
CooperationApplicationApplicant struct {
|
|
|
UserId int `json:"userId"`
|
|
|
UserInfo UserInfo `json:"userInfo"`
|
|
|
Department Department `json:"department"` //申请人部门
|
|
|
UserId int `json:"userId"`
|
|
|
UserInfo domain.UserInfo `json:"userInfo"`
|
|
|
Department domain.Department `json:"department"` //申请人部门
|
|
|
} `json:"cooperationApplicationApplicant"` //申请人
|
|
|
CooperationApplicationAttachment []domain.Attachment `json:"cooperationApplicationAttachment"` //附件信息
|
|
|
CooperationApplicationDescription string `json:"cooperationApplicationDescription"` //申请描述
|
...
|
...
|
|