...
|
...
|
@@ -75,30 +75,13 @@ func ToCooperationProjectInfo(param *allied_creation_cooperation.CooperationProj |
|
|
|
|
|
type CooperationApplicationItem struct {
|
|
|
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"`
|
|
|
Company domain.CompanyData `json:"company"`
|
|
|
Department domain.Department `json:"department"`
|
|
|
Org domain.Org `json:"org"`
|
|
|
UserBaseID int `json:"userBaseId"`
|
|
|
UserID int `json:"userId"`
|
|
|
UserInfo domain.UserInfo `json:"userInfo"`
|
|
|
UserType int `json:"userType"`
|
|
|
} `json:"cooperationApplicationApplicant"` //申请人
|
|
|
CooperationApplicationDescription string `json:"cooperationApplicationDescription"` //描述
|
|
|
CooperationApplicationID int `json:"cooperationApplicationId"` //申请id
|
...
|
...
|
@@ -109,12 +92,24 @@ type CooperationApplicationItem struct { |
|
|
|
|
|
func ToCooperationApplicationItem(param *allied_creation_cooperation.CooperationApplication) *CooperationApplicationItem {
|
|
|
data := CooperationApplicationItem{
|
|
|
CooperationApplicationApplicant: param.CooperationApplicationApplicant,
|
|
|
CooperationApplicationDescription: param.CooperationApplicationDescription,
|
|
|
CooperationApplicationID: param.CooperationApplicationID,
|
|
|
CooperationApplicationStatus: param.CooperationApplicationStatus,
|
|
|
CooperationApplyTime: int(param.CooperationApplyTime.Unix()),
|
|
|
CooperationApplicationAttachment: param.CooperationApplicationAttachment,
|
|
|
}
|
|
|
data.CooperationApplicationApplicant.Company.CompanyID = param.CooperationApplicationApplicant.Company.CompanyID
|
|
|
// data.CooperationApplicationApplicant.Company.CompanyLogo = param.CooperationApplicationApplicant.Company.CompanyLogo
|
|
|
data.CooperationApplicationApplicant.Company.CompanyName = param.CooperationApplicationApplicant.Company.CompanyName
|
|
|
data.CooperationApplicationApplicant.Department.DepartmentId = param.CooperationApplicationApplicant.Department.DepartmentID
|
|
|
data.CooperationApplicationApplicant.Department.DepartmentName = param.CooperationApplicationApplicant.Department.DepartmentName
|
|
|
data.CooperationApplicationApplicant.Department.DepartmentNumber = param.CooperationApplicationApplicant.Department.DepartmentNumber
|
|
|
data.CooperationApplicationApplicant.Org.OrgID = param.CooperationApplicationApplicant.Org.OrgID
|
|
|
data.CooperationApplicationApplicant.Org.OrgName = param.CooperationApplicationApplicant.Org.OrgName
|
|
|
data.CooperationApplicationApplicant.UserID = param.CooperationApplicationApplicant.UserID
|
|
|
data.CooperationApplicationApplicant.UserType = param.CooperationApplicationApplicant.UserType
|
|
|
data.CooperationApplicationApplicant.UserInfo.Phone = param.CooperationApplicationApplicant.UserInfo.UserPhone
|
|
|
data.CooperationApplicationApplicant.UserInfo.UsersName = param.CooperationApplicationApplicant.UserInfo.UserName
|
|
|
data.CooperationApplicationApplicant.UserInfo.UsersId = param.CooperationApplicationApplicant.UserID
|
|
|
return &data
|
|
|
} |
...
|
...
|
|