审查视图

pkg/infrastructure/service_gateway/allied_creation_cooperation/param_cooperation_application.go 8.4 KB
1 2
package allied_creation_cooperation
3 4 5 6
import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
)
tangxuhui authored
7
//共创申请实体
tangxuhui authored
8
type CooperationApplication struct {
yangfu authored
9
	CooperationApplicationID        string `json:"cooperationApplicationId"`
tangxuhui authored
10
	CooperationApplicationApplicant struct {
yangfu authored
11 12
		UserID   int `json:"userId"`
		UserInfo struct {
tangxuhui authored
13 14 15
			UserAvatar  string `json:"userAvatar"`
			UserEmail   string `json:"userEmail"`
			UserName    string `json:"userName"`
tangxuhui authored
16
			UserCode    string `json:"userCode"`
tangxuhui authored
17
			UserPhone   string `json:"userPhone"`
yangfu authored
18
			UserAccount string `json:"userAccount"`
tangxuhui authored
19
		} `json:"userInfo"`
yangfu authored
20
		Department struct {
tangxuhui authored
21
			// 部门ID,
yangfu authored
22 23 24 25
			DepartmentId int64 `json:"departmentId"`
			// 部门名称
			DepartmentName string `json:"departmentName"`
		} `json:"department"`
tangxuhui authored
26
	} `json:"cooperationApplicationApplicant"`
yangfu authored
27 28 29
	CooperationApplicationAttachment  []domain.Attachment `json:"cooperationApplicationAttachment"`
	CooperationApplicationDescription string              `json:"cooperationApplicationDescription"`
	CooperationApplicationStatus      int                 `json:"cooperationApplicationStatus"`
tangxuhui authored
30
	CooperationApplicationVerifier    struct {
yangfu authored
31 32
		UserID     int         `json:"userId"`
		Department interface{} `json:"department"`
tangxuhui authored
33
	} `json:"cooperationApplicationVerifier"`
yangfu authored
34
	CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
tangxuhui authored
35 36
	CooperationApplicationVerifyTime        int    `json:"cooperationApplicationVerifyTime"`
	CooperationApplyTime                    int    `json:"cooperationApplyTime"`
tangxuhui authored
37 38 39
	CooperationProject                      struct {
		CooperationProjectID          int    `json:"cooperationProjectId"`
		CooperationProjectNumber      string `json:"cooperationProjectNumber"`
yangfu authored
40 41
		CooperationProjectDescription string `json:"cooperationProjectDescription"`
		CooperationProjectName        string `json:"cooperationProjectName"`
yangfu authored
42 43 44 45 46 47 48 49 50
		CooperationMode               struct {
			// 共创模式ID
			CooperationModeId int `json:"cooperationModeId,string"`
			// 共创模式编码,唯一确定
			CooperationModeNumber string `json:"cooperationModeNumber"`
			// 模式名称,唯一确定
			CooperationModeName string `json:"cooperationModeName"`
		} `json:"cooperationMode"`
		Attachment []struct {
yangfu authored
51 52 53
			FileType string `json:"fileType"`
			Name     string `json:"name"`
			URL      string `json:"url"`
tangxuhui authored
54
			FileSize int    `json:"fileSize"`
yangfu authored
55
		} `json:"attachment"`
tangxuhui authored
56
	} `json:"cooperationProject"`
yangfu authored
57
	Org struct {
tangxuhui authored
58 59 60
		OrgID   int    `json:"orgId"`
		OrgName string `json:"orgName"`
	} `json:"org"`
yangfu authored
61 62 63 64
	Department struct {
		DepartmentID   int    `json:"departmentId"`
		DepartmentName string `json:"departmentName"`
	} `json:"department"`
yangfu authored
65 66
	IsCanceled bool `json:"isCanceled"`
	Company    struct {
yangfu authored
67
		CompanyID   int    `json:"companyId"`
yangfu authored
68 69 70
		CompanyLogo string `json:"companyLogo"`
		CompanyName string `json:"companyName"`
	} `json:"company"`
tangxuhui authored
71
}
72
73 74 75
//更新共创申请
type (
	ReqCooperationApplicationUpdate struct {
76
		CooperationApplicationId int
77 78 79 80 81 82
	}

	DataCooperationApplicationUpdate struct {
	}
)
tangxuhui authored
83
//共创申请批量审核
84 85
type (
	ReqCooperationApplicationBatchApproval struct {
tangxuhui authored
86 87 88 89
		CooperationApplicationIds               []string `json:"cooperationApplicationIds"`
		CooperationApplicationVerifyDescription string   `json:"cooperationApplicationVerifyDescription"` //描述
		Action                                  int      `json:"action"`                                  //审核动作,1同意,2拒绝
		Code                                    string   `json:"code" `                                   //cname:"菜单编码"
90 91 92 93 94 95
	}

	DataCooperationApplicationBatchApproval struct {
	}
)
tangxuhui authored
96
//共创申请审核
yangfu authored
97 98
type (
	ReqCooperationApplicationApproval struct {
tangxuhui authored
99 100 101 102
		CooperationApplicationId                string `json:"cooperationApplicationId"`
		CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"` //描述
		Action                                  int    `json:"action"`                                  //审核动作,1同意,2拒绝
		Code                                    string `json:"code"`
yangfu authored
103 104 105 106 107 108
	}

	DataCooperationApplicationApproval struct {
	}
)
109 110 111
//取消共创申请
type (
	ReqCooperationApplicationCancel struct {
112 113 114
		ApplicationId int `json:"cooperationApplicationId,string"`
		// 菜单编码,APP端必须
		Code string `cname:"菜单编码" json:"code" valid:"Required"`
115 116 117 118 119 120 121 122 123
	}

	DataCooperationApplicationCancel struct {
	}
)

//审核-同意共创申请
type (
	ReqCooperationApplicationAgree struct {
tangxuhui authored
124
		CooperationApplicationId                int    `json:"cooperationApplicationId"`
125
		CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
126 127 128 129 130 131 132 133 134
	}

	DataCooperationApplicationAgree struct {
	}
)

//审核-拒绝共创申请
type (
	ReqCooperationApplicationReject struct {
tangxuhui authored
135
		CooperationApplicationId                int    `json:"cooperationApplicationId"`
136
		CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"`
137 138 139 140 141 142 143 144 145
	}

	DataCooperationApplicationReject struct {
	}
)

//创建共创申请
type (
	ReqCooperationApplicationAdd struct {
146 147 148 149 150 151 152 153
		// 共创申请人uid
		ApplicantUid string `json:"applicantUid" `
		// 共创申请描述
		CooperationApplicationDescription string ` json:"cooperationApplicationDescription"`
		// 共创申请描述附件
		CooperationApplicationAttachment []domain.Attachment `json:"cooperationApplicationAttachment"`
		// 关联的共创项目编号
		CooperationProjectNumber string `json:"cooperationProjectNumber"`
154 155 156
	}

	DataCooperationApplicationAdd struct {
157
		CooperationApplicationId int `json:"cooperationApplicationId,string"`
158 159 160 161 162 163
	}
)

//查询共创申请
type (
	ReqCooperationApplicationSearch struct {
tangxuhui authored
164 165 166 167 168 169 170 171 172 173 174 175
		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"`
		OrgId                        int64   `json:"orgId"`  // 组织机构ID
		OrgIds                       []int64 `json:"orgIds"` // 组织机构ID
		UserId                       int64   `json:"userId"`
		UserBaseId                   int64   `json:"userBaseId"`
		IsCanceled                   int     `json:"isCanceled"` //1正常,2取消,3所有
176 177 178
	}

	DataCooperationApplicationSearch struct {
yangfu authored
179
		Grid struct {
tangxuhui authored
180 181
			Total int                      `json:"total"`
			List  []CooperationApplication `json:"list"`
yangfu authored
182
		} `json:"grid"`
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
	}
)

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

	DataCooperationApplicationApply struct {
	}
)

//移除共创申请
type (
	ReqCooperationApplicationRemove struct {
198
		ApplicationId int `json:"applicationId"`
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
	}

	DataCooperationApplicationRemove struct {
	}
)

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

	DataCooperationApplicationList struct {
	}
)

//返回共创申请详情
type (
	ReqCooperationApplicationGet struct {
yangfu authored
217
		CooperationApplicationId int `json:"cooperationApplicationId,string"`
218 219 220
	}

	DataCooperationApplicationGet struct {
tangxuhui authored
221 222 223 224 225 226 227
		CooperationApplication
	}
)

//共创申请一键审核
type (
	ReqCooperationApplicationOneclickApproval struct {
228 229 230
		CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"` //审核描述
		Action                                  int    `json:"action"`                                  //审核动作,1同意,2拒绝
		Code                                    string `cname:"菜单编码" json:"code" valid:"Required"`
tangxuhui authored
231 232 233
	}

	DataCooperationApplicationOneclickApproval struct {
234 235
	}
)
tangxuhui authored
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252

//申请共创项目
type (
	ReqApplyForCooperation struct {
		// 共创申请人uid
		// ApplicantUid string `json:"-" `
		// 共创申请描述
		CooperationApplicationDescription string ` json:"cooperationApplicationDescription"`
		// 共创申请描述附件
		CooperationApplicationAttachment []domain.Attachment `json:"cooperationApplicationAttachment"`
		// 关联的共创项目id
		CooperationProjectId int `json:"cooperationProjectId"`
	}
	DataApplyForCooperation struct {
		CooperationApplicationId int `json:"cooperationApplicationId,string"`
	}
)