...
|
...
|
@@ -2,6 +2,7 @@ package allied_creation_cooperation |
|
|
|
|
|
import (
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/util/jtime"
|
|
|
"time"
|
|
|
)
|
|
|
|
...
|
...
|
@@ -51,7 +52,7 @@ type CooperationProject struct { |
|
|
UsersId int `json:"userId,string"`
|
|
|
} `json:"userInfo"`
|
|
|
} `json:"cooperationProjectSponsor"` //项目发起人
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerType"` //共创合约承接对象,1员工,2共创用户,3公开
|
|
|
CooperationProjectUndertakerType []int `json:"cooperationProjectUndertakerTypes"` //共创合约承接对象,1员工,2共创用户,3公开
|
|
|
Department struct {
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
DepartmentId int `json:"departmentId,string,"`
|
...
|
...
|
@@ -94,7 +95,7 @@ type ( |
|
|
}
|
|
|
|
|
|
DataCooperationProjectGet struct {
|
|
|
CooperationProject CooperationProject `json:"cooperationProject"`
|
|
|
CooperationProject
|
|
|
}
|
|
|
)
|
|
|
|
...
|
...
|
@@ -115,6 +116,12 @@ type ( |
|
|
// 共创项目描述
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"`
|
|
|
Attachment []domain.Attachment `json:"attachment"`
|
|
|
// 组织机构ID
|
|
|
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
|
|
|
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
|
|
|
UserId int64 `cname:"用户ID" json:"userId,string" valid:"Required"`
|
|
|
// 用户基础数据id
|
|
|
UserBaseId int64 `cname:"用户基础数据ID" json:"userBaseId,string" valid:"Required"`
|
|
|
}
|
|
|
|
|
|
DataCooperationProjectUpdate struct {
|
...
|
...
|
@@ -157,8 +164,86 @@ type ( |
|
|
}
|
|
|
|
|
|
DataCooperationProjectSearch struct {
|
|
|
Total int64 `json:"total"`
|
|
|
List []CooperationProject `json:"cooperationProjects"`
|
|
|
//Total int64 `json:"total"`
|
|
|
//List []CooperationProject `json:"cooperationProjects"`
|
|
|
List []struct {
|
|
|
CooperationProjectID string `json:"cooperationProjectId"`
|
|
|
CooperationProjectNumber string `json:"cooperationProjectNumber"`
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"`
|
|
|
CooperationProjectName string `json:"cooperationProjectName"`
|
|
|
CooperationProjectPublishTime jtime.TimeToUnixMsec `json:"cooperationProjectPublishTime"`
|
|
|
CooperationProjectPublisher struct {
|
|
|
UserID string `json:"userId"`
|
|
|
UserBaseID string `json:"userBaseId"`
|
|
|
Department interface{} `json:"department"`
|
|
|
UserInfo struct {
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
} `json:"userInfo"`
|
|
|
//UserType int `json:"userType"`
|
|
|
//UserName string `json:"userName"`
|
|
|
//UserPhone string `json:"userPhone"`
|
|
|
//Status int `json:"status"`
|
|
|
} `json:"cooperationProjectPublisher"`
|
|
|
CooperationProjectSponsor struct {
|
|
|
UserID string `json:"userId"`
|
|
|
UserBaseID string `json:"userBaseId"`
|
|
|
Department interface{} `json:"department"`
|
|
|
UserInfo struct {
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
} `json:"userInfo"`
|
|
|
//UserType int `json:"userType"`
|
|
|
//UserName string `json:"userName"`
|
|
|
//UserPhone string `json:"userPhone"`
|
|
|
//Status int `json:"status"`
|
|
|
} `json:"cooperationProjectSponsor"`
|
|
|
Department struct {
|
|
|
DepartmentID string `json:"departmentId"`
|
|
|
DepartmentName string `json:"departmentName"`
|
|
|
DepartmentNumber string `json:"departmentNumber"`
|
|
|
//IsOrganization bool `json:"isOrganization"`
|
|
|
} `json:"department"`
|
|
|
CooperationProjectUndertakerTypes []int `json:"cooperationProjectUndertakerTypes"`
|
|
|
Org struct {
|
|
|
OrgID string `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
Attachment interface{} `json:"attachment"`
|
|
|
Company struct {
|
|
|
CompanyID string `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
Operator struct {
|
|
|
UserID string `json:"userId"`
|
|
|
UserBaseID string `json:"userBaseId"`
|
|
|
Department interface{} `json:"department"`
|
|
|
UserInfo struct {
|
|
|
UserAvatar string `json:"userAvatar"`
|
|
|
UserEmail string `json:"userEmail"`
|
|
|
UserName string `json:"userName"`
|
|
|
UserPhone string `json:"userPhone"`
|
|
|
UserAccount string `json:"userAccount"`
|
|
|
} `json:"userInfo"`
|
|
|
//UserType int `json:"userType"`
|
|
|
//UserName string `json:"userName"`
|
|
|
//UserPhone string `json:"userPhone"`
|
|
|
//Status int `json:"status"`
|
|
|
} `json:"operator"`
|
|
|
//OperateTime time.Time `json:"operateTime"`
|
|
|
Status int `json:"status"`
|
|
|
//UpdatedAt time.Time `json:"updatedAt"`
|
|
|
//DeletedAt time.Time `json:"deletedAt"`
|
|
|
//CreatedAt time.Time `json:"createdAt"`
|
|
|
} `json:"list"`
|
|
|
Total int `json:"total"`
|
|
|
}
|
|
|
)
|
|
|
|
...
|
...
|
|