param_cooperation_application.go 7.1 KB
package allied_creation_cooperation

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
)

//共创申请实体
type CooperationApplication struct {
	CooperationApplicationID        string `json:"cooperationApplicationId"`
	CooperationApplicationApplicant struct {
		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"`
		Department struct {
			// 部门ID,通过REST集成上下文获取
			DepartmentId int64 `json:"departmentId"`
			// 部门名称
			DepartmentName string `json:"departmentName"`
		} `json:"department"`
	} `json:"cooperationApplicationApplicant"`
	CooperationApplicationAttachment  []domain.Attachment `json:"cooperationApplicationAttachment"`
	CooperationApplicationDescription string              `json:"cooperationApplicationDescription"`
	CooperationApplicationStatus      int                 `json:"cooperationApplicationStatus"`
	CooperationApplicationVerifier    struct {
		UserID     int         `json:"userId"`
		Department interface{} `json:"department"`
	} `json:"cooperationApplicationVerifier"`
	CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
	CooperationApplicationVerifyTime        int    `json:"cooperationApplicationVerifyTime"`
	CooperationApplyTime                    int    `json:"cooperationApplyTime"`
	CooperationProject                      struct {
		CooperationProjectID          int    `json:"cooperationProjectId"`
		CooperationProjectNumber      string `json:"cooperationProjectNumber"`
		CooperationProjectDescription string `json:"cooperationProjectDescription"`
		CooperationProjectName        string `json:"cooperationProjectName"`
		CooperationMode               struct {
			// 共创模式ID
			CooperationModeId int `json:"cooperationModeId,string"`
			// 共创模式编码,唯一确定
			CooperationModeNumber string `json:"cooperationModeNumber"`
			// 模式名称,唯一确定
			CooperationModeName string `json:"cooperationModeName"`
		} `json:"cooperationMode"`
		Attachment []struct {
			FileType string `json:"fileType"`
			Name     string `json:"name"`
			URL      string `json:"url"`
			FileSize int    `json:"fileSize"`
		} `json:"attachment"`
	} `json:"cooperationProject"`
	Org struct {
		OrgID   int    `json:"orgId"`
		OrgName string `json:"orgName"`
	} `json:"org"`
	IsCanceled bool `json:"isCanceled"`
	Company    struct {
		CompanyID   int    `json:"companyId"`
		CompanyLogo string `json:"companyLogo"`
		CompanyName string `json:"companyName"`
	} `json:"company"`
}

//更新共创申请
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 (
	ReqCooperationApplicationApproval struct {
		CooperationApplicationId          string `json:"cooperationApplicationId"`
		CooperationApplicationDescription string `json:"cooperationApplicationDescription"` //描述
		Action                            int    `json:"action"`                            //审核动作,1同意,2拒绝
		Code                              string `cname:"菜单编码" json:"code" valid:"Required"`
	}

	DataCooperationApplicationApproval struct {
	}
)

//取消共创申请
type (
	ReqCooperationApplicationCancel struct {
		ApplicationId int `json:"cooperationApplicationId,string"`
		// 菜单编码,APP端必须
		Code string `cname:"菜单编码" json:"code" valid:"Required"`
	}

	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,string"`
	}

	DataCooperationApplicationGet struct {
		CooperationApplication
	}
)

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

	DataCooperationApplicationOneclickApproval struct {
	}
)