param_cooperation_application.go 9.2 KB
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"`
	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"`
	} `json:"cooperationApplicationApplicant"`
	CooperationApplicationAttachment  []domain.Attachment `json:"cooperationApplicationAttachment"`
	CooperationApplicationDescription string              `json:"cooperationApplicationDescription"`
	CooperationApplicationID          int                 `json:"cooperationApplicationId"`
	CooperationApplicationStatus      int                 `json:"cooperationApplicationStatus"` //共创申请审核状态,1待审核,2已同意,3已拒绝
	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"`
	} `json:"cooperationApplicationVerifier"`
	CooperationApplicationVerifyDescription string    `json:"cooperationApplicationVerifyDescription"`
	CooperationApplicationVerifyTime        time.Time `json:"cooperationApplicationVerifyTime"`
	CooperationApplyTime                    time.Time `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"`
	} `json:"cooperationProject"`
	CreatedAt string `json:"createdAt"`
	Org       struct {
		OrgID   int    `json:"orgId"`
		OrgName string `json:"orgName"`
	} `json:"org"`
	IsCanceled bool   `json:"isCanceled"`
	UpdatedAt  string `json:"updatedAt"`
}

//更新共创申请
type (
	ReqCooperationApplicationUpdate struct {
		CooperationApplicationId int
	}

	DataCooperationApplicationUpdate struct {
	}
)

//共创申请批量审核
type (
	ReqCooperationApplicationBatchApproval struct {
		CooperationApplicationIds         []string `json:"cooperationApplicationIds"`
		CooperationApplicationDescription string   `json:"cooperationApplicationDescription"` //描述
		Action                            int      `json:"action"`                            //审核动作,1同意,2拒绝
	}

	DataCooperationApplicationBatchApproval struct {
	}
)

//取消共创申请
type (
	ReqCooperationApplicationCancel struct {
		ApplicationId int `json:"applicationId"`
	}

	DataCooperationApplicationCancel struct {
	}
)

//审核-同意共创申请
type (
	ReqCooperationApplicationAgree struct {
		CooperationApplicationId                int    `json:"cooperationApplicationId"`
		CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
	}

	DataCooperationApplicationAgree struct {
	}
)

//审核-拒绝共创申请
type (
	ReqCooperationApplicationReject struct {
		CooperationApplicationId                int    `json:"cooperationApplicationId"`
		CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
	}

	DataCooperationApplicationReject struct {
	}
)

//创建共创申请
type (
	ReqCooperationApplicationAdd struct {
		// 共创申请人uid
		ApplicantUid string `json:"applicantUid" `
		// 共创申请描述
		CooperationApplicationDescription string ` json:"cooperationApplicationDescription"`
		// 共创申请描述附件
		CooperationApplicationAttachment []domain.Attachment `json:"cooperationApplicationAttachment"`
		// 关联的共创项目编号
		CooperationProjectNumber string `json:"cooperationProjectNumber"`
	}

	DataCooperationApplicationAdd struct {
		CooperationApplicationId int `json:"cooperationApplicationId,string"`
	}
)

//查询共创申请
type (
	ReqCooperationApplicationSearch struct {
		ApplicantName                string `json:"applicantName"`                //申请人姓名
		CooperationApplicationStatus int    `json:"cooperationApplicationStatus"` //共创申请审核状态,1待审核,2已同意,3已拒绝
		CooperationProjectName       string `json:"cooperationProjectName"`       //共创项目名称
		CooperationProjectNumber     string `json:"cooperationProjectNumber"`     //共创项目编号
		PageNumber                   int    `json:"pageNumber"`
		PageSize                     int    `json:"pageSize"`
		CompanyId                    int    `json:"companyId"`
	}

	DataCooperationApplicationSearch struct {
		Grid struct {
			Total int                      `json:"total"`
			List  []CooperationApplication `json:"list"`
		} `json:"grid"`
	}
)

//申请共创
type (
	ReqCooperationApplicationApply struct {
	}

	DataCooperationApplicationApply struct {
	}
)

//移除共创申请
type (
	ReqCooperationApplicationRemove struct {
		ApplicationId int `json:"applicationId"`
	}

	DataCooperationApplicationRemove struct {
	}
)

//返回共创申请列表
type (
	ReqCooperationApplicationList struct {
	}

	DataCooperationApplicationList struct {
	}
)

//返回共创申请详情
type (
	ReqCooperationApplicationGet struct {
		CooperationApplicationId int `json:"cooperationApplicationId"`
	}

	DataCooperationApplicationGet struct {
		CooperationApplication
	}
)

//共创申请一键审核
type (
	ReqCooperationApplicationOneclickApproval struct {
		CooperationApplicationDescription string `json:"cooperationApplicationDescription"` //审核描述
		Action                            int    `json:"action"`                            //审核动作,1同意,2拒绝
	}

	DataCooperationApplicationOneclickApproval struct {
	}
)