param_cooperation_project.go 6.6 KB
package allied_creation_cooperation

//创建共创项目
type (
	ReqCooperationProjectAdd struct {
		CooperationProjectDescription    string   `json:"cooperationProjectDescription"`
		CooperationProjectName           string   `json:"cooperationProjectName"`
		PublisherUid                     string   `json:"publisherUid"`
		SponsorUid                       string   `json:"sponsorUid"`
		CooperationProjectUndertakerType []int    `json:"cooperationProjectUndertakerType"`
		Images                           []string `json:"images"`
	}

	DataCooperationProjectAdd struct {
		CooperationProjectId int `json:"cooperationProjectId"`
	}
)

//返回共创项目列表
type (
	ReqCooperationProjectList struct {
	}

	DataCooperationProjectList struct {
	}
)

//返回共创项目详情
type (
	ReqCooperationProjectGet struct {
		CooperationProjectId int
	}

	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"`
	}
)

//更新共创项目
type (
	ReqCooperationProjectUpdate struct {
		// 共创项目ID
		CooperationProjectId string `json:"cooperationProjectId" `
		// 共创项目名称
		CooperationProjectName string `json:"cooperationProjectName"`
		// 承接对象,1员工,2共创用户,3公开,可以多选
		CooperationProjectUndertakerType []int32 `json:"cooperationProjectUndertakerType"`
		// 共创项目发起人uid
		SponsorUid string `json:"sponsorUid"`
		// 共创项目发布人uid
		PublisherUid string `json:"publisherUid"`
		// 共创项目描述
		CooperationProjectDescription string   `json:"cooperationProjectDescription"`
		Images                        []string `json:"images"`
	}

	DataCooperationProjectUpdate struct {
	}
)

//移除共创项目
type (
	ReqCooperationProjectRemove struct {
		CooperationProjectID int
	}

	DataCooperationProjectRemove struct {
	}
)

//发布共创项目
type (
	ReqCooperationProjectsRelease struct {
	}

	DataCooperationProjectsRelease struct {
	}
)

//查询共创项目
type (
	ReqCooperationProjectSearch struct {
		PageNumber int `json:"pageNumber"`
		PageSize   int `json:"pageSize"`
		//发起部门名称
		DepartmentName string `json:"departmentName"`
		//项目名称
		CooperationProjectName string `json:"cooperationProjectName"`
		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"`
	}
)

//判断当前勾选的承接对象是否存在用户
type (
	ReqCooperationProjectsCheck struct {
		CooperationProjectId              int
		CooperationProjectUndertakerTypes []int
	}

	DataCooperationProjectsCheck struct {
	}
)