|
|
package allied_creation_cooperation
|
|
|
|
|
|
import (
|
|
|
"time"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
|
|
|
)
|
|
|
|
|
|
//共创申请实体
|
|
|
type CooperationApplication struct {
|
|
|
Company struct {
|
|
|
CompanyID int `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
CooperationApplicationID string `json:"cooperationApplicationId"`
|
|
|
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"`
|
|
|
UserID int `json:"userId"`
|
|
|
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"`
|
|
|
Department interface{} `json:"department"`
|
|
|
} `json:"cooperationApplicationApplicant"`
|
|
|
CooperationApplicationAttachment []domain.Attachment `json:"cooperationApplicationAttachment"`
|
|
|
CooperationApplicationDescription string `json:"cooperationApplicationDescription"`
|
|
|
CooperationApplicationID int `json:"cooperationApplicationId"`
|
|
|
CooperationApplicationStatus int `json:"cooperationApplicationStatus"` //共创申请审核状态,1待审核,2已同意,3已拒绝
|
|
|
CooperationApplicationAttachment []struct {
|
|
|
FileType string `json:"fileType"`
|
|
|
Name string `json:"name"`
|
|
|
URL string `json:"url"`
|
|
|
FileSize string `json:"fileSize"`
|
|
|
} `json:"cooperationApplicationAttachment"`
|
|
|
CooperationApplicationDescription string `json:"cooperationApplicationDescription"`
|
|
|
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"`
|
|
|
UserID int `json:"userId"`
|
|
|
Department interface{} `json:"department"`
|
|
|
} `json:"cooperationApplicationVerifier"`
|
|
|
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
|
|
|
CooperationApplicationVerifyTime time.Time `json:"cooperationApplicationVerifyTime"`
|
|
|
CooperationApplyTime time.Time `json:"cooperationApplyTime"`
|
|
|
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
|
|
|
CooperationApplicationVerifyTime int64 `json:"cooperationApplicationVerifyTime"`
|
|
|
CooperationApplyTime int64 `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"`
|
|
|
CooperationProjectDescription string `json:"cooperationProjectDescription"`
|
|
|
CooperationProjectName string `json:"cooperationProjectName"`
|
|
|
} `json:"cooperationProject"`
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
Org struct {
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId"`
|
|
|
OrgName string `json:"orgName"`
|
|
|
} `json:"org"`
|
|
|
IsCanceled bool `json:"isCanceled"`
|
|
|
UpdatedAt string `json:"updatedAt"`
|
|
|
IsCanceled bool `json:"isCanceled"`
|
|
|
Company struct {
|
|
|
CompanyID string `json:"companyId"`
|
|
|
CompanyLogo string `json:"companyLogo"`
|
|
|
CompanyName string `json:"companyName"`
|
|
|
} `json:"company"`
|
|
|
}
|
|
|
|
|
|
//更新共创申请
|
...
|
...
|
|