gitee.com/larksuite/oapi-sdk-go/v3@v3.0.3/service/hire/v1/model.go (about) 1 // Package hire code generated by oapi sdk gen 2 /* 3 * MIT License 4 * 5 * Copyright (c) 2022 Lark Technologies Pte. Ltd. 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 8 * 9 * The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 12 */ 13 14 package larkhire 15 16 import ( 17 "fmt" 18 19 "context" 20 "errors" 21 22 "gitee.com/larksuite/oapi-sdk-go/v3/core" 23 ) 24 25 const ( 26 UserIdTypeUserId = "user_id" // 以user_id来识别用户 27 UserIdTypeUnionId = "union_id" // 以union_id来识别用户 28 UserIdTypeOpenId = "open_id" // 以open_id来识别用户 29 ) 30 31 const ( 32 TerminationType我们拒绝了候选人 = 1 // 我们拒绝了候选人 33 TerminationType候选人拒绝了我们 = 22 // 候选人拒绝了我们 34 TerminationType其他 = 27 // 其他 35 36 ) 37 38 const ( 39 UserIdTypeTransferOnboardApplicationUserId = "user_id" // 以user_id来识别用户 40 UserIdTypeTransferOnboardApplicationUnionId = "union_id" // 以union_id来识别用户 41 UserIdTypeTransferOnboardApplicationOpenId = "open_id" // 以open_id来识别用户 42 ) 43 44 const ( 45 UserIdTypeListApplicationInterviewUserId = "user_id" // 以user_id来识别用户 46 UserIdTypeListApplicationInterviewUnionId = "union_id" // 以union_id来识别用户 47 UserIdTypeListApplicationInterviewOpenId = "open_id" // 以open_id来识别用户 48 UserIdTypeListApplicationInterviewPeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 49 ) 50 51 const ( 52 UserIdTypeGetEmployeeUserId = "user_id" // 以user_id来识别用户 53 UserIdTypeGetEmployeeUnionId = "union_id" // 以union_id来识别用户 54 UserIdTypeGetEmployeeOpenId = "open_id" // 以open_id来识别用户 55 ) 56 57 const ( 58 UserIdTypeGetByApplicationEmployeeUserId = "user_id" // 以user_id来识别用户 59 UserIdTypeGetByApplicationEmployeeUnionId = "union_id" // 以union_id来识别用户 60 UserIdTypeGetByApplicationEmployeeOpenId = "open_id" // 以open_id来识别用户 61 ) 62 63 const ( 64 OperationConvert = 1 // 转正 65 OperationOverboard = 2 // 离职 66 67 ) 68 69 const ( 70 UserIdTypePatchEmployeeUserId = "user_id" // 以user_id来识别用户 71 UserIdTypePatchEmployeeUnionId = "union_id" // 以union_id来识别用户 72 UserIdTypePatchEmployeeOpenId = "open_id" // 以open_id来识别用户 73 ) 74 75 const ( 76 UserIdTypeGetJobUserId = "user_id" // 以user_id来识别用户 77 UserIdTypeGetJobUnionId = "union_id" // 以union_id来识别用户 78 UserIdTypeGetJobOpenId = "open_id" // 以open_id来识别用户 79 UserIdTypeGetJobPeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 80 ) 81 82 const ( 83 UserIdTypeGetJobManagerUserId = "user_id" // 以user_id来识别用户 84 UserIdTypeGetJobManagerUnionId = "union_id" // 以union_id来识别用户 85 UserIdTypeGetJobManagerOpenId = "open_id" // 以open_id来识别用户 86 UserIdTypeGetJobManagerPeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 87 ) 88 89 const ( 90 PrivacyPrivate = 1 // 私密 91 PrivacyPublic = 2 // 公开 92 93 ) 94 95 const ( 96 UserIdTypeCreateNoteUserId = "user_id" // 以user_id来识别用户 97 UserIdTypeCreateNoteUnionId = "union_id" // 以union_id来识别用户 98 UserIdTypeCreateNoteOpenId = "open_id" // 以open_id来识别用户 99 UserIdTypeCreateNotePeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 100 ) 101 102 const ( 103 UserIdTypeGetNoteUserId = "user_id" // 以user_id来识别用户 104 UserIdTypeGetNoteUnionId = "union_id" // 以union_id来识别用户 105 UserIdTypeGetNoteOpenId = "open_id" // 以open_id来识别用户 106 UserIdTypeGetNotePeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 107 ) 108 109 const ( 110 UserIdTypeListNoteUserId = "user_id" // 以user_id来识别用户 111 UserIdTypeListNoteUnionId = "union_id" // 以union_id来识别用户 112 UserIdTypeListNoteOpenId = "open_id" // 以open_id来识别用户 113 UserIdTypeListNotePeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 114 ) 115 116 const ( 117 UserIdTypePatchNoteUserId = "user_id" // 以user_id来识别用户 118 UserIdTypePatchNoteUnionId = "union_id" // 以union_id来识别用户 119 UserIdTypePatchNoteOpenId = "open_id" // 以open_id来识别用户 120 UserIdTypePatchNotePeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 121 ) 122 123 const ( 124 UserIdTypeGetByApplicationReferralUserId = "user_id" // 以user_id来识别用户 125 UserIdTypeGetByApplicationReferralUnionId = "union_id" // 以union_id来识别用户 126 UserIdTypeGetByApplicationReferralOpenId = "open_id" // 以open_id来识别用户 127 UserIdTypeGetByApplicationReferralPeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 128 ) 129 130 type Agency struct { 131 Id *string `json:"id,omitempty"` // 猎头供应商ID 132 Name *string `json:"name,omitempty"` // 猎头供应商名称 133 ContactorId *string `json:"contactor_id,omitempty"` // 供应商联系人ID 134 } 135 136 type AgencyBuilder struct { 137 id string // 猎头供应商ID 138 idFlag bool 139 name string // 猎头供应商名称 140 nameFlag bool 141 contactorId string // 供应商联系人ID 142 contactorIdFlag bool 143 } 144 145 func NewAgencyBuilder() *AgencyBuilder { 146 builder := &AgencyBuilder{} 147 return builder 148 } 149 150 // 猎头供应商ID 151 // 152 // 示例值:6898173495386147079 153 func (builder *AgencyBuilder) Id(id string) *AgencyBuilder { 154 builder.id = id 155 builder.idFlag = true 156 return builder 157 } 158 159 // 猎头供应商名称 160 // 161 // 示例值:超越猎头公司 162 func (builder *AgencyBuilder) Name(name string) *AgencyBuilder { 163 builder.name = name 164 builder.nameFlag = true 165 return builder 166 } 167 168 // 供应商联系人ID 169 // 170 // 示例值:ou_f476cb099ac9227c9bae09ce46112579 171 func (builder *AgencyBuilder) ContactorId(contactorId string) *AgencyBuilder { 172 builder.contactorId = contactorId 173 builder.contactorIdFlag = true 174 return builder 175 } 176 177 func (builder *AgencyBuilder) Build() *Agency { 178 req := &Agency{} 179 if builder.idFlag { 180 req.Id = &builder.id 181 182 } 183 if builder.nameFlag { 184 req.Name = &builder.name 185 186 } 187 if builder.contactorIdFlag { 188 req.ContactorId = &builder.contactorId 189 190 } 191 return req 192 } 193 194 type AppliOfferBasicCustObj struct { 195 Id *string `json:"id,omitempty"` // id 196 Name *OfferSchemaName `json:"name,omitempty"` // 名字 197 Type *string `json:"type,omitempty"` // 自定义字段类型 198 Value *string `json:"value,omitempty"` // 自定义字段的值 199 OptionValueList []*AppliOfferBasicCustObjOpV `json:"option_value_list,omitempty"` // 单选/多选自定义字段的值 200 } 201 202 type AppliOfferBasicCustObjBuilder struct { 203 id string // id 204 idFlag bool 205 name *OfferSchemaName // 名字 206 nameFlag bool 207 type_ string // 自定义字段类型 208 typeFlag bool 209 value string // 自定义字段的值 210 valueFlag bool 211 optionValueList []*AppliOfferBasicCustObjOpV // 单选/多选自定义字段的值 212 optionValueListFlag bool 213 } 214 215 func NewAppliOfferBasicCustObjBuilder() *AppliOfferBasicCustObjBuilder { 216 builder := &AppliOfferBasicCustObjBuilder{} 217 return builder 218 } 219 220 // id 221 // 222 // 示例值: 223 func (builder *AppliOfferBasicCustObjBuilder) Id(id string) *AppliOfferBasicCustObjBuilder { 224 builder.id = id 225 builder.idFlag = true 226 return builder 227 } 228 229 // 名字 230 // 231 // 示例值: 232 func (builder *AppliOfferBasicCustObjBuilder) Name(name *OfferSchemaName) *AppliOfferBasicCustObjBuilder { 233 builder.name = name 234 builder.nameFlag = true 235 return builder 236 } 237 238 // 自定义字段类型 239 // 240 // 示例值: 241 func (builder *AppliOfferBasicCustObjBuilder) Type(type_ string) *AppliOfferBasicCustObjBuilder { 242 builder.type_ = type_ 243 builder.typeFlag = true 244 return builder 245 } 246 247 // 自定义字段的值 248 // 249 // 示例值: 250 func (builder *AppliOfferBasicCustObjBuilder) Value(value string) *AppliOfferBasicCustObjBuilder { 251 builder.value = value 252 builder.valueFlag = true 253 return builder 254 } 255 256 // 单选/多选自定义字段的值 257 // 258 // 示例值: 259 func (builder *AppliOfferBasicCustObjBuilder) OptionValueList(optionValueList []*AppliOfferBasicCustObjOpV) *AppliOfferBasicCustObjBuilder { 260 builder.optionValueList = optionValueList 261 builder.optionValueListFlag = true 262 return builder 263 } 264 265 func (builder *AppliOfferBasicCustObjBuilder) Build() *AppliOfferBasicCustObj { 266 req := &AppliOfferBasicCustObj{} 267 if builder.idFlag { 268 req.Id = &builder.id 269 270 } 271 if builder.nameFlag { 272 req.Name = builder.name 273 } 274 if builder.typeFlag { 275 req.Type = &builder.type_ 276 277 } 278 if builder.valueFlag { 279 req.Value = &builder.value 280 281 } 282 if builder.optionValueListFlag { 283 req.OptionValueList = builder.optionValueList 284 } 285 return req 286 } 287 288 type AppliOfferBasicCustObjOpV struct { 289 ZhCn *string `json:"zh_cn,omitempty"` // 中文名 290 EnUs *string `json:"en_us,omitempty"` // 英文名 291 } 292 293 type AppliOfferBasicCustObjOpVBuilder struct { 294 zhCn string // 中文名 295 zhCnFlag bool 296 enUs string // 英文名 297 enUsFlag bool 298 } 299 300 func NewAppliOfferBasicCustObjOpVBuilder() *AppliOfferBasicCustObjOpVBuilder { 301 builder := &AppliOfferBasicCustObjOpVBuilder{} 302 return builder 303 } 304 305 // 中文名 306 // 307 // 示例值: 308 func (builder *AppliOfferBasicCustObjOpVBuilder) ZhCn(zhCn string) *AppliOfferBasicCustObjOpVBuilder { 309 builder.zhCn = zhCn 310 builder.zhCnFlag = true 311 return builder 312 } 313 314 // 英文名 315 // 316 // 示例值: 317 func (builder *AppliOfferBasicCustObjOpVBuilder) EnUs(enUs string) *AppliOfferBasicCustObjOpVBuilder { 318 builder.enUs = enUs 319 builder.enUsFlag = true 320 return builder 321 } 322 323 func (builder *AppliOfferBasicCustObjOpVBuilder) Build() *AppliOfferBasicCustObjOpV { 324 req := &AppliOfferBasicCustObjOpV{} 325 if builder.zhCnFlag { 326 req.ZhCn = &builder.zhCn 327 328 } 329 if builder.enUsFlag { 330 req.EnUs = &builder.enUs 331 332 } 333 return req 334 } 335 336 type AppliOfferBasicInfoUser struct { 337 Id *string `json:"id,omitempty"` // ID 338 Name *string `json:"name,omitempty"` // 名字 339 EnName *string `json:"en_name,omitempty"` // 英文名 340 Avatar *string `json:"avatar,omitempty"` // 头像 341 Department *Department `json:"department,omitempty"` // 部门 342 Timezone *string `json:"timezone,omitempty"` // 时区 343 Phone *string `json:"phone,omitempty"` // 手机 344 Email *string `json:"email,omitempty"` // 邮箱 345 InAppScope *bool `json:"in_app_scope,omitempty"` // 是否拥有app权限 346 } 347 348 type AppliOfferBasicInfoUserBuilder struct { 349 id string // ID 350 idFlag bool 351 name string // 名字 352 nameFlag bool 353 enName string // 英文名 354 enNameFlag bool 355 avatar string // 头像 356 avatarFlag bool 357 department *Department // 部门 358 departmentFlag bool 359 timezone string // 时区 360 timezoneFlag bool 361 phone string // 手机 362 phoneFlag bool 363 email string // 邮箱 364 emailFlag bool 365 inAppScope bool // 是否拥有app权限 366 inAppScopeFlag bool 367 } 368 369 func NewAppliOfferBasicInfoUserBuilder() *AppliOfferBasicInfoUserBuilder { 370 builder := &AppliOfferBasicInfoUserBuilder{} 371 return builder 372 } 373 374 // ID 375 // 376 // 示例值: 377 func (builder *AppliOfferBasicInfoUserBuilder) Id(id string) *AppliOfferBasicInfoUserBuilder { 378 builder.id = id 379 builder.idFlag = true 380 return builder 381 } 382 383 // 名字 384 // 385 // 示例值: 386 func (builder *AppliOfferBasicInfoUserBuilder) Name(name string) *AppliOfferBasicInfoUserBuilder { 387 builder.name = name 388 builder.nameFlag = true 389 return builder 390 } 391 392 // 英文名 393 // 394 // 示例值: 395 func (builder *AppliOfferBasicInfoUserBuilder) EnName(enName string) *AppliOfferBasicInfoUserBuilder { 396 builder.enName = enName 397 builder.enNameFlag = true 398 return builder 399 } 400 401 // 头像 402 // 403 // 示例值: 404 func (builder *AppliOfferBasicInfoUserBuilder) Avatar(avatar string) *AppliOfferBasicInfoUserBuilder { 405 builder.avatar = avatar 406 builder.avatarFlag = true 407 return builder 408 } 409 410 // 部门 411 // 412 // 示例值: 413 func (builder *AppliOfferBasicInfoUserBuilder) Department(department *Department) *AppliOfferBasicInfoUserBuilder { 414 builder.department = department 415 builder.departmentFlag = true 416 return builder 417 } 418 419 // 时区 420 // 421 // 示例值: 422 func (builder *AppliOfferBasicInfoUserBuilder) Timezone(timezone string) *AppliOfferBasicInfoUserBuilder { 423 builder.timezone = timezone 424 builder.timezoneFlag = true 425 return builder 426 } 427 428 // 手机 429 // 430 // 示例值: 431 func (builder *AppliOfferBasicInfoUserBuilder) Phone(phone string) *AppliOfferBasicInfoUserBuilder { 432 builder.phone = phone 433 builder.phoneFlag = true 434 return builder 435 } 436 437 // 邮箱 438 // 439 // 示例值: 440 func (builder *AppliOfferBasicInfoUserBuilder) Email(email string) *AppliOfferBasicInfoUserBuilder { 441 builder.email = email 442 builder.emailFlag = true 443 return builder 444 } 445 446 // 是否拥有app权限 447 // 448 // 示例值: 449 func (builder *AppliOfferBasicInfoUserBuilder) InAppScope(inAppScope bool) *AppliOfferBasicInfoUserBuilder { 450 builder.inAppScope = inAppScope 451 builder.inAppScopeFlag = true 452 return builder 453 } 454 455 func (builder *AppliOfferBasicInfoUserBuilder) Build() *AppliOfferBasicInfoUser { 456 req := &AppliOfferBasicInfoUser{} 457 if builder.idFlag { 458 req.Id = &builder.id 459 460 } 461 if builder.nameFlag { 462 req.Name = &builder.name 463 464 } 465 if builder.enNameFlag { 466 req.EnName = &builder.enName 467 468 } 469 if builder.avatarFlag { 470 req.Avatar = &builder.avatar 471 472 } 473 if builder.departmentFlag { 474 req.Department = builder.department 475 } 476 if builder.timezoneFlag { 477 req.Timezone = &builder.timezone 478 479 } 480 if builder.phoneFlag { 481 req.Phone = &builder.phone 482 483 } 484 if builder.emailFlag { 485 req.Email = &builder.email 486 487 } 488 if builder.inAppScopeFlag { 489 req.InAppScope = &builder.inAppScope 490 491 } 492 return req 493 } 494 495 type AppliOfferOnboardProfile struct { 496 OfferId *string `json:"offer_id,omitempty"` // offer ID 497 Department *Department `json:"department,omitempty"` // 部门 498 RecruitmentType *RecruitmentType `json:"recruitment_type,omitempty"` // 招聘类型 499 Sequence *Sequence `json:"sequence,omitempty"` // 序列 500 Level *Level `json:"level,omitempty"` // 职级 501 OnboardAddress *AppliOfferOnboardProfileAdd `json:"onboard_address,omitempty"` // onboard地址 502 WorkAddress *AppliOfferOnboardProfileAdd `json:"work_address,omitempty"` // 工作地址 503 Leader *AppliOfferBasicInfoUser `json:"leader,omitempty"` // 领导 504 IsWorkAddressSameToOnboard *bool `json:"is_work_address_same_to_onboard,omitempty"` // 工作地址是否与onboard地址相同 505 ProbationMonth *int `json:"probation_month,omitempty"` // 试用期 506 ContractYear *int `json:"contract_year,omitempty"` // 合同年限 507 } 508 509 type AppliOfferOnboardProfileBuilder struct { 510 offerId string // offer ID 511 offerIdFlag bool 512 department *Department // 部门 513 departmentFlag bool 514 recruitmentType *RecruitmentType // 招聘类型 515 recruitmentTypeFlag bool 516 sequence *Sequence // 序列 517 sequenceFlag bool 518 level *Level // 职级 519 levelFlag bool 520 onboardAddress *AppliOfferOnboardProfileAdd // onboard地址 521 onboardAddressFlag bool 522 workAddress *AppliOfferOnboardProfileAdd // 工作地址 523 workAddressFlag bool 524 leader *AppliOfferBasicInfoUser // 领导 525 leaderFlag bool 526 isWorkAddressSameToOnboard bool // 工作地址是否与onboard地址相同 527 isWorkAddressSameToOnboardFlag bool 528 probationMonth int // 试用期 529 probationMonthFlag bool 530 contractYear int // 合同年限 531 contractYearFlag bool 532 } 533 534 func NewAppliOfferOnboardProfileBuilder() *AppliOfferOnboardProfileBuilder { 535 builder := &AppliOfferOnboardProfileBuilder{} 536 return builder 537 } 538 539 // offer ID 540 // 541 // 示例值: 542 func (builder *AppliOfferOnboardProfileBuilder) OfferId(offerId string) *AppliOfferOnboardProfileBuilder { 543 builder.offerId = offerId 544 builder.offerIdFlag = true 545 return builder 546 } 547 548 // 部门 549 // 550 // 示例值: 551 func (builder *AppliOfferOnboardProfileBuilder) Department(department *Department) *AppliOfferOnboardProfileBuilder { 552 builder.department = department 553 builder.departmentFlag = true 554 return builder 555 } 556 557 // 招聘类型 558 // 559 // 示例值: 560 func (builder *AppliOfferOnboardProfileBuilder) RecruitmentType(recruitmentType *RecruitmentType) *AppliOfferOnboardProfileBuilder { 561 builder.recruitmentType = recruitmentType 562 builder.recruitmentTypeFlag = true 563 return builder 564 } 565 566 // 序列 567 // 568 // 示例值: 569 func (builder *AppliOfferOnboardProfileBuilder) Sequence(sequence *Sequence) *AppliOfferOnboardProfileBuilder { 570 builder.sequence = sequence 571 builder.sequenceFlag = true 572 return builder 573 } 574 575 // 职级 576 // 577 // 示例值: 578 func (builder *AppliOfferOnboardProfileBuilder) Level(level *Level) *AppliOfferOnboardProfileBuilder { 579 builder.level = level 580 builder.levelFlag = true 581 return builder 582 } 583 584 // onboard地址 585 // 586 // 示例值: 587 func (builder *AppliOfferOnboardProfileBuilder) OnboardAddress(onboardAddress *AppliOfferOnboardProfileAdd) *AppliOfferOnboardProfileBuilder { 588 builder.onboardAddress = onboardAddress 589 builder.onboardAddressFlag = true 590 return builder 591 } 592 593 // 工作地址 594 // 595 // 示例值: 596 func (builder *AppliOfferOnboardProfileBuilder) WorkAddress(workAddress *AppliOfferOnboardProfileAdd) *AppliOfferOnboardProfileBuilder { 597 builder.workAddress = workAddress 598 builder.workAddressFlag = true 599 return builder 600 } 601 602 // 领导 603 // 604 // 示例值: 605 func (builder *AppliOfferOnboardProfileBuilder) Leader(leader *AppliOfferBasicInfoUser) *AppliOfferOnboardProfileBuilder { 606 builder.leader = leader 607 builder.leaderFlag = true 608 return builder 609 } 610 611 // 工作地址是否与onboard地址相同 612 // 613 // 示例值: 614 func (builder *AppliOfferOnboardProfileBuilder) IsWorkAddressSameToOnboard(isWorkAddressSameToOnboard bool) *AppliOfferOnboardProfileBuilder { 615 builder.isWorkAddressSameToOnboard = isWorkAddressSameToOnboard 616 builder.isWorkAddressSameToOnboardFlag = true 617 return builder 618 } 619 620 // 试用期 621 // 622 // 示例值: 623 func (builder *AppliOfferOnboardProfileBuilder) ProbationMonth(probationMonth int) *AppliOfferOnboardProfileBuilder { 624 builder.probationMonth = probationMonth 625 builder.probationMonthFlag = true 626 return builder 627 } 628 629 // 合同年限 630 // 631 // 示例值: 632 func (builder *AppliOfferOnboardProfileBuilder) ContractYear(contractYear int) *AppliOfferOnboardProfileBuilder { 633 builder.contractYear = contractYear 634 builder.contractYearFlag = true 635 return builder 636 } 637 638 func (builder *AppliOfferOnboardProfileBuilder) Build() *AppliOfferOnboardProfile { 639 req := &AppliOfferOnboardProfile{} 640 if builder.offerIdFlag { 641 req.OfferId = &builder.offerId 642 643 } 644 if builder.departmentFlag { 645 req.Department = builder.department 646 } 647 if builder.recruitmentTypeFlag { 648 req.RecruitmentType = builder.recruitmentType 649 } 650 if builder.sequenceFlag { 651 req.Sequence = builder.sequence 652 } 653 if builder.levelFlag { 654 req.Level = builder.level 655 } 656 if builder.onboardAddressFlag { 657 req.OnboardAddress = builder.onboardAddress 658 } 659 if builder.workAddressFlag { 660 req.WorkAddress = builder.workAddress 661 } 662 if builder.leaderFlag { 663 req.Leader = builder.leader 664 } 665 if builder.isWorkAddressSameToOnboardFlag { 666 req.IsWorkAddressSameToOnboard = &builder.isWorkAddressSameToOnboard 667 668 } 669 if builder.probationMonthFlag { 670 req.ProbationMonth = &builder.probationMonth 671 672 } 673 if builder.contractYearFlag { 674 req.ContractYear = &builder.contractYear 675 676 } 677 return req 678 } 679 680 type AppliOfferOnboardProfileAdd struct { 681 Id *string `json:"id,omitempty"` // ID 682 Name *string `json:"name,omitempty"` // 名字 683 EnName *string `json:"en_name,omitempty"` // 英文名 684 District *AppliOfferOnboardProfileCity `json:"district,omitempty"` // 区 685 City *AppliOfferOnboardProfileCity `json:"city,omitempty"` // 城市 686 State *AppliOfferOnboardProfileCity `json:"state,omitempty"` // 省 687 Country *AppliOfferOnboardProfileCity `json:"country,omitempty"` // 国家 688 UsageIdList []string `json:"usage_id_list,omitempty"` // 使用ID列表 689 ActiveStatus *int `json:"active_status,omitempty"` // 状态 690 } 691 692 type AppliOfferOnboardProfileAddBuilder struct { 693 id string // ID 694 idFlag bool 695 name string // 名字 696 nameFlag bool 697 enName string // 英文名 698 enNameFlag bool 699 district *AppliOfferOnboardProfileCity // 区 700 districtFlag bool 701 city *AppliOfferOnboardProfileCity // 城市 702 cityFlag bool 703 state *AppliOfferOnboardProfileCity // 省 704 stateFlag bool 705 country *AppliOfferOnboardProfileCity // 国家 706 countryFlag bool 707 usageIdList []string // 使用ID列表 708 usageIdListFlag bool 709 activeStatus int // 状态 710 activeStatusFlag bool 711 } 712 713 func NewAppliOfferOnboardProfileAddBuilder() *AppliOfferOnboardProfileAddBuilder { 714 builder := &AppliOfferOnboardProfileAddBuilder{} 715 return builder 716 } 717 718 // ID 719 // 720 // 示例值: 721 func (builder *AppliOfferOnboardProfileAddBuilder) Id(id string) *AppliOfferOnboardProfileAddBuilder { 722 builder.id = id 723 builder.idFlag = true 724 return builder 725 } 726 727 // 名字 728 // 729 // 示例值: 730 func (builder *AppliOfferOnboardProfileAddBuilder) Name(name string) *AppliOfferOnboardProfileAddBuilder { 731 builder.name = name 732 builder.nameFlag = true 733 return builder 734 } 735 736 // 英文名 737 // 738 // 示例值: 739 func (builder *AppliOfferOnboardProfileAddBuilder) EnName(enName string) *AppliOfferOnboardProfileAddBuilder { 740 builder.enName = enName 741 builder.enNameFlag = true 742 return builder 743 } 744 745 // 区 746 // 747 // 示例值: 748 func (builder *AppliOfferOnboardProfileAddBuilder) District(district *AppliOfferOnboardProfileCity) *AppliOfferOnboardProfileAddBuilder { 749 builder.district = district 750 builder.districtFlag = true 751 return builder 752 } 753 754 // 城市 755 // 756 // 示例值: 757 func (builder *AppliOfferOnboardProfileAddBuilder) City(city *AppliOfferOnboardProfileCity) *AppliOfferOnboardProfileAddBuilder { 758 builder.city = city 759 builder.cityFlag = true 760 return builder 761 } 762 763 // 省 764 // 765 // 示例值: 766 func (builder *AppliOfferOnboardProfileAddBuilder) State(state *AppliOfferOnboardProfileCity) *AppliOfferOnboardProfileAddBuilder { 767 builder.state = state 768 builder.stateFlag = true 769 return builder 770 } 771 772 // 国家 773 // 774 // 示例值: 775 func (builder *AppliOfferOnboardProfileAddBuilder) Country(country *AppliOfferOnboardProfileCity) *AppliOfferOnboardProfileAddBuilder { 776 builder.country = country 777 builder.countryFlag = true 778 return builder 779 } 780 781 // 使用ID列表 782 // 783 // 示例值: 784 func (builder *AppliOfferOnboardProfileAddBuilder) UsageIdList(usageIdList []string) *AppliOfferOnboardProfileAddBuilder { 785 builder.usageIdList = usageIdList 786 builder.usageIdListFlag = true 787 return builder 788 } 789 790 // 状态 791 // 792 // 示例值: 793 func (builder *AppliOfferOnboardProfileAddBuilder) ActiveStatus(activeStatus int) *AppliOfferOnboardProfileAddBuilder { 794 builder.activeStatus = activeStatus 795 builder.activeStatusFlag = true 796 return builder 797 } 798 799 func (builder *AppliOfferOnboardProfileAddBuilder) Build() *AppliOfferOnboardProfileAdd { 800 req := &AppliOfferOnboardProfileAdd{} 801 if builder.idFlag { 802 req.Id = &builder.id 803 804 } 805 if builder.nameFlag { 806 req.Name = &builder.name 807 808 } 809 if builder.enNameFlag { 810 req.EnName = &builder.enName 811 812 } 813 if builder.districtFlag { 814 req.District = builder.district 815 } 816 if builder.cityFlag { 817 req.City = builder.city 818 } 819 if builder.stateFlag { 820 req.State = builder.state 821 } 822 if builder.countryFlag { 823 req.Country = builder.country 824 } 825 if builder.usageIdListFlag { 826 req.UsageIdList = builder.usageIdList 827 } 828 if builder.activeStatusFlag { 829 req.ActiveStatus = &builder.activeStatus 830 831 } 832 return req 833 } 834 835 type AppliOfferOnboardProfileCity struct { 836 Code *string `json:"code,omitempty"` // 编码 837 Name *string `json:"name,omitempty"` // 名字 838 EnName *string `json:"en_name,omitempty"` // 英文名 839 LocationType *int `json:"location_type,omitempty"` // 地址类型 840 } 841 842 type AppliOfferOnboardProfileCityBuilder struct { 843 code string // 编码 844 codeFlag bool 845 name string // 名字 846 nameFlag bool 847 enName string // 英文名 848 enNameFlag bool 849 locationType int // 地址类型 850 locationTypeFlag bool 851 } 852 853 func NewAppliOfferOnboardProfileCityBuilder() *AppliOfferOnboardProfileCityBuilder { 854 builder := &AppliOfferOnboardProfileCityBuilder{} 855 return builder 856 } 857 858 // 编码 859 // 860 // 示例值: 861 func (builder *AppliOfferOnboardProfileCityBuilder) Code(code string) *AppliOfferOnboardProfileCityBuilder { 862 builder.code = code 863 builder.codeFlag = true 864 return builder 865 } 866 867 // 名字 868 // 869 // 示例值: 870 func (builder *AppliOfferOnboardProfileCityBuilder) Name(name string) *AppliOfferOnboardProfileCityBuilder { 871 builder.name = name 872 builder.nameFlag = true 873 return builder 874 } 875 876 // 英文名 877 // 878 // 示例值: 879 func (builder *AppliOfferOnboardProfileCityBuilder) EnName(enName string) *AppliOfferOnboardProfileCityBuilder { 880 builder.enName = enName 881 builder.enNameFlag = true 882 return builder 883 } 884 885 // 地址类型 886 // 887 // 示例值: 888 func (builder *AppliOfferOnboardProfileCityBuilder) LocationType(locationType int) *AppliOfferOnboardProfileCityBuilder { 889 builder.locationType = locationType 890 builder.locationTypeFlag = true 891 return builder 892 } 893 894 func (builder *AppliOfferOnboardProfileCityBuilder) Build() *AppliOfferOnboardProfileCity { 895 req := &AppliOfferOnboardProfileCity{} 896 if builder.codeFlag { 897 req.Code = &builder.code 898 899 } 900 if builder.nameFlag { 901 req.Name = &builder.name 902 903 } 904 if builder.enNameFlag { 905 req.EnName = &builder.enName 906 907 } 908 if builder.locationTypeFlag { 909 req.LocationType = &builder.locationType 910 911 } 912 return req 913 } 914 915 type AppliOfferSalaryPlanTemplate struct { 916 TemplateKey *string `json:"template_key,omitempty"` // 模版key 917 TotalAmount *string `json:"total_amount,omitempty"` // 总金额 918 Currency *string `json:"currency,omitempty"` // 币种 919 SalaryContent *string `json:"salary_content,omitempty"` // 薪酬内容 920 } 921 922 type AppliOfferSalaryPlanTemplateBuilder struct { 923 templateKey string // 模版key 924 templateKeyFlag bool 925 totalAmount string // 总金额 926 totalAmountFlag bool 927 currency string // 币种 928 currencyFlag bool 929 salaryContent string // 薪酬内容 930 salaryContentFlag bool 931 } 932 933 func NewAppliOfferSalaryPlanTemplateBuilder() *AppliOfferSalaryPlanTemplateBuilder { 934 builder := &AppliOfferSalaryPlanTemplateBuilder{} 935 return builder 936 } 937 938 // 模版key 939 // 940 // 示例值: 941 func (builder *AppliOfferSalaryPlanTemplateBuilder) TemplateKey(templateKey string) *AppliOfferSalaryPlanTemplateBuilder { 942 builder.templateKey = templateKey 943 builder.templateKeyFlag = true 944 return builder 945 } 946 947 // 总金额 948 // 949 // 示例值: 950 func (builder *AppliOfferSalaryPlanTemplateBuilder) TotalAmount(totalAmount string) *AppliOfferSalaryPlanTemplateBuilder { 951 builder.totalAmount = totalAmount 952 builder.totalAmountFlag = true 953 return builder 954 } 955 956 // 币种 957 // 958 // 示例值: 959 func (builder *AppliOfferSalaryPlanTemplateBuilder) Currency(currency string) *AppliOfferSalaryPlanTemplateBuilder { 960 builder.currency = currency 961 builder.currencyFlag = true 962 return builder 963 } 964 965 // 薪酬内容 966 // 967 // 示例值: 968 func (builder *AppliOfferSalaryPlanTemplateBuilder) SalaryContent(salaryContent string) *AppliOfferSalaryPlanTemplateBuilder { 969 builder.salaryContent = salaryContent 970 builder.salaryContentFlag = true 971 return builder 972 } 973 974 func (builder *AppliOfferSalaryPlanTemplateBuilder) Build() *AppliOfferSalaryPlanTemplate { 975 req := &AppliOfferSalaryPlanTemplate{} 976 if builder.templateKeyFlag { 977 req.TemplateKey = &builder.templateKey 978 979 } 980 if builder.totalAmountFlag { 981 req.TotalAmount = &builder.totalAmount 982 983 } 984 if builder.currencyFlag { 985 req.Currency = &builder.currency 986 987 } 988 if builder.salaryContentFlag { 989 req.SalaryContent = &builder.salaryContent 990 991 } 992 return req 993 } 994 995 type AppliTalentAttachResumeInfo struct { 996 Id *string `json:"id,omitempty"` // ID 997 Name *string `json:"name,omitempty"` // 名字 998 } 999 1000 type AppliTalentAttachResumeInfoBuilder struct { 1001 id string // ID 1002 idFlag bool 1003 name string // 名字 1004 nameFlag bool 1005 } 1006 1007 func NewAppliTalentAttachResumeInfoBuilder() *AppliTalentAttachResumeInfoBuilder { 1008 builder := &AppliTalentAttachResumeInfoBuilder{} 1009 return builder 1010 } 1011 1012 // ID 1013 // 1014 // 示例值: 1015 func (builder *AppliTalentAttachResumeInfoBuilder) Id(id string) *AppliTalentAttachResumeInfoBuilder { 1016 builder.id = id 1017 builder.idFlag = true 1018 return builder 1019 } 1020 1021 // 名字 1022 // 1023 // 示例值: 1024 func (builder *AppliTalentAttachResumeInfoBuilder) Name(name string) *AppliTalentAttachResumeInfoBuilder { 1025 builder.name = name 1026 builder.nameFlag = true 1027 return builder 1028 } 1029 1030 func (builder *AppliTalentAttachResumeInfoBuilder) Build() *AppliTalentAttachResumeInfo { 1031 req := &AppliTalentAttachResumeInfo{} 1032 if builder.idFlag { 1033 req.Id = &builder.id 1034 1035 } 1036 if builder.nameFlag { 1037 req.Name = &builder.name 1038 1039 } 1040 return req 1041 } 1042 1043 type AppliTalentCertificateInfo struct { 1044 Id *string `json:"id,omitempty"` // ID 1045 Name *string `json:"name,omitempty"` // 证件名称 1046 Desc *string `json:"desc,omitempty"` // 证件描述 1047 } 1048 1049 type AppliTalentCertificateInfoBuilder struct { 1050 id string // ID 1051 idFlag bool 1052 name string // 证件名称 1053 nameFlag bool 1054 desc string // 证件描述 1055 descFlag bool 1056 } 1057 1058 func NewAppliTalentCertificateInfoBuilder() *AppliTalentCertificateInfoBuilder { 1059 builder := &AppliTalentCertificateInfoBuilder{} 1060 return builder 1061 } 1062 1063 // ID 1064 // 1065 // 示例值: 1066 func (builder *AppliTalentCertificateInfoBuilder) Id(id string) *AppliTalentCertificateInfoBuilder { 1067 builder.id = id 1068 builder.idFlag = true 1069 return builder 1070 } 1071 1072 // 证件名称 1073 // 1074 // 示例值: 1075 func (builder *AppliTalentCertificateInfoBuilder) Name(name string) *AppliTalentCertificateInfoBuilder { 1076 builder.name = name 1077 builder.nameFlag = true 1078 return builder 1079 } 1080 1081 // 证件描述 1082 // 1083 // 示例值: 1084 func (builder *AppliTalentCertificateInfoBuilder) Desc(desc string) *AppliTalentCertificateInfoBuilder { 1085 builder.desc = desc 1086 builder.descFlag = true 1087 return builder 1088 } 1089 1090 func (builder *AppliTalentCertificateInfoBuilder) Build() *AppliTalentCertificateInfo { 1091 req := &AppliTalentCertificateInfo{} 1092 if builder.idFlag { 1093 req.Id = &builder.id 1094 1095 } 1096 if builder.nameFlag { 1097 req.Name = &builder.name 1098 1099 } 1100 if builder.descFlag { 1101 req.Desc = &builder.desc 1102 1103 } 1104 return req 1105 } 1106 1107 type AppliTalentCompetitionInfo struct { 1108 Id *string `json:"id,omitempty"` // ID 1109 Name *string `json:"name,omitempty"` // 竞赛名称 1110 Desc *string `json:"desc,omitempty"` // 竞赛描述 1111 } 1112 1113 type AppliTalentCompetitionInfoBuilder struct { 1114 id string // ID 1115 idFlag bool 1116 name string // 竞赛名称 1117 nameFlag bool 1118 desc string // 竞赛描述 1119 descFlag bool 1120 } 1121 1122 func NewAppliTalentCompetitionInfoBuilder() *AppliTalentCompetitionInfoBuilder { 1123 builder := &AppliTalentCompetitionInfoBuilder{} 1124 return builder 1125 } 1126 1127 // ID 1128 // 1129 // 示例值: 1130 func (builder *AppliTalentCompetitionInfoBuilder) Id(id string) *AppliTalentCompetitionInfoBuilder { 1131 builder.id = id 1132 builder.idFlag = true 1133 return builder 1134 } 1135 1136 // 竞赛名称 1137 // 1138 // 示例值: 1139 func (builder *AppliTalentCompetitionInfoBuilder) Name(name string) *AppliTalentCompetitionInfoBuilder { 1140 builder.name = name 1141 builder.nameFlag = true 1142 return builder 1143 } 1144 1145 // 竞赛描述 1146 // 1147 // 示例值: 1148 func (builder *AppliTalentCompetitionInfoBuilder) Desc(desc string) *AppliTalentCompetitionInfoBuilder { 1149 builder.desc = desc 1150 builder.descFlag = true 1151 return builder 1152 } 1153 1154 func (builder *AppliTalentCompetitionInfoBuilder) Build() *AppliTalentCompetitionInfo { 1155 req := &AppliTalentCompetitionInfo{} 1156 if builder.idFlag { 1157 req.Id = &builder.id 1158 1159 } 1160 if builder.nameFlag { 1161 req.Name = &builder.name 1162 1163 } 1164 if builder.descFlag { 1165 req.Desc = &builder.desc 1166 1167 } 1168 return req 1169 } 1170 1171 type AppliTalentEducationInfo struct { 1172 Id *string `json:"id,omitempty"` // ID 1173 Degree *int `json:"degree,omitempty"` // 学历 1174 School *string `json:"school,omitempty"` // 学校 1175 FieldOfStudy *string `json:"field_of_study,omitempty"` // 专业 1176 StartTime *string `json:"start_time,omitempty"` // 开始时间 1177 EndTime *string `json:"end_time,omitempty"` // 结束时间 1178 EducationType *int `json:"education_type,omitempty"` // 学历类型 1179 AcademicRanking *int `json:"academic_ranking,omitempty"` // 排名 1180 TagList []int `json:"tag_list,omitempty"` // 标签列表 1181 } 1182 1183 type AppliTalentEducationInfoBuilder struct { 1184 id string // ID 1185 idFlag bool 1186 degree int // 学历 1187 degreeFlag bool 1188 school string // 学校 1189 schoolFlag bool 1190 fieldOfStudy string // 专业 1191 fieldOfStudyFlag bool 1192 startTime string // 开始时间 1193 startTimeFlag bool 1194 endTime string // 结束时间 1195 endTimeFlag bool 1196 educationType int // 学历类型 1197 educationTypeFlag bool 1198 academicRanking int // 排名 1199 academicRankingFlag bool 1200 tagList []int // 标签列表 1201 tagListFlag bool 1202 } 1203 1204 func NewAppliTalentEducationInfoBuilder() *AppliTalentEducationInfoBuilder { 1205 builder := &AppliTalentEducationInfoBuilder{} 1206 return builder 1207 } 1208 1209 // ID 1210 // 1211 // 示例值: 1212 func (builder *AppliTalentEducationInfoBuilder) Id(id string) *AppliTalentEducationInfoBuilder { 1213 builder.id = id 1214 builder.idFlag = true 1215 return builder 1216 } 1217 1218 // 学历 1219 // 1220 // 示例值: 1221 func (builder *AppliTalentEducationInfoBuilder) Degree(degree int) *AppliTalentEducationInfoBuilder { 1222 builder.degree = degree 1223 builder.degreeFlag = true 1224 return builder 1225 } 1226 1227 // 学校 1228 // 1229 // 示例值: 1230 func (builder *AppliTalentEducationInfoBuilder) School(school string) *AppliTalentEducationInfoBuilder { 1231 builder.school = school 1232 builder.schoolFlag = true 1233 return builder 1234 } 1235 1236 // 专业 1237 // 1238 // 示例值: 1239 func (builder *AppliTalentEducationInfoBuilder) FieldOfStudy(fieldOfStudy string) *AppliTalentEducationInfoBuilder { 1240 builder.fieldOfStudy = fieldOfStudy 1241 builder.fieldOfStudyFlag = true 1242 return builder 1243 } 1244 1245 // 开始时间 1246 // 1247 // 示例值: 1248 func (builder *AppliTalentEducationInfoBuilder) StartTime(startTime string) *AppliTalentEducationInfoBuilder { 1249 builder.startTime = startTime 1250 builder.startTimeFlag = true 1251 return builder 1252 } 1253 1254 // 结束时间 1255 // 1256 // 示例值: 1257 func (builder *AppliTalentEducationInfoBuilder) EndTime(endTime string) *AppliTalentEducationInfoBuilder { 1258 builder.endTime = endTime 1259 builder.endTimeFlag = true 1260 return builder 1261 } 1262 1263 // 学历类型 1264 // 1265 // 示例值: 1266 func (builder *AppliTalentEducationInfoBuilder) EducationType(educationType int) *AppliTalentEducationInfoBuilder { 1267 builder.educationType = educationType 1268 builder.educationTypeFlag = true 1269 return builder 1270 } 1271 1272 // 排名 1273 // 1274 // 示例值: 1275 func (builder *AppliTalentEducationInfoBuilder) AcademicRanking(academicRanking int) *AppliTalentEducationInfoBuilder { 1276 builder.academicRanking = academicRanking 1277 builder.academicRankingFlag = true 1278 return builder 1279 } 1280 1281 // 标签列表 1282 // 1283 // 示例值: 1284 func (builder *AppliTalentEducationInfoBuilder) TagList(tagList []int) *AppliTalentEducationInfoBuilder { 1285 builder.tagList = tagList 1286 builder.tagListFlag = true 1287 return builder 1288 } 1289 1290 func (builder *AppliTalentEducationInfoBuilder) Build() *AppliTalentEducationInfo { 1291 req := &AppliTalentEducationInfo{} 1292 if builder.idFlag { 1293 req.Id = &builder.id 1294 1295 } 1296 if builder.degreeFlag { 1297 req.Degree = &builder.degree 1298 1299 } 1300 if builder.schoolFlag { 1301 req.School = &builder.school 1302 1303 } 1304 if builder.fieldOfStudyFlag { 1305 req.FieldOfStudy = &builder.fieldOfStudy 1306 1307 } 1308 if builder.startTimeFlag { 1309 req.StartTime = &builder.startTime 1310 1311 } 1312 if builder.endTimeFlag { 1313 req.EndTime = &builder.endTime 1314 1315 } 1316 if builder.educationTypeFlag { 1317 req.EducationType = &builder.educationType 1318 1319 } 1320 if builder.academicRankingFlag { 1321 req.AcademicRanking = &builder.academicRanking 1322 1323 } 1324 if builder.tagListFlag { 1325 req.TagList = builder.tagList 1326 } 1327 return req 1328 } 1329 1330 type Application struct { 1331 Id *string `json:"id,omitempty"` // 投递id 1332 JobId *string `json:"job_id,omitempty"` // 投递的职位 ID 1333 TalentId *string `json:"talent_id,omitempty"` // 候选人 ID 1334 ResumeResourceId *string `json:"resume_resource_id,omitempty"` // 简历来源 ID 1335 Stage *ApplicationStageInfo `json:"stage,omitempty"` // 投递处于的阶段 1336 ActiveStatus *int `json:"active_status,omitempty"` // 活跃状态 1337 DeliveryType *int `json:"delivery_type,omitempty"` // 投递方式 1338 ResumeSourceInfo *ApplicationResumeSource `json:"resume_source_info,omitempty"` // 投递来源信息 1339 WebsiteResumeSource *ApplicationWebsiteResumeSource `json:"website_resume_source,omitempty"` // 官网投递来源 1340 TalentAttachmentResumeId *string `json:"talent_attachment_resume_id,omitempty"` // 简历附件 ID 1341 CreateTime *string `json:"create_time,omitempty"` // 创建时间 1342 ModifyTime *string `json:"modify_time,omitempty"` // 修改时间 1343 StageTimeList []*ApplicationStageTime `json:"stage_time_list,omitempty"` // 阶段变更时间列表 1344 TerminationType *int `json:"termination_type,omitempty"` // 终止原因的类型 1345 TerminationReasonList []string `json:"termination_reason_list,omitempty"` // 终止的具体原因的id列表 1346 TerminationReasonNote *string `json:"termination_reason_note,omitempty"` // 终止备注 1347 ApplicationPreferredCityList []*CodeNameObject `json:"application_preferred_city_list,omitempty"` // 意向投递城市列表 1348 } 1349 1350 type ApplicationBuilder struct { 1351 id string // 投递id 1352 idFlag bool 1353 jobId string // 投递的职位 ID 1354 jobIdFlag bool 1355 talentId string // 候选人 ID 1356 talentIdFlag bool 1357 resumeResourceId string // 简历来源 ID 1358 resumeResourceIdFlag bool 1359 stage *ApplicationStageInfo // 投递处于的阶段 1360 stageFlag bool 1361 activeStatus int // 活跃状态 1362 activeStatusFlag bool 1363 deliveryType int // 投递方式 1364 deliveryTypeFlag bool 1365 resumeSourceInfo *ApplicationResumeSource // 投递来源信息 1366 resumeSourceInfoFlag bool 1367 websiteResumeSource *ApplicationWebsiteResumeSource // 官网投递来源 1368 websiteResumeSourceFlag bool 1369 talentAttachmentResumeId string // 简历附件 ID 1370 talentAttachmentResumeIdFlag bool 1371 createTime string // 创建时间 1372 createTimeFlag bool 1373 modifyTime string // 修改时间 1374 modifyTimeFlag bool 1375 stageTimeList []*ApplicationStageTime // 阶段变更时间列表 1376 stageTimeListFlag bool 1377 terminationType int // 终止原因的类型 1378 terminationTypeFlag bool 1379 terminationReasonList []string // 终止的具体原因的id列表 1380 terminationReasonListFlag bool 1381 terminationReasonNote string // 终止备注 1382 terminationReasonNoteFlag bool 1383 applicationPreferredCityList []*CodeNameObject // 意向投递城市列表 1384 applicationPreferredCityListFlag bool 1385 } 1386 1387 func NewApplicationBuilder() *ApplicationBuilder { 1388 builder := &ApplicationBuilder{} 1389 return builder 1390 } 1391 1392 // 投递id 1393 // 1394 // 示例值:6949805467799537964 1395 func (builder *ApplicationBuilder) Id(id string) *ApplicationBuilder { 1396 builder.id = id 1397 builder.idFlag = true 1398 return builder 1399 } 1400 1401 // 投递的职位 ID 1402 // 1403 // 示例值:6843547872837273223 1404 func (builder *ApplicationBuilder) JobId(jobId string) *ApplicationBuilder { 1405 builder.jobId = jobId 1406 builder.jobIdFlag = true 1407 return builder 1408 } 1409 1410 // 候选人 ID 1411 // 1412 // 示例值:6843547872837273223 1413 func (builder *ApplicationBuilder) TalentId(talentId string) *ApplicationBuilder { 1414 builder.talentId = talentId 1415 builder.talentIdFlag = true 1416 return builder 1417 } 1418 1419 // 简历来源 ID 1420 // 1421 // 示例值:6583482347283472832 1422 func (builder *ApplicationBuilder) ResumeResourceId(resumeResourceId string) *ApplicationBuilder { 1423 builder.resumeResourceId = resumeResourceId 1424 builder.resumeResourceIdFlag = true 1425 return builder 1426 } 1427 1428 // 投递处于的阶段 1429 // 1430 // 示例值: 1431 func (builder *ApplicationBuilder) Stage(stage *ApplicationStageInfo) *ApplicationBuilder { 1432 builder.stage = stage 1433 builder.stageFlag = true 1434 return builder 1435 } 1436 1437 // 活跃状态 1438 // 1439 // 示例值:1 1440 func (builder *ApplicationBuilder) ActiveStatus(activeStatus int) *ApplicationBuilder { 1441 builder.activeStatus = activeStatus 1442 builder.activeStatusFlag = true 1443 return builder 1444 } 1445 1446 // 投递方式 1447 // 1448 // 示例值:1 1449 func (builder *ApplicationBuilder) DeliveryType(deliveryType int) *ApplicationBuilder { 1450 builder.deliveryType = deliveryType 1451 builder.deliveryTypeFlag = true 1452 return builder 1453 } 1454 1455 // 投递来源信息 1456 // 1457 // 示例值: 1458 func (builder *ApplicationBuilder) ResumeSourceInfo(resumeSourceInfo *ApplicationResumeSource) *ApplicationBuilder { 1459 builder.resumeSourceInfo = resumeSourceInfo 1460 builder.resumeSourceInfoFlag = true 1461 return builder 1462 } 1463 1464 // 官网投递来源 1465 // 1466 // 示例值: 1467 func (builder *ApplicationBuilder) WebsiteResumeSource(websiteResumeSource *ApplicationWebsiteResumeSource) *ApplicationBuilder { 1468 builder.websiteResumeSource = websiteResumeSource 1469 builder.websiteResumeSourceFlag = true 1470 return builder 1471 } 1472 1473 // 简历附件 ID 1474 // 1475 // 示例值:6960663240925956415 1476 func (builder *ApplicationBuilder) TalentAttachmentResumeId(talentAttachmentResumeId string) *ApplicationBuilder { 1477 builder.talentAttachmentResumeId = talentAttachmentResumeId 1478 builder.talentAttachmentResumeIdFlag = true 1479 return builder 1480 } 1481 1482 // 创建时间 1483 // 1484 // 示例值:1632990774278 1485 func (builder *ApplicationBuilder) CreateTime(createTime string) *ApplicationBuilder { 1486 builder.createTime = createTime 1487 builder.createTimeFlag = true 1488 return builder 1489 } 1490 1491 // 修改时间 1492 // 1493 // 示例值:1634801678103 1494 func (builder *ApplicationBuilder) ModifyTime(modifyTime string) *ApplicationBuilder { 1495 builder.modifyTime = modifyTime 1496 builder.modifyTimeFlag = true 1497 return builder 1498 } 1499 1500 // 阶段变更时间列表 1501 // 1502 // 示例值: 1503 func (builder *ApplicationBuilder) StageTimeList(stageTimeList []*ApplicationStageTime) *ApplicationBuilder { 1504 builder.stageTimeList = stageTimeList 1505 builder.stageTimeListFlag = true 1506 return builder 1507 } 1508 1509 // 终止原因的类型 1510 // 1511 // 示例值:1 1512 func (builder *ApplicationBuilder) TerminationType(terminationType int) *ApplicationBuilder { 1513 builder.terminationType = terminationType 1514 builder.terminationTypeFlag = true 1515 return builder 1516 } 1517 1518 // 终止的具体原因的id列表 1519 // 1520 // 示例值: 1521 func (builder *ApplicationBuilder) TerminationReasonList(terminationReasonList []string) *ApplicationBuilder { 1522 builder.terminationReasonList = terminationReasonList 1523 builder.terminationReasonListFlag = true 1524 return builder 1525 } 1526 1527 // 终止备注 1528 // 1529 // 示例值:其他投递已入职 1530 func (builder *ApplicationBuilder) TerminationReasonNote(terminationReasonNote string) *ApplicationBuilder { 1531 builder.terminationReasonNote = terminationReasonNote 1532 builder.terminationReasonNoteFlag = true 1533 return builder 1534 } 1535 1536 // 意向投递城市列表 1537 // 1538 // 示例值: 1539 func (builder *ApplicationBuilder) ApplicationPreferredCityList(applicationPreferredCityList []*CodeNameObject) *ApplicationBuilder { 1540 builder.applicationPreferredCityList = applicationPreferredCityList 1541 builder.applicationPreferredCityListFlag = true 1542 return builder 1543 } 1544 1545 func (builder *ApplicationBuilder) Build() *Application { 1546 req := &Application{} 1547 if builder.idFlag { 1548 req.Id = &builder.id 1549 1550 } 1551 if builder.jobIdFlag { 1552 req.JobId = &builder.jobId 1553 1554 } 1555 if builder.talentIdFlag { 1556 req.TalentId = &builder.talentId 1557 1558 } 1559 if builder.resumeResourceIdFlag { 1560 req.ResumeResourceId = &builder.resumeResourceId 1561 1562 } 1563 if builder.stageFlag { 1564 req.Stage = builder.stage 1565 } 1566 if builder.activeStatusFlag { 1567 req.ActiveStatus = &builder.activeStatus 1568 1569 } 1570 if builder.deliveryTypeFlag { 1571 req.DeliveryType = &builder.deliveryType 1572 1573 } 1574 if builder.resumeSourceInfoFlag { 1575 req.ResumeSourceInfo = builder.resumeSourceInfo 1576 } 1577 if builder.websiteResumeSourceFlag { 1578 req.WebsiteResumeSource = builder.websiteResumeSource 1579 } 1580 if builder.talentAttachmentResumeIdFlag { 1581 req.TalentAttachmentResumeId = &builder.talentAttachmentResumeId 1582 1583 } 1584 if builder.createTimeFlag { 1585 req.CreateTime = &builder.createTime 1586 1587 } 1588 if builder.modifyTimeFlag { 1589 req.ModifyTime = &builder.modifyTime 1590 1591 } 1592 if builder.stageTimeListFlag { 1593 req.StageTimeList = builder.stageTimeList 1594 } 1595 if builder.terminationTypeFlag { 1596 req.TerminationType = &builder.terminationType 1597 1598 } 1599 if builder.terminationReasonListFlag { 1600 req.TerminationReasonList = builder.terminationReasonList 1601 } 1602 if builder.terminationReasonNoteFlag { 1603 req.TerminationReasonNote = &builder.terminationReasonNote 1604 1605 } 1606 if builder.applicationPreferredCityListFlag { 1607 req.ApplicationPreferredCityList = builder.applicationPreferredCityList 1608 } 1609 return req 1610 } 1611 1612 type ApplicationBasicInfo struct { 1613 Stage *ApplicationStage `json:"stage,omitempty"` // 阶段信息 1614 Referral *ApplicationReferral `json:"referral,omitempty"` // 内推人信息 1615 ActiveStatus *int `json:"active_status,omitempty"` // 状态 1616 BizCreateTime *int `json:"biz_create_time,omitempty"` // 创建时间 1617 BizModifyTime *int `json:"biz_modify_time,omitempty"` // 修改时间 1618 } 1619 1620 type ApplicationBasicInfoBuilder struct { 1621 stage *ApplicationStage // 阶段信息 1622 stageFlag bool 1623 referral *ApplicationReferral // 内推人信息 1624 referralFlag bool 1625 activeStatus int // 状态 1626 activeStatusFlag bool 1627 bizCreateTime int // 创建时间 1628 bizCreateTimeFlag bool 1629 bizModifyTime int // 修改时间 1630 bizModifyTimeFlag bool 1631 } 1632 1633 func NewApplicationBasicInfoBuilder() *ApplicationBasicInfoBuilder { 1634 builder := &ApplicationBasicInfoBuilder{} 1635 return builder 1636 } 1637 1638 // 阶段信息 1639 // 1640 // 示例值: 1641 func (builder *ApplicationBasicInfoBuilder) Stage(stage *ApplicationStage) *ApplicationBasicInfoBuilder { 1642 builder.stage = stage 1643 builder.stageFlag = true 1644 return builder 1645 } 1646 1647 // 内推人信息 1648 // 1649 // 示例值: 1650 func (builder *ApplicationBasicInfoBuilder) Referral(referral *ApplicationReferral) *ApplicationBasicInfoBuilder { 1651 builder.referral = referral 1652 builder.referralFlag = true 1653 return builder 1654 } 1655 1656 // 状态 1657 // 1658 // 示例值: 1659 func (builder *ApplicationBasicInfoBuilder) ActiveStatus(activeStatus int) *ApplicationBasicInfoBuilder { 1660 builder.activeStatus = activeStatus 1661 builder.activeStatusFlag = true 1662 return builder 1663 } 1664 1665 // 创建时间 1666 // 1667 // 示例值: 1668 func (builder *ApplicationBasicInfoBuilder) BizCreateTime(bizCreateTime int) *ApplicationBasicInfoBuilder { 1669 builder.bizCreateTime = bizCreateTime 1670 builder.bizCreateTimeFlag = true 1671 return builder 1672 } 1673 1674 // 修改时间 1675 // 1676 // 示例值: 1677 func (builder *ApplicationBasicInfoBuilder) BizModifyTime(bizModifyTime int) *ApplicationBasicInfoBuilder { 1678 builder.bizModifyTime = bizModifyTime 1679 builder.bizModifyTimeFlag = true 1680 return builder 1681 } 1682 1683 func (builder *ApplicationBasicInfoBuilder) Build() *ApplicationBasicInfo { 1684 req := &ApplicationBasicInfo{} 1685 if builder.stageFlag { 1686 req.Stage = builder.stage 1687 } 1688 if builder.referralFlag { 1689 req.Referral = builder.referral 1690 } 1691 if builder.activeStatusFlag { 1692 req.ActiveStatus = &builder.activeStatus 1693 1694 } 1695 if builder.bizCreateTimeFlag { 1696 req.BizCreateTime = &builder.bizCreateTime 1697 1698 } 1699 if builder.bizModifyTimeFlag { 1700 req.BizModifyTime = &builder.bizModifyTime 1701 1702 } 1703 return req 1704 } 1705 1706 type ApplicationJob struct { 1707 Id *string `json:"id,omitempty"` // ID 1708 Title *string `json:"title,omitempty"` // 职称 1709 City *City `json:"city,omitempty"` // 城市 1710 Department *Department `json:"department,omitempty"` // 部门 1711 RecruitmentType *RecruitmentType `json:"recruitment_type,omitempty"` // 招聘类型 1712 Description *string `json:"description,omitempty"` // 描述 1713 JobProcessId *string `json:"job_process_id,omitempty"` // 岗位流程编号 1714 Code *string `json:"code,omitempty"` // 编码 1715 Address *ApplicationJobAddress `json:"address,omitempty"` // 地址 1716 Country *Country `json:"country,omitempty"` // 国家 1717 } 1718 1719 type ApplicationJobBuilder struct { 1720 id string // ID 1721 idFlag bool 1722 title string // 职称 1723 titleFlag bool 1724 city *City // 城市 1725 cityFlag bool 1726 department *Department // 部门 1727 departmentFlag bool 1728 recruitmentType *RecruitmentType // 招聘类型 1729 recruitmentTypeFlag bool 1730 description string // 描述 1731 descriptionFlag bool 1732 jobProcessId string // 岗位流程编号 1733 jobProcessIdFlag bool 1734 code string // 编码 1735 codeFlag bool 1736 address *ApplicationJobAddress // 地址 1737 addressFlag bool 1738 country *Country // 国家 1739 countryFlag bool 1740 } 1741 1742 func NewApplicationJobBuilder() *ApplicationJobBuilder { 1743 builder := &ApplicationJobBuilder{} 1744 return builder 1745 } 1746 1747 // ID 1748 // 1749 // 示例值: 1750 func (builder *ApplicationJobBuilder) Id(id string) *ApplicationJobBuilder { 1751 builder.id = id 1752 builder.idFlag = true 1753 return builder 1754 } 1755 1756 // 职称 1757 // 1758 // 示例值: 1759 func (builder *ApplicationJobBuilder) Title(title string) *ApplicationJobBuilder { 1760 builder.title = title 1761 builder.titleFlag = true 1762 return builder 1763 } 1764 1765 // 城市 1766 // 1767 // 示例值: 1768 func (builder *ApplicationJobBuilder) City(city *City) *ApplicationJobBuilder { 1769 builder.city = city 1770 builder.cityFlag = true 1771 return builder 1772 } 1773 1774 // 部门 1775 // 1776 // 示例值: 1777 func (builder *ApplicationJobBuilder) Department(department *Department) *ApplicationJobBuilder { 1778 builder.department = department 1779 builder.departmentFlag = true 1780 return builder 1781 } 1782 1783 // 招聘类型 1784 // 1785 // 示例值: 1786 func (builder *ApplicationJobBuilder) RecruitmentType(recruitmentType *RecruitmentType) *ApplicationJobBuilder { 1787 builder.recruitmentType = recruitmentType 1788 builder.recruitmentTypeFlag = true 1789 return builder 1790 } 1791 1792 // 描述 1793 // 1794 // 示例值: 1795 func (builder *ApplicationJobBuilder) Description(description string) *ApplicationJobBuilder { 1796 builder.description = description 1797 builder.descriptionFlag = true 1798 return builder 1799 } 1800 1801 // 岗位流程编号 1802 // 1803 // 示例值: 1804 func (builder *ApplicationJobBuilder) JobProcessId(jobProcessId string) *ApplicationJobBuilder { 1805 builder.jobProcessId = jobProcessId 1806 builder.jobProcessIdFlag = true 1807 return builder 1808 } 1809 1810 // 编码 1811 // 1812 // 示例值: 1813 func (builder *ApplicationJobBuilder) Code(code string) *ApplicationJobBuilder { 1814 builder.code = code 1815 builder.codeFlag = true 1816 return builder 1817 } 1818 1819 // 地址 1820 // 1821 // 示例值: 1822 func (builder *ApplicationJobBuilder) Address(address *ApplicationJobAddress) *ApplicationJobBuilder { 1823 builder.address = address 1824 builder.addressFlag = true 1825 return builder 1826 } 1827 1828 // 国家 1829 // 1830 // 示例值: 1831 func (builder *ApplicationJobBuilder) Country(country *Country) *ApplicationJobBuilder { 1832 builder.country = country 1833 builder.countryFlag = true 1834 return builder 1835 } 1836 1837 func (builder *ApplicationJobBuilder) Build() *ApplicationJob { 1838 req := &ApplicationJob{} 1839 if builder.idFlag { 1840 req.Id = &builder.id 1841 1842 } 1843 if builder.titleFlag { 1844 req.Title = &builder.title 1845 1846 } 1847 if builder.cityFlag { 1848 req.City = builder.city 1849 } 1850 if builder.departmentFlag { 1851 req.Department = builder.department 1852 } 1853 if builder.recruitmentTypeFlag { 1854 req.RecruitmentType = builder.recruitmentType 1855 } 1856 if builder.descriptionFlag { 1857 req.Description = &builder.description 1858 1859 } 1860 if builder.jobProcessIdFlag { 1861 req.JobProcessId = &builder.jobProcessId 1862 1863 } 1864 if builder.codeFlag { 1865 req.Code = &builder.code 1866 1867 } 1868 if builder.addressFlag { 1869 req.Address = builder.address 1870 } 1871 if builder.countryFlag { 1872 req.Country = builder.country 1873 } 1874 return req 1875 } 1876 1877 type ApplicationJobAddress struct { 1878 Id *string `json:"id,omitempty"` // ID 1879 Name *string `json:"name,omitempty"` // 名字 1880 EnName *string `json:"en_name,omitempty"` // 英文名 1881 } 1882 1883 type ApplicationJobAddressBuilder struct { 1884 id string // ID 1885 idFlag bool 1886 name string // 名字 1887 nameFlag bool 1888 enName string // 英文名 1889 enNameFlag bool 1890 } 1891 1892 func NewApplicationJobAddressBuilder() *ApplicationJobAddressBuilder { 1893 builder := &ApplicationJobAddressBuilder{} 1894 return builder 1895 } 1896 1897 // ID 1898 // 1899 // 示例值: 1900 func (builder *ApplicationJobAddressBuilder) Id(id string) *ApplicationJobAddressBuilder { 1901 builder.id = id 1902 builder.idFlag = true 1903 return builder 1904 } 1905 1906 // 名字 1907 // 1908 // 示例值: 1909 func (builder *ApplicationJobAddressBuilder) Name(name string) *ApplicationJobAddressBuilder { 1910 builder.name = name 1911 builder.nameFlag = true 1912 return builder 1913 } 1914 1915 // 英文名 1916 // 1917 // 示例值: 1918 func (builder *ApplicationJobAddressBuilder) EnName(enName string) *ApplicationJobAddressBuilder { 1919 builder.enName = enName 1920 builder.enNameFlag = true 1921 return builder 1922 } 1923 1924 func (builder *ApplicationJobAddressBuilder) Build() *ApplicationJobAddress { 1925 req := &ApplicationJobAddress{} 1926 if builder.idFlag { 1927 req.Id = &builder.id 1928 1929 } 1930 if builder.nameFlag { 1931 req.Name = &builder.name 1932 1933 } 1934 if builder.enNameFlag { 1935 req.EnName = &builder.enName 1936 1937 } 1938 return req 1939 } 1940 1941 type ApplicationOffer struct { 1942 Id *string `json:"id,omitempty"` // Offer id 1943 ApplicationId *string `json:"application_id,omitempty"` // 投递id 1944 BasicInfo *ApplicationOfferBasicInfo `json:"basic_info,omitempty"` // 基础信息 1945 SalaryPlan *ApplicationOfferSalaryPlan `json:"salary_plan,omitempty"` // 薪酬计划 1946 SchemaId *string `json:"schema_id,omitempty"` // 当前 Offer 使用的 schema 1947 OfferStatus *int `json:"offer_status,omitempty"` // Offer 状态 1948 JobInfo *OfferJobInfo `json:"job_info,omitempty"` // 职位信息 1949 } 1950 1951 type ApplicationOfferBuilder struct { 1952 id string // Offer id 1953 idFlag bool 1954 applicationId string // 投递id 1955 applicationIdFlag bool 1956 basicInfo *ApplicationOfferBasicInfo // 基础信息 1957 basicInfoFlag bool 1958 salaryPlan *ApplicationOfferSalaryPlan // 薪酬计划 1959 salaryPlanFlag bool 1960 schemaId string // 当前 Offer 使用的 schema 1961 schemaIdFlag bool 1962 offerStatus int // Offer 状态 1963 offerStatusFlag bool 1964 jobInfo *OfferJobInfo // 职位信息 1965 jobInfoFlag bool 1966 } 1967 1968 func NewApplicationOfferBuilder() *ApplicationOfferBuilder { 1969 builder := &ApplicationOfferBuilder{} 1970 return builder 1971 } 1972 1973 // Offer id 1974 // 1975 // 示例值:7057802493489285412 1976 func (builder *ApplicationOfferBuilder) Id(id string) *ApplicationOfferBuilder { 1977 builder.id = id 1978 builder.idFlag = true 1979 return builder 1980 } 1981 1982 // 投递id 1983 // 1984 // 示例值:7020661401874614564 1985 func (builder *ApplicationOfferBuilder) ApplicationId(applicationId string) *ApplicationOfferBuilder { 1986 builder.applicationId = applicationId 1987 builder.applicationIdFlag = true 1988 return builder 1989 } 1990 1991 // 基础信息 1992 // 1993 // 示例值: 1994 func (builder *ApplicationOfferBuilder) BasicInfo(basicInfo *ApplicationOfferBasicInfo) *ApplicationOfferBuilder { 1995 builder.basicInfo = basicInfo 1996 builder.basicInfoFlag = true 1997 return builder 1998 } 1999 2000 // 薪酬计划 2001 // 2002 // 示例值: 2003 func (builder *ApplicationOfferBuilder) SalaryPlan(salaryPlan *ApplicationOfferSalaryPlan) *ApplicationOfferBuilder { 2004 builder.salaryPlan = salaryPlan 2005 builder.salaryPlanFlag = true 2006 return builder 2007 } 2008 2009 // 当前 Offer 使用的 schema 2010 // 2011 // 示例值:6963562624677398823 2012 func (builder *ApplicationOfferBuilder) SchemaId(schemaId string) *ApplicationOfferBuilder { 2013 builder.schemaId = schemaId 2014 builder.schemaIdFlag = true 2015 return builder 2016 } 2017 2018 // Offer 状态 2019 // 2020 // 示例值:0 2021 func (builder *ApplicationOfferBuilder) OfferStatus(offerStatus int) *ApplicationOfferBuilder { 2022 builder.offerStatus = offerStatus 2023 builder.offerStatusFlag = true 2024 return builder 2025 } 2026 2027 // 职位信息 2028 // 2029 // 示例值: 2030 func (builder *ApplicationOfferBuilder) JobInfo(jobInfo *OfferJobInfo) *ApplicationOfferBuilder { 2031 builder.jobInfo = jobInfo 2032 builder.jobInfoFlag = true 2033 return builder 2034 } 2035 2036 func (builder *ApplicationOfferBuilder) Build() *ApplicationOffer { 2037 req := &ApplicationOffer{} 2038 if builder.idFlag { 2039 req.Id = &builder.id 2040 2041 } 2042 if builder.applicationIdFlag { 2043 req.ApplicationId = &builder.applicationId 2044 2045 } 2046 if builder.basicInfoFlag { 2047 req.BasicInfo = builder.basicInfo 2048 } 2049 if builder.salaryPlanFlag { 2050 req.SalaryPlan = builder.salaryPlan 2051 } 2052 if builder.schemaIdFlag { 2053 req.SchemaId = &builder.schemaId 2054 2055 } 2056 if builder.offerStatusFlag { 2057 req.OfferStatus = &builder.offerStatus 2058 2059 } 2060 if builder.jobInfoFlag { 2061 req.JobInfo = builder.jobInfo 2062 } 2063 return req 2064 } 2065 2066 type ApplicationOfferAttachment struct { 2067 AttachmentId *string `json:"attachment_id,omitempty"` // 附件ID 2068 Name *string `json:"name,omitempty"` // 名字 2069 } 2070 2071 type ApplicationOfferAttachmentBuilder struct { 2072 attachmentId string // 附件ID 2073 attachmentIdFlag bool 2074 name string // 名字 2075 nameFlag bool 2076 } 2077 2078 func NewApplicationOfferAttachmentBuilder() *ApplicationOfferAttachmentBuilder { 2079 builder := &ApplicationOfferAttachmentBuilder{} 2080 return builder 2081 } 2082 2083 // 附件ID 2084 // 2085 // 示例值: 2086 func (builder *ApplicationOfferAttachmentBuilder) AttachmentId(attachmentId string) *ApplicationOfferAttachmentBuilder { 2087 builder.attachmentId = attachmentId 2088 builder.attachmentIdFlag = true 2089 return builder 2090 } 2091 2092 // 名字 2093 // 2094 // 示例值: 2095 func (builder *ApplicationOfferAttachmentBuilder) Name(name string) *ApplicationOfferAttachmentBuilder { 2096 builder.name = name 2097 builder.nameFlag = true 2098 return builder 2099 } 2100 2101 func (builder *ApplicationOfferAttachmentBuilder) Build() *ApplicationOfferAttachment { 2102 req := &ApplicationOfferAttachment{} 2103 if builder.attachmentIdFlag { 2104 req.AttachmentId = &builder.attachmentId 2105 2106 } 2107 if builder.nameFlag { 2108 req.Name = &builder.name 2109 2110 } 2111 return req 2112 } 2113 2114 type ApplicationOfferBasicInfo struct { 2115 OfferType *int `json:"offer_type,omitempty"` // Offer 类型 2116 Remark *string `json:"remark,omitempty"` // 备注 2117 ExpireTime *int `json:"expire_time,omitempty"` // Offer 过期时间 2118 OwnerUserId *string `json:"owner_user_id,omitempty"` // Offer 负责人 ID 2119 CreatorUserId *string `json:"creator_user_id,omitempty"` // Offer 创建人 ID 2120 EmployeeType *BaseBilingualWithId `json:"employee_type,omitempty"` // Offer 人员类型 2121 CreateTime *string `json:"create_time,omitempty"` // 创建时间 2122 LeaderUserId *string `json:"leader_user_id,omitempty"` // 直属上级 ID 2123 OnboardDate *string `json:"onboard_date,omitempty"` // 入职日期 2124 DepartmentId *string `json:"department_id,omitempty"` // 入职部门 2125 ProbationMonth *int `json:"probation_month,omitempty"` // 试用期, 比如试用期6个月 2126 ContractYear *int `json:"contract_year,omitempty"` // 合同期, 比如3年 2127 RecruitmentType *BaseBilingualWithId `json:"recruitment_type,omitempty"` // 雇员类型 2128 Sequence *BaseBilingualWithId `json:"sequence,omitempty"` // 序列 2129 Level *BaseBilingualWithId `json:"level,omitempty"` // 级别 2130 OnboardAddress *BaseAddress `json:"onboard_address,omitempty"` // 入职地点 2131 WorkAddress *BaseAddress `json:"work_address,omitempty"` // 工作地点 2132 CustomizeInfoList []*ApplicationOfferCustomValue `json:"customize_info_list,omitempty"` // 自定义字段信息 2133 } 2134 2135 type ApplicationOfferBasicInfoBuilder struct { 2136 offerType int // Offer 类型 2137 offerTypeFlag bool 2138 remark string // 备注 2139 remarkFlag bool 2140 expireTime int // Offer 过期时间 2141 expireTimeFlag bool 2142 ownerUserId string // Offer 负责人 ID 2143 ownerUserIdFlag bool 2144 creatorUserId string // Offer 创建人 ID 2145 creatorUserIdFlag bool 2146 employeeType *BaseBilingualWithId // Offer 人员类型 2147 employeeTypeFlag bool 2148 createTime string // 创建时间 2149 createTimeFlag bool 2150 leaderUserId string // 直属上级 ID 2151 leaderUserIdFlag bool 2152 onboardDate string // 入职日期 2153 onboardDateFlag bool 2154 departmentId string // 入职部门 2155 departmentIdFlag bool 2156 probationMonth int // 试用期, 比如试用期6个月 2157 probationMonthFlag bool 2158 contractYear int // 合同期, 比如3年 2159 contractYearFlag bool 2160 recruitmentType *BaseBilingualWithId // 雇员类型 2161 recruitmentTypeFlag bool 2162 sequence *BaseBilingualWithId // 序列 2163 sequenceFlag bool 2164 level *BaseBilingualWithId // 级别 2165 levelFlag bool 2166 onboardAddress *BaseAddress // 入职地点 2167 onboardAddressFlag bool 2168 workAddress *BaseAddress // 工作地点 2169 workAddressFlag bool 2170 customizeInfoList []*ApplicationOfferCustomValue // 自定义字段信息 2171 customizeInfoListFlag bool 2172 } 2173 2174 func NewApplicationOfferBasicInfoBuilder() *ApplicationOfferBasicInfoBuilder { 2175 builder := &ApplicationOfferBasicInfoBuilder{} 2176 return builder 2177 } 2178 2179 // Offer 类型 2180 // 2181 // 示例值:1 2182 func (builder *ApplicationOfferBasicInfoBuilder) OfferType(offerType int) *ApplicationOfferBasicInfoBuilder { 2183 builder.offerType = offerType 2184 builder.offerTypeFlag = true 2185 return builder 2186 } 2187 2188 // 备注 2189 // 2190 // 示例值:10 2191 func (builder *ApplicationOfferBasicInfoBuilder) Remark(remark string) *ApplicationOfferBasicInfoBuilder { 2192 builder.remark = remark 2193 builder.remarkFlag = true 2194 return builder 2195 } 2196 2197 // Offer 过期时间 2198 // 2199 // 示例值:1653383498000 2200 func (builder *ApplicationOfferBasicInfoBuilder) ExpireTime(expireTime int) *ApplicationOfferBasicInfoBuilder { 2201 builder.expireTime = expireTime 2202 builder.expireTimeFlag = true 2203 return builder 2204 } 2205 2206 // Offer 负责人 ID 2207 // 2208 // 示例值:ou_99be8e24ad1ad390b6cd3b8916940df1 2209 func (builder *ApplicationOfferBasicInfoBuilder) OwnerUserId(ownerUserId string) *ApplicationOfferBasicInfoBuilder { 2210 builder.ownerUserId = ownerUserId 2211 builder.ownerUserIdFlag = true 2212 return builder 2213 } 2214 2215 // Offer 创建人 ID 2216 // 2217 // 示例值:ou_99be8e24ad1ad390b6cd3b8916940df1 2218 func (builder *ApplicationOfferBasicInfoBuilder) CreatorUserId(creatorUserId string) *ApplicationOfferBasicInfoBuilder { 2219 builder.creatorUserId = creatorUserId 2220 builder.creatorUserIdFlag = true 2221 return builder 2222 } 2223 2224 // Offer 人员类型 2225 // 2226 // 示例值: 2227 func (builder *ApplicationOfferBasicInfoBuilder) EmployeeType(employeeType *BaseBilingualWithId) *ApplicationOfferBasicInfoBuilder { 2228 builder.employeeType = employeeType 2229 builder.employeeTypeFlag = true 2230 return builder 2231 } 2232 2233 // 创建时间 2234 // 2235 // 示例值:1628512038000 2236 func (builder *ApplicationOfferBasicInfoBuilder) CreateTime(createTime string) *ApplicationOfferBasicInfoBuilder { 2237 builder.createTime = createTime 2238 builder.createTimeFlag = true 2239 return builder 2240 } 2241 2242 // 直属上级 ID 2243 // 2244 // 示例值:ou_99be8e24ad1ad390b6cd3b8916940df1 2245 func (builder *ApplicationOfferBasicInfoBuilder) LeaderUserId(leaderUserId string) *ApplicationOfferBasicInfoBuilder { 2246 builder.leaderUserId = leaderUserId 2247 builder.leaderUserIdFlag = true 2248 return builder 2249 } 2250 2251 // 入职日期 2252 // 2253 // 示例值:2021-05-20 2254 func (builder *ApplicationOfferBasicInfoBuilder) OnboardDate(onboardDate string) *ApplicationOfferBasicInfoBuilder { 2255 builder.onboardDate = onboardDate 2256 builder.onboardDateFlag = true 2257 return builder 2258 } 2259 2260 // 入职部门 2261 // 2262 // 示例值:od-6b394871807047c7023ebfc1ff37cd3a 2263 func (builder *ApplicationOfferBasicInfoBuilder) DepartmentId(departmentId string) *ApplicationOfferBasicInfoBuilder { 2264 builder.departmentId = departmentId 2265 builder.departmentIdFlag = true 2266 return builder 2267 } 2268 2269 // 试用期, 比如试用期6个月 2270 // 2271 // 示例值:1 2272 func (builder *ApplicationOfferBasicInfoBuilder) ProbationMonth(probationMonth int) *ApplicationOfferBasicInfoBuilder { 2273 builder.probationMonth = probationMonth 2274 builder.probationMonthFlag = true 2275 return builder 2276 } 2277 2278 // 合同期, 比如3年 2279 // 2280 // 示例值:3 2281 func (builder *ApplicationOfferBasicInfoBuilder) ContractYear(contractYear int) *ApplicationOfferBasicInfoBuilder { 2282 builder.contractYear = contractYear 2283 builder.contractYearFlag = true 2284 return builder 2285 } 2286 2287 // 雇员类型 2288 // 2289 // 示例值: 2290 func (builder *ApplicationOfferBasicInfoBuilder) RecruitmentType(recruitmentType *BaseBilingualWithId) *ApplicationOfferBasicInfoBuilder { 2291 builder.recruitmentType = recruitmentType 2292 builder.recruitmentTypeFlag = true 2293 return builder 2294 } 2295 2296 // 序列 2297 // 2298 // 示例值: 2299 func (builder *ApplicationOfferBasicInfoBuilder) Sequence(sequence *BaseBilingualWithId) *ApplicationOfferBasicInfoBuilder { 2300 builder.sequence = sequence 2301 builder.sequenceFlag = true 2302 return builder 2303 } 2304 2305 // 级别 2306 // 2307 // 示例值: 2308 func (builder *ApplicationOfferBasicInfoBuilder) Level(level *BaseBilingualWithId) *ApplicationOfferBasicInfoBuilder { 2309 builder.level = level 2310 builder.levelFlag = true 2311 return builder 2312 } 2313 2314 // 入职地点 2315 // 2316 // 示例值: 2317 func (builder *ApplicationOfferBasicInfoBuilder) OnboardAddress(onboardAddress *BaseAddress) *ApplicationOfferBasicInfoBuilder { 2318 builder.onboardAddress = onboardAddress 2319 builder.onboardAddressFlag = true 2320 return builder 2321 } 2322 2323 // 工作地点 2324 // 2325 // 示例值: 2326 func (builder *ApplicationOfferBasicInfoBuilder) WorkAddress(workAddress *BaseAddress) *ApplicationOfferBasicInfoBuilder { 2327 builder.workAddress = workAddress 2328 builder.workAddressFlag = true 2329 return builder 2330 } 2331 2332 // 自定义字段信息 2333 // 2334 // 示例值: 2335 func (builder *ApplicationOfferBasicInfoBuilder) CustomizeInfoList(customizeInfoList []*ApplicationOfferCustomValue) *ApplicationOfferBasicInfoBuilder { 2336 builder.customizeInfoList = customizeInfoList 2337 builder.customizeInfoListFlag = true 2338 return builder 2339 } 2340 2341 func (builder *ApplicationOfferBasicInfoBuilder) Build() *ApplicationOfferBasicInfo { 2342 req := &ApplicationOfferBasicInfo{} 2343 if builder.offerTypeFlag { 2344 req.OfferType = &builder.offerType 2345 2346 } 2347 if builder.remarkFlag { 2348 req.Remark = &builder.remark 2349 2350 } 2351 if builder.expireTimeFlag { 2352 req.ExpireTime = &builder.expireTime 2353 2354 } 2355 if builder.ownerUserIdFlag { 2356 req.OwnerUserId = &builder.ownerUserId 2357 2358 } 2359 if builder.creatorUserIdFlag { 2360 req.CreatorUserId = &builder.creatorUserId 2361 2362 } 2363 if builder.employeeTypeFlag { 2364 req.EmployeeType = builder.employeeType 2365 } 2366 if builder.createTimeFlag { 2367 req.CreateTime = &builder.createTime 2368 2369 } 2370 if builder.leaderUserIdFlag { 2371 req.LeaderUserId = &builder.leaderUserId 2372 2373 } 2374 if builder.onboardDateFlag { 2375 req.OnboardDate = &builder.onboardDate 2376 2377 } 2378 if builder.departmentIdFlag { 2379 req.DepartmentId = &builder.departmentId 2380 2381 } 2382 if builder.probationMonthFlag { 2383 req.ProbationMonth = &builder.probationMonth 2384 2385 } 2386 if builder.contractYearFlag { 2387 req.ContractYear = &builder.contractYear 2388 2389 } 2390 if builder.recruitmentTypeFlag { 2391 req.RecruitmentType = builder.recruitmentType 2392 } 2393 if builder.sequenceFlag { 2394 req.Sequence = builder.sequence 2395 } 2396 if builder.levelFlag { 2397 req.Level = builder.level 2398 } 2399 if builder.onboardAddressFlag { 2400 req.OnboardAddress = builder.onboardAddress 2401 } 2402 if builder.workAddressFlag { 2403 req.WorkAddress = builder.workAddress 2404 } 2405 if builder.customizeInfoListFlag { 2406 req.CustomizeInfoList = builder.customizeInfoList 2407 } 2408 return req 2409 } 2410 2411 type ApplicationOfferBasicInfoCustomizedObject struct { 2412 Id *string `json:"id,omitempty"` // id 2413 Name *OfferSchemaName `json:"name,omitempty"` // 名字 2414 Type *string `json:"type,omitempty"` // 自定义字段类型 2415 Value *string `json:"value,omitempty"` // 自定义字段的值 2416 OptionValueList []*ApplicationOfferBasicInfoCustomizedObjectOptionValue `json:"option_value_list,omitempty"` // 单选/多选自定义字段的值 2417 } 2418 2419 type ApplicationOfferBasicInfoCustomizedObjectBuilder struct { 2420 id string // id 2421 idFlag bool 2422 name *OfferSchemaName // 名字 2423 nameFlag bool 2424 type_ string // 自定义字段类型 2425 typeFlag bool 2426 value string // 自定义字段的值 2427 valueFlag bool 2428 optionValueList []*ApplicationOfferBasicInfoCustomizedObjectOptionValue // 单选/多选自定义字段的值 2429 optionValueListFlag bool 2430 } 2431 2432 func NewApplicationOfferBasicInfoCustomizedObjectBuilder() *ApplicationOfferBasicInfoCustomizedObjectBuilder { 2433 builder := &ApplicationOfferBasicInfoCustomizedObjectBuilder{} 2434 return builder 2435 } 2436 2437 // id 2438 // 2439 // 示例值: 2440 func (builder *ApplicationOfferBasicInfoCustomizedObjectBuilder) Id(id string) *ApplicationOfferBasicInfoCustomizedObjectBuilder { 2441 builder.id = id 2442 builder.idFlag = true 2443 return builder 2444 } 2445 2446 // 名字 2447 // 2448 // 示例值: 2449 func (builder *ApplicationOfferBasicInfoCustomizedObjectBuilder) Name(name *OfferSchemaName) *ApplicationOfferBasicInfoCustomizedObjectBuilder { 2450 builder.name = name 2451 builder.nameFlag = true 2452 return builder 2453 } 2454 2455 // 自定义字段类型 2456 // 2457 // 示例值: 2458 func (builder *ApplicationOfferBasicInfoCustomizedObjectBuilder) Type(type_ string) *ApplicationOfferBasicInfoCustomizedObjectBuilder { 2459 builder.type_ = type_ 2460 builder.typeFlag = true 2461 return builder 2462 } 2463 2464 // 自定义字段的值 2465 // 2466 // 示例值: 2467 func (builder *ApplicationOfferBasicInfoCustomizedObjectBuilder) Value(value string) *ApplicationOfferBasicInfoCustomizedObjectBuilder { 2468 builder.value = value 2469 builder.valueFlag = true 2470 return builder 2471 } 2472 2473 // 单选/多选自定义字段的值 2474 // 2475 // 示例值: 2476 func (builder *ApplicationOfferBasicInfoCustomizedObjectBuilder) OptionValueList(optionValueList []*ApplicationOfferBasicInfoCustomizedObjectOptionValue) *ApplicationOfferBasicInfoCustomizedObjectBuilder { 2477 builder.optionValueList = optionValueList 2478 builder.optionValueListFlag = true 2479 return builder 2480 } 2481 2482 func (builder *ApplicationOfferBasicInfoCustomizedObjectBuilder) Build() *ApplicationOfferBasicInfoCustomizedObject { 2483 req := &ApplicationOfferBasicInfoCustomizedObject{} 2484 if builder.idFlag { 2485 req.Id = &builder.id 2486 2487 } 2488 if builder.nameFlag { 2489 req.Name = builder.name 2490 } 2491 if builder.typeFlag { 2492 req.Type = &builder.type_ 2493 2494 } 2495 if builder.valueFlag { 2496 req.Value = &builder.value 2497 2498 } 2499 if builder.optionValueListFlag { 2500 req.OptionValueList = builder.optionValueList 2501 } 2502 return req 2503 } 2504 2505 type ApplicationOfferBasicInfoCustomizedObjectOptionValue struct { 2506 ZhCn *string `json:"zh_cn,omitempty"` // 中文名 2507 EnUs *string `json:"en_us,omitempty"` // 英文名 2508 } 2509 2510 type ApplicationOfferBasicInfoCustomizedObjectOptionValueBuilder struct { 2511 zhCn string // 中文名 2512 zhCnFlag bool 2513 enUs string // 英文名 2514 enUsFlag bool 2515 } 2516 2517 func NewApplicationOfferBasicInfoCustomizedObjectOptionValueBuilder() *ApplicationOfferBasicInfoCustomizedObjectOptionValueBuilder { 2518 builder := &ApplicationOfferBasicInfoCustomizedObjectOptionValueBuilder{} 2519 return builder 2520 } 2521 2522 // 中文名 2523 // 2524 // 示例值: 2525 func (builder *ApplicationOfferBasicInfoCustomizedObjectOptionValueBuilder) ZhCn(zhCn string) *ApplicationOfferBasicInfoCustomizedObjectOptionValueBuilder { 2526 builder.zhCn = zhCn 2527 builder.zhCnFlag = true 2528 return builder 2529 } 2530 2531 // 英文名 2532 // 2533 // 示例值: 2534 func (builder *ApplicationOfferBasicInfoCustomizedObjectOptionValueBuilder) EnUs(enUs string) *ApplicationOfferBasicInfoCustomizedObjectOptionValueBuilder { 2535 builder.enUs = enUs 2536 builder.enUsFlag = true 2537 return builder 2538 } 2539 2540 func (builder *ApplicationOfferBasicInfoCustomizedObjectOptionValueBuilder) Build() *ApplicationOfferBasicInfoCustomizedObjectOptionValue { 2541 req := &ApplicationOfferBasicInfoCustomizedObjectOptionValue{} 2542 if builder.zhCnFlag { 2543 req.ZhCn = &builder.zhCn 2544 2545 } 2546 if builder.enUsFlag { 2547 req.EnUs = &builder.enUs 2548 2549 } 2550 return req 2551 } 2552 2553 type ApplicationOfferBasicInfoUser struct { 2554 Id *string `json:"id,omitempty"` // ID 2555 Name *string `json:"name,omitempty"` // 名字 2556 EnName *string `json:"en_name,omitempty"` // 英文名 2557 Avatar *string `json:"avatar,omitempty"` // 头像 2558 Department *Department `json:"department,omitempty"` // 部门 2559 Timezone *string `json:"timezone,omitempty"` // 时区 2560 Phone *string `json:"phone,omitempty"` // 手机 2561 Email *string `json:"email,omitempty"` // 邮箱 2562 InAppScope *bool `json:"in_app_scope,omitempty"` // 是否拥有app权限 2563 } 2564 2565 type ApplicationOfferBasicInfoUserBuilder struct { 2566 id string // ID 2567 idFlag bool 2568 name string // 名字 2569 nameFlag bool 2570 enName string // 英文名 2571 enNameFlag bool 2572 avatar string // 头像 2573 avatarFlag bool 2574 department *Department // 部门 2575 departmentFlag bool 2576 timezone string // 时区 2577 timezoneFlag bool 2578 phone string // 手机 2579 phoneFlag bool 2580 email string // 邮箱 2581 emailFlag bool 2582 inAppScope bool // 是否拥有app权限 2583 inAppScopeFlag bool 2584 } 2585 2586 func NewApplicationOfferBasicInfoUserBuilder() *ApplicationOfferBasicInfoUserBuilder { 2587 builder := &ApplicationOfferBasicInfoUserBuilder{} 2588 return builder 2589 } 2590 2591 // ID 2592 // 2593 // 示例值: 2594 func (builder *ApplicationOfferBasicInfoUserBuilder) Id(id string) *ApplicationOfferBasicInfoUserBuilder { 2595 builder.id = id 2596 builder.idFlag = true 2597 return builder 2598 } 2599 2600 // 名字 2601 // 2602 // 示例值: 2603 func (builder *ApplicationOfferBasicInfoUserBuilder) Name(name string) *ApplicationOfferBasicInfoUserBuilder { 2604 builder.name = name 2605 builder.nameFlag = true 2606 return builder 2607 } 2608 2609 // 英文名 2610 // 2611 // 示例值: 2612 func (builder *ApplicationOfferBasicInfoUserBuilder) EnName(enName string) *ApplicationOfferBasicInfoUserBuilder { 2613 builder.enName = enName 2614 builder.enNameFlag = true 2615 return builder 2616 } 2617 2618 // 头像 2619 // 2620 // 示例值: 2621 func (builder *ApplicationOfferBasicInfoUserBuilder) Avatar(avatar string) *ApplicationOfferBasicInfoUserBuilder { 2622 builder.avatar = avatar 2623 builder.avatarFlag = true 2624 return builder 2625 } 2626 2627 // 部门 2628 // 2629 // 示例值: 2630 func (builder *ApplicationOfferBasicInfoUserBuilder) Department(department *Department) *ApplicationOfferBasicInfoUserBuilder { 2631 builder.department = department 2632 builder.departmentFlag = true 2633 return builder 2634 } 2635 2636 // 时区 2637 // 2638 // 示例值: 2639 func (builder *ApplicationOfferBasicInfoUserBuilder) Timezone(timezone string) *ApplicationOfferBasicInfoUserBuilder { 2640 builder.timezone = timezone 2641 builder.timezoneFlag = true 2642 return builder 2643 } 2644 2645 // 手机 2646 // 2647 // 示例值: 2648 func (builder *ApplicationOfferBasicInfoUserBuilder) Phone(phone string) *ApplicationOfferBasicInfoUserBuilder { 2649 builder.phone = phone 2650 builder.phoneFlag = true 2651 return builder 2652 } 2653 2654 // 邮箱 2655 // 2656 // 示例值: 2657 func (builder *ApplicationOfferBasicInfoUserBuilder) Email(email string) *ApplicationOfferBasicInfoUserBuilder { 2658 builder.email = email 2659 builder.emailFlag = true 2660 return builder 2661 } 2662 2663 // 是否拥有app权限 2664 // 2665 // 示例值: 2666 func (builder *ApplicationOfferBasicInfoUserBuilder) InAppScope(inAppScope bool) *ApplicationOfferBasicInfoUserBuilder { 2667 builder.inAppScope = inAppScope 2668 builder.inAppScopeFlag = true 2669 return builder 2670 } 2671 2672 func (builder *ApplicationOfferBasicInfoUserBuilder) Build() *ApplicationOfferBasicInfoUser { 2673 req := &ApplicationOfferBasicInfoUser{} 2674 if builder.idFlag { 2675 req.Id = &builder.id 2676 2677 } 2678 if builder.nameFlag { 2679 req.Name = &builder.name 2680 2681 } 2682 if builder.enNameFlag { 2683 req.EnName = &builder.enName 2684 2685 } 2686 if builder.avatarFlag { 2687 req.Avatar = &builder.avatar 2688 2689 } 2690 if builder.departmentFlag { 2691 req.Department = builder.department 2692 } 2693 if builder.timezoneFlag { 2694 req.Timezone = &builder.timezone 2695 2696 } 2697 if builder.phoneFlag { 2698 req.Phone = &builder.phone 2699 2700 } 2701 if builder.emailFlag { 2702 req.Email = &builder.email 2703 2704 } 2705 if builder.inAppScopeFlag { 2706 req.InAppScope = &builder.inAppScope 2707 2708 } 2709 return req 2710 } 2711 2712 type ApplicationOfferCustomValue struct { 2713 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 2714 CustomizeValue *string `json:"customize_value,omitempty"` // 自定义字段 value 2715 } 2716 2717 type ApplicationOfferCustomValueBuilder struct { 2718 objectId string // 自定义字段 ID 2719 objectIdFlag bool 2720 customizeValue string // 自定义字段 value 2721 customizeValueFlag bool 2722 } 2723 2724 func NewApplicationOfferCustomValueBuilder() *ApplicationOfferCustomValueBuilder { 2725 builder := &ApplicationOfferCustomValueBuilder{} 2726 return builder 2727 } 2728 2729 // 自定义字段 ID 2730 // 2731 // 示例值:key 2732 func (builder *ApplicationOfferCustomValueBuilder) ObjectId(objectId string) *ApplicationOfferCustomValueBuilder { 2733 builder.objectId = objectId 2734 builder.objectIdFlag = true 2735 return builder 2736 } 2737 2738 // 自定义字段 value 2739 // 2740 // 示例值:value 2741 func (builder *ApplicationOfferCustomValueBuilder) CustomizeValue(customizeValue string) *ApplicationOfferCustomValueBuilder { 2742 builder.customizeValue = customizeValue 2743 builder.customizeValueFlag = true 2744 return builder 2745 } 2746 2747 func (builder *ApplicationOfferCustomValueBuilder) Build() *ApplicationOfferCustomValue { 2748 req := &ApplicationOfferCustomValue{} 2749 if builder.objectIdFlag { 2750 req.ObjectId = &builder.objectId 2751 2752 } 2753 if builder.customizeValueFlag { 2754 req.CustomizeValue = &builder.customizeValue 2755 2756 } 2757 return req 2758 } 2759 2760 type ApplicationOfferOnboardProfile struct { 2761 OfferId *string `json:"offer_id,omitempty"` // offer ID 2762 Department *Department `json:"department,omitempty"` // 部门 2763 RecruitmentType *RecruitmentType `json:"recruitment_type,omitempty"` // 招聘类型 2764 Sequence *Sequence `json:"sequence,omitempty"` // 序列 2765 Level *Level `json:"level,omitempty"` // 职级 2766 OnboardAddress *ApplicationOfferOnboardProfileAddress `json:"onboard_address,omitempty"` // onboard地址 2767 WorkAddress *ApplicationOfferOnboardProfileAddress `json:"work_address,omitempty"` // 工作地址 2768 Leader *ApplicationOfferBasicInfoUser `json:"leader,omitempty"` // 领导 2769 IsWorkAddressSameToOnboard *bool `json:"is_work_address_same_to_onboard,omitempty"` // 工作地址是否与onboard地址相同 2770 ProbationMonth *int `json:"probation_month,omitempty"` // 试用期 2771 ContractYear *int `json:"contract_year,omitempty"` // 合同年限 2772 } 2773 2774 type ApplicationOfferOnboardProfileBuilder struct { 2775 offerId string // offer ID 2776 offerIdFlag bool 2777 department *Department // 部门 2778 departmentFlag bool 2779 recruitmentType *RecruitmentType // 招聘类型 2780 recruitmentTypeFlag bool 2781 sequence *Sequence // 序列 2782 sequenceFlag bool 2783 level *Level // 职级 2784 levelFlag bool 2785 onboardAddress *ApplicationOfferOnboardProfileAddress // onboard地址 2786 onboardAddressFlag bool 2787 workAddress *ApplicationOfferOnboardProfileAddress // 工作地址 2788 workAddressFlag bool 2789 leader *ApplicationOfferBasicInfoUser // 领导 2790 leaderFlag bool 2791 isWorkAddressSameToOnboard bool // 工作地址是否与onboard地址相同 2792 isWorkAddressSameToOnboardFlag bool 2793 probationMonth int // 试用期 2794 probationMonthFlag bool 2795 contractYear int // 合同年限 2796 contractYearFlag bool 2797 } 2798 2799 func NewApplicationOfferOnboardProfileBuilder() *ApplicationOfferOnboardProfileBuilder { 2800 builder := &ApplicationOfferOnboardProfileBuilder{} 2801 return builder 2802 } 2803 2804 // offer ID 2805 // 2806 // 示例值: 2807 func (builder *ApplicationOfferOnboardProfileBuilder) OfferId(offerId string) *ApplicationOfferOnboardProfileBuilder { 2808 builder.offerId = offerId 2809 builder.offerIdFlag = true 2810 return builder 2811 } 2812 2813 // 部门 2814 // 2815 // 示例值: 2816 func (builder *ApplicationOfferOnboardProfileBuilder) Department(department *Department) *ApplicationOfferOnboardProfileBuilder { 2817 builder.department = department 2818 builder.departmentFlag = true 2819 return builder 2820 } 2821 2822 // 招聘类型 2823 // 2824 // 示例值: 2825 func (builder *ApplicationOfferOnboardProfileBuilder) RecruitmentType(recruitmentType *RecruitmentType) *ApplicationOfferOnboardProfileBuilder { 2826 builder.recruitmentType = recruitmentType 2827 builder.recruitmentTypeFlag = true 2828 return builder 2829 } 2830 2831 // 序列 2832 // 2833 // 示例值: 2834 func (builder *ApplicationOfferOnboardProfileBuilder) Sequence(sequence *Sequence) *ApplicationOfferOnboardProfileBuilder { 2835 builder.sequence = sequence 2836 builder.sequenceFlag = true 2837 return builder 2838 } 2839 2840 // 职级 2841 // 2842 // 示例值: 2843 func (builder *ApplicationOfferOnboardProfileBuilder) Level(level *Level) *ApplicationOfferOnboardProfileBuilder { 2844 builder.level = level 2845 builder.levelFlag = true 2846 return builder 2847 } 2848 2849 // onboard地址 2850 // 2851 // 示例值: 2852 func (builder *ApplicationOfferOnboardProfileBuilder) OnboardAddress(onboardAddress *ApplicationOfferOnboardProfileAddress) *ApplicationOfferOnboardProfileBuilder { 2853 builder.onboardAddress = onboardAddress 2854 builder.onboardAddressFlag = true 2855 return builder 2856 } 2857 2858 // 工作地址 2859 // 2860 // 示例值: 2861 func (builder *ApplicationOfferOnboardProfileBuilder) WorkAddress(workAddress *ApplicationOfferOnboardProfileAddress) *ApplicationOfferOnboardProfileBuilder { 2862 builder.workAddress = workAddress 2863 builder.workAddressFlag = true 2864 return builder 2865 } 2866 2867 // 领导 2868 // 2869 // 示例值: 2870 func (builder *ApplicationOfferOnboardProfileBuilder) Leader(leader *ApplicationOfferBasicInfoUser) *ApplicationOfferOnboardProfileBuilder { 2871 builder.leader = leader 2872 builder.leaderFlag = true 2873 return builder 2874 } 2875 2876 // 工作地址是否与onboard地址相同 2877 // 2878 // 示例值: 2879 func (builder *ApplicationOfferOnboardProfileBuilder) IsWorkAddressSameToOnboard(isWorkAddressSameToOnboard bool) *ApplicationOfferOnboardProfileBuilder { 2880 builder.isWorkAddressSameToOnboard = isWorkAddressSameToOnboard 2881 builder.isWorkAddressSameToOnboardFlag = true 2882 return builder 2883 } 2884 2885 // 试用期 2886 // 2887 // 示例值: 2888 func (builder *ApplicationOfferOnboardProfileBuilder) ProbationMonth(probationMonth int) *ApplicationOfferOnboardProfileBuilder { 2889 builder.probationMonth = probationMonth 2890 builder.probationMonthFlag = true 2891 return builder 2892 } 2893 2894 // 合同年限 2895 // 2896 // 示例值: 2897 func (builder *ApplicationOfferOnboardProfileBuilder) ContractYear(contractYear int) *ApplicationOfferOnboardProfileBuilder { 2898 builder.contractYear = contractYear 2899 builder.contractYearFlag = true 2900 return builder 2901 } 2902 2903 func (builder *ApplicationOfferOnboardProfileBuilder) Build() *ApplicationOfferOnboardProfile { 2904 req := &ApplicationOfferOnboardProfile{} 2905 if builder.offerIdFlag { 2906 req.OfferId = &builder.offerId 2907 2908 } 2909 if builder.departmentFlag { 2910 req.Department = builder.department 2911 } 2912 if builder.recruitmentTypeFlag { 2913 req.RecruitmentType = builder.recruitmentType 2914 } 2915 if builder.sequenceFlag { 2916 req.Sequence = builder.sequence 2917 } 2918 if builder.levelFlag { 2919 req.Level = builder.level 2920 } 2921 if builder.onboardAddressFlag { 2922 req.OnboardAddress = builder.onboardAddress 2923 } 2924 if builder.workAddressFlag { 2925 req.WorkAddress = builder.workAddress 2926 } 2927 if builder.leaderFlag { 2928 req.Leader = builder.leader 2929 } 2930 if builder.isWorkAddressSameToOnboardFlag { 2931 req.IsWorkAddressSameToOnboard = &builder.isWorkAddressSameToOnboard 2932 2933 } 2934 if builder.probationMonthFlag { 2935 req.ProbationMonth = &builder.probationMonth 2936 2937 } 2938 if builder.contractYearFlag { 2939 req.ContractYear = &builder.contractYear 2940 2941 } 2942 return req 2943 } 2944 2945 type ApplicationOfferOnboardProfileAddress struct { 2946 Id *string `json:"id,omitempty"` // ID 2947 Name *string `json:"name,omitempty"` // 名字 2948 EnName *string `json:"en_name,omitempty"` // 英文名 2949 District *ApplicationOfferOnboardProfileCity `json:"district,omitempty"` // 区 2950 City *ApplicationOfferOnboardProfileCity `json:"city,omitempty"` // 城市 2951 State *ApplicationOfferOnboardProfileCity `json:"state,omitempty"` // 省 2952 Country *ApplicationOfferOnboardProfileCity `json:"country,omitempty"` // 国家 2953 UsageIdList []string `json:"usage_id_list,omitempty"` // 使用ID列表 2954 ActiveStatus *int `json:"active_status,omitempty"` // 状态 2955 } 2956 2957 type ApplicationOfferOnboardProfileAddressBuilder struct { 2958 id string // ID 2959 idFlag bool 2960 name string // 名字 2961 nameFlag bool 2962 enName string // 英文名 2963 enNameFlag bool 2964 district *ApplicationOfferOnboardProfileCity // 区 2965 districtFlag bool 2966 city *ApplicationOfferOnboardProfileCity // 城市 2967 cityFlag bool 2968 state *ApplicationOfferOnboardProfileCity // 省 2969 stateFlag bool 2970 country *ApplicationOfferOnboardProfileCity // 国家 2971 countryFlag bool 2972 usageIdList []string // 使用ID列表 2973 usageIdListFlag bool 2974 activeStatus int // 状态 2975 activeStatusFlag bool 2976 } 2977 2978 func NewApplicationOfferOnboardProfileAddressBuilder() *ApplicationOfferOnboardProfileAddressBuilder { 2979 builder := &ApplicationOfferOnboardProfileAddressBuilder{} 2980 return builder 2981 } 2982 2983 // ID 2984 // 2985 // 示例值: 2986 func (builder *ApplicationOfferOnboardProfileAddressBuilder) Id(id string) *ApplicationOfferOnboardProfileAddressBuilder { 2987 builder.id = id 2988 builder.idFlag = true 2989 return builder 2990 } 2991 2992 // 名字 2993 // 2994 // 示例值: 2995 func (builder *ApplicationOfferOnboardProfileAddressBuilder) Name(name string) *ApplicationOfferOnboardProfileAddressBuilder { 2996 builder.name = name 2997 builder.nameFlag = true 2998 return builder 2999 } 3000 3001 // 英文名 3002 // 3003 // 示例值: 3004 func (builder *ApplicationOfferOnboardProfileAddressBuilder) EnName(enName string) *ApplicationOfferOnboardProfileAddressBuilder { 3005 builder.enName = enName 3006 builder.enNameFlag = true 3007 return builder 3008 } 3009 3010 // 区 3011 // 3012 // 示例值: 3013 func (builder *ApplicationOfferOnboardProfileAddressBuilder) District(district *ApplicationOfferOnboardProfileCity) *ApplicationOfferOnboardProfileAddressBuilder { 3014 builder.district = district 3015 builder.districtFlag = true 3016 return builder 3017 } 3018 3019 // 城市 3020 // 3021 // 示例值: 3022 func (builder *ApplicationOfferOnboardProfileAddressBuilder) City(city *ApplicationOfferOnboardProfileCity) *ApplicationOfferOnboardProfileAddressBuilder { 3023 builder.city = city 3024 builder.cityFlag = true 3025 return builder 3026 } 3027 3028 // 省 3029 // 3030 // 示例值: 3031 func (builder *ApplicationOfferOnboardProfileAddressBuilder) State(state *ApplicationOfferOnboardProfileCity) *ApplicationOfferOnboardProfileAddressBuilder { 3032 builder.state = state 3033 builder.stateFlag = true 3034 return builder 3035 } 3036 3037 // 国家 3038 // 3039 // 示例值: 3040 func (builder *ApplicationOfferOnboardProfileAddressBuilder) Country(country *ApplicationOfferOnboardProfileCity) *ApplicationOfferOnboardProfileAddressBuilder { 3041 builder.country = country 3042 builder.countryFlag = true 3043 return builder 3044 } 3045 3046 // 使用ID列表 3047 // 3048 // 示例值: 3049 func (builder *ApplicationOfferOnboardProfileAddressBuilder) UsageIdList(usageIdList []string) *ApplicationOfferOnboardProfileAddressBuilder { 3050 builder.usageIdList = usageIdList 3051 builder.usageIdListFlag = true 3052 return builder 3053 } 3054 3055 // 状态 3056 // 3057 // 示例值: 3058 func (builder *ApplicationOfferOnboardProfileAddressBuilder) ActiveStatus(activeStatus int) *ApplicationOfferOnboardProfileAddressBuilder { 3059 builder.activeStatus = activeStatus 3060 builder.activeStatusFlag = true 3061 return builder 3062 } 3063 3064 func (builder *ApplicationOfferOnboardProfileAddressBuilder) Build() *ApplicationOfferOnboardProfileAddress { 3065 req := &ApplicationOfferOnboardProfileAddress{} 3066 if builder.idFlag { 3067 req.Id = &builder.id 3068 3069 } 3070 if builder.nameFlag { 3071 req.Name = &builder.name 3072 3073 } 3074 if builder.enNameFlag { 3075 req.EnName = &builder.enName 3076 3077 } 3078 if builder.districtFlag { 3079 req.District = builder.district 3080 } 3081 if builder.cityFlag { 3082 req.City = builder.city 3083 } 3084 if builder.stateFlag { 3085 req.State = builder.state 3086 } 3087 if builder.countryFlag { 3088 req.Country = builder.country 3089 } 3090 if builder.usageIdListFlag { 3091 req.UsageIdList = builder.usageIdList 3092 } 3093 if builder.activeStatusFlag { 3094 req.ActiveStatus = &builder.activeStatus 3095 3096 } 3097 return req 3098 } 3099 3100 type ApplicationOfferOnboardProfileCity struct { 3101 Code *string `json:"code,omitempty"` // 编码 3102 Name *string `json:"name,omitempty"` // 名字 3103 EnName *string `json:"en_name,omitempty"` // 英文名 3104 LocationType *int `json:"location_type,omitempty"` // 地址类型 3105 } 3106 3107 type ApplicationOfferOnboardProfileCityBuilder struct { 3108 code string // 编码 3109 codeFlag bool 3110 name string // 名字 3111 nameFlag bool 3112 enName string // 英文名 3113 enNameFlag bool 3114 locationType int // 地址类型 3115 locationTypeFlag bool 3116 } 3117 3118 func NewApplicationOfferOnboardProfileCityBuilder() *ApplicationOfferOnboardProfileCityBuilder { 3119 builder := &ApplicationOfferOnboardProfileCityBuilder{} 3120 return builder 3121 } 3122 3123 // 编码 3124 // 3125 // 示例值: 3126 func (builder *ApplicationOfferOnboardProfileCityBuilder) Code(code string) *ApplicationOfferOnboardProfileCityBuilder { 3127 builder.code = code 3128 builder.codeFlag = true 3129 return builder 3130 } 3131 3132 // 名字 3133 // 3134 // 示例值: 3135 func (builder *ApplicationOfferOnboardProfileCityBuilder) Name(name string) *ApplicationOfferOnboardProfileCityBuilder { 3136 builder.name = name 3137 builder.nameFlag = true 3138 return builder 3139 } 3140 3141 // 英文名 3142 // 3143 // 示例值: 3144 func (builder *ApplicationOfferOnboardProfileCityBuilder) EnName(enName string) *ApplicationOfferOnboardProfileCityBuilder { 3145 builder.enName = enName 3146 builder.enNameFlag = true 3147 return builder 3148 } 3149 3150 // 地址类型 3151 // 3152 // 示例值: 3153 func (builder *ApplicationOfferOnboardProfileCityBuilder) LocationType(locationType int) *ApplicationOfferOnboardProfileCityBuilder { 3154 builder.locationType = locationType 3155 builder.locationTypeFlag = true 3156 return builder 3157 } 3158 3159 func (builder *ApplicationOfferOnboardProfileCityBuilder) Build() *ApplicationOfferOnboardProfileCity { 3160 req := &ApplicationOfferOnboardProfileCity{} 3161 if builder.codeFlag { 3162 req.Code = &builder.code 3163 3164 } 3165 if builder.nameFlag { 3166 req.Name = &builder.name 3167 3168 } 3169 if builder.enNameFlag { 3170 req.EnName = &builder.enName 3171 3172 } 3173 if builder.locationTypeFlag { 3174 req.LocationType = &builder.locationType 3175 3176 } 3177 return req 3178 } 3179 3180 type ApplicationOfferSalaryPlan struct { 3181 Currency *string `json:"currency,omitempty"` // 币种 3182 BasicSalary *string `json:"basic_salary,omitempty"` // 基本薪资,为JSON 格式,amount 代表基本薪资的金额,peroid 代表基本薪资的周期单位,如:"{"amount":"10000","period":2}" 3183 ProbationSalaryPercentage *string `json:"probation_salary_percentage,omitempty"` // 试用期百分比 3184 AwardSalaryMultiple *string `json:"award_salary_multiple,omitempty"` // 年终奖月数 3185 OptionShares *string `json:"option_shares,omitempty"` // 期权股数 3186 QuarterlyBonus *string `json:"quarterly_bonus,omitempty"` // 季度奖金额 3187 HalfYearBonus *string `json:"half_year_bonus,omitempty"` // 半年奖金额 3188 TotalAnnualCash *string `json:"total_annual_cash,omitempty"` // 年度现金总额(数量,非公式) 3189 CustomizeInfoList []*ApplicationOfferCustomValue `json:"customize_info_list,omitempty"` // 自定义字段的 value 信息 3190 } 3191 3192 type ApplicationOfferSalaryPlanBuilder struct { 3193 currency string // 币种 3194 currencyFlag bool 3195 basicSalary string // 基本薪资,为JSON 格式,amount 代表基本薪资的金额,peroid 代表基本薪资的周期单位,如:"{"amount":"10000","period":2}" 3196 basicSalaryFlag bool 3197 probationSalaryPercentage string // 试用期百分比 3198 probationSalaryPercentageFlag bool 3199 awardSalaryMultiple string // 年终奖月数 3200 awardSalaryMultipleFlag bool 3201 optionShares string // 期权股数 3202 optionSharesFlag bool 3203 quarterlyBonus string // 季度奖金额 3204 quarterlyBonusFlag bool 3205 halfYearBonus string // 半年奖金额 3206 halfYearBonusFlag bool 3207 totalAnnualCash string // 年度现金总额(数量,非公式) 3208 totalAnnualCashFlag bool 3209 customizeInfoList []*ApplicationOfferCustomValue // 自定义字段的 value 信息 3210 customizeInfoListFlag bool 3211 } 3212 3213 func NewApplicationOfferSalaryPlanBuilder() *ApplicationOfferSalaryPlanBuilder { 3214 builder := &ApplicationOfferSalaryPlanBuilder{} 3215 return builder 3216 } 3217 3218 // 币种 3219 // 3220 // 示例值:CNY 3221 func (builder *ApplicationOfferSalaryPlanBuilder) Currency(currency string) *ApplicationOfferSalaryPlanBuilder { 3222 builder.currency = currency 3223 builder.currencyFlag = true 3224 return builder 3225 } 3226 3227 // 基本薪资,为JSON 格式,amount 代表基本薪资的金额,peroid 代表基本薪资的周期单位,如:"{"amount":"10000","period":2}" 3228 // 3229 // 示例值:{"amount":"10000","period":2} 3230 func (builder *ApplicationOfferSalaryPlanBuilder) BasicSalary(basicSalary string) *ApplicationOfferSalaryPlanBuilder { 3231 builder.basicSalary = basicSalary 3232 builder.basicSalaryFlag = true 3233 return builder 3234 } 3235 3236 // 试用期百分比 3237 // 3238 // 示例值:10% 3239 func (builder *ApplicationOfferSalaryPlanBuilder) ProbationSalaryPercentage(probationSalaryPercentage string) *ApplicationOfferSalaryPlanBuilder { 3240 builder.probationSalaryPercentage = probationSalaryPercentage 3241 builder.probationSalaryPercentageFlag = true 3242 return builder 3243 } 3244 3245 // 年终奖月数 3246 // 3247 // 示例值:12 3248 func (builder *ApplicationOfferSalaryPlanBuilder) AwardSalaryMultiple(awardSalaryMultiple string) *ApplicationOfferSalaryPlanBuilder { 3249 builder.awardSalaryMultiple = awardSalaryMultiple 3250 builder.awardSalaryMultipleFlag = true 3251 return builder 3252 } 3253 3254 // 期权股数 3255 // 3256 // 示例值:11 3257 func (builder *ApplicationOfferSalaryPlanBuilder) OptionShares(optionShares string) *ApplicationOfferSalaryPlanBuilder { 3258 builder.optionShares = optionShares 3259 builder.optionSharesFlag = true 3260 return builder 3261 } 3262 3263 // 季度奖金额 3264 // 3265 // 示例值:11111 3266 func (builder *ApplicationOfferSalaryPlanBuilder) QuarterlyBonus(quarterlyBonus string) *ApplicationOfferSalaryPlanBuilder { 3267 builder.quarterlyBonus = quarterlyBonus 3268 builder.quarterlyBonusFlag = true 3269 return builder 3270 } 3271 3272 // 半年奖金额 3273 // 3274 // 示例值:11111 3275 func (builder *ApplicationOfferSalaryPlanBuilder) HalfYearBonus(halfYearBonus string) *ApplicationOfferSalaryPlanBuilder { 3276 builder.halfYearBonus = halfYearBonus 3277 builder.halfYearBonusFlag = true 3278 return builder 3279 } 3280 3281 // 年度现金总额(数量,非公式) 3282 // 3283 // 示例值:11111 3284 func (builder *ApplicationOfferSalaryPlanBuilder) TotalAnnualCash(totalAnnualCash string) *ApplicationOfferSalaryPlanBuilder { 3285 builder.totalAnnualCash = totalAnnualCash 3286 builder.totalAnnualCashFlag = true 3287 return builder 3288 } 3289 3290 // 自定义字段的 value 信息 3291 // 3292 // 示例值: 3293 func (builder *ApplicationOfferSalaryPlanBuilder) CustomizeInfoList(customizeInfoList []*ApplicationOfferCustomValue) *ApplicationOfferSalaryPlanBuilder { 3294 builder.customizeInfoList = customizeInfoList 3295 builder.customizeInfoListFlag = true 3296 return builder 3297 } 3298 3299 func (builder *ApplicationOfferSalaryPlanBuilder) Build() *ApplicationOfferSalaryPlan { 3300 req := &ApplicationOfferSalaryPlan{} 3301 if builder.currencyFlag { 3302 req.Currency = &builder.currency 3303 3304 } 3305 if builder.basicSalaryFlag { 3306 req.BasicSalary = &builder.basicSalary 3307 3308 } 3309 if builder.probationSalaryPercentageFlag { 3310 req.ProbationSalaryPercentage = &builder.probationSalaryPercentage 3311 3312 } 3313 if builder.awardSalaryMultipleFlag { 3314 req.AwardSalaryMultiple = &builder.awardSalaryMultiple 3315 3316 } 3317 if builder.optionSharesFlag { 3318 req.OptionShares = &builder.optionShares 3319 3320 } 3321 if builder.quarterlyBonusFlag { 3322 req.QuarterlyBonus = &builder.quarterlyBonus 3323 3324 } 3325 if builder.halfYearBonusFlag { 3326 req.HalfYearBonus = &builder.halfYearBonus 3327 3328 } 3329 if builder.totalAnnualCashFlag { 3330 req.TotalAnnualCash = &builder.totalAnnualCash 3331 3332 } 3333 if builder.customizeInfoListFlag { 3334 req.CustomizeInfoList = builder.customizeInfoList 3335 } 3336 return req 3337 } 3338 3339 type ApplicationOfferSalaryPlanSalaryTemplate struct { 3340 TemplateKey *string `json:"template_key,omitempty"` // 模版key 3341 TotalAmount *string `json:"total_amount,omitempty"` // 总金额 3342 Currency *string `json:"currency,omitempty"` // 币种 3343 SalaryContent *string `json:"salary_content,omitempty"` // 薪酬内容 3344 } 3345 3346 type ApplicationOfferSalaryPlanSalaryTemplateBuilder struct { 3347 templateKey string // 模版key 3348 templateKeyFlag bool 3349 totalAmount string // 总金额 3350 totalAmountFlag bool 3351 currency string // 币种 3352 currencyFlag bool 3353 salaryContent string // 薪酬内容 3354 salaryContentFlag bool 3355 } 3356 3357 func NewApplicationOfferSalaryPlanSalaryTemplateBuilder() *ApplicationOfferSalaryPlanSalaryTemplateBuilder { 3358 builder := &ApplicationOfferSalaryPlanSalaryTemplateBuilder{} 3359 return builder 3360 } 3361 3362 // 模版key 3363 // 3364 // 示例值: 3365 func (builder *ApplicationOfferSalaryPlanSalaryTemplateBuilder) TemplateKey(templateKey string) *ApplicationOfferSalaryPlanSalaryTemplateBuilder { 3366 builder.templateKey = templateKey 3367 builder.templateKeyFlag = true 3368 return builder 3369 } 3370 3371 // 总金额 3372 // 3373 // 示例值: 3374 func (builder *ApplicationOfferSalaryPlanSalaryTemplateBuilder) TotalAmount(totalAmount string) *ApplicationOfferSalaryPlanSalaryTemplateBuilder { 3375 builder.totalAmount = totalAmount 3376 builder.totalAmountFlag = true 3377 return builder 3378 } 3379 3380 // 币种 3381 // 3382 // 示例值: 3383 func (builder *ApplicationOfferSalaryPlanSalaryTemplateBuilder) Currency(currency string) *ApplicationOfferSalaryPlanSalaryTemplateBuilder { 3384 builder.currency = currency 3385 builder.currencyFlag = true 3386 return builder 3387 } 3388 3389 // 薪酬内容 3390 // 3391 // 示例值: 3392 func (builder *ApplicationOfferSalaryPlanSalaryTemplateBuilder) SalaryContent(salaryContent string) *ApplicationOfferSalaryPlanSalaryTemplateBuilder { 3393 builder.salaryContent = salaryContent 3394 builder.salaryContentFlag = true 3395 return builder 3396 } 3397 3398 func (builder *ApplicationOfferSalaryPlanSalaryTemplateBuilder) Build() *ApplicationOfferSalaryPlanSalaryTemplate { 3399 req := &ApplicationOfferSalaryPlanSalaryTemplate{} 3400 if builder.templateKeyFlag { 3401 req.TemplateKey = &builder.templateKey 3402 3403 } 3404 if builder.totalAmountFlag { 3405 req.TotalAmount = &builder.totalAmount 3406 3407 } 3408 if builder.currencyFlag { 3409 req.Currency = &builder.currency 3410 3411 } 3412 if builder.salaryContentFlag { 3413 req.SalaryContent = &builder.salaryContent 3414 3415 } 3416 return req 3417 } 3418 3419 type ApplicationPrehire struct { 3420 Id *string `json:"id,omitempty"` // 投递id 3421 BasicInfo *ApplicationBasicInfo `json:"basic_info,omitempty"` // 投递基础信息 3422 Talent *ApplicationTalent `json:"talent,omitempty"` // 人才数据 3423 Job *ApplicationJob `json:"job,omitempty"` // 职位数据 3424 Offer *ApplicationPrehireOffer `json:"offer,omitempty"` // Offer数据 3425 } 3426 3427 type ApplicationPrehireBuilder struct { 3428 id string // 投递id 3429 idFlag bool 3430 basicInfo *ApplicationBasicInfo // 投递基础信息 3431 basicInfoFlag bool 3432 talent *ApplicationTalent // 人才数据 3433 talentFlag bool 3434 job *ApplicationJob // 职位数据 3435 jobFlag bool 3436 offer *ApplicationPrehireOffer // Offer数据 3437 offerFlag bool 3438 } 3439 3440 func NewApplicationPrehireBuilder() *ApplicationPrehireBuilder { 3441 builder := &ApplicationPrehireBuilder{} 3442 return builder 3443 } 3444 3445 // 投递id 3446 // 3447 // 示例值:6949805467799537964 3448 func (builder *ApplicationPrehireBuilder) Id(id string) *ApplicationPrehireBuilder { 3449 builder.id = id 3450 builder.idFlag = true 3451 return builder 3452 } 3453 3454 // 投递基础信息 3455 // 3456 // 示例值: 3457 func (builder *ApplicationPrehireBuilder) BasicInfo(basicInfo *ApplicationBasicInfo) *ApplicationPrehireBuilder { 3458 builder.basicInfo = basicInfo 3459 builder.basicInfoFlag = true 3460 return builder 3461 } 3462 3463 // 人才数据 3464 // 3465 // 示例值: 3466 func (builder *ApplicationPrehireBuilder) Talent(talent *ApplicationTalent) *ApplicationPrehireBuilder { 3467 builder.talent = talent 3468 builder.talentFlag = true 3469 return builder 3470 } 3471 3472 // 职位数据 3473 // 3474 // 示例值: 3475 func (builder *ApplicationPrehireBuilder) Job(job *ApplicationJob) *ApplicationPrehireBuilder { 3476 builder.job = job 3477 builder.jobFlag = true 3478 return builder 3479 } 3480 3481 // Offer数据 3482 // 3483 // 示例值: 3484 func (builder *ApplicationPrehireBuilder) Offer(offer *ApplicationPrehireOffer) *ApplicationPrehireBuilder { 3485 builder.offer = offer 3486 builder.offerFlag = true 3487 return builder 3488 } 3489 3490 func (builder *ApplicationPrehireBuilder) Build() *ApplicationPrehire { 3491 req := &ApplicationPrehire{} 3492 if builder.idFlag { 3493 req.Id = &builder.id 3494 3495 } 3496 if builder.basicInfoFlag { 3497 req.BasicInfo = builder.basicInfo 3498 } 3499 if builder.talentFlag { 3500 req.Talent = builder.talent 3501 } 3502 if builder.jobFlag { 3503 req.Job = builder.job 3504 } 3505 if builder.offerFlag { 3506 req.Offer = builder.offer 3507 } 3508 return req 3509 } 3510 3511 type ApplicationPrehireDepartment struct { 3512 Id *string `json:"id,omitempty"` // 3513 Name *string `json:"name,omitempty"` // 3514 EnName *string `json:"en_name,omitempty"` // 3515 } 3516 3517 type ApplicationPrehireDepartmentBuilder struct { 3518 id string // 3519 idFlag bool 3520 name string // 3521 nameFlag bool 3522 enName string // 3523 enNameFlag bool 3524 } 3525 3526 func NewApplicationPrehireDepartmentBuilder() *ApplicationPrehireDepartmentBuilder { 3527 builder := &ApplicationPrehireDepartmentBuilder{} 3528 return builder 3529 } 3530 3531 // 3532 // 3533 // 示例值:6949805467799537964 3534 func (builder *ApplicationPrehireDepartmentBuilder) Id(id string) *ApplicationPrehireDepartmentBuilder { 3535 builder.id = id 3536 builder.idFlag = true 3537 return builder 3538 } 3539 3540 // 3541 // 3542 // 示例值: 3543 func (builder *ApplicationPrehireDepartmentBuilder) Name(name string) *ApplicationPrehireDepartmentBuilder { 3544 builder.name = name 3545 builder.nameFlag = true 3546 return builder 3547 } 3548 3549 // 3550 // 3551 // 示例值: 3552 func (builder *ApplicationPrehireDepartmentBuilder) EnName(enName string) *ApplicationPrehireDepartmentBuilder { 3553 builder.enName = enName 3554 builder.enNameFlag = true 3555 return builder 3556 } 3557 3558 func (builder *ApplicationPrehireDepartmentBuilder) Build() *ApplicationPrehireDepartment { 3559 req := &ApplicationPrehireDepartment{} 3560 if builder.idFlag { 3561 req.Id = &builder.id 3562 3563 } 3564 if builder.nameFlag { 3565 req.Name = &builder.name 3566 3567 } 3568 if builder.enNameFlag { 3569 req.EnName = &builder.enName 3570 3571 } 3572 return req 3573 } 3574 3575 type ApplicationPrehireOffer struct { 3576 BasicInfo *ApplicationPrehireOfferBasic `json:"basic_info,omitempty"` // 投递基础信息 3577 OfferOnboardProfile *AppliOfferOnboardProfile `json:"offer_onboard_profile,omitempty"` // offer入职信息 3578 AttachmentList []*ApplicationOfferAttachment `json:"attachment_list,omitempty"` // offer附件 3579 } 3580 3581 type ApplicationPrehireOfferBuilder struct { 3582 basicInfo *ApplicationPrehireOfferBasic // 投递基础信息 3583 basicInfoFlag bool 3584 offerOnboardProfile *AppliOfferOnboardProfile // offer入职信息 3585 offerOnboardProfileFlag bool 3586 attachmentList []*ApplicationOfferAttachment // offer附件 3587 attachmentListFlag bool 3588 } 3589 3590 func NewApplicationPrehireOfferBuilder() *ApplicationPrehireOfferBuilder { 3591 builder := &ApplicationPrehireOfferBuilder{} 3592 return builder 3593 } 3594 3595 // 投递基础信息 3596 // 3597 // 示例值: 3598 func (builder *ApplicationPrehireOfferBuilder) BasicInfo(basicInfo *ApplicationPrehireOfferBasic) *ApplicationPrehireOfferBuilder { 3599 builder.basicInfo = basicInfo 3600 builder.basicInfoFlag = true 3601 return builder 3602 } 3603 3604 // offer入职信息 3605 // 3606 // 示例值: 3607 func (builder *ApplicationPrehireOfferBuilder) OfferOnboardProfile(offerOnboardProfile *AppliOfferOnboardProfile) *ApplicationPrehireOfferBuilder { 3608 builder.offerOnboardProfile = offerOnboardProfile 3609 builder.offerOnboardProfileFlag = true 3610 return builder 3611 } 3612 3613 // offer附件 3614 // 3615 // 示例值: 3616 func (builder *ApplicationPrehireOfferBuilder) AttachmentList(attachmentList []*ApplicationOfferAttachment) *ApplicationPrehireOfferBuilder { 3617 builder.attachmentList = attachmentList 3618 builder.attachmentListFlag = true 3619 return builder 3620 } 3621 3622 func (builder *ApplicationPrehireOfferBuilder) Build() *ApplicationPrehireOffer { 3623 req := &ApplicationPrehireOffer{} 3624 if builder.basicInfoFlag { 3625 req.BasicInfo = builder.basicInfo 3626 } 3627 if builder.offerOnboardProfileFlag { 3628 req.OfferOnboardProfile = builder.offerOnboardProfile 3629 } 3630 if builder.attachmentListFlag { 3631 req.AttachmentList = builder.attachmentList 3632 } 3633 return req 3634 } 3635 3636 type ApplicationPrehireOfferBasic struct { 3637 OfferId *string `json:"offer_id,omitempty"` // 3638 ApplicationId *string `json:"application_id,omitempty"` // 3639 TalentId *string `json:"talent_id,omitempty"` // 3640 JobId *string `json:"job_id,omitempty"` // 3641 Remark *string `json:"remark,omitempty"` // 3642 ExpireTime *int `json:"expire_time,omitempty"` // 3643 OnboardTime *int `json:"onboard_time,omitempty"` // 3644 TimeZone *string `json:"time_zone,omitempty"` // 3645 OfferType *int `json:"offer_type,omitempty"` // Offer类型 1=Social, 2=Campus, 3=Intern, 4=InternTransfer 3646 OfferStatus *int `json:"offer_status,omitempty"` // Offer状态 3647 Owner *AppliOfferBasicInfoUser `json:"owner,omitempty"` // 3648 OfferJobTitle *string `json:"offer_job_title,omitempty"` // 3649 } 3650 3651 type ApplicationPrehireOfferBasicBuilder struct { 3652 offerId string // 3653 offerIdFlag bool 3654 applicationId string // 3655 applicationIdFlag bool 3656 talentId string // 3657 talentIdFlag bool 3658 jobId string // 3659 jobIdFlag bool 3660 remark string // 3661 remarkFlag bool 3662 expireTime int // 3663 expireTimeFlag bool 3664 onboardTime int // 3665 onboardTimeFlag bool 3666 timeZone string // 3667 timeZoneFlag bool 3668 offerType int // Offer类型 1=Social, 2=Campus, 3=Intern, 4=InternTransfer 3669 offerTypeFlag bool 3670 offerStatus int // Offer状态 3671 offerStatusFlag bool 3672 owner *AppliOfferBasicInfoUser // 3673 ownerFlag bool 3674 offerJobTitle string // 3675 offerJobTitleFlag bool 3676 } 3677 3678 func NewApplicationPrehireOfferBasicBuilder() *ApplicationPrehireOfferBasicBuilder { 3679 builder := &ApplicationPrehireOfferBasicBuilder{} 3680 return builder 3681 } 3682 3683 // 3684 // 3685 // 示例值:11111 3686 func (builder *ApplicationPrehireOfferBasicBuilder) OfferId(offerId string) *ApplicationPrehireOfferBasicBuilder { 3687 builder.offerId = offerId 3688 builder.offerIdFlag = true 3689 return builder 3690 } 3691 3692 // 3693 // 3694 // 示例值:11111 3695 func (builder *ApplicationPrehireOfferBasicBuilder) ApplicationId(applicationId string) *ApplicationPrehireOfferBasicBuilder { 3696 builder.applicationId = applicationId 3697 builder.applicationIdFlag = true 3698 return builder 3699 } 3700 3701 // 3702 // 3703 // 示例值:11111 3704 func (builder *ApplicationPrehireOfferBasicBuilder) TalentId(talentId string) *ApplicationPrehireOfferBasicBuilder { 3705 builder.talentId = talentId 3706 builder.talentIdFlag = true 3707 return builder 3708 } 3709 3710 // 3711 // 3712 // 示例值:11111 3713 func (builder *ApplicationPrehireOfferBasicBuilder) JobId(jobId string) *ApplicationPrehireOfferBasicBuilder { 3714 builder.jobId = jobId 3715 builder.jobIdFlag = true 3716 return builder 3717 } 3718 3719 // 3720 // 3721 // 示例值:test 3722 func (builder *ApplicationPrehireOfferBasicBuilder) Remark(remark string) *ApplicationPrehireOfferBasicBuilder { 3723 builder.remark = remark 3724 builder.remarkFlag = true 3725 return builder 3726 } 3727 3728 // 3729 // 3730 // 示例值:1111233344 3731 func (builder *ApplicationPrehireOfferBasicBuilder) ExpireTime(expireTime int) *ApplicationPrehireOfferBasicBuilder { 3732 builder.expireTime = expireTime 3733 builder.expireTimeFlag = true 3734 return builder 3735 } 3736 3737 // 3738 // 3739 // 示例值:1111233344 3740 func (builder *ApplicationPrehireOfferBasicBuilder) OnboardTime(onboardTime int) *ApplicationPrehireOfferBasicBuilder { 3741 builder.onboardTime = onboardTime 3742 builder.onboardTimeFlag = true 3743 return builder 3744 } 3745 3746 // 3747 // 3748 // 示例值:111 3749 func (builder *ApplicationPrehireOfferBasicBuilder) TimeZone(timeZone string) *ApplicationPrehireOfferBasicBuilder { 3750 builder.timeZone = timeZone 3751 builder.timeZoneFlag = true 3752 return builder 3753 } 3754 3755 // Offer类型 1=Social, 2=Campus, 3=Intern, 4=InternTransfer 3756 // 3757 // 示例值:1 3758 func (builder *ApplicationPrehireOfferBasicBuilder) OfferType(offerType int) *ApplicationPrehireOfferBasicBuilder { 3759 builder.offerType = offerType 3760 builder.offerTypeFlag = true 3761 return builder 3762 } 3763 3764 // Offer状态 3765 // 3766 // 示例值:0 3767 func (builder *ApplicationPrehireOfferBasicBuilder) OfferStatus(offerStatus int) *ApplicationPrehireOfferBasicBuilder { 3768 builder.offerStatus = offerStatus 3769 builder.offerStatusFlag = true 3770 return builder 3771 } 3772 3773 // 3774 // 3775 // 示例值: 3776 func (builder *ApplicationPrehireOfferBasicBuilder) Owner(owner *AppliOfferBasicInfoUser) *ApplicationPrehireOfferBasicBuilder { 3777 builder.owner = owner 3778 builder.ownerFlag = true 3779 return builder 3780 } 3781 3782 // 3783 // 3784 // 示例值:test 3785 func (builder *ApplicationPrehireOfferBasicBuilder) OfferJobTitle(offerJobTitle string) *ApplicationPrehireOfferBasicBuilder { 3786 builder.offerJobTitle = offerJobTitle 3787 builder.offerJobTitleFlag = true 3788 return builder 3789 } 3790 3791 func (builder *ApplicationPrehireOfferBasicBuilder) Build() *ApplicationPrehireOfferBasic { 3792 req := &ApplicationPrehireOfferBasic{} 3793 if builder.offerIdFlag { 3794 req.OfferId = &builder.offerId 3795 3796 } 3797 if builder.applicationIdFlag { 3798 req.ApplicationId = &builder.applicationId 3799 3800 } 3801 if builder.talentIdFlag { 3802 req.TalentId = &builder.talentId 3803 3804 } 3805 if builder.jobIdFlag { 3806 req.JobId = &builder.jobId 3807 3808 } 3809 if builder.remarkFlag { 3810 req.Remark = &builder.remark 3811 3812 } 3813 if builder.expireTimeFlag { 3814 req.ExpireTime = &builder.expireTime 3815 3816 } 3817 if builder.onboardTimeFlag { 3818 req.OnboardTime = &builder.onboardTime 3819 3820 } 3821 if builder.timeZoneFlag { 3822 req.TimeZone = &builder.timeZone 3823 3824 } 3825 if builder.offerTypeFlag { 3826 req.OfferType = &builder.offerType 3827 3828 } 3829 if builder.offerStatusFlag { 3830 req.OfferStatus = &builder.offerStatus 3831 3832 } 3833 if builder.ownerFlag { 3834 req.Owner = builder.owner 3835 } 3836 if builder.offerJobTitleFlag { 3837 req.OfferJobTitle = &builder.offerJobTitle 3838 3839 } 3840 return req 3841 } 3842 3843 type ApplicationPrehireOptional struct { 3844 WithTalentBasic *bool `json:"with_talent_basic,omitempty"` // 是否包含基础信息 3845 WithTalentExtend *bool `json:"with_talent_extend,omitempty"` // 是否包含扩展信息 3846 WithJob *bool `json:"with_job,omitempty"` // 是否包含岗位信息 3847 WithOffer *bool `json:"with_offer,omitempty"` // 是否包含offer信息 3848 } 3849 3850 type ApplicationPrehireOptionalBuilder struct { 3851 withTalentBasic bool // 是否包含基础信息 3852 withTalentBasicFlag bool 3853 withTalentExtend bool // 是否包含扩展信息 3854 withTalentExtendFlag bool 3855 withJob bool // 是否包含岗位信息 3856 withJobFlag bool 3857 withOffer bool // 是否包含offer信息 3858 withOfferFlag bool 3859 } 3860 3861 func NewApplicationPrehireOptionalBuilder() *ApplicationPrehireOptionalBuilder { 3862 builder := &ApplicationPrehireOptionalBuilder{} 3863 return builder 3864 } 3865 3866 // 是否包含基础信息 3867 // 3868 // 示例值: 3869 func (builder *ApplicationPrehireOptionalBuilder) WithTalentBasic(withTalentBasic bool) *ApplicationPrehireOptionalBuilder { 3870 builder.withTalentBasic = withTalentBasic 3871 builder.withTalentBasicFlag = true 3872 return builder 3873 } 3874 3875 // 是否包含扩展信息 3876 // 3877 // 示例值: 3878 func (builder *ApplicationPrehireOptionalBuilder) WithTalentExtend(withTalentExtend bool) *ApplicationPrehireOptionalBuilder { 3879 builder.withTalentExtend = withTalentExtend 3880 builder.withTalentExtendFlag = true 3881 return builder 3882 } 3883 3884 // 是否包含岗位信息 3885 // 3886 // 示例值: 3887 func (builder *ApplicationPrehireOptionalBuilder) WithJob(withJob bool) *ApplicationPrehireOptionalBuilder { 3888 builder.withJob = withJob 3889 builder.withJobFlag = true 3890 return builder 3891 } 3892 3893 // 是否包含offer信息 3894 // 3895 // 示例值: 3896 func (builder *ApplicationPrehireOptionalBuilder) WithOffer(withOffer bool) *ApplicationPrehireOptionalBuilder { 3897 builder.withOffer = withOffer 3898 builder.withOfferFlag = true 3899 return builder 3900 } 3901 3902 func (builder *ApplicationPrehireOptionalBuilder) Build() *ApplicationPrehireOptional { 3903 req := &ApplicationPrehireOptional{} 3904 if builder.withTalentBasicFlag { 3905 req.WithTalentBasic = &builder.withTalentBasic 3906 3907 } 3908 if builder.withTalentExtendFlag { 3909 req.WithTalentExtend = &builder.withTalentExtend 3910 3911 } 3912 if builder.withJobFlag { 3913 req.WithJob = &builder.withJob 3914 3915 } 3916 if builder.withOfferFlag { 3917 req.WithOffer = &builder.withOffer 3918 3919 } 3920 return req 3921 } 3922 3923 type ApplicationReferral struct { 3924 Id *string `json:"id,omitempty"` // ID 3925 Name *string `json:"name,omitempty"` // 名字 3926 EnName *string `json:"en_name,omitempty"` // 英文名 3927 } 3928 3929 type ApplicationReferralBuilder struct { 3930 id string // ID 3931 idFlag bool 3932 name string // 名字 3933 nameFlag bool 3934 enName string // 英文名 3935 enNameFlag bool 3936 } 3937 3938 func NewApplicationReferralBuilder() *ApplicationReferralBuilder { 3939 builder := &ApplicationReferralBuilder{} 3940 return builder 3941 } 3942 3943 // ID 3944 // 3945 // 示例值: 3946 func (builder *ApplicationReferralBuilder) Id(id string) *ApplicationReferralBuilder { 3947 builder.id = id 3948 builder.idFlag = true 3949 return builder 3950 } 3951 3952 // 名字 3953 // 3954 // 示例值: 3955 func (builder *ApplicationReferralBuilder) Name(name string) *ApplicationReferralBuilder { 3956 builder.name = name 3957 builder.nameFlag = true 3958 return builder 3959 } 3960 3961 // 英文名 3962 // 3963 // 示例值: 3964 func (builder *ApplicationReferralBuilder) EnName(enName string) *ApplicationReferralBuilder { 3965 builder.enName = enName 3966 builder.enNameFlag = true 3967 return builder 3968 } 3969 3970 func (builder *ApplicationReferralBuilder) Build() *ApplicationReferral { 3971 req := &ApplicationReferral{} 3972 if builder.idFlag { 3973 req.Id = &builder.id 3974 3975 } 3976 if builder.nameFlag { 3977 req.Name = &builder.name 3978 3979 } 3980 if builder.enNameFlag { 3981 req.EnName = &builder.enName 3982 3983 } 3984 return req 3985 } 3986 3987 type ApplicationResumeSource struct { 3988 Id *string `json:"id,omitempty"` // 投递来源 ID 3989 Name *I18n `json:"name,omitempty"` // 投递来源名称 3990 ResumeSourceType *int `json:"resume_source_type,omitempty"` // 投递来源类型 3991 } 3992 3993 type ApplicationResumeSourceBuilder struct { 3994 id string // 投递来源 ID 3995 idFlag bool 3996 name *I18n // 投递来源名称 3997 nameFlag bool 3998 resumeSourceType int // 投递来源类型 3999 resumeSourceTypeFlag bool 4000 } 4001 4002 func NewApplicationResumeSourceBuilder() *ApplicationResumeSourceBuilder { 4003 builder := &ApplicationResumeSourceBuilder{} 4004 return builder 4005 } 4006 4007 // 投递来源 ID 4008 // 4009 // 示例值:614218419274131 4010 func (builder *ApplicationResumeSourceBuilder) Id(id string) *ApplicationResumeSourceBuilder { 4011 builder.id = id 4012 builder.idFlag = true 4013 return builder 4014 } 4015 4016 // 投递来源名称 4017 // 4018 // 示例值: 4019 func (builder *ApplicationResumeSourceBuilder) Name(name *I18n) *ApplicationResumeSourceBuilder { 4020 builder.name = name 4021 builder.nameFlag = true 4022 return builder 4023 } 4024 4025 // 投递来源类型 4026 // 4027 // 示例值:10002 4028 func (builder *ApplicationResumeSourceBuilder) ResumeSourceType(resumeSourceType int) *ApplicationResumeSourceBuilder { 4029 builder.resumeSourceType = resumeSourceType 4030 builder.resumeSourceTypeFlag = true 4031 return builder 4032 } 4033 4034 func (builder *ApplicationResumeSourceBuilder) Build() *ApplicationResumeSource { 4035 req := &ApplicationResumeSource{} 4036 if builder.idFlag { 4037 req.Id = &builder.id 4038 4039 } 4040 if builder.nameFlag { 4041 req.Name = builder.name 4042 } 4043 if builder.resumeSourceTypeFlag { 4044 req.ResumeSourceType = &builder.resumeSourceType 4045 4046 } 4047 return req 4048 } 4049 4050 type ApplicationStage struct { 4051 Id *string `json:"id,omitempty"` // ID 4052 Name *string `json:"name,omitempty"` // 名字 4053 EnName *string `json:"en_name,omitempty"` // 英文名 4054 Type *int `json:"type,omitempty"` // 类型 4055 Args *string `json:"args,omitempty"` // 参数 4056 CreatorId *string `json:"creator_id,omitempty"` // 创建者ID 4057 Seq *int `json:"seq,omitempty"` // 序列 4058 PublishName *string `json:"publish_name,omitempty"` // 发布名称 4059 PublishEnName *string `json:"publish_en_name,omitempty"` // 发布英文名 4060 } 4061 4062 type ApplicationStageBuilder struct { 4063 id string // ID 4064 idFlag bool 4065 name string // 名字 4066 nameFlag bool 4067 enName string // 英文名 4068 enNameFlag bool 4069 type_ int // 类型 4070 typeFlag bool 4071 args string // 参数 4072 argsFlag bool 4073 creatorId string // 创建者ID 4074 creatorIdFlag bool 4075 seq int // 序列 4076 seqFlag bool 4077 publishName string // 发布名称 4078 publishNameFlag bool 4079 publishEnName string // 发布英文名 4080 publishEnNameFlag bool 4081 } 4082 4083 func NewApplicationStageBuilder() *ApplicationStageBuilder { 4084 builder := &ApplicationStageBuilder{} 4085 return builder 4086 } 4087 4088 // ID 4089 // 4090 // 示例值: 4091 func (builder *ApplicationStageBuilder) Id(id string) *ApplicationStageBuilder { 4092 builder.id = id 4093 builder.idFlag = true 4094 return builder 4095 } 4096 4097 // 名字 4098 // 4099 // 示例值: 4100 func (builder *ApplicationStageBuilder) Name(name string) *ApplicationStageBuilder { 4101 builder.name = name 4102 builder.nameFlag = true 4103 return builder 4104 } 4105 4106 // 英文名 4107 // 4108 // 示例值: 4109 func (builder *ApplicationStageBuilder) EnName(enName string) *ApplicationStageBuilder { 4110 builder.enName = enName 4111 builder.enNameFlag = true 4112 return builder 4113 } 4114 4115 // 类型 4116 // 4117 // 示例值: 4118 func (builder *ApplicationStageBuilder) Type(type_ int) *ApplicationStageBuilder { 4119 builder.type_ = type_ 4120 builder.typeFlag = true 4121 return builder 4122 } 4123 4124 // 参数 4125 // 4126 // 示例值: 4127 func (builder *ApplicationStageBuilder) Args(args string) *ApplicationStageBuilder { 4128 builder.args = args 4129 builder.argsFlag = true 4130 return builder 4131 } 4132 4133 // 创建者ID 4134 // 4135 // 示例值: 4136 func (builder *ApplicationStageBuilder) CreatorId(creatorId string) *ApplicationStageBuilder { 4137 builder.creatorId = creatorId 4138 builder.creatorIdFlag = true 4139 return builder 4140 } 4141 4142 // 序列 4143 // 4144 // 示例值: 4145 func (builder *ApplicationStageBuilder) Seq(seq int) *ApplicationStageBuilder { 4146 builder.seq = seq 4147 builder.seqFlag = true 4148 return builder 4149 } 4150 4151 // 发布名称 4152 // 4153 // 示例值: 4154 func (builder *ApplicationStageBuilder) PublishName(publishName string) *ApplicationStageBuilder { 4155 builder.publishName = publishName 4156 builder.publishNameFlag = true 4157 return builder 4158 } 4159 4160 // 发布英文名 4161 // 4162 // 示例值: 4163 func (builder *ApplicationStageBuilder) PublishEnName(publishEnName string) *ApplicationStageBuilder { 4164 builder.publishEnName = publishEnName 4165 builder.publishEnNameFlag = true 4166 return builder 4167 } 4168 4169 func (builder *ApplicationStageBuilder) Build() *ApplicationStage { 4170 req := &ApplicationStage{} 4171 if builder.idFlag { 4172 req.Id = &builder.id 4173 4174 } 4175 if builder.nameFlag { 4176 req.Name = &builder.name 4177 4178 } 4179 if builder.enNameFlag { 4180 req.EnName = &builder.enName 4181 4182 } 4183 if builder.typeFlag { 4184 req.Type = &builder.type_ 4185 4186 } 4187 if builder.argsFlag { 4188 req.Args = &builder.args 4189 4190 } 4191 if builder.creatorIdFlag { 4192 req.CreatorId = &builder.creatorId 4193 4194 } 4195 if builder.seqFlag { 4196 req.Seq = &builder.seq 4197 4198 } 4199 if builder.publishNameFlag { 4200 req.PublishName = &builder.publishName 4201 4202 } 4203 if builder.publishEnNameFlag { 4204 req.PublishEnName = &builder.publishEnName 4205 4206 } 4207 return req 4208 } 4209 4210 type ApplicationStageInfo struct { 4211 Id *string `json:"id,omitempty"` // 阶段 ID 4212 ZhName *string `json:"zh_name,omitempty"` // 阶段中文名字 4213 EnName *string `json:"en_name,omitempty"` // 英文名 4214 Type *int `json:"type,omitempty"` // 阶段类型 4215 } 4216 4217 type ApplicationStageInfoBuilder struct { 4218 id string // 阶段 ID 4219 idFlag bool 4220 zhName string // 阶段中文名字 4221 zhNameFlag bool 4222 enName string // 英文名 4223 enNameFlag bool 4224 type_ int // 阶段类型 4225 typeFlag bool 4226 } 4227 4228 func NewApplicationStageInfoBuilder() *ApplicationStageInfoBuilder { 4229 builder := &ApplicationStageInfoBuilder{} 4230 return builder 4231 } 4232 4233 // 阶段 ID 4234 // 4235 // 示例值:614218419274131 4236 func (builder *ApplicationStageInfoBuilder) Id(id string) *ApplicationStageInfoBuilder { 4237 builder.id = id 4238 builder.idFlag = true 4239 return builder 4240 } 4241 4242 // 阶段中文名字 4243 // 4244 // 示例值:面试 4245 func (builder *ApplicationStageInfoBuilder) ZhName(zhName string) *ApplicationStageInfoBuilder { 4246 builder.zhName = zhName 4247 builder.zhNameFlag = true 4248 return builder 4249 } 4250 4251 // 英文名 4252 // 4253 // 示例值:Interview 4254 func (builder *ApplicationStageInfoBuilder) EnName(enName string) *ApplicationStageInfoBuilder { 4255 builder.enName = enName 4256 builder.enNameFlag = true 4257 return builder 4258 } 4259 4260 // 阶段类型 4261 // 4262 // 示例值:1 4263 func (builder *ApplicationStageInfoBuilder) Type(type_ int) *ApplicationStageInfoBuilder { 4264 builder.type_ = type_ 4265 builder.typeFlag = true 4266 return builder 4267 } 4268 4269 func (builder *ApplicationStageInfoBuilder) Build() *ApplicationStageInfo { 4270 req := &ApplicationStageInfo{} 4271 if builder.idFlag { 4272 req.Id = &builder.id 4273 4274 } 4275 if builder.zhNameFlag { 4276 req.ZhName = &builder.zhName 4277 4278 } 4279 if builder.enNameFlag { 4280 req.EnName = &builder.enName 4281 4282 } 4283 if builder.typeFlag { 4284 req.Type = &builder.type_ 4285 4286 } 4287 return req 4288 } 4289 4290 type ApplicationStageTime struct { 4291 StageId *string `json:"stage_id,omitempty"` // 阶段 ID 4292 EnterTime *string `json:"enter_time,omitempty"` // 最近一次进入该阶段的时间 4293 ExitTime *string `json:"exit_time,omitempty"` // 最后一次离开时间,如当前在该阶段,则为空 4294 } 4295 4296 type ApplicationStageTimeBuilder struct { 4297 stageId string // 阶段 ID 4298 stageIdFlag bool 4299 enterTime string // 最近一次进入该阶段的时间 4300 enterTimeFlag bool 4301 exitTime string // 最后一次离开时间,如当前在该阶段,则为空 4302 exitTimeFlag bool 4303 } 4304 4305 func NewApplicationStageTimeBuilder() *ApplicationStageTimeBuilder { 4306 builder := &ApplicationStageTimeBuilder{} 4307 return builder 4308 } 4309 4310 // 阶段 ID 4311 // 4312 // 示例值:614218419274131 4313 func (builder *ApplicationStageTimeBuilder) StageId(stageId string) *ApplicationStageTimeBuilder { 4314 builder.stageId = stageId 4315 builder.stageIdFlag = true 4316 return builder 4317 } 4318 4319 // 最近一次进入该阶段的时间 4320 // 4321 // 示例值:1632991542615 4322 func (builder *ApplicationStageTimeBuilder) EnterTime(enterTime string) *ApplicationStageTimeBuilder { 4323 builder.enterTime = enterTime 4324 builder.enterTimeFlag = true 4325 return builder 4326 } 4327 4328 // 最后一次离开时间,如当前在该阶段,则为空 4329 // 4330 // 示例值:1631509574398 4331 func (builder *ApplicationStageTimeBuilder) ExitTime(exitTime string) *ApplicationStageTimeBuilder { 4332 builder.exitTime = exitTime 4333 builder.exitTimeFlag = true 4334 return builder 4335 } 4336 4337 func (builder *ApplicationStageTimeBuilder) Build() *ApplicationStageTime { 4338 req := &ApplicationStageTime{} 4339 if builder.stageIdFlag { 4340 req.StageId = &builder.stageId 4341 4342 } 4343 if builder.enterTimeFlag { 4344 req.EnterTime = &builder.enterTime 4345 4346 } 4347 if builder.exitTimeFlag { 4348 req.ExitTime = &builder.exitTime 4349 4350 } 4351 return req 4352 } 4353 4354 type ApplicationTalent struct { 4355 Id *string `json:"id,omitempty"` // ID 4356 BasicInfo *ApplicationTalentBasicInfo `json:"basic_info,omitempty"` // 基础信息 4357 SelfEvaluation *string `json:"self_evaluation,omitempty"` // 自我评价 4358 EducationList []*AppliTalentEducationInfo `json:"education_list,omitempty"` // 教育经历 4359 CareerList []*ApplicationTalentCareerInfo `json:"career_list,omitempty"` // 工作经历 4360 ProjectList []*ApplicationTalentProjectInfo `json:"project_list,omitempty"` // 项目经历 4361 WorksList []*ApplicationTalentWorksInfo `json:"works_list,omitempty"` // 作品集 4362 AwardList []*ApplicationTalentAwardInfo `json:"award_list,omitempty"` // 获奖列表 4363 CompetitionList []*AppliTalentCompetitionInfo `json:"competition_list,omitempty"` // 竞赛列表 4364 CertificateList []*AppliTalentCertificateInfo `json:"certificate_list,omitempty"` // 证书列表 4365 LanguageList []*ApplicationTalentLanguageInfo `json:"language_list,omitempty"` // 语言列表 4366 SnsList []*ApplicationTalentSnsInfo `json:"sns_list,omitempty"` // SNS列表 4367 AttachmentResumeList []*AppliTalentAttachResumeInfo `json:"attachment_resume_list,omitempty"` // 附件简历列表 4368 } 4369 4370 type ApplicationTalentBuilder struct { 4371 id string // ID 4372 idFlag bool 4373 basicInfo *ApplicationTalentBasicInfo // 基础信息 4374 basicInfoFlag bool 4375 selfEvaluation string // 自我评价 4376 selfEvaluationFlag bool 4377 educationList []*AppliTalentEducationInfo // 教育经历 4378 educationListFlag bool 4379 careerList []*ApplicationTalentCareerInfo // 工作经历 4380 careerListFlag bool 4381 projectList []*ApplicationTalentProjectInfo // 项目经历 4382 projectListFlag bool 4383 worksList []*ApplicationTalentWorksInfo // 作品集 4384 worksListFlag bool 4385 awardList []*ApplicationTalentAwardInfo // 获奖列表 4386 awardListFlag bool 4387 competitionList []*AppliTalentCompetitionInfo // 竞赛列表 4388 competitionListFlag bool 4389 certificateList []*AppliTalentCertificateInfo // 证书列表 4390 certificateListFlag bool 4391 languageList []*ApplicationTalentLanguageInfo // 语言列表 4392 languageListFlag bool 4393 snsList []*ApplicationTalentSnsInfo // SNS列表 4394 snsListFlag bool 4395 attachmentResumeList []*AppliTalentAttachResumeInfo // 附件简历列表 4396 attachmentResumeListFlag bool 4397 } 4398 4399 func NewApplicationTalentBuilder() *ApplicationTalentBuilder { 4400 builder := &ApplicationTalentBuilder{} 4401 return builder 4402 } 4403 4404 // ID 4405 // 4406 // 示例值: 4407 func (builder *ApplicationTalentBuilder) Id(id string) *ApplicationTalentBuilder { 4408 builder.id = id 4409 builder.idFlag = true 4410 return builder 4411 } 4412 4413 // 基础信息 4414 // 4415 // 示例值: 4416 func (builder *ApplicationTalentBuilder) BasicInfo(basicInfo *ApplicationTalentBasicInfo) *ApplicationTalentBuilder { 4417 builder.basicInfo = basicInfo 4418 builder.basicInfoFlag = true 4419 return builder 4420 } 4421 4422 // 自我评价 4423 // 4424 // 示例值: 4425 func (builder *ApplicationTalentBuilder) SelfEvaluation(selfEvaluation string) *ApplicationTalentBuilder { 4426 builder.selfEvaluation = selfEvaluation 4427 builder.selfEvaluationFlag = true 4428 return builder 4429 } 4430 4431 // 教育经历 4432 // 4433 // 示例值: 4434 func (builder *ApplicationTalentBuilder) EducationList(educationList []*AppliTalentEducationInfo) *ApplicationTalentBuilder { 4435 builder.educationList = educationList 4436 builder.educationListFlag = true 4437 return builder 4438 } 4439 4440 // 工作经历 4441 // 4442 // 示例值: 4443 func (builder *ApplicationTalentBuilder) CareerList(careerList []*ApplicationTalentCareerInfo) *ApplicationTalentBuilder { 4444 builder.careerList = careerList 4445 builder.careerListFlag = true 4446 return builder 4447 } 4448 4449 // 项目经历 4450 // 4451 // 示例值: 4452 func (builder *ApplicationTalentBuilder) ProjectList(projectList []*ApplicationTalentProjectInfo) *ApplicationTalentBuilder { 4453 builder.projectList = projectList 4454 builder.projectListFlag = true 4455 return builder 4456 } 4457 4458 // 作品集 4459 // 4460 // 示例值: 4461 func (builder *ApplicationTalentBuilder) WorksList(worksList []*ApplicationTalentWorksInfo) *ApplicationTalentBuilder { 4462 builder.worksList = worksList 4463 builder.worksListFlag = true 4464 return builder 4465 } 4466 4467 // 获奖列表 4468 // 4469 // 示例值: 4470 func (builder *ApplicationTalentBuilder) AwardList(awardList []*ApplicationTalentAwardInfo) *ApplicationTalentBuilder { 4471 builder.awardList = awardList 4472 builder.awardListFlag = true 4473 return builder 4474 } 4475 4476 // 竞赛列表 4477 // 4478 // 示例值: 4479 func (builder *ApplicationTalentBuilder) CompetitionList(competitionList []*AppliTalentCompetitionInfo) *ApplicationTalentBuilder { 4480 builder.competitionList = competitionList 4481 builder.competitionListFlag = true 4482 return builder 4483 } 4484 4485 // 证书列表 4486 // 4487 // 示例值: 4488 func (builder *ApplicationTalentBuilder) CertificateList(certificateList []*AppliTalentCertificateInfo) *ApplicationTalentBuilder { 4489 builder.certificateList = certificateList 4490 builder.certificateListFlag = true 4491 return builder 4492 } 4493 4494 // 语言列表 4495 // 4496 // 示例值: 4497 func (builder *ApplicationTalentBuilder) LanguageList(languageList []*ApplicationTalentLanguageInfo) *ApplicationTalentBuilder { 4498 builder.languageList = languageList 4499 builder.languageListFlag = true 4500 return builder 4501 } 4502 4503 // SNS列表 4504 // 4505 // 示例值: 4506 func (builder *ApplicationTalentBuilder) SnsList(snsList []*ApplicationTalentSnsInfo) *ApplicationTalentBuilder { 4507 builder.snsList = snsList 4508 builder.snsListFlag = true 4509 return builder 4510 } 4511 4512 // 附件简历列表 4513 // 4514 // 示例值: 4515 func (builder *ApplicationTalentBuilder) AttachmentResumeList(attachmentResumeList []*AppliTalentAttachResumeInfo) *ApplicationTalentBuilder { 4516 builder.attachmentResumeList = attachmentResumeList 4517 builder.attachmentResumeListFlag = true 4518 return builder 4519 } 4520 4521 func (builder *ApplicationTalentBuilder) Build() *ApplicationTalent { 4522 req := &ApplicationTalent{} 4523 if builder.idFlag { 4524 req.Id = &builder.id 4525 4526 } 4527 if builder.basicInfoFlag { 4528 req.BasicInfo = builder.basicInfo 4529 } 4530 if builder.selfEvaluationFlag { 4531 req.SelfEvaluation = &builder.selfEvaluation 4532 4533 } 4534 if builder.educationListFlag { 4535 req.EducationList = builder.educationList 4536 } 4537 if builder.careerListFlag { 4538 req.CareerList = builder.careerList 4539 } 4540 if builder.projectListFlag { 4541 req.ProjectList = builder.projectList 4542 } 4543 if builder.worksListFlag { 4544 req.WorksList = builder.worksList 4545 } 4546 if builder.awardListFlag { 4547 req.AwardList = builder.awardList 4548 } 4549 if builder.competitionListFlag { 4550 req.CompetitionList = builder.competitionList 4551 } 4552 if builder.certificateListFlag { 4553 req.CertificateList = builder.certificateList 4554 } 4555 if builder.languageListFlag { 4556 req.LanguageList = builder.languageList 4557 } 4558 if builder.snsListFlag { 4559 req.SnsList = builder.snsList 4560 } 4561 if builder.attachmentResumeListFlag { 4562 req.AttachmentResumeList = builder.attachmentResumeList 4563 } 4564 return req 4565 } 4566 4567 type ApplicationTalentAttachmentResumeInfo struct { 4568 Id *string `json:"id,omitempty"` // ID 4569 Name *string `json:"name,omitempty"` // 名字 4570 } 4571 4572 type ApplicationTalentAttachmentResumeInfoBuilder struct { 4573 id string // ID 4574 idFlag bool 4575 name string // 名字 4576 nameFlag bool 4577 } 4578 4579 func NewApplicationTalentAttachmentResumeInfoBuilder() *ApplicationTalentAttachmentResumeInfoBuilder { 4580 builder := &ApplicationTalentAttachmentResumeInfoBuilder{} 4581 return builder 4582 } 4583 4584 // ID 4585 // 4586 // 示例值: 4587 func (builder *ApplicationTalentAttachmentResumeInfoBuilder) Id(id string) *ApplicationTalentAttachmentResumeInfoBuilder { 4588 builder.id = id 4589 builder.idFlag = true 4590 return builder 4591 } 4592 4593 // 名字 4594 // 4595 // 示例值: 4596 func (builder *ApplicationTalentAttachmentResumeInfoBuilder) Name(name string) *ApplicationTalentAttachmentResumeInfoBuilder { 4597 builder.name = name 4598 builder.nameFlag = true 4599 return builder 4600 } 4601 4602 func (builder *ApplicationTalentAttachmentResumeInfoBuilder) Build() *ApplicationTalentAttachmentResumeInfo { 4603 req := &ApplicationTalentAttachmentResumeInfo{} 4604 if builder.idFlag { 4605 req.Id = &builder.id 4606 4607 } 4608 if builder.nameFlag { 4609 req.Name = &builder.name 4610 4611 } 4612 return req 4613 } 4614 4615 type ApplicationTalentAwardInfo struct { 4616 Id *string `json:"id,omitempty"` // ID 4617 Title *string `json:"title,omitempty"` // 名称 4618 AwardTime *int `json:"award_time,omitempty"` // 获奖时间 4619 Desc *string `json:"desc,omitempty"` // 描述 4620 } 4621 4622 type ApplicationTalentAwardInfoBuilder struct { 4623 id string // ID 4624 idFlag bool 4625 title string // 名称 4626 titleFlag bool 4627 awardTime int // 获奖时间 4628 awardTimeFlag bool 4629 desc string // 描述 4630 descFlag bool 4631 } 4632 4633 func NewApplicationTalentAwardInfoBuilder() *ApplicationTalentAwardInfoBuilder { 4634 builder := &ApplicationTalentAwardInfoBuilder{} 4635 return builder 4636 } 4637 4638 // ID 4639 // 4640 // 示例值: 4641 func (builder *ApplicationTalentAwardInfoBuilder) Id(id string) *ApplicationTalentAwardInfoBuilder { 4642 builder.id = id 4643 builder.idFlag = true 4644 return builder 4645 } 4646 4647 // 名称 4648 // 4649 // 示例值: 4650 func (builder *ApplicationTalentAwardInfoBuilder) Title(title string) *ApplicationTalentAwardInfoBuilder { 4651 builder.title = title 4652 builder.titleFlag = true 4653 return builder 4654 } 4655 4656 // 获奖时间 4657 // 4658 // 示例值: 4659 func (builder *ApplicationTalentAwardInfoBuilder) AwardTime(awardTime int) *ApplicationTalentAwardInfoBuilder { 4660 builder.awardTime = awardTime 4661 builder.awardTimeFlag = true 4662 return builder 4663 } 4664 4665 // 描述 4666 // 4667 // 示例值: 4668 func (builder *ApplicationTalentAwardInfoBuilder) Desc(desc string) *ApplicationTalentAwardInfoBuilder { 4669 builder.desc = desc 4670 builder.descFlag = true 4671 return builder 4672 } 4673 4674 func (builder *ApplicationTalentAwardInfoBuilder) Build() *ApplicationTalentAwardInfo { 4675 req := &ApplicationTalentAwardInfo{} 4676 if builder.idFlag { 4677 req.Id = &builder.id 4678 4679 } 4680 if builder.titleFlag { 4681 req.Title = &builder.title 4682 4683 } 4684 if builder.awardTimeFlag { 4685 req.AwardTime = &builder.awardTime 4686 4687 } 4688 if builder.descFlag { 4689 req.Desc = &builder.desc 4690 4691 } 4692 return req 4693 } 4694 4695 type ApplicationTalentBasicInfo struct { 4696 Name *string `json:"name,omitempty"` // 名字 4697 Mobile *string `json:"mobile,omitempty"` // 手机 4698 MobileCountryCode *string `json:"mobile_country_code,omitempty"` // 手机国家代码 4699 Email *string `json:"email,omitempty"` // 邮箱 4700 ExperienceYears *int `json:"experience_years,omitempty"` // 工作年限 4701 Age *int `json:"age,omitempty"` // 年龄 4702 Nationality *Nationality `json:"nationality,omitempty"` // 国籍 4703 Gender *int `json:"gender,omitempty"` // 性别 4704 CurrentCity *City `json:"current_city,omitempty"` // 现居住城市 4705 HometownCity *City `json:"hometown_city,omitempty"` // 家乡所在城市 4706 PreferredCityList []*City `json:"preferred_city_list,omitempty"` // 首选城市 4707 MobileCode *string `json:"mobile_code,omitempty"` // 手机国家代码 4708 IdentificationType *int `json:"identification_type,omitempty"` // 证件类型 4709 IdentificationNumber *string `json:"identification_number,omitempty"` // 证件号码 4710 } 4711 4712 type ApplicationTalentBasicInfoBuilder struct { 4713 name string // 名字 4714 nameFlag bool 4715 mobile string // 手机 4716 mobileFlag bool 4717 mobileCountryCode string // 手机国家代码 4718 mobileCountryCodeFlag bool 4719 email string // 邮箱 4720 emailFlag bool 4721 experienceYears int // 工作年限 4722 experienceYearsFlag bool 4723 age int // 年龄 4724 ageFlag bool 4725 nationality *Nationality // 国籍 4726 nationalityFlag bool 4727 gender int // 性别 4728 genderFlag bool 4729 currentCity *City // 现居住城市 4730 currentCityFlag bool 4731 hometownCity *City // 家乡所在城市 4732 hometownCityFlag bool 4733 preferredCityList []*City // 首选城市 4734 preferredCityListFlag bool 4735 mobileCode string // 手机国家代码 4736 mobileCodeFlag bool 4737 identificationType int // 证件类型 4738 identificationTypeFlag bool 4739 identificationNumber string // 证件号码 4740 identificationNumberFlag bool 4741 } 4742 4743 func NewApplicationTalentBasicInfoBuilder() *ApplicationTalentBasicInfoBuilder { 4744 builder := &ApplicationTalentBasicInfoBuilder{} 4745 return builder 4746 } 4747 4748 // 名字 4749 // 4750 // 示例值: 4751 func (builder *ApplicationTalentBasicInfoBuilder) Name(name string) *ApplicationTalentBasicInfoBuilder { 4752 builder.name = name 4753 builder.nameFlag = true 4754 return builder 4755 } 4756 4757 // 手机 4758 // 4759 // 示例值: 4760 func (builder *ApplicationTalentBasicInfoBuilder) Mobile(mobile string) *ApplicationTalentBasicInfoBuilder { 4761 builder.mobile = mobile 4762 builder.mobileFlag = true 4763 return builder 4764 } 4765 4766 // 手机国家代码 4767 // 4768 // 示例值: 4769 func (builder *ApplicationTalentBasicInfoBuilder) MobileCountryCode(mobileCountryCode string) *ApplicationTalentBasicInfoBuilder { 4770 builder.mobileCountryCode = mobileCountryCode 4771 builder.mobileCountryCodeFlag = true 4772 return builder 4773 } 4774 4775 // 邮箱 4776 // 4777 // 示例值: 4778 func (builder *ApplicationTalentBasicInfoBuilder) Email(email string) *ApplicationTalentBasicInfoBuilder { 4779 builder.email = email 4780 builder.emailFlag = true 4781 return builder 4782 } 4783 4784 // 工作年限 4785 // 4786 // 示例值: 4787 func (builder *ApplicationTalentBasicInfoBuilder) ExperienceYears(experienceYears int) *ApplicationTalentBasicInfoBuilder { 4788 builder.experienceYears = experienceYears 4789 builder.experienceYearsFlag = true 4790 return builder 4791 } 4792 4793 // 年龄 4794 // 4795 // 示例值: 4796 func (builder *ApplicationTalentBasicInfoBuilder) Age(age int) *ApplicationTalentBasicInfoBuilder { 4797 builder.age = age 4798 builder.ageFlag = true 4799 return builder 4800 } 4801 4802 // 国籍 4803 // 4804 // 示例值: 4805 func (builder *ApplicationTalentBasicInfoBuilder) Nationality(nationality *Nationality) *ApplicationTalentBasicInfoBuilder { 4806 builder.nationality = nationality 4807 builder.nationalityFlag = true 4808 return builder 4809 } 4810 4811 // 性别 4812 // 4813 // 示例值: 4814 func (builder *ApplicationTalentBasicInfoBuilder) Gender(gender int) *ApplicationTalentBasicInfoBuilder { 4815 builder.gender = gender 4816 builder.genderFlag = true 4817 return builder 4818 } 4819 4820 // 现居住城市 4821 // 4822 // 示例值: 4823 func (builder *ApplicationTalentBasicInfoBuilder) CurrentCity(currentCity *City) *ApplicationTalentBasicInfoBuilder { 4824 builder.currentCity = currentCity 4825 builder.currentCityFlag = true 4826 return builder 4827 } 4828 4829 // 家乡所在城市 4830 // 4831 // 示例值: 4832 func (builder *ApplicationTalentBasicInfoBuilder) HometownCity(hometownCity *City) *ApplicationTalentBasicInfoBuilder { 4833 builder.hometownCity = hometownCity 4834 builder.hometownCityFlag = true 4835 return builder 4836 } 4837 4838 // 首选城市 4839 // 4840 // 示例值: 4841 func (builder *ApplicationTalentBasicInfoBuilder) PreferredCityList(preferredCityList []*City) *ApplicationTalentBasicInfoBuilder { 4842 builder.preferredCityList = preferredCityList 4843 builder.preferredCityListFlag = true 4844 return builder 4845 } 4846 4847 // 手机国家代码 4848 // 4849 // 示例值: 4850 func (builder *ApplicationTalentBasicInfoBuilder) MobileCode(mobileCode string) *ApplicationTalentBasicInfoBuilder { 4851 builder.mobileCode = mobileCode 4852 builder.mobileCodeFlag = true 4853 return builder 4854 } 4855 4856 // 证件类型 4857 // 4858 // 示例值: 4859 func (builder *ApplicationTalentBasicInfoBuilder) IdentificationType(identificationType int) *ApplicationTalentBasicInfoBuilder { 4860 builder.identificationType = identificationType 4861 builder.identificationTypeFlag = true 4862 return builder 4863 } 4864 4865 // 证件号码 4866 // 4867 // 示例值: 4868 func (builder *ApplicationTalentBasicInfoBuilder) IdentificationNumber(identificationNumber string) *ApplicationTalentBasicInfoBuilder { 4869 builder.identificationNumber = identificationNumber 4870 builder.identificationNumberFlag = true 4871 return builder 4872 } 4873 4874 func (builder *ApplicationTalentBasicInfoBuilder) Build() *ApplicationTalentBasicInfo { 4875 req := &ApplicationTalentBasicInfo{} 4876 if builder.nameFlag { 4877 req.Name = &builder.name 4878 4879 } 4880 if builder.mobileFlag { 4881 req.Mobile = &builder.mobile 4882 4883 } 4884 if builder.mobileCountryCodeFlag { 4885 req.MobileCountryCode = &builder.mobileCountryCode 4886 4887 } 4888 if builder.emailFlag { 4889 req.Email = &builder.email 4890 4891 } 4892 if builder.experienceYearsFlag { 4893 req.ExperienceYears = &builder.experienceYears 4894 4895 } 4896 if builder.ageFlag { 4897 req.Age = &builder.age 4898 4899 } 4900 if builder.nationalityFlag { 4901 req.Nationality = builder.nationality 4902 } 4903 if builder.genderFlag { 4904 req.Gender = &builder.gender 4905 4906 } 4907 if builder.currentCityFlag { 4908 req.CurrentCity = builder.currentCity 4909 } 4910 if builder.hometownCityFlag { 4911 req.HometownCity = builder.hometownCity 4912 } 4913 if builder.preferredCityListFlag { 4914 req.PreferredCityList = builder.preferredCityList 4915 } 4916 if builder.mobileCodeFlag { 4917 req.MobileCode = &builder.mobileCode 4918 4919 } 4920 if builder.identificationTypeFlag { 4921 req.IdentificationType = &builder.identificationType 4922 4923 } 4924 if builder.identificationNumberFlag { 4925 req.IdentificationNumber = &builder.identificationNumber 4926 4927 } 4928 return req 4929 } 4930 4931 type ApplicationTalentCareerInfo struct { 4932 Id *string `json:"id,omitempty"` // ID 4933 Company *string `json:"company,omitempty"` // 公司 4934 Title *string `json:"title,omitempty"` // 职称 4935 Desc *string `json:"desc,omitempty"` // 描述 4936 StartTime *string `json:"start_time,omitempty"` // 开始时间 4937 EndTime *string `json:"end_time,omitempty"` // 结束时间 4938 TagList []int `json:"tag_list,omitempty"` // 标签列表 4939 } 4940 4941 type ApplicationTalentCareerInfoBuilder struct { 4942 id string // ID 4943 idFlag bool 4944 company string // 公司 4945 companyFlag bool 4946 title string // 职称 4947 titleFlag bool 4948 desc string // 描述 4949 descFlag bool 4950 startTime string // 开始时间 4951 startTimeFlag bool 4952 endTime string // 结束时间 4953 endTimeFlag bool 4954 tagList []int // 标签列表 4955 tagListFlag bool 4956 } 4957 4958 func NewApplicationTalentCareerInfoBuilder() *ApplicationTalentCareerInfoBuilder { 4959 builder := &ApplicationTalentCareerInfoBuilder{} 4960 return builder 4961 } 4962 4963 // ID 4964 // 4965 // 示例值: 4966 func (builder *ApplicationTalentCareerInfoBuilder) Id(id string) *ApplicationTalentCareerInfoBuilder { 4967 builder.id = id 4968 builder.idFlag = true 4969 return builder 4970 } 4971 4972 // 公司 4973 // 4974 // 示例值: 4975 func (builder *ApplicationTalentCareerInfoBuilder) Company(company string) *ApplicationTalentCareerInfoBuilder { 4976 builder.company = company 4977 builder.companyFlag = true 4978 return builder 4979 } 4980 4981 // 职称 4982 // 4983 // 示例值: 4984 func (builder *ApplicationTalentCareerInfoBuilder) Title(title string) *ApplicationTalentCareerInfoBuilder { 4985 builder.title = title 4986 builder.titleFlag = true 4987 return builder 4988 } 4989 4990 // 描述 4991 // 4992 // 示例值: 4993 func (builder *ApplicationTalentCareerInfoBuilder) Desc(desc string) *ApplicationTalentCareerInfoBuilder { 4994 builder.desc = desc 4995 builder.descFlag = true 4996 return builder 4997 } 4998 4999 // 开始时间 5000 // 5001 // 示例值: 5002 func (builder *ApplicationTalentCareerInfoBuilder) StartTime(startTime string) *ApplicationTalentCareerInfoBuilder { 5003 builder.startTime = startTime 5004 builder.startTimeFlag = true 5005 return builder 5006 } 5007 5008 // 结束时间 5009 // 5010 // 示例值: 5011 func (builder *ApplicationTalentCareerInfoBuilder) EndTime(endTime string) *ApplicationTalentCareerInfoBuilder { 5012 builder.endTime = endTime 5013 builder.endTimeFlag = true 5014 return builder 5015 } 5016 5017 // 标签列表 5018 // 5019 // 示例值: 5020 func (builder *ApplicationTalentCareerInfoBuilder) TagList(tagList []int) *ApplicationTalentCareerInfoBuilder { 5021 builder.tagList = tagList 5022 builder.tagListFlag = true 5023 return builder 5024 } 5025 5026 func (builder *ApplicationTalentCareerInfoBuilder) Build() *ApplicationTalentCareerInfo { 5027 req := &ApplicationTalentCareerInfo{} 5028 if builder.idFlag { 5029 req.Id = &builder.id 5030 5031 } 5032 if builder.companyFlag { 5033 req.Company = &builder.company 5034 5035 } 5036 if builder.titleFlag { 5037 req.Title = &builder.title 5038 5039 } 5040 if builder.descFlag { 5041 req.Desc = &builder.desc 5042 5043 } 5044 if builder.startTimeFlag { 5045 req.StartTime = &builder.startTime 5046 5047 } 5048 if builder.endTimeFlag { 5049 req.EndTime = &builder.endTime 5050 5051 } 5052 if builder.tagListFlag { 5053 req.TagList = builder.tagList 5054 } 5055 return req 5056 } 5057 5058 type ApplicationTalentCertificateInfo struct { 5059 Id *string `json:"id,omitempty"` // ID 5060 Name *string `json:"name,omitempty"` // 证件名称 5061 Desc *string `json:"desc,omitempty"` // 证件描述 5062 } 5063 5064 type ApplicationTalentCertificateInfoBuilder struct { 5065 id string // ID 5066 idFlag bool 5067 name string // 证件名称 5068 nameFlag bool 5069 desc string // 证件描述 5070 descFlag bool 5071 } 5072 5073 func NewApplicationTalentCertificateInfoBuilder() *ApplicationTalentCertificateInfoBuilder { 5074 builder := &ApplicationTalentCertificateInfoBuilder{} 5075 return builder 5076 } 5077 5078 // ID 5079 // 5080 // 示例值: 5081 func (builder *ApplicationTalentCertificateInfoBuilder) Id(id string) *ApplicationTalentCertificateInfoBuilder { 5082 builder.id = id 5083 builder.idFlag = true 5084 return builder 5085 } 5086 5087 // 证件名称 5088 // 5089 // 示例值: 5090 func (builder *ApplicationTalentCertificateInfoBuilder) Name(name string) *ApplicationTalentCertificateInfoBuilder { 5091 builder.name = name 5092 builder.nameFlag = true 5093 return builder 5094 } 5095 5096 // 证件描述 5097 // 5098 // 示例值: 5099 func (builder *ApplicationTalentCertificateInfoBuilder) Desc(desc string) *ApplicationTalentCertificateInfoBuilder { 5100 builder.desc = desc 5101 builder.descFlag = true 5102 return builder 5103 } 5104 5105 func (builder *ApplicationTalentCertificateInfoBuilder) Build() *ApplicationTalentCertificateInfo { 5106 req := &ApplicationTalentCertificateInfo{} 5107 if builder.idFlag { 5108 req.Id = &builder.id 5109 5110 } 5111 if builder.nameFlag { 5112 req.Name = &builder.name 5113 5114 } 5115 if builder.descFlag { 5116 req.Desc = &builder.desc 5117 5118 } 5119 return req 5120 } 5121 5122 type ApplicationTalentCompetitionInfo struct { 5123 Id *string `json:"id,omitempty"` // ID 5124 Name *string `json:"name,omitempty"` // 竞赛名称 5125 Desc *string `json:"desc,omitempty"` // 竞赛描述 5126 } 5127 5128 type ApplicationTalentCompetitionInfoBuilder struct { 5129 id string // ID 5130 idFlag bool 5131 name string // 竞赛名称 5132 nameFlag bool 5133 desc string // 竞赛描述 5134 descFlag bool 5135 } 5136 5137 func NewApplicationTalentCompetitionInfoBuilder() *ApplicationTalentCompetitionInfoBuilder { 5138 builder := &ApplicationTalentCompetitionInfoBuilder{} 5139 return builder 5140 } 5141 5142 // ID 5143 // 5144 // 示例值: 5145 func (builder *ApplicationTalentCompetitionInfoBuilder) Id(id string) *ApplicationTalentCompetitionInfoBuilder { 5146 builder.id = id 5147 builder.idFlag = true 5148 return builder 5149 } 5150 5151 // 竞赛名称 5152 // 5153 // 示例值: 5154 func (builder *ApplicationTalentCompetitionInfoBuilder) Name(name string) *ApplicationTalentCompetitionInfoBuilder { 5155 builder.name = name 5156 builder.nameFlag = true 5157 return builder 5158 } 5159 5160 // 竞赛描述 5161 // 5162 // 示例值: 5163 func (builder *ApplicationTalentCompetitionInfoBuilder) Desc(desc string) *ApplicationTalentCompetitionInfoBuilder { 5164 builder.desc = desc 5165 builder.descFlag = true 5166 return builder 5167 } 5168 5169 func (builder *ApplicationTalentCompetitionInfoBuilder) Build() *ApplicationTalentCompetitionInfo { 5170 req := &ApplicationTalentCompetitionInfo{} 5171 if builder.idFlag { 5172 req.Id = &builder.id 5173 5174 } 5175 if builder.nameFlag { 5176 req.Name = &builder.name 5177 5178 } 5179 if builder.descFlag { 5180 req.Desc = &builder.desc 5181 5182 } 5183 return req 5184 } 5185 5186 type ApplicationTalentEducationInfo struct { 5187 Id *string `json:"id,omitempty"` // ID 5188 Degree *int `json:"degree,omitempty"` // 学历 5189 School *string `json:"school,omitempty"` // 学校 5190 FieldOfStudy *string `json:"field_of_study,omitempty"` // 专业 5191 StartTime *string `json:"start_time,omitempty"` // 开始时间 5192 EndTime *string `json:"end_time,omitempty"` // 结束时间 5193 EducationType *int `json:"education_type,omitempty"` // 学历类型 5194 AcademicRanking *int `json:"academic_ranking,omitempty"` // 排名 5195 TagList []int `json:"tag_list,omitempty"` // 标签列表 5196 } 5197 5198 type ApplicationTalentEducationInfoBuilder struct { 5199 id string // ID 5200 idFlag bool 5201 degree int // 学历 5202 degreeFlag bool 5203 school string // 学校 5204 schoolFlag bool 5205 fieldOfStudy string // 专业 5206 fieldOfStudyFlag bool 5207 startTime string // 开始时间 5208 startTimeFlag bool 5209 endTime string // 结束时间 5210 endTimeFlag bool 5211 educationType int // 学历类型 5212 educationTypeFlag bool 5213 academicRanking int // 排名 5214 academicRankingFlag bool 5215 tagList []int // 标签列表 5216 tagListFlag bool 5217 } 5218 5219 func NewApplicationTalentEducationInfoBuilder() *ApplicationTalentEducationInfoBuilder { 5220 builder := &ApplicationTalentEducationInfoBuilder{} 5221 return builder 5222 } 5223 5224 // ID 5225 // 5226 // 示例值: 5227 func (builder *ApplicationTalentEducationInfoBuilder) Id(id string) *ApplicationTalentEducationInfoBuilder { 5228 builder.id = id 5229 builder.idFlag = true 5230 return builder 5231 } 5232 5233 // 学历 5234 // 5235 // 示例值: 5236 func (builder *ApplicationTalentEducationInfoBuilder) Degree(degree int) *ApplicationTalentEducationInfoBuilder { 5237 builder.degree = degree 5238 builder.degreeFlag = true 5239 return builder 5240 } 5241 5242 // 学校 5243 // 5244 // 示例值: 5245 func (builder *ApplicationTalentEducationInfoBuilder) School(school string) *ApplicationTalentEducationInfoBuilder { 5246 builder.school = school 5247 builder.schoolFlag = true 5248 return builder 5249 } 5250 5251 // 专业 5252 // 5253 // 示例值: 5254 func (builder *ApplicationTalentEducationInfoBuilder) FieldOfStudy(fieldOfStudy string) *ApplicationTalentEducationInfoBuilder { 5255 builder.fieldOfStudy = fieldOfStudy 5256 builder.fieldOfStudyFlag = true 5257 return builder 5258 } 5259 5260 // 开始时间 5261 // 5262 // 示例值: 5263 func (builder *ApplicationTalentEducationInfoBuilder) StartTime(startTime string) *ApplicationTalentEducationInfoBuilder { 5264 builder.startTime = startTime 5265 builder.startTimeFlag = true 5266 return builder 5267 } 5268 5269 // 结束时间 5270 // 5271 // 示例值: 5272 func (builder *ApplicationTalentEducationInfoBuilder) EndTime(endTime string) *ApplicationTalentEducationInfoBuilder { 5273 builder.endTime = endTime 5274 builder.endTimeFlag = true 5275 return builder 5276 } 5277 5278 // 学历类型 5279 // 5280 // 示例值: 5281 func (builder *ApplicationTalentEducationInfoBuilder) EducationType(educationType int) *ApplicationTalentEducationInfoBuilder { 5282 builder.educationType = educationType 5283 builder.educationTypeFlag = true 5284 return builder 5285 } 5286 5287 // 排名 5288 // 5289 // 示例值: 5290 func (builder *ApplicationTalentEducationInfoBuilder) AcademicRanking(academicRanking int) *ApplicationTalentEducationInfoBuilder { 5291 builder.academicRanking = academicRanking 5292 builder.academicRankingFlag = true 5293 return builder 5294 } 5295 5296 // 标签列表 5297 // 5298 // 示例值: 5299 func (builder *ApplicationTalentEducationInfoBuilder) TagList(tagList []int) *ApplicationTalentEducationInfoBuilder { 5300 builder.tagList = tagList 5301 builder.tagListFlag = true 5302 return builder 5303 } 5304 5305 func (builder *ApplicationTalentEducationInfoBuilder) Build() *ApplicationTalentEducationInfo { 5306 req := &ApplicationTalentEducationInfo{} 5307 if builder.idFlag { 5308 req.Id = &builder.id 5309 5310 } 5311 if builder.degreeFlag { 5312 req.Degree = &builder.degree 5313 5314 } 5315 if builder.schoolFlag { 5316 req.School = &builder.school 5317 5318 } 5319 if builder.fieldOfStudyFlag { 5320 req.FieldOfStudy = &builder.fieldOfStudy 5321 5322 } 5323 if builder.startTimeFlag { 5324 req.StartTime = &builder.startTime 5325 5326 } 5327 if builder.endTimeFlag { 5328 req.EndTime = &builder.endTime 5329 5330 } 5331 if builder.educationTypeFlag { 5332 req.EducationType = &builder.educationType 5333 5334 } 5335 if builder.academicRankingFlag { 5336 req.AcademicRanking = &builder.academicRanking 5337 5338 } 5339 if builder.tagListFlag { 5340 req.TagList = builder.tagList 5341 } 5342 return req 5343 } 5344 5345 type ApplicationTalentLanguageInfo struct { 5346 Id *string `json:"id,omitempty"` // ID 5347 Language *int `json:"language,omitempty"` // 语言 5348 Proficiency *int `json:"proficiency,omitempty"` // 熟练程度 5349 } 5350 5351 type ApplicationTalentLanguageInfoBuilder struct { 5352 id string // ID 5353 idFlag bool 5354 language int // 语言 5355 languageFlag bool 5356 proficiency int // 熟练程度 5357 proficiencyFlag bool 5358 } 5359 5360 func NewApplicationTalentLanguageInfoBuilder() *ApplicationTalentLanguageInfoBuilder { 5361 builder := &ApplicationTalentLanguageInfoBuilder{} 5362 return builder 5363 } 5364 5365 // ID 5366 // 5367 // 示例值: 5368 func (builder *ApplicationTalentLanguageInfoBuilder) Id(id string) *ApplicationTalentLanguageInfoBuilder { 5369 builder.id = id 5370 builder.idFlag = true 5371 return builder 5372 } 5373 5374 // 语言 5375 // 5376 // 示例值: 5377 func (builder *ApplicationTalentLanguageInfoBuilder) Language(language int) *ApplicationTalentLanguageInfoBuilder { 5378 builder.language = language 5379 builder.languageFlag = true 5380 return builder 5381 } 5382 5383 // 熟练程度 5384 // 5385 // 示例值: 5386 func (builder *ApplicationTalentLanguageInfoBuilder) Proficiency(proficiency int) *ApplicationTalentLanguageInfoBuilder { 5387 builder.proficiency = proficiency 5388 builder.proficiencyFlag = true 5389 return builder 5390 } 5391 5392 func (builder *ApplicationTalentLanguageInfoBuilder) Build() *ApplicationTalentLanguageInfo { 5393 req := &ApplicationTalentLanguageInfo{} 5394 if builder.idFlag { 5395 req.Id = &builder.id 5396 5397 } 5398 if builder.languageFlag { 5399 req.Language = &builder.language 5400 5401 } 5402 if builder.proficiencyFlag { 5403 req.Proficiency = &builder.proficiency 5404 5405 } 5406 return req 5407 } 5408 5409 type ApplicationTalentProjectInfo struct { 5410 Id *string `json:"id,omitempty"` // ID 5411 Name *string `json:"name,omitempty"` // 名字 5412 Role *string `json:"role,omitempty"` // 角色 5413 Link *string `json:"link,omitempty"` // 链接 5414 Desc *string `json:"desc,omitempty"` // 描述 5415 StartTime *int `json:"start_time,omitempty"` // 开始时间 5416 EndTime *int `json:"end_time,omitempty"` // 结束时间 5417 } 5418 5419 type ApplicationTalentProjectInfoBuilder struct { 5420 id string // ID 5421 idFlag bool 5422 name string // 名字 5423 nameFlag bool 5424 role string // 角色 5425 roleFlag bool 5426 link string // 链接 5427 linkFlag bool 5428 desc string // 描述 5429 descFlag bool 5430 startTime int // 开始时间 5431 startTimeFlag bool 5432 endTime int // 结束时间 5433 endTimeFlag bool 5434 } 5435 5436 func NewApplicationTalentProjectInfoBuilder() *ApplicationTalentProjectInfoBuilder { 5437 builder := &ApplicationTalentProjectInfoBuilder{} 5438 return builder 5439 } 5440 5441 // ID 5442 // 5443 // 示例值: 5444 func (builder *ApplicationTalentProjectInfoBuilder) Id(id string) *ApplicationTalentProjectInfoBuilder { 5445 builder.id = id 5446 builder.idFlag = true 5447 return builder 5448 } 5449 5450 // 名字 5451 // 5452 // 示例值: 5453 func (builder *ApplicationTalentProjectInfoBuilder) Name(name string) *ApplicationTalentProjectInfoBuilder { 5454 builder.name = name 5455 builder.nameFlag = true 5456 return builder 5457 } 5458 5459 // 角色 5460 // 5461 // 示例值: 5462 func (builder *ApplicationTalentProjectInfoBuilder) Role(role string) *ApplicationTalentProjectInfoBuilder { 5463 builder.role = role 5464 builder.roleFlag = true 5465 return builder 5466 } 5467 5468 // 链接 5469 // 5470 // 示例值: 5471 func (builder *ApplicationTalentProjectInfoBuilder) Link(link string) *ApplicationTalentProjectInfoBuilder { 5472 builder.link = link 5473 builder.linkFlag = true 5474 return builder 5475 } 5476 5477 // 描述 5478 // 5479 // 示例值: 5480 func (builder *ApplicationTalentProjectInfoBuilder) Desc(desc string) *ApplicationTalentProjectInfoBuilder { 5481 builder.desc = desc 5482 builder.descFlag = true 5483 return builder 5484 } 5485 5486 // 开始时间 5487 // 5488 // 示例值: 5489 func (builder *ApplicationTalentProjectInfoBuilder) StartTime(startTime int) *ApplicationTalentProjectInfoBuilder { 5490 builder.startTime = startTime 5491 builder.startTimeFlag = true 5492 return builder 5493 } 5494 5495 // 结束时间 5496 // 5497 // 示例值: 5498 func (builder *ApplicationTalentProjectInfoBuilder) EndTime(endTime int) *ApplicationTalentProjectInfoBuilder { 5499 builder.endTime = endTime 5500 builder.endTimeFlag = true 5501 return builder 5502 } 5503 5504 func (builder *ApplicationTalentProjectInfoBuilder) Build() *ApplicationTalentProjectInfo { 5505 req := &ApplicationTalentProjectInfo{} 5506 if builder.idFlag { 5507 req.Id = &builder.id 5508 5509 } 5510 if builder.nameFlag { 5511 req.Name = &builder.name 5512 5513 } 5514 if builder.roleFlag { 5515 req.Role = &builder.role 5516 5517 } 5518 if builder.linkFlag { 5519 req.Link = &builder.link 5520 5521 } 5522 if builder.descFlag { 5523 req.Desc = &builder.desc 5524 5525 } 5526 if builder.startTimeFlag { 5527 req.StartTime = &builder.startTime 5528 5529 } 5530 if builder.endTimeFlag { 5531 req.EndTime = &builder.endTime 5532 5533 } 5534 return req 5535 } 5536 5537 type ApplicationTalentSnsInfo struct { 5538 Id *string `json:"id,omitempty"` // ID 5539 SnsType *int `json:"sns_type,omitempty"` // SNS类型 5540 Link *string `json:"link,omitempty"` // SNS链接 5541 } 5542 5543 type ApplicationTalentSnsInfoBuilder struct { 5544 id string // ID 5545 idFlag bool 5546 snsType int // SNS类型 5547 snsTypeFlag bool 5548 link string // SNS链接 5549 linkFlag bool 5550 } 5551 5552 func NewApplicationTalentSnsInfoBuilder() *ApplicationTalentSnsInfoBuilder { 5553 builder := &ApplicationTalentSnsInfoBuilder{} 5554 return builder 5555 } 5556 5557 // ID 5558 // 5559 // 示例值: 5560 func (builder *ApplicationTalentSnsInfoBuilder) Id(id string) *ApplicationTalentSnsInfoBuilder { 5561 builder.id = id 5562 builder.idFlag = true 5563 return builder 5564 } 5565 5566 // SNS类型 5567 // 5568 // 示例值: 5569 func (builder *ApplicationTalentSnsInfoBuilder) SnsType(snsType int) *ApplicationTalentSnsInfoBuilder { 5570 builder.snsType = snsType 5571 builder.snsTypeFlag = true 5572 return builder 5573 } 5574 5575 // SNS链接 5576 // 5577 // 示例值: 5578 func (builder *ApplicationTalentSnsInfoBuilder) Link(link string) *ApplicationTalentSnsInfoBuilder { 5579 builder.link = link 5580 builder.linkFlag = true 5581 return builder 5582 } 5583 5584 func (builder *ApplicationTalentSnsInfoBuilder) Build() *ApplicationTalentSnsInfo { 5585 req := &ApplicationTalentSnsInfo{} 5586 if builder.idFlag { 5587 req.Id = &builder.id 5588 5589 } 5590 if builder.snsTypeFlag { 5591 req.SnsType = &builder.snsType 5592 5593 } 5594 if builder.linkFlag { 5595 req.Link = &builder.link 5596 5597 } 5598 return req 5599 } 5600 5601 type ApplicationTalentWorksInfo struct { 5602 Id *string `json:"id,omitempty"` // ID 5603 Link *string `json:"link,omitempty"` // 作品集链接 5604 Desc *string `json:"desc,omitempty"` // 作品描述 5605 Name *string `json:"name,omitempty"` // 作品名称 5606 } 5607 5608 type ApplicationTalentWorksInfoBuilder struct { 5609 id string // ID 5610 idFlag bool 5611 link string // 作品集链接 5612 linkFlag bool 5613 desc string // 作品描述 5614 descFlag bool 5615 name string // 作品名称 5616 nameFlag bool 5617 } 5618 5619 func NewApplicationTalentWorksInfoBuilder() *ApplicationTalentWorksInfoBuilder { 5620 builder := &ApplicationTalentWorksInfoBuilder{} 5621 return builder 5622 } 5623 5624 // ID 5625 // 5626 // 示例值: 5627 func (builder *ApplicationTalentWorksInfoBuilder) Id(id string) *ApplicationTalentWorksInfoBuilder { 5628 builder.id = id 5629 builder.idFlag = true 5630 return builder 5631 } 5632 5633 // 作品集链接 5634 // 5635 // 示例值: 5636 func (builder *ApplicationTalentWorksInfoBuilder) Link(link string) *ApplicationTalentWorksInfoBuilder { 5637 builder.link = link 5638 builder.linkFlag = true 5639 return builder 5640 } 5641 5642 // 作品描述 5643 // 5644 // 示例值: 5645 func (builder *ApplicationTalentWorksInfoBuilder) Desc(desc string) *ApplicationTalentWorksInfoBuilder { 5646 builder.desc = desc 5647 builder.descFlag = true 5648 return builder 5649 } 5650 5651 // 作品名称 5652 // 5653 // 示例值: 5654 func (builder *ApplicationTalentWorksInfoBuilder) Name(name string) *ApplicationTalentWorksInfoBuilder { 5655 builder.name = name 5656 builder.nameFlag = true 5657 return builder 5658 } 5659 5660 func (builder *ApplicationTalentWorksInfoBuilder) Build() *ApplicationTalentWorksInfo { 5661 req := &ApplicationTalentWorksInfo{} 5662 if builder.idFlag { 5663 req.Id = &builder.id 5664 5665 } 5666 if builder.linkFlag { 5667 req.Link = &builder.link 5668 5669 } 5670 if builder.descFlag { 5671 req.Desc = &builder.desc 5672 5673 } 5674 if builder.nameFlag { 5675 req.Name = &builder.name 5676 5677 } 5678 return req 5679 } 5680 5681 type ApplicationWebsiteChannel struct { 5682 ChannelId *string `json:"channel_id,omitempty"` // 官网推广渠道 ID 5683 ChannelName *I18n `json:"channel_name,omitempty"` // 官网推广渠道名称 5684 } 5685 5686 type ApplicationWebsiteChannelBuilder struct { 5687 channelId string // 官网推广渠道 ID 5688 channelIdFlag bool 5689 channelName *I18n // 官网推广渠道名称 5690 channelNameFlag bool 5691 } 5692 5693 func NewApplicationWebsiteChannelBuilder() *ApplicationWebsiteChannelBuilder { 5694 builder := &ApplicationWebsiteChannelBuilder{} 5695 return builder 5696 } 5697 5698 // 官网推广渠道 ID 5699 // 5700 // 示例值:777218419274131 5701 func (builder *ApplicationWebsiteChannelBuilder) ChannelId(channelId string) *ApplicationWebsiteChannelBuilder { 5702 builder.channelId = channelId 5703 builder.channelIdFlag = true 5704 return builder 5705 } 5706 5707 // 官网推广渠道名称 5708 // 5709 // 示例值: 5710 func (builder *ApplicationWebsiteChannelBuilder) ChannelName(channelName *I18n) *ApplicationWebsiteChannelBuilder { 5711 builder.channelName = channelName 5712 builder.channelNameFlag = true 5713 return builder 5714 } 5715 5716 func (builder *ApplicationWebsiteChannelBuilder) Build() *ApplicationWebsiteChannel { 5717 req := &ApplicationWebsiteChannel{} 5718 if builder.channelIdFlag { 5719 req.ChannelId = &builder.channelId 5720 5721 } 5722 if builder.channelNameFlag { 5723 req.ChannelName = builder.channelName 5724 } 5725 return req 5726 } 5727 5728 type ApplicationWebsiteResumeSource struct { 5729 WebsiteId *string `json:"website_id,omitempty"` // 官网站点 ID 5730 WebsiteName *I18n `json:"website_name,omitempty"` // 官网站点名称 5731 Channel *ApplicationWebsiteChannel `json:"channel,omitempty"` // 推广渠道来源 5732 } 5733 5734 type ApplicationWebsiteResumeSourceBuilder struct { 5735 websiteId string // 官网站点 ID 5736 websiteIdFlag bool 5737 websiteName *I18n // 官网站点名称 5738 websiteNameFlag bool 5739 channel *ApplicationWebsiteChannel // 推广渠道来源 5740 channelFlag bool 5741 } 5742 5743 func NewApplicationWebsiteResumeSourceBuilder() *ApplicationWebsiteResumeSourceBuilder { 5744 builder := &ApplicationWebsiteResumeSourceBuilder{} 5745 return builder 5746 } 5747 5748 // 官网站点 ID 5749 // 5750 // 示例值:614218419274131 5751 func (builder *ApplicationWebsiteResumeSourceBuilder) WebsiteId(websiteId string) *ApplicationWebsiteResumeSourceBuilder { 5752 builder.websiteId = websiteId 5753 builder.websiteIdFlag = true 5754 return builder 5755 } 5756 5757 // 官网站点名称 5758 // 5759 // 示例值: 5760 func (builder *ApplicationWebsiteResumeSourceBuilder) WebsiteName(websiteName *I18n) *ApplicationWebsiteResumeSourceBuilder { 5761 builder.websiteName = websiteName 5762 builder.websiteNameFlag = true 5763 return builder 5764 } 5765 5766 // 推广渠道来源 5767 // 5768 // 示例值: 5769 func (builder *ApplicationWebsiteResumeSourceBuilder) Channel(channel *ApplicationWebsiteChannel) *ApplicationWebsiteResumeSourceBuilder { 5770 builder.channel = channel 5771 builder.channelFlag = true 5772 return builder 5773 } 5774 5775 func (builder *ApplicationWebsiteResumeSourceBuilder) Build() *ApplicationWebsiteResumeSource { 5776 req := &ApplicationWebsiteResumeSource{} 5777 if builder.websiteIdFlag { 5778 req.WebsiteId = &builder.websiteId 5779 5780 } 5781 if builder.websiteNameFlag { 5782 req.WebsiteName = builder.websiteName 5783 } 5784 if builder.channelFlag { 5785 req.Channel = builder.channel 5786 } 5787 return req 5788 } 5789 5790 type Attachment struct { 5791 Id *string `json:"id,omitempty"` // 附件id 5792 Url *string `json:"url,omitempty"` // 附件的url 5793 Name *string `json:"name,omitempty"` // 附件文件名 5794 Mime *string `json:"mime,omitempty"` // 媒体类型/MIME 5795 CreateTime *int `json:"create_time,omitempty"` // 附件创建时间(单位ms) 5796 } 5797 5798 type AttachmentBuilder struct { 5799 id string // 附件id 5800 idFlag bool 5801 url string // 附件的url 5802 urlFlag bool 5803 name string // 附件文件名 5804 nameFlag bool 5805 mime string // 媒体类型/MIME 5806 mimeFlag bool 5807 createTime int // 附件创建时间(单位ms) 5808 createTimeFlag bool 5809 } 5810 5811 func NewAttachmentBuilder() *AttachmentBuilder { 5812 builder := &AttachmentBuilder{} 5813 return builder 5814 } 5815 5816 // 附件id 5817 // 5818 // 示例值:6949805467799537964 5819 func (builder *AttachmentBuilder) Id(id string) *AttachmentBuilder { 5820 builder.id = id 5821 builder.idFlag = true 5822 return builder 5823 } 5824 5825 // 附件的url 5826 // 5827 // 示例值:https://hire.feishu.cn/blob/xx/ 5828 func (builder *AttachmentBuilder) Url(url string) *AttachmentBuilder { 5829 builder.url = url 5830 builder.urlFlag = true 5831 return builder 5832 } 5833 5834 // 附件文件名 5835 // 5836 // 示例值:xx的简历.prd 5837 func (builder *AttachmentBuilder) Name(name string) *AttachmentBuilder { 5838 builder.name = name 5839 builder.nameFlag = true 5840 return builder 5841 } 5842 5843 // 媒体类型/MIME 5844 // 5845 // 示例值:application/pdf 5846 func (builder *AttachmentBuilder) Mime(mime string) *AttachmentBuilder { 5847 builder.mime = mime 5848 builder.mimeFlag = true 5849 return builder 5850 } 5851 5852 // 附件创建时间(单位ms) 5853 // 5854 // 示例值:1618899376480 5855 func (builder *AttachmentBuilder) CreateTime(createTime int) *AttachmentBuilder { 5856 builder.createTime = createTime 5857 builder.createTimeFlag = true 5858 return builder 5859 } 5860 5861 func (builder *AttachmentBuilder) Build() *Attachment { 5862 req := &Attachment{} 5863 if builder.idFlag { 5864 req.Id = &builder.id 5865 5866 } 5867 if builder.urlFlag { 5868 req.Url = &builder.url 5869 5870 } 5871 if builder.nameFlag { 5872 req.Name = &builder.name 5873 5874 } 5875 if builder.mimeFlag { 5876 req.Mime = &builder.mime 5877 5878 } 5879 if builder.createTimeFlag { 5880 req.CreateTime = &builder.createTime 5881 5882 } 5883 return req 5884 } 5885 5886 type Auth struct { 5887 Id *string `json:"id,omitempty"` // 权限 ID 5888 Name *I18n `json:"name,omitempty"` // 权限名称 5889 } 5890 5891 type AuthBuilder struct { 5892 id string // 权限 ID 5893 idFlag bool 5894 name *I18n // 权限名称 5895 nameFlag bool 5896 } 5897 5898 func NewAuthBuilder() *AuthBuilder { 5899 builder := &AuthBuilder{} 5900 return builder 5901 } 5902 5903 // 权限 ID 5904 // 5905 // 示例值:101 5906 func (builder *AuthBuilder) Id(id string) *AuthBuilder { 5907 builder.id = id 5908 builder.idFlag = true 5909 return builder 5910 } 5911 5912 // 权限名称 5913 // 5914 // 示例值: 5915 func (builder *AuthBuilder) Name(name *I18n) *AuthBuilder { 5916 builder.name = name 5917 builder.nameFlag = true 5918 return builder 5919 } 5920 5921 func (builder *AuthBuilder) Build() *Auth { 5922 req := &Auth{} 5923 if builder.idFlag { 5924 req.Id = &builder.id 5925 5926 } 5927 if builder.nameFlag { 5928 req.Name = builder.name 5929 } 5930 return req 5931 } 5932 5933 type AwardInfo struct { 5934 AwardTime *int `json:"award_time,omitempty"` // 获奖时间 5935 Desc *string `json:"desc,omitempty"` // 描述 5936 Title *string `json:"title,omitempty"` // 名称 5937 } 5938 5939 type AwardInfoBuilder struct { 5940 awardTime int // 获奖时间 5941 awardTimeFlag bool 5942 desc string // 描述 5943 descFlag bool 5944 title string // 名称 5945 titleFlag bool 5946 } 5947 5948 func NewAwardInfoBuilder() *AwardInfoBuilder { 5949 builder := &AwardInfoBuilder{} 5950 return builder 5951 } 5952 5953 // 获奖时间 5954 // 5955 // 示例值: 5956 func (builder *AwardInfoBuilder) AwardTime(awardTime int) *AwardInfoBuilder { 5957 builder.awardTime = awardTime 5958 builder.awardTimeFlag = true 5959 return builder 5960 } 5961 5962 // 描述 5963 // 5964 // 示例值: 5965 func (builder *AwardInfoBuilder) Desc(desc string) *AwardInfoBuilder { 5966 builder.desc = desc 5967 builder.descFlag = true 5968 return builder 5969 } 5970 5971 // 名称 5972 // 5973 // 示例值: 5974 func (builder *AwardInfoBuilder) Title(title string) *AwardInfoBuilder { 5975 builder.title = title 5976 builder.titleFlag = true 5977 return builder 5978 } 5979 5980 func (builder *AwardInfoBuilder) Build() *AwardInfo { 5981 req := &AwardInfo{} 5982 if builder.awardTimeFlag { 5983 req.AwardTime = &builder.awardTime 5984 5985 } 5986 if builder.descFlag { 5987 req.Desc = &builder.desc 5988 5989 } 5990 if builder.titleFlag { 5991 req.Title = &builder.title 5992 5993 } 5994 return req 5995 } 5996 5997 type BackgroundCheckFeedbackInfo struct { 5998 AttachmentUrl *string `json:"attachment_url,omitempty"` // 背调信息附件下载链接 5999 Result *string `json:"result,omitempty"` // 背调结果:红灯、黄灯、绿灯 6000 } 6001 6002 type BackgroundCheckFeedbackInfoBuilder struct { 6003 attachmentUrl string // 背调信息附件下载链接 6004 attachmentUrlFlag bool 6005 result string // 背调结果:红灯、黄灯、绿灯 6006 resultFlag bool 6007 } 6008 6009 func NewBackgroundCheckFeedbackInfoBuilder() *BackgroundCheckFeedbackInfoBuilder { 6010 builder := &BackgroundCheckFeedbackInfoBuilder{} 6011 return builder 6012 } 6013 6014 // 背调信息附件下载链接 6015 // 6016 // 示例值:https://feishucdn.com/staource/v1/2de04c10-5cda-4c50~?image_size=np&cutpe=&quity=&mat=g&stmat=.wp 6017 func (builder *BackgroundCheckFeedbackInfoBuilder) AttachmentUrl(attachmentUrl string) *BackgroundCheckFeedbackInfoBuilder { 6018 builder.attachmentUrl = attachmentUrl 6019 builder.attachmentUrlFlag = true 6020 return builder 6021 } 6022 6023 // 背调结果:红灯、黄灯、绿灯 6024 // 6025 // 示例值:红灯 6026 func (builder *BackgroundCheckFeedbackInfoBuilder) Result(result string) *BackgroundCheckFeedbackInfoBuilder { 6027 builder.result = result 6028 builder.resultFlag = true 6029 return builder 6030 } 6031 6032 func (builder *BackgroundCheckFeedbackInfoBuilder) Build() *BackgroundCheckFeedbackInfo { 6033 req := &BackgroundCheckFeedbackInfo{} 6034 if builder.attachmentUrlFlag { 6035 req.AttachmentUrl = &builder.attachmentUrl 6036 6037 } 6038 if builder.resultFlag { 6039 req.Result = &builder.result 6040 6041 } 6042 return req 6043 } 6044 6045 type BackgroundCheckOrder struct { 6046 OrderId *string `json:"order_id,omitempty"` // 背调 ID 6047 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 6048 AccountThirdType *int `json:"account_third_type,omitempty"` // 供应商名称 6049 Package *string `json:"package,omitempty"` // 背调套餐 6050 FeedbackInfoList []*BackgroundCheckFeedbackInfo `json:"feedback_info_list,omitempty"` // 背调报告信息 6051 ProcessInfoList []*BackgroundCheckProcessInfo `json:"process_info_list,omitempty"` // 背调进度 6052 } 6053 6054 type BackgroundCheckOrderBuilder struct { 6055 orderId string // 背调 ID 6056 orderIdFlag bool 6057 applicationId string // 投递 ID 6058 applicationIdFlag bool 6059 accountThirdType int // 供应商名称 6060 accountThirdTypeFlag bool 6061 package_ string // 背调套餐 6062 packageFlag bool 6063 feedbackInfoList []*BackgroundCheckFeedbackInfo // 背调报告信息 6064 feedbackInfoListFlag bool 6065 processInfoList []*BackgroundCheckProcessInfo // 背调进度 6066 processInfoListFlag bool 6067 } 6068 6069 func NewBackgroundCheckOrderBuilder() *BackgroundCheckOrderBuilder { 6070 builder := &BackgroundCheckOrderBuilder{} 6071 return builder 6072 } 6073 6074 // 背调 ID 6075 // 6076 // 示例值:7037986982531778860 6077 func (builder *BackgroundCheckOrderBuilder) OrderId(orderId string) *BackgroundCheckOrderBuilder { 6078 builder.orderId = orderId 6079 builder.orderIdFlag = true 6080 return builder 6081 } 6082 6083 // 投递 ID 6084 // 6085 // 示例值:6985833807195212076 6086 func (builder *BackgroundCheckOrderBuilder) ApplicationId(applicationId string) *BackgroundCheckOrderBuilder { 6087 builder.applicationId = applicationId 6088 builder.applicationIdFlag = true 6089 return builder 6090 } 6091 6092 // 供应商名称 6093 // 6094 // 示例值:1 6095 func (builder *BackgroundCheckOrderBuilder) AccountThirdType(accountThirdType int) *BackgroundCheckOrderBuilder { 6096 builder.accountThirdType = accountThirdType 6097 builder.accountThirdTypeFlag = true 6098 return builder 6099 } 6100 6101 // 背调套餐 6102 // 6103 // 示例值:基础版 6104 func (builder *BackgroundCheckOrderBuilder) Package(package_ string) *BackgroundCheckOrderBuilder { 6105 builder.package_ = package_ 6106 builder.packageFlag = true 6107 return builder 6108 } 6109 6110 // 背调报告信息 6111 // 6112 // 示例值: 6113 func (builder *BackgroundCheckOrderBuilder) FeedbackInfoList(feedbackInfoList []*BackgroundCheckFeedbackInfo) *BackgroundCheckOrderBuilder { 6114 builder.feedbackInfoList = feedbackInfoList 6115 builder.feedbackInfoListFlag = true 6116 return builder 6117 } 6118 6119 // 背调进度 6120 // 6121 // 示例值: 6122 func (builder *BackgroundCheckOrderBuilder) ProcessInfoList(processInfoList []*BackgroundCheckProcessInfo) *BackgroundCheckOrderBuilder { 6123 builder.processInfoList = processInfoList 6124 builder.processInfoListFlag = true 6125 return builder 6126 } 6127 6128 func (builder *BackgroundCheckOrderBuilder) Build() *BackgroundCheckOrder { 6129 req := &BackgroundCheckOrder{} 6130 if builder.orderIdFlag { 6131 req.OrderId = &builder.orderId 6132 6133 } 6134 if builder.applicationIdFlag { 6135 req.ApplicationId = &builder.applicationId 6136 6137 } 6138 if builder.accountThirdTypeFlag { 6139 req.AccountThirdType = &builder.accountThirdType 6140 6141 } 6142 if builder.packageFlag { 6143 req.Package = &builder.package_ 6144 6145 } 6146 if builder.feedbackInfoListFlag { 6147 req.FeedbackInfoList = builder.feedbackInfoList 6148 } 6149 if builder.processInfoListFlag { 6150 req.ProcessInfoList = builder.processInfoList 6151 } 6152 return req 6153 } 6154 6155 type BackgroundCheckProcessInfo struct { 6156 Process *string `json:"process,omitempty"` // 背调状态 6157 UpdateTime *string `json:"update_time,omitempty"` // 状态更新时间 6158 } 6159 6160 type BackgroundCheckProcessInfoBuilder struct { 6161 process string // 背调状态 6162 processFlag bool 6163 updateTime string // 状态更新时间 6164 updateTimeFlag bool 6165 } 6166 6167 func NewBackgroundCheckProcessInfoBuilder() *BackgroundCheckProcessInfoBuilder { 6168 builder := &BackgroundCheckProcessInfoBuilder{} 6169 return builder 6170 } 6171 6172 // 背调状态 6173 // 6174 // 示例值:待安排 6175 func (builder *BackgroundCheckProcessInfoBuilder) Process(process string) *BackgroundCheckProcessInfoBuilder { 6176 builder.process = process 6177 builder.processFlag = true 6178 return builder 6179 } 6180 6181 // 状态更新时间 6182 // 6183 // 示例值:1638359554952 6184 func (builder *BackgroundCheckProcessInfoBuilder) UpdateTime(updateTime string) *BackgroundCheckProcessInfoBuilder { 6185 builder.updateTime = updateTime 6186 builder.updateTimeFlag = true 6187 return builder 6188 } 6189 6190 func (builder *BackgroundCheckProcessInfoBuilder) Build() *BackgroundCheckProcessInfo { 6191 req := &BackgroundCheckProcessInfo{} 6192 if builder.processFlag { 6193 req.Process = &builder.process 6194 6195 } 6196 if builder.updateTimeFlag { 6197 req.UpdateTime = &builder.updateTime 6198 6199 } 6200 return req 6201 } 6202 6203 type BaseAddress struct { 6204 Id *string `json:"id,omitempty"` // ID 6205 ZhName *string `json:"zh_name,omitempty"` // 中文名称 6206 EnName *string `json:"en_name,omitempty"` // 英文名称 6207 District *BaseDistrict `json:"district,omitempty"` // 区域信息 6208 City *BaseCity `json:"city,omitempty"` // 城市信息 6209 State *BaseCity `json:"state,omitempty"` // 省信息 6210 Country *BaseCountry `json:"country,omitempty"` // 国家信息 6211 } 6212 6213 type BaseAddressBuilder struct { 6214 id string // ID 6215 idFlag bool 6216 zhName string // 中文名称 6217 zhNameFlag bool 6218 enName string // 英文名称 6219 enNameFlag bool 6220 district *BaseDistrict // 区域信息 6221 districtFlag bool 6222 city *BaseCity // 城市信息 6223 cityFlag bool 6224 state *BaseCity // 省信息 6225 stateFlag bool 6226 country *BaseCountry // 国家信息 6227 countryFlag bool 6228 } 6229 6230 func NewBaseAddressBuilder() *BaseAddressBuilder { 6231 builder := &BaseAddressBuilder{} 6232 return builder 6233 } 6234 6235 // ID 6236 // 6237 // 示例值:6932753007915206919 6238 func (builder *BaseAddressBuilder) Id(id string) *BaseAddressBuilder { 6239 builder.id = id 6240 builder.idFlag = true 6241 return builder 6242 } 6243 6244 // 中文名称 6245 // 6246 // 示例值:名字 6247 func (builder *BaseAddressBuilder) ZhName(zhName string) *BaseAddressBuilder { 6248 builder.zhName = zhName 6249 builder.zhNameFlag = true 6250 return builder 6251 } 6252 6253 // 英文名称 6254 // 6255 // 示例值:name 6256 func (builder *BaseAddressBuilder) EnName(enName string) *BaseAddressBuilder { 6257 builder.enName = enName 6258 builder.enNameFlag = true 6259 return builder 6260 } 6261 6262 // 区域信息 6263 // 6264 // 示例值: 6265 func (builder *BaseAddressBuilder) District(district *BaseDistrict) *BaseAddressBuilder { 6266 builder.district = district 6267 builder.districtFlag = true 6268 return builder 6269 } 6270 6271 // 城市信息 6272 // 6273 // 示例值: 6274 func (builder *BaseAddressBuilder) City(city *BaseCity) *BaseAddressBuilder { 6275 builder.city = city 6276 builder.cityFlag = true 6277 return builder 6278 } 6279 6280 // 省信息 6281 // 6282 // 示例值: 6283 func (builder *BaseAddressBuilder) State(state *BaseCity) *BaseAddressBuilder { 6284 builder.state = state 6285 builder.stateFlag = true 6286 return builder 6287 } 6288 6289 // 国家信息 6290 // 6291 // 示例值: 6292 func (builder *BaseAddressBuilder) Country(country *BaseCountry) *BaseAddressBuilder { 6293 builder.country = country 6294 builder.countryFlag = true 6295 return builder 6296 } 6297 6298 func (builder *BaseAddressBuilder) Build() *BaseAddress { 6299 req := &BaseAddress{} 6300 if builder.idFlag { 6301 req.Id = &builder.id 6302 6303 } 6304 if builder.zhNameFlag { 6305 req.ZhName = &builder.zhName 6306 6307 } 6308 if builder.enNameFlag { 6309 req.EnName = &builder.enName 6310 6311 } 6312 if builder.districtFlag { 6313 req.District = builder.district 6314 } 6315 if builder.cityFlag { 6316 req.City = builder.city 6317 } 6318 if builder.stateFlag { 6319 req.State = builder.state 6320 } 6321 if builder.countryFlag { 6322 req.Country = builder.country 6323 } 6324 return req 6325 } 6326 6327 type BaseBilingualWithId struct { 6328 Id *string `json:"id,omitempty"` // ID 6329 ZhName *string `json:"zh_name,omitempty"` // 中文名称 6330 EnName *string `json:"en_name,omitempty"` // 英文名称 6331 } 6332 6333 type BaseBilingualWithIdBuilder struct { 6334 id string // ID 6335 idFlag bool 6336 zhName string // 中文名称 6337 zhNameFlag bool 6338 enName string // 英文名称 6339 enNameFlag bool 6340 } 6341 6342 func NewBaseBilingualWithIdBuilder() *BaseBilingualWithIdBuilder { 6343 builder := &BaseBilingualWithIdBuilder{} 6344 return builder 6345 } 6346 6347 // ID 6348 // 6349 // 示例值:1 6350 func (builder *BaseBilingualWithIdBuilder) Id(id string) *BaseBilingualWithIdBuilder { 6351 builder.id = id 6352 builder.idFlag = true 6353 return builder 6354 } 6355 6356 // 中文名称 6357 // 6358 // 示例值:正式 6359 func (builder *BaseBilingualWithIdBuilder) ZhName(zhName string) *BaseBilingualWithIdBuilder { 6360 builder.zhName = zhName 6361 builder.zhNameFlag = true 6362 return builder 6363 } 6364 6365 // 英文名称 6366 // 6367 // 示例值:Regular 6368 func (builder *BaseBilingualWithIdBuilder) EnName(enName string) *BaseBilingualWithIdBuilder { 6369 builder.enName = enName 6370 builder.enNameFlag = true 6371 return builder 6372 } 6373 6374 func (builder *BaseBilingualWithIdBuilder) Build() *BaseBilingualWithId { 6375 req := &BaseBilingualWithId{} 6376 if builder.idFlag { 6377 req.Id = &builder.id 6378 6379 } 6380 if builder.zhNameFlag { 6381 req.ZhName = &builder.zhName 6382 6383 } 6384 if builder.enNameFlag { 6385 req.EnName = &builder.enName 6386 6387 } 6388 return req 6389 } 6390 6391 type BaseCity struct { 6392 ZhName *string `json:"zh_name,omitempty"` // 中文名称 6393 EnName *string `json:"en_name,omitempty"` // 英文名称 6394 Code *string `json:"code,omitempty"` // 编码 6395 LocationType *int `json:"location_type,omitempty"` // 地址类型 6396 } 6397 6398 type BaseCityBuilder struct { 6399 zhName string // 中文名称 6400 zhNameFlag bool 6401 enName string // 英文名称 6402 enNameFlag bool 6403 code string // 编码 6404 codeFlag bool 6405 locationType int // 地址类型 6406 locationTypeFlag bool 6407 } 6408 6409 func NewBaseCityBuilder() *BaseCityBuilder { 6410 builder := &BaseCityBuilder{} 6411 return builder 6412 } 6413 6414 // 中文名称 6415 // 6416 // 示例值:中文 6417 func (builder *BaseCityBuilder) ZhName(zhName string) *BaseCityBuilder { 6418 builder.zhName = zhName 6419 builder.zhNameFlag = true 6420 return builder 6421 } 6422 6423 // 英文名称 6424 // 6425 // 示例值:eng 6426 func (builder *BaseCityBuilder) EnName(enName string) *BaseCityBuilder { 6427 builder.enName = enName 6428 builder.enNameFlag = true 6429 return builder 6430 } 6431 6432 // 编码 6433 // 6434 // 示例值:400700 6435 func (builder *BaseCityBuilder) Code(code string) *BaseCityBuilder { 6436 builder.code = code 6437 builder.codeFlag = true 6438 return builder 6439 } 6440 6441 // 地址类型 6442 // 6443 // 示例值:1 6444 func (builder *BaseCityBuilder) LocationType(locationType int) *BaseCityBuilder { 6445 builder.locationType = locationType 6446 builder.locationTypeFlag = true 6447 return builder 6448 } 6449 6450 func (builder *BaseCityBuilder) Build() *BaseCity { 6451 req := &BaseCity{} 6452 if builder.zhNameFlag { 6453 req.ZhName = &builder.zhName 6454 6455 } 6456 if builder.enNameFlag { 6457 req.EnName = &builder.enName 6458 6459 } 6460 if builder.codeFlag { 6461 req.Code = &builder.code 6462 6463 } 6464 if builder.locationTypeFlag { 6465 req.LocationType = &builder.locationType 6466 6467 } 6468 return req 6469 } 6470 6471 type BaseCountry struct { 6472 ZhName *string `json:"zh_name,omitempty"` // 中文名称 6473 EnName *string `json:"en_name,omitempty"` // 英文名称 6474 Code *string `json:"code,omitempty"` // 编码 6475 LocationType *int `json:"location_type,omitempty"` // 地址类型 6476 } 6477 6478 type BaseCountryBuilder struct { 6479 zhName string // 中文名称 6480 zhNameFlag bool 6481 enName string // 英文名称 6482 enNameFlag bool 6483 code string // 编码 6484 codeFlag bool 6485 locationType int // 地址类型 6486 locationTypeFlag bool 6487 } 6488 6489 func NewBaseCountryBuilder() *BaseCountryBuilder { 6490 builder := &BaseCountryBuilder{} 6491 return builder 6492 } 6493 6494 // 中文名称 6495 // 6496 // 示例值:中文 6497 func (builder *BaseCountryBuilder) ZhName(zhName string) *BaseCountryBuilder { 6498 builder.zhName = zhName 6499 builder.zhNameFlag = true 6500 return builder 6501 } 6502 6503 // 英文名称 6504 // 6505 // 示例值:eng 6506 func (builder *BaseCountryBuilder) EnName(enName string) *BaseCountryBuilder { 6507 builder.enName = enName 6508 builder.enNameFlag = true 6509 return builder 6510 } 6511 6512 // 编码 6513 // 6514 // 示例值:400700 6515 func (builder *BaseCountryBuilder) Code(code string) *BaseCountryBuilder { 6516 builder.code = code 6517 builder.codeFlag = true 6518 return builder 6519 } 6520 6521 // 地址类型 6522 // 6523 // 示例值:1 6524 func (builder *BaseCountryBuilder) LocationType(locationType int) *BaseCountryBuilder { 6525 builder.locationType = locationType 6526 builder.locationTypeFlag = true 6527 return builder 6528 } 6529 6530 func (builder *BaseCountryBuilder) Build() *BaseCountry { 6531 req := &BaseCountry{} 6532 if builder.zhNameFlag { 6533 req.ZhName = &builder.zhName 6534 6535 } 6536 if builder.enNameFlag { 6537 req.EnName = &builder.enName 6538 6539 } 6540 if builder.codeFlag { 6541 req.Code = &builder.code 6542 6543 } 6544 if builder.locationTypeFlag { 6545 req.LocationType = &builder.locationType 6546 6547 } 6548 return req 6549 } 6550 6551 type BaseDistrict struct { 6552 ZhName *string `json:"zh_name,omitempty"` // 中文名称 6553 EnName *string `json:"en_name,omitempty"` // 英文名称 6554 Code *string `json:"code,omitempty"` // 编码 6555 LocationType *int `json:"location_type,omitempty"` // 地址类型 6556 } 6557 6558 type BaseDistrictBuilder struct { 6559 zhName string // 中文名称 6560 zhNameFlag bool 6561 enName string // 英文名称 6562 enNameFlag bool 6563 code string // 编码 6564 codeFlag bool 6565 locationType int // 地址类型 6566 locationTypeFlag bool 6567 } 6568 6569 func NewBaseDistrictBuilder() *BaseDistrictBuilder { 6570 builder := &BaseDistrictBuilder{} 6571 return builder 6572 } 6573 6574 // 中文名称 6575 // 6576 // 示例值:伦敦 6577 func (builder *BaseDistrictBuilder) ZhName(zhName string) *BaseDistrictBuilder { 6578 builder.zhName = zhName 6579 builder.zhNameFlag = true 6580 return builder 6581 } 6582 6583 // 英文名称 6584 // 6585 // 示例值:London 6586 func (builder *BaseDistrictBuilder) EnName(enName string) *BaseDistrictBuilder { 6587 builder.enName = enName 6588 builder.enNameFlag = true 6589 return builder 6590 } 6591 6592 // 编码 6593 // 6594 // 示例值:400700 6595 func (builder *BaseDistrictBuilder) Code(code string) *BaseDistrictBuilder { 6596 builder.code = code 6597 builder.codeFlag = true 6598 return builder 6599 } 6600 6601 // 地址类型 6602 // 6603 // 示例值:1 6604 func (builder *BaseDistrictBuilder) LocationType(locationType int) *BaseDistrictBuilder { 6605 builder.locationType = locationType 6606 builder.locationTypeFlag = true 6607 return builder 6608 } 6609 6610 func (builder *BaseDistrictBuilder) Build() *BaseDistrict { 6611 req := &BaseDistrict{} 6612 if builder.zhNameFlag { 6613 req.ZhName = &builder.zhName 6614 6615 } 6616 if builder.enNameFlag { 6617 req.EnName = &builder.enName 6618 6619 } 6620 if builder.codeFlag { 6621 req.Code = &builder.code 6622 6623 } 6624 if builder.locationTypeFlag { 6625 req.LocationType = &builder.locationType 6626 6627 } 6628 return req 6629 } 6630 6631 type BaseResp struct { 6632 StatusMessage *string `json:"StatusMessage,omitempty"` // 响应信息 6633 StatusCode *int `json:"StatusCode,omitempty"` // 响应码 6634 } 6635 6636 type BaseRespBuilder struct { 6637 statusMessage string // 响应信息 6638 statusMessageFlag bool 6639 statusCode int // 响应码 6640 statusCodeFlag bool 6641 } 6642 6643 func NewBaseRespBuilder() *BaseRespBuilder { 6644 builder := &BaseRespBuilder{} 6645 return builder 6646 } 6647 6648 // 响应信息 6649 // 6650 // 示例值: 6651 func (builder *BaseRespBuilder) StatusMessage(statusMessage string) *BaseRespBuilder { 6652 builder.statusMessage = statusMessage 6653 builder.statusMessageFlag = true 6654 return builder 6655 } 6656 6657 // 响应码 6658 // 6659 // 示例值: 6660 func (builder *BaseRespBuilder) StatusCode(statusCode int) *BaseRespBuilder { 6661 builder.statusCode = statusCode 6662 builder.statusCodeFlag = true 6663 return builder 6664 } 6665 6666 func (builder *BaseRespBuilder) Build() *BaseResp { 6667 req := &BaseResp{} 6668 if builder.statusMessageFlag { 6669 req.StatusMessage = &builder.statusMessage 6670 6671 } 6672 if builder.statusCodeFlag { 6673 req.StatusCode = &builder.statusCode 6674 6675 } 6676 return req 6677 } 6678 6679 type BasicInfo struct { 6680 Name *string `json:"name,omitempty"` // 名字 6681 Mobile *string `json:"mobile,omitempty"` // 手机 6682 MobileCountryCode *string `json:"mobile_country_code,omitempty"` // 手机国家代码 6683 Email *string `json:"email,omitempty"` // 邮箱 6684 Birthday *int `json:"birthday,omitempty"` // 生日 6685 Confidentiality *int `json:"confidentiality,omitempty"` // 保密 6686 CreatorAccountType *int `json:"creator_account_type,omitempty"` // 创建者账户类型 6687 CreatorId *string `json:"creator_id,omitempty"` // 创建者ID 6688 CurrentCityCode *string `json:"current_city_code,omitempty"` // 现居住城市 6689 Gender *int `json:"gender,omitempty"` // 性别 6690 HometownCityCode *string `json:"hometown_city_code,omitempty"` // 家乡所在城市 6691 Identification *Identification `json:"identification,omitempty"` // 证件 6692 InitSourceId *string `json:"init_source_id,omitempty"` // 来源 6693 NationalityId *string `json:"nationality_id,omitempty"` // 国籍编号 6694 ResumeAttachmentId *string `json:"resume_attachment_id,omitempty"` // 附件简历ID 6695 SelfEvaluation *string `json:"self_evaluation,omitempty"` // 自我评价 6696 StartWorkTime *int `json:"start_work_time,omitempty"` // 开始工作时间 6697 } 6698 6699 type BasicInfoBuilder struct { 6700 name string // 名字 6701 nameFlag bool 6702 mobile string // 手机 6703 mobileFlag bool 6704 mobileCountryCode string // 手机国家代码 6705 mobileCountryCodeFlag bool 6706 email string // 邮箱 6707 emailFlag bool 6708 birthday int // 生日 6709 birthdayFlag bool 6710 confidentiality int // 保密 6711 confidentialityFlag bool 6712 creatorAccountType int // 创建者账户类型 6713 creatorAccountTypeFlag bool 6714 creatorId string // 创建者ID 6715 creatorIdFlag bool 6716 currentCityCode string // 现居住城市 6717 currentCityCodeFlag bool 6718 gender int // 性别 6719 genderFlag bool 6720 hometownCityCode string // 家乡所在城市 6721 hometownCityCodeFlag bool 6722 identification *Identification // 证件 6723 identificationFlag bool 6724 initSourceId string // 来源 6725 initSourceIdFlag bool 6726 nationalityId string // 国籍编号 6727 nationalityIdFlag bool 6728 resumeAttachmentId string // 附件简历ID 6729 resumeAttachmentIdFlag bool 6730 selfEvaluation string // 自我评价 6731 selfEvaluationFlag bool 6732 startWorkTime int // 开始工作时间 6733 startWorkTimeFlag bool 6734 } 6735 6736 func NewBasicInfoBuilder() *BasicInfoBuilder { 6737 builder := &BasicInfoBuilder{} 6738 return builder 6739 } 6740 6741 // 名字 6742 // 6743 // 示例值: 6744 func (builder *BasicInfoBuilder) Name(name string) *BasicInfoBuilder { 6745 builder.name = name 6746 builder.nameFlag = true 6747 return builder 6748 } 6749 6750 // 手机 6751 // 6752 // 示例值: 6753 func (builder *BasicInfoBuilder) Mobile(mobile string) *BasicInfoBuilder { 6754 builder.mobile = mobile 6755 builder.mobileFlag = true 6756 return builder 6757 } 6758 6759 // 手机国家代码 6760 // 6761 // 示例值: 6762 func (builder *BasicInfoBuilder) MobileCountryCode(mobileCountryCode string) *BasicInfoBuilder { 6763 builder.mobileCountryCode = mobileCountryCode 6764 builder.mobileCountryCodeFlag = true 6765 return builder 6766 } 6767 6768 // 邮箱 6769 // 6770 // 示例值: 6771 func (builder *BasicInfoBuilder) Email(email string) *BasicInfoBuilder { 6772 builder.email = email 6773 builder.emailFlag = true 6774 return builder 6775 } 6776 6777 // 生日 6778 // 6779 // 示例值: 6780 func (builder *BasicInfoBuilder) Birthday(birthday int) *BasicInfoBuilder { 6781 builder.birthday = birthday 6782 builder.birthdayFlag = true 6783 return builder 6784 } 6785 6786 // 保密 6787 // 6788 // 示例值: 6789 func (builder *BasicInfoBuilder) Confidentiality(confidentiality int) *BasicInfoBuilder { 6790 builder.confidentiality = confidentiality 6791 builder.confidentialityFlag = true 6792 return builder 6793 } 6794 6795 // 创建者账户类型 6796 // 6797 // 示例值: 6798 func (builder *BasicInfoBuilder) CreatorAccountType(creatorAccountType int) *BasicInfoBuilder { 6799 builder.creatorAccountType = creatorAccountType 6800 builder.creatorAccountTypeFlag = true 6801 return builder 6802 } 6803 6804 // 创建者ID 6805 // 6806 // 示例值: 6807 func (builder *BasicInfoBuilder) CreatorId(creatorId string) *BasicInfoBuilder { 6808 builder.creatorId = creatorId 6809 builder.creatorIdFlag = true 6810 return builder 6811 } 6812 6813 // 现居住城市 6814 // 6815 // 示例值: 6816 func (builder *BasicInfoBuilder) CurrentCityCode(currentCityCode string) *BasicInfoBuilder { 6817 builder.currentCityCode = currentCityCode 6818 builder.currentCityCodeFlag = true 6819 return builder 6820 } 6821 6822 // 性别 6823 // 6824 // 示例值: 6825 func (builder *BasicInfoBuilder) Gender(gender int) *BasicInfoBuilder { 6826 builder.gender = gender 6827 builder.genderFlag = true 6828 return builder 6829 } 6830 6831 // 家乡所在城市 6832 // 6833 // 示例值: 6834 func (builder *BasicInfoBuilder) HometownCityCode(hometownCityCode string) *BasicInfoBuilder { 6835 builder.hometownCityCode = hometownCityCode 6836 builder.hometownCityCodeFlag = true 6837 return builder 6838 } 6839 6840 // 证件 6841 // 6842 // 示例值: 6843 func (builder *BasicInfoBuilder) Identification(identification *Identification) *BasicInfoBuilder { 6844 builder.identification = identification 6845 builder.identificationFlag = true 6846 return builder 6847 } 6848 6849 // 来源 6850 // 6851 // 示例值: 6852 func (builder *BasicInfoBuilder) InitSourceId(initSourceId string) *BasicInfoBuilder { 6853 builder.initSourceId = initSourceId 6854 builder.initSourceIdFlag = true 6855 return builder 6856 } 6857 6858 // 国籍编号 6859 // 6860 // 示例值: 6861 func (builder *BasicInfoBuilder) NationalityId(nationalityId string) *BasicInfoBuilder { 6862 builder.nationalityId = nationalityId 6863 builder.nationalityIdFlag = true 6864 return builder 6865 } 6866 6867 // 附件简历ID 6868 // 6869 // 示例值: 6870 func (builder *BasicInfoBuilder) ResumeAttachmentId(resumeAttachmentId string) *BasicInfoBuilder { 6871 builder.resumeAttachmentId = resumeAttachmentId 6872 builder.resumeAttachmentIdFlag = true 6873 return builder 6874 } 6875 6876 // 自我评价 6877 // 6878 // 示例值: 6879 func (builder *BasicInfoBuilder) SelfEvaluation(selfEvaluation string) *BasicInfoBuilder { 6880 builder.selfEvaluation = selfEvaluation 6881 builder.selfEvaluationFlag = true 6882 return builder 6883 } 6884 6885 // 开始工作时间 6886 // 6887 // 示例值: 6888 func (builder *BasicInfoBuilder) StartWorkTime(startWorkTime int) *BasicInfoBuilder { 6889 builder.startWorkTime = startWorkTime 6890 builder.startWorkTimeFlag = true 6891 return builder 6892 } 6893 6894 func (builder *BasicInfoBuilder) Build() *BasicInfo { 6895 req := &BasicInfo{} 6896 if builder.nameFlag { 6897 req.Name = &builder.name 6898 6899 } 6900 if builder.mobileFlag { 6901 req.Mobile = &builder.mobile 6902 6903 } 6904 if builder.mobileCountryCodeFlag { 6905 req.MobileCountryCode = &builder.mobileCountryCode 6906 6907 } 6908 if builder.emailFlag { 6909 req.Email = &builder.email 6910 6911 } 6912 if builder.birthdayFlag { 6913 req.Birthday = &builder.birthday 6914 6915 } 6916 if builder.confidentialityFlag { 6917 req.Confidentiality = &builder.confidentiality 6918 6919 } 6920 if builder.creatorAccountTypeFlag { 6921 req.CreatorAccountType = &builder.creatorAccountType 6922 6923 } 6924 if builder.creatorIdFlag { 6925 req.CreatorId = &builder.creatorId 6926 6927 } 6928 if builder.currentCityCodeFlag { 6929 req.CurrentCityCode = &builder.currentCityCode 6930 6931 } 6932 if builder.genderFlag { 6933 req.Gender = &builder.gender 6934 6935 } 6936 if builder.hometownCityCodeFlag { 6937 req.HometownCityCode = &builder.hometownCityCode 6938 6939 } 6940 if builder.identificationFlag { 6941 req.Identification = builder.identification 6942 } 6943 if builder.initSourceIdFlag { 6944 req.InitSourceId = &builder.initSourceId 6945 6946 } 6947 if builder.nationalityIdFlag { 6948 req.NationalityId = &builder.nationalityId 6949 6950 } 6951 if builder.resumeAttachmentIdFlag { 6952 req.ResumeAttachmentId = &builder.resumeAttachmentId 6953 6954 } 6955 if builder.selfEvaluationFlag { 6956 req.SelfEvaluation = &builder.selfEvaluation 6957 6958 } 6959 if builder.startWorkTimeFlag { 6960 req.StartWorkTime = &builder.startWorkTime 6961 6962 } 6963 return req 6964 } 6965 6966 type CareerInfo struct { 6967 CareerType *int `json:"career_type,omitempty"` // 类型 6968 Company *string `json:"company,omitempty"` // 公司 6969 Desc *string `json:"desc,omitempty"` // 描述 6970 EndTime *int `json:"end_time,omitempty"` // 结束时间 6971 StartTime *int `json:"start_time,omitempty"` // 开始时间 6972 Title *string `json:"title,omitempty"` // 职称 6973 } 6974 6975 type CareerInfoBuilder struct { 6976 careerType int // 类型 6977 careerTypeFlag bool 6978 company string // 公司 6979 companyFlag bool 6980 desc string // 描述 6981 descFlag bool 6982 endTime int // 结束时间 6983 endTimeFlag bool 6984 startTime int // 开始时间 6985 startTimeFlag bool 6986 title string // 职称 6987 titleFlag bool 6988 } 6989 6990 func NewCareerInfoBuilder() *CareerInfoBuilder { 6991 builder := &CareerInfoBuilder{} 6992 return builder 6993 } 6994 6995 // 类型 6996 // 6997 // 示例值: 6998 func (builder *CareerInfoBuilder) CareerType(careerType int) *CareerInfoBuilder { 6999 builder.careerType = careerType 7000 builder.careerTypeFlag = true 7001 return builder 7002 } 7003 7004 // 公司 7005 // 7006 // 示例值: 7007 func (builder *CareerInfoBuilder) Company(company string) *CareerInfoBuilder { 7008 builder.company = company 7009 builder.companyFlag = true 7010 return builder 7011 } 7012 7013 // 描述 7014 // 7015 // 示例值: 7016 func (builder *CareerInfoBuilder) Desc(desc string) *CareerInfoBuilder { 7017 builder.desc = desc 7018 builder.descFlag = true 7019 return builder 7020 } 7021 7022 // 结束时间 7023 // 7024 // 示例值: 7025 func (builder *CareerInfoBuilder) EndTime(endTime int) *CareerInfoBuilder { 7026 builder.endTime = endTime 7027 builder.endTimeFlag = true 7028 return builder 7029 } 7030 7031 // 开始时间 7032 // 7033 // 示例值: 7034 func (builder *CareerInfoBuilder) StartTime(startTime int) *CareerInfoBuilder { 7035 builder.startTime = startTime 7036 builder.startTimeFlag = true 7037 return builder 7038 } 7039 7040 // 职称 7041 // 7042 // 示例值: 7043 func (builder *CareerInfoBuilder) Title(title string) *CareerInfoBuilder { 7044 builder.title = title 7045 builder.titleFlag = true 7046 return builder 7047 } 7048 7049 func (builder *CareerInfoBuilder) Build() *CareerInfo { 7050 req := &CareerInfo{} 7051 if builder.careerTypeFlag { 7052 req.CareerType = &builder.careerType 7053 7054 } 7055 if builder.companyFlag { 7056 req.Company = &builder.company 7057 7058 } 7059 if builder.descFlag { 7060 req.Desc = &builder.desc 7061 7062 } 7063 if builder.endTimeFlag { 7064 req.EndTime = &builder.endTime 7065 7066 } 7067 if builder.startTimeFlag { 7068 req.StartTime = &builder.startTime 7069 7070 } 7071 if builder.titleFlag { 7072 req.Title = &builder.title 7073 7074 } 7075 return req 7076 } 7077 7078 type CertificateInfo struct { 7079 Desc *string `json:"desc,omitempty"` // 证件描述 7080 Name *string `json:"name,omitempty"` // 证件名称 7081 } 7082 7083 type CertificateInfoBuilder struct { 7084 desc string // 证件描述 7085 descFlag bool 7086 name string // 证件名称 7087 nameFlag bool 7088 } 7089 7090 func NewCertificateInfoBuilder() *CertificateInfoBuilder { 7091 builder := &CertificateInfoBuilder{} 7092 return builder 7093 } 7094 7095 // 证件描述 7096 // 7097 // 示例值: 7098 func (builder *CertificateInfoBuilder) Desc(desc string) *CertificateInfoBuilder { 7099 builder.desc = desc 7100 builder.descFlag = true 7101 return builder 7102 } 7103 7104 // 证件名称 7105 // 7106 // 示例值: 7107 func (builder *CertificateInfoBuilder) Name(name string) *CertificateInfoBuilder { 7108 builder.name = name 7109 builder.nameFlag = true 7110 return builder 7111 } 7112 7113 func (builder *CertificateInfoBuilder) Build() *CertificateInfo { 7114 req := &CertificateInfo{} 7115 if builder.descFlag { 7116 req.Desc = &builder.desc 7117 7118 } 7119 if builder.nameFlag { 7120 req.Name = &builder.name 7121 7122 } 7123 return req 7124 } 7125 7126 type ChangeEmployeeStage struct { 7127 Operation *int `json:"operation,omitempty"` // 修改状态操作 7128 ConversionInfo *EmployeeConversionInfo `json:"conversion_info,omitempty"` // 转正信息 7129 OverboardInfo *EmployeeOverboardInfo `json:"overboard_info,omitempty"` // 离职信息 7130 } 7131 7132 type ChangeEmployeeStageBuilder struct { 7133 operation int // 修改状态操作 7134 operationFlag bool 7135 conversionInfo *EmployeeConversionInfo // 转正信息 7136 conversionInfoFlag bool 7137 overboardInfo *EmployeeOverboardInfo // 离职信息 7138 overboardInfoFlag bool 7139 } 7140 7141 func NewChangeEmployeeStageBuilder() *ChangeEmployeeStageBuilder { 7142 builder := &ChangeEmployeeStageBuilder{} 7143 return builder 7144 } 7145 7146 // 修改状态操作 7147 // 7148 // 示例值:1 7149 func (builder *ChangeEmployeeStageBuilder) Operation(operation int) *ChangeEmployeeStageBuilder { 7150 builder.operation = operation 7151 builder.operationFlag = true 7152 return builder 7153 } 7154 7155 // 转正信息 7156 // 7157 // 示例值: 7158 func (builder *ChangeEmployeeStageBuilder) ConversionInfo(conversionInfo *EmployeeConversionInfo) *ChangeEmployeeStageBuilder { 7159 builder.conversionInfo = conversionInfo 7160 builder.conversionInfoFlag = true 7161 return builder 7162 } 7163 7164 // 离职信息 7165 // 7166 // 示例值: 7167 func (builder *ChangeEmployeeStageBuilder) OverboardInfo(overboardInfo *EmployeeOverboardInfo) *ChangeEmployeeStageBuilder { 7168 builder.overboardInfo = overboardInfo 7169 builder.overboardInfoFlag = true 7170 return builder 7171 } 7172 7173 func (builder *ChangeEmployeeStageBuilder) Build() *ChangeEmployeeStage { 7174 req := &ChangeEmployeeStage{} 7175 if builder.operationFlag { 7176 req.Operation = &builder.operation 7177 7178 } 7179 if builder.conversionInfoFlag { 7180 req.ConversionInfo = builder.conversionInfo 7181 } 7182 if builder.overboardInfoFlag { 7183 req.OverboardInfo = builder.overboardInfo 7184 } 7185 return req 7186 } 7187 7188 type City struct { 7189 CityCode *string `json:"city_code,omitempty"` // 编码 7190 Name *string `json:"name,omitempty"` // 名字 7191 EnName *string `json:"en_name,omitempty"` // 英文名 7192 Country *Country `json:"country,omitempty"` // 国家 7193 } 7194 7195 type CityBuilder struct { 7196 cityCode string // 编码 7197 cityCodeFlag bool 7198 name string // 名字 7199 nameFlag bool 7200 enName string // 英文名 7201 enNameFlag bool 7202 country *Country // 国家 7203 countryFlag bool 7204 } 7205 7206 func NewCityBuilder() *CityBuilder { 7207 builder := &CityBuilder{} 7208 return builder 7209 } 7210 7211 // 编码 7212 // 7213 // 示例值: 7214 func (builder *CityBuilder) CityCode(cityCode string) *CityBuilder { 7215 builder.cityCode = cityCode 7216 builder.cityCodeFlag = true 7217 return builder 7218 } 7219 7220 // 名字 7221 // 7222 // 示例值: 7223 func (builder *CityBuilder) Name(name string) *CityBuilder { 7224 builder.name = name 7225 builder.nameFlag = true 7226 return builder 7227 } 7228 7229 // 英文名 7230 // 7231 // 示例值: 7232 func (builder *CityBuilder) EnName(enName string) *CityBuilder { 7233 builder.enName = enName 7234 builder.enNameFlag = true 7235 return builder 7236 } 7237 7238 // 国家 7239 // 7240 // 示例值: 7241 func (builder *CityBuilder) Country(country *Country) *CityBuilder { 7242 builder.country = country 7243 builder.countryFlag = true 7244 return builder 7245 } 7246 7247 func (builder *CityBuilder) Build() *City { 7248 req := &City{} 7249 if builder.cityCodeFlag { 7250 req.CityCode = &builder.cityCode 7251 7252 } 7253 if builder.nameFlag { 7254 req.Name = &builder.name 7255 7256 } 7257 if builder.enNameFlag { 7258 req.EnName = &builder.enName 7259 7260 } 7261 if builder.countryFlag { 7262 req.Country = builder.country 7263 } 7264 return req 7265 } 7266 7267 type CodeNameObject struct { 7268 Code *string `json:"code,omitempty"` // 编码 7269 Name *I18n `json:"name,omitempty"` // 名称 7270 } 7271 7272 type CodeNameObjectBuilder struct { 7273 code string // 编码 7274 codeFlag bool 7275 name *I18n // 名称 7276 nameFlag bool 7277 } 7278 7279 func NewCodeNameObjectBuilder() *CodeNameObjectBuilder { 7280 builder := &CodeNameObjectBuilder{} 7281 return builder 7282 } 7283 7284 // 编码 7285 // 7286 // 示例值:1111 7287 func (builder *CodeNameObjectBuilder) Code(code string) *CodeNameObjectBuilder { 7288 builder.code = code 7289 builder.codeFlag = true 7290 return builder 7291 } 7292 7293 // 名称 7294 // 7295 // 示例值: 7296 func (builder *CodeNameObjectBuilder) Name(name *I18n) *CodeNameObjectBuilder { 7297 builder.name = name 7298 builder.nameFlag = true 7299 return builder 7300 } 7301 7302 func (builder *CodeNameObjectBuilder) Build() *CodeNameObject { 7303 req := &CodeNameObject{} 7304 if builder.codeFlag { 7305 req.Code = &builder.code 7306 7307 } 7308 if builder.nameFlag { 7309 req.Name = builder.name 7310 } 7311 return req 7312 } 7313 7314 type CombinedJob struct { 7315 Id *string `json:"id,omitempty"` // 职位 ID 7316 Code *string `json:"code,omitempty"` // 职位编号,可传入职位的「职位编号」、「职位 ID」或者「职位序号」,将以传入的参数作为职位编号,以便双方系统的数据映射 7317 Experience *int `json:"experience,omitempty"` // 工作年限 7318 ExpiryTime *int `json:"expiry_time,omitempty"` // 到期日期 7319 CustomizedDataList []*CombinedJobObjectValueMap `json:"customized_data_list,omitempty"` // 自定义字段 7320 MinLevelId *string `json:"min_level_id,omitempty"` // 最低职级,枚举通过接口「获取职级列表」获取 7321 MinSalary *int `json:"min_salary,omitempty"` // 最低薪资,单位:k 7322 Title *string `json:"title,omitempty"` // 职位名称 7323 JobManagers *JobManager `json:"job_managers,omitempty"` // 职位的招聘团队 7324 JobProcessId *string `json:"job_process_id,omitempty"` // 招聘流程,枚举通过接口「获取招聘流程信息」获取 7325 ProcessType *int `json:"process_type,omitempty"` // 职位流程类型 7326 SubjectId *string `json:"subject_id,omitempty"` // 项目,枚举通过「获取项目列表」接口 7327 JobFunctionId *string `json:"job_function_id,omitempty"` // 职能分类,通过「获取职能分类」获取 7328 DepartmentId *string `json:"department_id,omitempty"` // 部门 ID,须传入open_department_id,格式为"od-xxxx"。可通过「获取部门信息列表」获取 7329 HeadCount *int `json:"head_count,omitempty"` // 招聘数量 7330 IsNeverExpired *bool `json:"is_never_expired,omitempty"` // 是否长期有效 7331 MaxSalary *int `json:"max_salary,omitempty"` // 最高薪资,单位:k 7332 Requirement *string `json:"requirement,omitempty"` // 职位要求 7333 AddressId *string `json:"address_id,omitempty"` // 工作地点,枚举通过接口「获取地址列表」获取,选择地点用途为「职位地址」 7334 Description *string `json:"description,omitempty"` // 职位描述 7335 HighlightList []string `json:"highlight_list,omitempty"` // 职位亮点 7336 JobTypeId *string `json:"job_type_id,omitempty"` // 职位类别 7337 MaxLevelId *string `json:"max_level_id,omitempty"` // 最高职级,枚举通过接口「获取职级列表」获取 7338 RecruitmentTypeId *string `json:"recruitment_type_id,omitempty"` // 雇佣类型 7339 RequiredDegree *int `json:"required_degree,omitempty"` // 学历要求 7340 JobCategoryId *string `json:"job_category_id,omitempty"` // 序列 7341 AddressIdList []string `json:"address_id_list,omitempty"` // 工作地点,枚举通过接口「获取地址列表」获取,选择地点用途为「职位地址」 7342 } 7343 7344 type CombinedJobBuilder struct { 7345 id string // 职位 ID 7346 idFlag bool 7347 code string // 职位编号,可传入职位的「职位编号」、「职位 ID」或者「职位序号」,将以传入的参数作为职位编号,以便双方系统的数据映射 7348 codeFlag bool 7349 experience int // 工作年限 7350 experienceFlag bool 7351 expiryTime int // 到期日期 7352 expiryTimeFlag bool 7353 customizedDataList []*CombinedJobObjectValueMap // 自定义字段 7354 customizedDataListFlag bool 7355 minLevelId string // 最低职级,枚举通过接口「获取职级列表」获取 7356 minLevelIdFlag bool 7357 minSalary int // 最低薪资,单位:k 7358 minSalaryFlag bool 7359 title string // 职位名称 7360 titleFlag bool 7361 jobManagers *JobManager // 职位的招聘团队 7362 jobManagersFlag bool 7363 jobProcessId string // 招聘流程,枚举通过接口「获取招聘流程信息」获取 7364 jobProcessIdFlag bool 7365 processType int // 职位流程类型 7366 processTypeFlag bool 7367 subjectId string // 项目,枚举通过「获取项目列表」接口 7368 subjectIdFlag bool 7369 jobFunctionId string // 职能分类,通过「获取职能分类」获取 7370 jobFunctionIdFlag bool 7371 departmentId string // 部门 ID,须传入open_department_id,格式为"od-xxxx"。可通过「获取部门信息列表」获取 7372 departmentIdFlag bool 7373 headCount int // 招聘数量 7374 headCountFlag bool 7375 isNeverExpired bool // 是否长期有效 7376 isNeverExpiredFlag bool 7377 maxSalary int // 最高薪资,单位:k 7378 maxSalaryFlag bool 7379 requirement string // 职位要求 7380 requirementFlag bool 7381 addressId string // 工作地点,枚举通过接口「获取地址列表」获取,选择地点用途为「职位地址」 7382 addressIdFlag bool 7383 description string // 职位描述 7384 descriptionFlag bool 7385 highlightList []string // 职位亮点 7386 highlightListFlag bool 7387 jobTypeId string // 职位类别 7388 jobTypeIdFlag bool 7389 maxLevelId string // 最高职级,枚举通过接口「获取职级列表」获取 7390 maxLevelIdFlag bool 7391 recruitmentTypeId string // 雇佣类型 7392 recruitmentTypeIdFlag bool 7393 requiredDegree int // 学历要求 7394 requiredDegreeFlag bool 7395 jobCategoryId string // 序列 7396 jobCategoryIdFlag bool 7397 addressIdList []string // 工作地点,枚举通过接口「获取地址列表」获取,选择地点用途为「职位地址」 7398 addressIdListFlag bool 7399 } 7400 7401 func NewCombinedJobBuilder() *CombinedJobBuilder { 7402 builder := &CombinedJobBuilder{} 7403 return builder 7404 } 7405 7406 // 职位 ID 7407 // 7408 // 示例值:6960663240925956576 7409 func (builder *CombinedJobBuilder) Id(id string) *CombinedJobBuilder { 7410 builder.id = id 7411 builder.idFlag = true 7412 return builder 7413 } 7414 7415 // 职位编号,可传入职位的「职位编号」、「职位 ID」或者「职位序号」,将以传入的参数作为职位编号,以便双方系统的数据映射 7416 // 7417 // 示例值:R18 7418 func (builder *CombinedJobBuilder) Code(code string) *CombinedJobBuilder { 7419 builder.code = code 7420 builder.codeFlag = true 7421 return builder 7422 } 7423 7424 // 工作年限 7425 // 7426 // 示例值:1 7427 func (builder *CombinedJobBuilder) Experience(experience int) *CombinedJobBuilder { 7428 builder.experience = experience 7429 builder.experienceFlag = true 7430 return builder 7431 } 7432 7433 // 到期日期 7434 // 7435 // 示例值:1622484739955 7436 func (builder *CombinedJobBuilder) ExpiryTime(expiryTime int) *CombinedJobBuilder { 7437 builder.expiryTime = expiryTime 7438 builder.expiryTimeFlag = true 7439 return builder 7440 } 7441 7442 // 自定义字段 7443 // 7444 // 示例值: 7445 func (builder *CombinedJobBuilder) CustomizedDataList(customizedDataList []*CombinedJobObjectValueMap) *CombinedJobBuilder { 7446 builder.customizedDataList = customizedDataList 7447 builder.customizedDataListFlag = true 7448 return builder 7449 } 7450 7451 // 最低职级,枚举通过接口「获取职级列表」获取 7452 // 7453 // 示例值:6960663240925956547 7454 func (builder *CombinedJobBuilder) MinLevelId(minLevelId string) *CombinedJobBuilder { 7455 builder.minLevelId = minLevelId 7456 builder.minLevelIdFlag = true 7457 return builder 7458 } 7459 7460 // 最低薪资,单位:k 7461 // 7462 // 示例值:1000 7463 func (builder *CombinedJobBuilder) MinSalary(minSalary int) *CombinedJobBuilder { 7464 builder.minSalary = minSalary 7465 builder.minSalaryFlag = true 7466 return builder 7467 } 7468 7469 // 职位名称 7470 // 7471 // 示例值:后端研发 7472 func (builder *CombinedJobBuilder) Title(title string) *CombinedJobBuilder { 7473 builder.title = title 7474 builder.titleFlag = true 7475 return builder 7476 } 7477 7478 // 职位的招聘团队 7479 // 7480 // 示例值: 7481 func (builder *CombinedJobBuilder) JobManagers(jobManagers *JobManager) *CombinedJobBuilder { 7482 builder.jobManagers = jobManagers 7483 builder.jobManagersFlag = true 7484 return builder 7485 } 7486 7487 // 招聘流程,枚举通过接口「获取招聘流程信息」获取 7488 // 7489 // 示例值:6960663240925956554 7490 func (builder *CombinedJobBuilder) JobProcessId(jobProcessId string) *CombinedJobBuilder { 7491 builder.jobProcessId = jobProcessId 7492 builder.jobProcessIdFlag = true 7493 return builder 7494 } 7495 7496 // 职位流程类型 7497 // 7498 // 示例值:1 7499 func (builder *CombinedJobBuilder) ProcessType(processType int) *CombinedJobBuilder { 7500 builder.processType = processType 7501 builder.processTypeFlag = true 7502 return builder 7503 } 7504 7505 // 项目,枚举通过「获取项目列表」接口 7506 // 7507 // 示例值:6960663240925956555 7508 func (builder *CombinedJobBuilder) SubjectId(subjectId string) *CombinedJobBuilder { 7509 builder.subjectId = subjectId 7510 builder.subjectIdFlag = true 7511 return builder 7512 } 7513 7514 // 职能分类,通过「获取职能分类」获取 7515 // 7516 // 示例值:6960663240925956555 7517 func (builder *CombinedJobBuilder) JobFunctionId(jobFunctionId string) *CombinedJobBuilder { 7518 builder.jobFunctionId = jobFunctionId 7519 builder.jobFunctionIdFlag = true 7520 return builder 7521 } 7522 7523 // 部门 ID,须传入open_department_id,格式为"od-xxxx"。可通过「获取部门信息列表」获取 7524 // 7525 // 示例值:od-b2fafdce6fc5800b574ba5b0e2798b36 7526 func (builder *CombinedJobBuilder) DepartmentId(departmentId string) *CombinedJobBuilder { 7527 builder.departmentId = departmentId 7528 builder.departmentIdFlag = true 7529 return builder 7530 } 7531 7532 // 招聘数量 7533 // 7534 // 示例值:100 7535 func (builder *CombinedJobBuilder) HeadCount(headCount int) *CombinedJobBuilder { 7536 builder.headCount = headCount 7537 builder.headCountFlag = true 7538 return builder 7539 } 7540 7541 // 是否长期有效 7542 // 7543 // 示例值:false 7544 func (builder *CombinedJobBuilder) IsNeverExpired(isNeverExpired bool) *CombinedJobBuilder { 7545 builder.isNeverExpired = isNeverExpired 7546 builder.isNeverExpiredFlag = true 7547 return builder 7548 } 7549 7550 // 最高薪资,单位:k 7551 // 7552 // 示例值:2000 7553 func (builder *CombinedJobBuilder) MaxSalary(maxSalary int) *CombinedJobBuilder { 7554 builder.maxSalary = maxSalary 7555 builder.maxSalaryFlag = true 7556 return builder 7557 } 7558 7559 // 职位要求 7560 // 7561 // 示例值:熟悉后端研发 7562 func (builder *CombinedJobBuilder) Requirement(requirement string) *CombinedJobBuilder { 7563 builder.requirement = requirement 7564 builder.requirementFlag = true 7565 return builder 7566 } 7567 7568 // 工作地点,枚举通过接口「获取地址列表」获取,选择地点用途为「职位地址」 7569 // 7570 // 示例值:6960663240925956553 7571 func (builder *CombinedJobBuilder) AddressId(addressId string) *CombinedJobBuilder { 7572 builder.addressId = addressId 7573 builder.addressIdFlag = true 7574 return builder 7575 } 7576 7577 // 职位描述 7578 // 7579 // 示例值:后端研发岗位描述 7580 func (builder *CombinedJobBuilder) Description(description string) *CombinedJobBuilder { 7581 builder.description = description 7582 builder.descriptionFlag = true 7583 return builder 7584 } 7585 7586 // 职位亮点 7587 // 7588 // 示例值:6960663240925956554 7589 func (builder *CombinedJobBuilder) HighlightList(highlightList []string) *CombinedJobBuilder { 7590 builder.highlightList = highlightList 7591 builder.highlightListFlag = true 7592 return builder 7593 } 7594 7595 // 职位类别 7596 // 7597 // 示例值:6960663240925956551 7598 func (builder *CombinedJobBuilder) JobTypeId(jobTypeId string) *CombinedJobBuilder { 7599 builder.jobTypeId = jobTypeId 7600 builder.jobTypeIdFlag = true 7601 return builder 7602 } 7603 7604 // 最高职级,枚举通过接口「获取职级列表」获取 7605 // 7606 // 示例值:6960663240925956548 7607 func (builder *CombinedJobBuilder) MaxLevelId(maxLevelId string) *CombinedJobBuilder { 7608 builder.maxLevelId = maxLevelId 7609 builder.maxLevelIdFlag = true 7610 return builder 7611 } 7612 7613 // 雇佣类型 7614 // 7615 // 示例值:102 7616 func (builder *CombinedJobBuilder) RecruitmentTypeId(recruitmentTypeId string) *CombinedJobBuilder { 7617 builder.recruitmentTypeId = recruitmentTypeId 7618 builder.recruitmentTypeIdFlag = true 7619 return builder 7620 } 7621 7622 // 学历要求 7623 // 7624 // 示例值:1 7625 func (builder *CombinedJobBuilder) RequiredDegree(requiredDegree int) *CombinedJobBuilder { 7626 builder.requiredDegree = requiredDegree 7627 builder.requiredDegreeFlag = true 7628 return builder 7629 } 7630 7631 // 序列 7632 // 7633 // 示例值:6960663240925956550 7634 func (builder *CombinedJobBuilder) JobCategoryId(jobCategoryId string) *CombinedJobBuilder { 7635 builder.jobCategoryId = jobCategoryId 7636 builder.jobCategoryIdFlag = true 7637 return builder 7638 } 7639 7640 // 工作地点,枚举通过接口「获取地址列表」获取,选择地点用途为「职位地址」 7641 // 7642 // 示例值:7035374761602959660 7643 func (builder *CombinedJobBuilder) AddressIdList(addressIdList []string) *CombinedJobBuilder { 7644 builder.addressIdList = addressIdList 7645 builder.addressIdListFlag = true 7646 return builder 7647 } 7648 7649 func (builder *CombinedJobBuilder) Build() *CombinedJob { 7650 req := &CombinedJob{} 7651 if builder.idFlag { 7652 req.Id = &builder.id 7653 7654 } 7655 if builder.codeFlag { 7656 req.Code = &builder.code 7657 7658 } 7659 if builder.experienceFlag { 7660 req.Experience = &builder.experience 7661 7662 } 7663 if builder.expiryTimeFlag { 7664 req.ExpiryTime = &builder.expiryTime 7665 7666 } 7667 if builder.customizedDataListFlag { 7668 req.CustomizedDataList = builder.customizedDataList 7669 } 7670 if builder.minLevelIdFlag { 7671 req.MinLevelId = &builder.minLevelId 7672 7673 } 7674 if builder.minSalaryFlag { 7675 req.MinSalary = &builder.minSalary 7676 7677 } 7678 if builder.titleFlag { 7679 req.Title = &builder.title 7680 7681 } 7682 if builder.jobManagersFlag { 7683 req.JobManagers = builder.jobManagers 7684 } 7685 if builder.jobProcessIdFlag { 7686 req.JobProcessId = &builder.jobProcessId 7687 7688 } 7689 if builder.processTypeFlag { 7690 req.ProcessType = &builder.processType 7691 7692 } 7693 if builder.subjectIdFlag { 7694 req.SubjectId = &builder.subjectId 7695 7696 } 7697 if builder.jobFunctionIdFlag { 7698 req.JobFunctionId = &builder.jobFunctionId 7699 7700 } 7701 if builder.departmentIdFlag { 7702 req.DepartmentId = &builder.departmentId 7703 7704 } 7705 if builder.headCountFlag { 7706 req.HeadCount = &builder.headCount 7707 7708 } 7709 if builder.isNeverExpiredFlag { 7710 req.IsNeverExpired = &builder.isNeverExpired 7711 7712 } 7713 if builder.maxSalaryFlag { 7714 req.MaxSalary = &builder.maxSalary 7715 7716 } 7717 if builder.requirementFlag { 7718 req.Requirement = &builder.requirement 7719 7720 } 7721 if builder.addressIdFlag { 7722 req.AddressId = &builder.addressId 7723 7724 } 7725 if builder.descriptionFlag { 7726 req.Description = &builder.description 7727 7728 } 7729 if builder.highlightListFlag { 7730 req.HighlightList = builder.highlightList 7731 } 7732 if builder.jobTypeIdFlag { 7733 req.JobTypeId = &builder.jobTypeId 7734 7735 } 7736 if builder.maxLevelIdFlag { 7737 req.MaxLevelId = &builder.maxLevelId 7738 7739 } 7740 if builder.recruitmentTypeIdFlag { 7741 req.RecruitmentTypeId = &builder.recruitmentTypeId 7742 7743 } 7744 if builder.requiredDegreeFlag { 7745 req.RequiredDegree = &builder.requiredDegree 7746 7747 } 7748 if builder.jobCategoryIdFlag { 7749 req.JobCategoryId = &builder.jobCategoryId 7750 7751 } 7752 if builder.addressIdListFlag { 7753 req.AddressIdList = builder.addressIdList 7754 } 7755 return req 7756 } 7757 7758 type CombinedJobObjectValueMap struct { 7759 ObjectId *string `json:"object_id,omitempty"` // 结构 ID 7760 Value *string `json:"value,omitempty"` // 结构值 7761 } 7762 7763 type CombinedJobObjectValueMapBuilder struct { 7764 objectId string // 结构 ID 7765 objectIdFlag bool 7766 value string // 结构值 7767 valueFlag bool 7768 } 7769 7770 func NewCombinedJobObjectValueMapBuilder() *CombinedJobObjectValueMapBuilder { 7771 builder := &CombinedJobObjectValueMapBuilder{} 7772 return builder 7773 } 7774 7775 // 结构 ID 7776 // 7777 // 示例值:6960663240925956549 7778 func (builder *CombinedJobObjectValueMapBuilder) ObjectId(objectId string) *CombinedJobObjectValueMapBuilder { 7779 builder.objectId = objectId 7780 builder.objectIdFlag = true 7781 return builder 7782 } 7783 7784 // 结构值 7785 // 7786 // 示例值:测试 7787 func (builder *CombinedJobObjectValueMapBuilder) Value(value string) *CombinedJobObjectValueMapBuilder { 7788 builder.value = value 7789 builder.valueFlag = true 7790 return builder 7791 } 7792 7793 func (builder *CombinedJobObjectValueMapBuilder) Build() *CombinedJobObjectValueMap { 7794 req := &CombinedJobObjectValueMap{} 7795 if builder.objectIdFlag { 7796 req.ObjectId = &builder.objectId 7797 7798 } 7799 if builder.valueFlag { 7800 req.Value = &builder.value 7801 7802 } 7803 return req 7804 } 7805 7806 type CombinedJobResult struct { 7807 DefaultJobPost *CombinedJobResultDefaultJobPost `json:"default_job_post,omitempty"` // 职位广告 7808 Job *Job `json:"job,omitempty"` // 职位 7809 JobManager *JobManager `json:"job_manager,omitempty"` // 职位负责人 7810 } 7811 7812 type CombinedJobResultBuilder struct { 7813 defaultJobPost *CombinedJobResultDefaultJobPost // 职位广告 7814 defaultJobPostFlag bool 7815 job *Job // 职位 7816 jobFlag bool 7817 jobManager *JobManager // 职位负责人 7818 jobManagerFlag bool 7819 } 7820 7821 func NewCombinedJobResultBuilder() *CombinedJobResultBuilder { 7822 builder := &CombinedJobResultBuilder{} 7823 return builder 7824 } 7825 7826 // 职位广告 7827 // 7828 // 示例值: 7829 func (builder *CombinedJobResultBuilder) DefaultJobPost(defaultJobPost *CombinedJobResultDefaultJobPost) *CombinedJobResultBuilder { 7830 builder.defaultJobPost = defaultJobPost 7831 builder.defaultJobPostFlag = true 7832 return builder 7833 } 7834 7835 // 职位 7836 // 7837 // 示例值: 7838 func (builder *CombinedJobResultBuilder) Job(job *Job) *CombinedJobResultBuilder { 7839 builder.job = job 7840 builder.jobFlag = true 7841 return builder 7842 } 7843 7844 // 职位负责人 7845 // 7846 // 示例值: 7847 func (builder *CombinedJobResultBuilder) JobManager(jobManager *JobManager) *CombinedJobResultBuilder { 7848 builder.jobManager = jobManager 7849 builder.jobManagerFlag = true 7850 return builder 7851 } 7852 7853 func (builder *CombinedJobResultBuilder) Build() *CombinedJobResult { 7854 req := &CombinedJobResult{} 7855 if builder.defaultJobPostFlag { 7856 req.DefaultJobPost = builder.defaultJobPost 7857 } 7858 if builder.jobFlag { 7859 req.Job = builder.job 7860 } 7861 if builder.jobManagerFlag { 7862 req.JobManager = builder.jobManager 7863 } 7864 return req 7865 } 7866 7867 type CombinedJobResultDefaultJobPost struct { 7868 Id *string `json:"id,omitempty"` // 默认职位广告的 ID,用以发布至招聘渠道的内容 7869 } 7870 7871 type CombinedJobResultDefaultJobPostBuilder struct { 7872 id string // 默认职位广告的 ID,用以发布至招聘渠道的内容 7873 idFlag bool 7874 } 7875 7876 func NewCombinedJobResultDefaultJobPostBuilder() *CombinedJobResultDefaultJobPostBuilder { 7877 builder := &CombinedJobResultDefaultJobPostBuilder{} 7878 return builder 7879 } 7880 7881 // 默认职位广告的 ID,用以发布至招聘渠道的内容 7882 // 7883 // 示例值:6960663240925956568 7884 func (builder *CombinedJobResultDefaultJobPostBuilder) Id(id string) *CombinedJobResultDefaultJobPostBuilder { 7885 builder.id = id 7886 builder.idFlag = true 7887 return builder 7888 } 7889 7890 func (builder *CombinedJobResultDefaultJobPostBuilder) Build() *CombinedJobResultDefaultJobPost { 7891 req := &CombinedJobResultDefaultJobPost{} 7892 if builder.idFlag { 7893 req.Id = &builder.id 7894 7895 } 7896 return req 7897 } 7898 7899 type CommonAddress struct { 7900 Id *string `json:"id,omitempty"` // ID 7901 Name *I18n `json:"name,omitempty"` // 名称 7902 District *CodeNameObject `json:"district,omitempty"` // 区域信息 7903 City *CodeNameObject `json:"city,omitempty"` // 城市信息 7904 State *CodeNameObject `json:"state,omitempty"` // 省信息 7905 Country *CodeNameObject `json:"country,omitempty"` // 国家信息 7906 } 7907 7908 type CommonAddressBuilder struct { 7909 id string // ID 7910 idFlag bool 7911 name *I18n // 名称 7912 nameFlag bool 7913 district *CodeNameObject // 区域信息 7914 districtFlag bool 7915 city *CodeNameObject // 城市信息 7916 cityFlag bool 7917 state *CodeNameObject // 省信息 7918 stateFlag bool 7919 country *CodeNameObject // 国家信息 7920 countryFlag bool 7921 } 7922 7923 func NewCommonAddressBuilder() *CommonAddressBuilder { 7924 builder := &CommonAddressBuilder{} 7925 return builder 7926 } 7927 7928 // ID 7929 // 7930 // 示例值:6583482347283472832 7931 func (builder *CommonAddressBuilder) Id(id string) *CommonAddressBuilder { 7932 builder.id = id 7933 builder.idFlag = true 7934 return builder 7935 } 7936 7937 // 名称 7938 // 7939 // 示例值: 7940 func (builder *CommonAddressBuilder) Name(name *I18n) *CommonAddressBuilder { 7941 builder.name = name 7942 builder.nameFlag = true 7943 return builder 7944 } 7945 7946 // 区域信息 7947 // 7948 // 示例值: 7949 func (builder *CommonAddressBuilder) District(district *CodeNameObject) *CommonAddressBuilder { 7950 builder.district = district 7951 builder.districtFlag = true 7952 return builder 7953 } 7954 7955 // 城市信息 7956 // 7957 // 示例值: 7958 func (builder *CommonAddressBuilder) City(city *CodeNameObject) *CommonAddressBuilder { 7959 builder.city = city 7960 builder.cityFlag = true 7961 return builder 7962 } 7963 7964 // 省信息 7965 // 7966 // 示例值: 7967 func (builder *CommonAddressBuilder) State(state *CodeNameObject) *CommonAddressBuilder { 7968 builder.state = state 7969 builder.stateFlag = true 7970 return builder 7971 } 7972 7973 // 国家信息 7974 // 7975 // 示例值: 7976 func (builder *CommonAddressBuilder) Country(country *CodeNameObject) *CommonAddressBuilder { 7977 builder.country = country 7978 builder.countryFlag = true 7979 return builder 7980 } 7981 7982 func (builder *CommonAddressBuilder) Build() *CommonAddress { 7983 req := &CommonAddress{} 7984 if builder.idFlag { 7985 req.Id = &builder.id 7986 7987 } 7988 if builder.nameFlag { 7989 req.Name = builder.name 7990 } 7991 if builder.districtFlag { 7992 req.District = builder.district 7993 } 7994 if builder.cityFlag { 7995 req.City = builder.city 7996 } 7997 if builder.stateFlag { 7998 req.State = builder.state 7999 } 8000 if builder.countryFlag { 8001 req.Country = builder.country 8002 } 8003 return req 8004 } 8005 8006 type CommonSchema struct { 8007 Id *string `json:"id,omitempty"` // 模块 ID 8008 Name *I18n `json:"name,omitempty"` // 模块名称 8009 Description *I18n `json:"description,omitempty"` // 模块描述 8010 Setting *CommonSchemaSetting `json:"setting,omitempty"` // 模块信息 8011 IsCustomized *bool `json:"is_customized,omitempty"` // 是否是自定义模块 8012 IsRequired *bool `json:"is_required,omitempty"` // 是否必填 8013 IsVisible *bool `json:"is_visible,omitempty"` // 是否可见 8014 ActiveStatus *int `json:"active_status,omitempty"` // 是否启用 8015 ChildrenList []*CommonSchemaChild `json:"children_list,omitempty"` // 字段列表 8016 } 8017 8018 type CommonSchemaBuilder struct { 8019 id string // 模块 ID 8020 idFlag bool 8021 name *I18n // 模块名称 8022 nameFlag bool 8023 description *I18n // 模块描述 8024 descriptionFlag bool 8025 setting *CommonSchemaSetting // 模块信息 8026 settingFlag bool 8027 isCustomized bool // 是否是自定义模块 8028 isCustomizedFlag bool 8029 isRequired bool // 是否必填 8030 isRequiredFlag bool 8031 isVisible bool // 是否可见 8032 isVisibleFlag bool 8033 activeStatus int // 是否启用 8034 activeStatusFlag bool 8035 childrenList []*CommonSchemaChild // 字段列表 8036 childrenListFlag bool 8037 } 8038 8039 func NewCommonSchemaBuilder() *CommonSchemaBuilder { 8040 builder := &CommonSchemaBuilder{} 8041 return builder 8042 } 8043 8044 // 模块 ID 8045 // 8046 // 示例值:6949805467799537964 8047 func (builder *CommonSchemaBuilder) Id(id string) *CommonSchemaBuilder { 8048 builder.id = id 8049 builder.idFlag = true 8050 return builder 8051 } 8052 8053 // 模块名称 8054 // 8055 // 示例值: 8056 func (builder *CommonSchemaBuilder) Name(name *I18n) *CommonSchemaBuilder { 8057 builder.name = name 8058 builder.nameFlag = true 8059 return builder 8060 } 8061 8062 // 模块描述 8063 // 8064 // 示例值: 8065 func (builder *CommonSchemaBuilder) Description(description *I18n) *CommonSchemaBuilder { 8066 builder.description = description 8067 builder.descriptionFlag = true 8068 return builder 8069 } 8070 8071 // 模块信息 8072 // 8073 // 示例值: 8074 func (builder *CommonSchemaBuilder) Setting(setting *CommonSchemaSetting) *CommonSchemaBuilder { 8075 builder.setting = setting 8076 builder.settingFlag = true 8077 return builder 8078 } 8079 8080 // 是否是自定义模块 8081 // 8082 // 示例值:true 8083 func (builder *CommonSchemaBuilder) IsCustomized(isCustomized bool) *CommonSchemaBuilder { 8084 builder.isCustomized = isCustomized 8085 builder.isCustomizedFlag = true 8086 return builder 8087 } 8088 8089 // 是否必填 8090 // 8091 // 示例值:false 8092 func (builder *CommonSchemaBuilder) IsRequired(isRequired bool) *CommonSchemaBuilder { 8093 builder.isRequired = isRequired 8094 builder.isRequiredFlag = true 8095 return builder 8096 } 8097 8098 // 是否可见 8099 // 8100 // 示例值:true 8101 func (builder *CommonSchemaBuilder) IsVisible(isVisible bool) *CommonSchemaBuilder { 8102 builder.isVisible = isVisible 8103 builder.isVisibleFlag = true 8104 return builder 8105 } 8106 8107 // 是否启用 8108 // 8109 // 示例值:1 8110 func (builder *CommonSchemaBuilder) ActiveStatus(activeStatus int) *CommonSchemaBuilder { 8111 builder.activeStatus = activeStatus 8112 builder.activeStatusFlag = true 8113 return builder 8114 } 8115 8116 // 字段列表 8117 // 8118 // 示例值: 8119 func (builder *CommonSchemaBuilder) ChildrenList(childrenList []*CommonSchemaChild) *CommonSchemaBuilder { 8120 builder.childrenList = childrenList 8121 builder.childrenListFlag = true 8122 return builder 8123 } 8124 8125 func (builder *CommonSchemaBuilder) Build() *CommonSchema { 8126 req := &CommonSchema{} 8127 if builder.idFlag { 8128 req.Id = &builder.id 8129 8130 } 8131 if builder.nameFlag { 8132 req.Name = builder.name 8133 } 8134 if builder.descriptionFlag { 8135 req.Description = builder.description 8136 } 8137 if builder.settingFlag { 8138 req.Setting = builder.setting 8139 } 8140 if builder.isCustomizedFlag { 8141 req.IsCustomized = &builder.isCustomized 8142 8143 } 8144 if builder.isRequiredFlag { 8145 req.IsRequired = &builder.isRequired 8146 8147 } 8148 if builder.isVisibleFlag { 8149 req.IsVisible = &builder.isVisible 8150 8151 } 8152 if builder.activeStatusFlag { 8153 req.ActiveStatus = &builder.activeStatus 8154 8155 } 8156 if builder.childrenListFlag { 8157 req.ChildrenList = builder.childrenList 8158 } 8159 return req 8160 } 8161 8162 type CommonSchemaChild struct { 8163 Id *string `json:"id,omitempty"` // 字段 ID 8164 Name *I18n `json:"name,omitempty"` // 字段名称 8165 Description *I18n `json:"description,omitempty"` // 字段描述 8166 Setting *CommonSchemaSetting `json:"setting,omitempty"` // 字段信息 8167 ParentId *string `json:"parent_id,omitempty"` // 所属模块 ID 8168 IsCustomized *bool `json:"is_customized,omitempty"` // 是否是自定义字段 8169 IsRequired *bool `json:"is_required,omitempty"` // 是否必填 8170 IsVisible *bool `json:"is_visible,omitempty"` // 是否可见 8171 ActiveStatus *int `json:"active_status,omitempty"` // 是否启用 8172 } 8173 8174 type CommonSchemaChildBuilder struct { 8175 id string // 字段 ID 8176 idFlag bool 8177 name *I18n // 字段名称 8178 nameFlag bool 8179 description *I18n // 字段描述 8180 descriptionFlag bool 8181 setting *CommonSchemaSetting // 字段信息 8182 settingFlag bool 8183 parentId string // 所属模块 ID 8184 parentIdFlag bool 8185 isCustomized bool // 是否是自定义字段 8186 isCustomizedFlag bool 8187 isRequired bool // 是否必填 8188 isRequiredFlag bool 8189 isVisible bool // 是否可见 8190 isVisibleFlag bool 8191 activeStatus int // 是否启用 8192 activeStatusFlag bool 8193 } 8194 8195 func NewCommonSchemaChildBuilder() *CommonSchemaChildBuilder { 8196 builder := &CommonSchemaChildBuilder{} 8197 return builder 8198 } 8199 8200 // 字段 ID 8201 // 8202 // 示例值:6949805467799537964 8203 func (builder *CommonSchemaChildBuilder) Id(id string) *CommonSchemaChildBuilder { 8204 builder.id = id 8205 builder.idFlag = true 8206 return builder 8207 } 8208 8209 // 字段名称 8210 // 8211 // 示例值: 8212 func (builder *CommonSchemaChildBuilder) Name(name *I18n) *CommonSchemaChildBuilder { 8213 builder.name = name 8214 builder.nameFlag = true 8215 return builder 8216 } 8217 8218 // 字段描述 8219 // 8220 // 示例值: 8221 func (builder *CommonSchemaChildBuilder) Description(description *I18n) *CommonSchemaChildBuilder { 8222 builder.description = description 8223 builder.descriptionFlag = true 8224 return builder 8225 } 8226 8227 // 字段信息 8228 // 8229 // 示例值: 8230 func (builder *CommonSchemaChildBuilder) Setting(setting *CommonSchemaSetting) *CommonSchemaChildBuilder { 8231 builder.setting = setting 8232 builder.settingFlag = true 8233 return builder 8234 } 8235 8236 // 所属模块 ID 8237 // 8238 // 示例值:6949805467799537964 8239 func (builder *CommonSchemaChildBuilder) ParentId(parentId string) *CommonSchemaChildBuilder { 8240 builder.parentId = parentId 8241 builder.parentIdFlag = true 8242 return builder 8243 } 8244 8245 // 是否是自定义字段 8246 // 8247 // 示例值:true 8248 func (builder *CommonSchemaChildBuilder) IsCustomized(isCustomized bool) *CommonSchemaChildBuilder { 8249 builder.isCustomized = isCustomized 8250 builder.isCustomizedFlag = true 8251 return builder 8252 } 8253 8254 // 是否必填 8255 // 8256 // 示例值:false 8257 func (builder *CommonSchemaChildBuilder) IsRequired(isRequired bool) *CommonSchemaChildBuilder { 8258 builder.isRequired = isRequired 8259 builder.isRequiredFlag = true 8260 return builder 8261 } 8262 8263 // 是否可见 8264 // 8265 // 示例值:true 8266 func (builder *CommonSchemaChildBuilder) IsVisible(isVisible bool) *CommonSchemaChildBuilder { 8267 builder.isVisible = isVisible 8268 builder.isVisibleFlag = true 8269 return builder 8270 } 8271 8272 // 是否启用 8273 // 8274 // 示例值:1 8275 func (builder *CommonSchemaChildBuilder) ActiveStatus(activeStatus int) *CommonSchemaChildBuilder { 8276 builder.activeStatus = activeStatus 8277 builder.activeStatusFlag = true 8278 return builder 8279 } 8280 8281 func (builder *CommonSchemaChildBuilder) Build() *CommonSchemaChild { 8282 req := &CommonSchemaChild{} 8283 if builder.idFlag { 8284 req.Id = &builder.id 8285 8286 } 8287 if builder.nameFlag { 8288 req.Name = builder.name 8289 } 8290 if builder.descriptionFlag { 8291 req.Description = builder.description 8292 } 8293 if builder.settingFlag { 8294 req.Setting = builder.setting 8295 } 8296 if builder.parentIdFlag { 8297 req.ParentId = &builder.parentId 8298 8299 } 8300 if builder.isCustomizedFlag { 8301 req.IsCustomized = &builder.isCustomized 8302 8303 } 8304 if builder.isRequiredFlag { 8305 req.IsRequired = &builder.isRequired 8306 8307 } 8308 if builder.isVisibleFlag { 8309 req.IsVisible = &builder.isVisible 8310 8311 } 8312 if builder.activeStatusFlag { 8313 req.ActiveStatus = &builder.activeStatus 8314 8315 } 8316 return req 8317 } 8318 8319 type CommonSchemaConfig struct { 8320 Options []*CommonSchemaOption `json:"options,omitempty"` // 选项信息 8321 } 8322 8323 type CommonSchemaConfigBuilder struct { 8324 options []*CommonSchemaOption // 选项信息 8325 optionsFlag bool 8326 } 8327 8328 func NewCommonSchemaConfigBuilder() *CommonSchemaConfigBuilder { 8329 builder := &CommonSchemaConfigBuilder{} 8330 return builder 8331 } 8332 8333 // 选项信息 8334 // 8335 // 示例值: 8336 func (builder *CommonSchemaConfigBuilder) Options(options []*CommonSchemaOption) *CommonSchemaConfigBuilder { 8337 builder.options = options 8338 builder.optionsFlag = true 8339 return builder 8340 } 8341 8342 func (builder *CommonSchemaConfigBuilder) Build() *CommonSchemaConfig { 8343 req := &CommonSchemaConfig{} 8344 if builder.optionsFlag { 8345 req.Options = builder.options 8346 } 8347 return req 8348 } 8349 8350 type CommonSchemaOption struct { 8351 Key *string `json:"key,omitempty"` // 选项 ID 8352 Name *I18n `json:"name,omitempty"` // 选项名称 8353 Description *I18n `json:"description,omitempty"` // 选项描述 8354 ActiveStatus *int `json:"active_status,omitempty"` // 是否启用 8355 } 8356 8357 type CommonSchemaOptionBuilder struct { 8358 key string // 选项 ID 8359 keyFlag bool 8360 name *I18n // 选项名称 8361 nameFlag bool 8362 description *I18n // 选项描述 8363 descriptionFlag bool 8364 activeStatus int // 是否启用 8365 activeStatusFlag bool 8366 } 8367 8368 func NewCommonSchemaOptionBuilder() *CommonSchemaOptionBuilder { 8369 builder := &CommonSchemaOptionBuilder{} 8370 return builder 8371 } 8372 8373 // 选项 ID 8374 // 8375 // 示例值:test 8376 func (builder *CommonSchemaOptionBuilder) Key(key string) *CommonSchemaOptionBuilder { 8377 builder.key = key 8378 builder.keyFlag = true 8379 return builder 8380 } 8381 8382 // 选项名称 8383 // 8384 // 示例值: 8385 func (builder *CommonSchemaOptionBuilder) Name(name *I18n) *CommonSchemaOptionBuilder { 8386 builder.name = name 8387 builder.nameFlag = true 8388 return builder 8389 } 8390 8391 // 选项描述 8392 // 8393 // 示例值: 8394 func (builder *CommonSchemaOptionBuilder) Description(description *I18n) *CommonSchemaOptionBuilder { 8395 builder.description = description 8396 builder.descriptionFlag = true 8397 return builder 8398 } 8399 8400 // 是否启用 8401 // 8402 // 示例值:1 8403 func (builder *CommonSchemaOptionBuilder) ActiveStatus(activeStatus int) *CommonSchemaOptionBuilder { 8404 builder.activeStatus = activeStatus 8405 builder.activeStatusFlag = true 8406 return builder 8407 } 8408 8409 func (builder *CommonSchemaOptionBuilder) Build() *CommonSchemaOption { 8410 req := &CommonSchemaOption{} 8411 if builder.keyFlag { 8412 req.Key = &builder.key 8413 8414 } 8415 if builder.nameFlag { 8416 req.Name = builder.name 8417 } 8418 if builder.descriptionFlag { 8419 req.Description = builder.description 8420 } 8421 if builder.activeStatusFlag { 8422 req.ActiveStatus = &builder.activeStatus 8423 8424 } 8425 return req 8426 } 8427 8428 type CommonSchemaSetting struct { 8429 ObjectType *int `json:"object_type,omitempty"` // 字段类型 8430 Config *CommonSchemaConfig `json:"config,omitempty"` // 配置信息 8431 } 8432 8433 type CommonSchemaSettingBuilder struct { 8434 objectType int // 字段类型 8435 objectTypeFlag bool 8436 config *CommonSchemaConfig // 配置信息 8437 configFlag bool 8438 } 8439 8440 func NewCommonSchemaSettingBuilder() *CommonSchemaSettingBuilder { 8441 builder := &CommonSchemaSettingBuilder{} 8442 return builder 8443 } 8444 8445 // 字段类型 8446 // 8447 // 示例值:1 8448 func (builder *CommonSchemaSettingBuilder) ObjectType(objectType int) *CommonSchemaSettingBuilder { 8449 builder.objectType = objectType 8450 builder.objectTypeFlag = true 8451 return builder 8452 } 8453 8454 // 配置信息 8455 // 8456 // 示例值: 8457 func (builder *CommonSchemaSettingBuilder) Config(config *CommonSchemaConfig) *CommonSchemaSettingBuilder { 8458 builder.config = config 8459 builder.configFlag = true 8460 return builder 8461 } 8462 8463 func (builder *CommonSchemaSettingBuilder) Build() *CommonSchemaSetting { 8464 req := &CommonSchemaSetting{} 8465 if builder.objectTypeFlag { 8466 req.ObjectType = &builder.objectType 8467 8468 } 8469 if builder.configFlag { 8470 req.Config = builder.config 8471 } 8472 return req 8473 } 8474 8475 type CompetitionInfo struct { 8476 Desc *string `json:"desc,omitempty"` // 竞赛描述 8477 Name *string `json:"name,omitempty"` // 竞赛名称 8478 } 8479 8480 type CompetitionInfoBuilder struct { 8481 desc string // 竞赛描述 8482 descFlag bool 8483 name string // 竞赛名称 8484 nameFlag bool 8485 } 8486 8487 func NewCompetitionInfoBuilder() *CompetitionInfoBuilder { 8488 builder := &CompetitionInfoBuilder{} 8489 return builder 8490 } 8491 8492 // 竞赛描述 8493 // 8494 // 示例值: 8495 func (builder *CompetitionInfoBuilder) Desc(desc string) *CompetitionInfoBuilder { 8496 builder.desc = desc 8497 builder.descFlag = true 8498 return builder 8499 } 8500 8501 // 竞赛名称 8502 // 8503 // 示例值: 8504 func (builder *CompetitionInfoBuilder) Name(name string) *CompetitionInfoBuilder { 8505 builder.name = name 8506 builder.nameFlag = true 8507 return builder 8508 } 8509 8510 func (builder *CompetitionInfoBuilder) Build() *CompetitionInfo { 8511 req := &CompetitionInfo{} 8512 if builder.descFlag { 8513 req.Desc = &builder.desc 8514 8515 } 8516 if builder.nameFlag { 8517 req.Name = &builder.name 8518 8519 } 8520 return req 8521 } 8522 8523 type Country struct { 8524 CountryCode *string `json:"country_code,omitempty"` // 国家编码 8525 Name *string `json:"name,omitempty"` // 名字 8526 EnName *string `json:"en_name,omitempty"` // 英文名 8527 } 8528 8529 type CountryBuilder struct { 8530 countryCode string // 国家编码 8531 countryCodeFlag bool 8532 name string // 名字 8533 nameFlag bool 8534 enName string // 英文名 8535 enNameFlag bool 8536 } 8537 8538 func NewCountryBuilder() *CountryBuilder { 8539 builder := &CountryBuilder{} 8540 return builder 8541 } 8542 8543 // 国家编码 8544 // 8545 // 示例值: 8546 func (builder *CountryBuilder) CountryCode(countryCode string) *CountryBuilder { 8547 builder.countryCode = countryCode 8548 builder.countryCodeFlag = true 8549 return builder 8550 } 8551 8552 // 名字 8553 // 8554 // 示例值: 8555 func (builder *CountryBuilder) Name(name string) *CountryBuilder { 8556 builder.name = name 8557 builder.nameFlag = true 8558 return builder 8559 } 8560 8561 // 英文名 8562 // 8563 // 示例值: 8564 func (builder *CountryBuilder) EnName(enName string) *CountryBuilder { 8565 builder.enName = enName 8566 builder.enNameFlag = true 8567 return builder 8568 } 8569 8570 func (builder *CountryBuilder) Build() *Country { 8571 req := &Country{} 8572 if builder.countryCodeFlag { 8573 req.CountryCode = &builder.countryCode 8574 8575 } 8576 if builder.nameFlag { 8577 req.Name = &builder.name 8578 8579 } 8580 if builder.enNameFlag { 8581 req.EnName = &builder.enName 8582 8583 } 8584 return req 8585 } 8586 8587 type Department struct { 8588 Id *string `json:"id,omitempty"` // ID 8589 Name *string `json:"name,omitempty"` // 名字 8590 EnName *string `json:"en_name,omitempty"` // 英文名 8591 } 8592 8593 type DepartmentBuilder struct { 8594 id string // ID 8595 idFlag bool 8596 name string // 名字 8597 nameFlag bool 8598 enName string // 英文名 8599 enNameFlag bool 8600 } 8601 8602 func NewDepartmentBuilder() *DepartmentBuilder { 8603 builder := &DepartmentBuilder{} 8604 return builder 8605 } 8606 8607 // ID 8608 // 8609 // 示例值:1213213123123 8610 func (builder *DepartmentBuilder) Id(id string) *DepartmentBuilder { 8611 builder.id = id 8612 builder.idFlag = true 8613 return builder 8614 } 8615 8616 // 名字 8617 // 8618 // 示例值:部门名A 8619 func (builder *DepartmentBuilder) Name(name string) *DepartmentBuilder { 8620 builder.name = name 8621 builder.nameFlag = true 8622 return builder 8623 } 8624 8625 // 英文名 8626 // 8627 // 示例值:Name 8628 func (builder *DepartmentBuilder) EnName(enName string) *DepartmentBuilder { 8629 builder.enName = enName 8630 builder.enNameFlag = true 8631 return builder 8632 } 8633 8634 func (builder *DepartmentBuilder) Build() *Department { 8635 req := &Department{} 8636 if builder.idFlag { 8637 req.Id = &builder.id 8638 8639 } 8640 if builder.nameFlag { 8641 req.Name = &builder.name 8642 8643 } 8644 if builder.enNameFlag { 8645 req.EnName = &builder.enName 8646 8647 } 8648 return req 8649 } 8650 8651 type Dummy struct { 8652 Id *string `json:"id,omitempty"` // id 8653 } 8654 8655 type DummyBuilder struct { 8656 id string // id 8657 idFlag bool 8658 } 8659 8660 func NewDummyBuilder() *DummyBuilder { 8661 builder := &DummyBuilder{} 8662 return builder 8663 } 8664 8665 // id 8666 // 8667 // 示例值: 8668 func (builder *DummyBuilder) Id(id string) *DummyBuilder { 8669 builder.id = id 8670 builder.idFlag = true 8671 return builder 8672 } 8673 8674 func (builder *DummyBuilder) Build() *Dummy { 8675 req := &Dummy{} 8676 if builder.idFlag { 8677 req.Id = &builder.id 8678 8679 } 8680 return req 8681 } 8682 8683 type EducationInfo struct { 8684 Degree *int `json:"degree,omitempty"` // 学历 8685 EndTime *int `json:"end_time,omitempty"` // 结束时间 8686 FieldOfStudy *string `json:"field_of_study,omitempty"` // 专业 8687 School *string `json:"school,omitempty"` // 学校 8688 StartTime *int `json:"start_time,omitempty"` // 开始时间 8689 EducationType *int `json:"education_type,omitempty"` // 学历类型 8690 AcademicRanking *int `json:"academic_ranking,omitempty"` // 排名 8691 } 8692 8693 type EducationInfoBuilder struct { 8694 degree int // 学历 8695 degreeFlag bool 8696 endTime int // 结束时间 8697 endTimeFlag bool 8698 fieldOfStudy string // 专业 8699 fieldOfStudyFlag bool 8700 school string // 学校 8701 schoolFlag bool 8702 startTime int // 开始时间 8703 startTimeFlag bool 8704 educationType int // 学历类型 8705 educationTypeFlag bool 8706 academicRanking int // 排名 8707 academicRankingFlag bool 8708 } 8709 8710 func NewEducationInfoBuilder() *EducationInfoBuilder { 8711 builder := &EducationInfoBuilder{} 8712 return builder 8713 } 8714 8715 // 学历 8716 // 8717 // 示例值: 8718 func (builder *EducationInfoBuilder) Degree(degree int) *EducationInfoBuilder { 8719 builder.degree = degree 8720 builder.degreeFlag = true 8721 return builder 8722 } 8723 8724 // 结束时间 8725 // 8726 // 示例值: 8727 func (builder *EducationInfoBuilder) EndTime(endTime int) *EducationInfoBuilder { 8728 builder.endTime = endTime 8729 builder.endTimeFlag = true 8730 return builder 8731 } 8732 8733 // 专业 8734 // 8735 // 示例值: 8736 func (builder *EducationInfoBuilder) FieldOfStudy(fieldOfStudy string) *EducationInfoBuilder { 8737 builder.fieldOfStudy = fieldOfStudy 8738 builder.fieldOfStudyFlag = true 8739 return builder 8740 } 8741 8742 // 学校 8743 // 8744 // 示例值: 8745 func (builder *EducationInfoBuilder) School(school string) *EducationInfoBuilder { 8746 builder.school = school 8747 builder.schoolFlag = true 8748 return builder 8749 } 8750 8751 // 开始时间 8752 // 8753 // 示例值: 8754 func (builder *EducationInfoBuilder) StartTime(startTime int) *EducationInfoBuilder { 8755 builder.startTime = startTime 8756 builder.startTimeFlag = true 8757 return builder 8758 } 8759 8760 // 学历类型 8761 // 8762 // 示例值: 8763 func (builder *EducationInfoBuilder) EducationType(educationType int) *EducationInfoBuilder { 8764 builder.educationType = educationType 8765 builder.educationTypeFlag = true 8766 return builder 8767 } 8768 8769 // 排名 8770 // 8771 // 示例值: 8772 func (builder *EducationInfoBuilder) AcademicRanking(academicRanking int) *EducationInfoBuilder { 8773 builder.academicRanking = academicRanking 8774 builder.academicRankingFlag = true 8775 return builder 8776 } 8777 8778 func (builder *EducationInfoBuilder) Build() *EducationInfo { 8779 req := &EducationInfo{} 8780 if builder.degreeFlag { 8781 req.Degree = &builder.degree 8782 8783 } 8784 if builder.endTimeFlag { 8785 req.EndTime = &builder.endTime 8786 8787 } 8788 if builder.fieldOfStudyFlag { 8789 req.FieldOfStudy = &builder.fieldOfStudy 8790 8791 } 8792 if builder.schoolFlag { 8793 req.School = &builder.school 8794 8795 } 8796 if builder.startTimeFlag { 8797 req.StartTime = &builder.startTime 8798 8799 } 8800 if builder.educationTypeFlag { 8801 req.EducationType = &builder.educationType 8802 8803 } 8804 if builder.academicRankingFlag { 8805 req.AcademicRanking = &builder.academicRanking 8806 8807 } 8808 return req 8809 } 8810 8811 type EhrImportTask struct { 8812 FailReason *string `json:"fail_reason,omitempty"` // 失败原因,仅在导入结果为失败时可用 8813 RedirectUrl *string `json:"redirect_url,omitempty"` // 跳转链接,若需返回跳转链接,请前往飞书招聘「设置 - 生态对接 - e-HR / OA 办公系统 - 『导入 e-HR』功能设置」中开启「支持对接的 e-HR / OA 系统返回外部链接」开关 8814 State *int `json:"state,omitempty"` // 导入结果 8815 } 8816 8817 type EhrImportTaskBuilder struct { 8818 failReason string // 失败原因,仅在导入结果为失败时可用 8819 failReasonFlag bool 8820 redirectUrl string // 跳转链接,若需返回跳转链接,请前往飞书招聘「设置 - 生态对接 - e-HR / OA 办公系统 - 『导入 e-HR』功能设置」中开启「支持对接的 e-HR / OA 系统返回外部链接」开关 8821 redirectUrlFlag bool 8822 state int // 导入结果 8823 stateFlag bool 8824 } 8825 8826 func NewEhrImportTaskBuilder() *EhrImportTaskBuilder { 8827 builder := &EhrImportTaskBuilder{} 8828 return builder 8829 } 8830 8831 // 失败原因,仅在导入结果为失败时可用 8832 // 8833 // 示例值:当前 HC 不可用 8834 func (builder *EhrImportTaskBuilder) FailReason(failReason string) *EhrImportTaskBuilder { 8835 builder.failReason = failReason 8836 builder.failReasonFlag = true 8837 return builder 8838 } 8839 8840 // 跳转链接,若需返回跳转链接,请前往飞书招聘「设置 - 生态对接 - e-HR / OA 办公系统 - 『导入 e-HR』功能设置」中开启「支持对接的 e-HR / OA 系统返回外部链接」开关 8841 // 8842 // 示例值:https://example.com 8843 func (builder *EhrImportTaskBuilder) RedirectUrl(redirectUrl string) *EhrImportTaskBuilder { 8844 builder.redirectUrl = redirectUrl 8845 builder.redirectUrlFlag = true 8846 return builder 8847 } 8848 8849 // 导入结果 8850 // 8851 // 示例值:2 8852 func (builder *EhrImportTaskBuilder) State(state int) *EhrImportTaskBuilder { 8853 builder.state = state 8854 builder.stateFlag = true 8855 return builder 8856 } 8857 8858 func (builder *EhrImportTaskBuilder) Build() *EhrImportTask { 8859 req := &EhrImportTask{} 8860 if builder.failReasonFlag { 8861 req.FailReason = &builder.failReason 8862 8863 } 8864 if builder.redirectUrlFlag { 8865 req.RedirectUrl = &builder.redirectUrl 8866 8867 } 8868 if builder.stateFlag { 8869 req.State = &builder.state 8870 8871 } 8872 return req 8873 } 8874 8875 type Employee struct { 8876 Id *string `json:"id,omitempty"` // 员工ID 8877 ApplicationId *string `json:"application_id,omitempty"` // 投递ID 8878 OnboardStatus *int `json:"onboard_status,omitempty"` // 入职状态 8879 ConversionStatus *int `json:"conversion_status,omitempty"` // 转正状态 8880 OnboardTime *int `json:"onboard_time,omitempty"` // 实际入职时间 8881 ExpectedConversionTime *int `json:"expected_conversion_time,omitempty"` // 预期转正时间 8882 ActualConversionTime *int `json:"actual_conversion_time,omitempty"` // 实际转正时间 8883 OverboardTime *int `json:"overboard_time,omitempty"` // 离职时间 8884 OverboardNote *string `json:"overboard_note,omitempty"` // 离职原因 8885 OnboardCityCode *string `json:"onboard_city_code,omitempty"` // 办公地点 8886 Department *string `json:"department,omitempty"` // 入职部门 8887 Leader *string `json:"leader,omitempty"` // 直属上级 8888 Sequence *string `json:"sequence,omitempty"` // 序列 8889 Level *string `json:"level,omitempty"` // 职级 8890 EmployeeType *string `json:"employee_type,omitempty"` // 员工类型 8891 } 8892 8893 type EmployeeBuilder struct { 8894 id string // 员工ID 8895 idFlag bool 8896 applicationId string // 投递ID 8897 applicationIdFlag bool 8898 onboardStatus int // 入职状态 8899 onboardStatusFlag bool 8900 conversionStatus int // 转正状态 8901 conversionStatusFlag bool 8902 onboardTime int // 实际入职时间 8903 onboardTimeFlag bool 8904 expectedConversionTime int // 预期转正时间 8905 expectedConversionTimeFlag bool 8906 actualConversionTime int // 实际转正时间 8907 actualConversionTimeFlag bool 8908 overboardTime int // 离职时间 8909 overboardTimeFlag bool 8910 overboardNote string // 离职原因 8911 overboardNoteFlag bool 8912 onboardCityCode string // 办公地点 8913 onboardCityCodeFlag bool 8914 department string // 入职部门 8915 departmentFlag bool 8916 leader string // 直属上级 8917 leaderFlag bool 8918 sequence string // 序列 8919 sequenceFlag bool 8920 level string // 职级 8921 levelFlag bool 8922 employeeType string // 员工类型 8923 employeeTypeFlag bool 8924 } 8925 8926 func NewEmployeeBuilder() *EmployeeBuilder { 8927 builder := &EmployeeBuilder{} 8928 return builder 8929 } 8930 8931 // 员工ID 8932 // 8933 // 示例值:7095600054216542508 8934 func (builder *EmployeeBuilder) Id(id string) *EmployeeBuilder { 8935 builder.id = id 8936 builder.idFlag = true 8937 return builder 8938 } 8939 8940 // 投递ID 8941 // 8942 // 示例值:7073372582620416300 8943 func (builder *EmployeeBuilder) ApplicationId(applicationId string) *EmployeeBuilder { 8944 builder.applicationId = applicationId 8945 builder.applicationIdFlag = true 8946 return builder 8947 } 8948 8949 // 入职状态 8950 // 8951 // 示例值:1 8952 func (builder *EmployeeBuilder) OnboardStatus(onboardStatus int) *EmployeeBuilder { 8953 builder.onboardStatus = onboardStatus 8954 builder.onboardStatusFlag = true 8955 return builder 8956 } 8957 8958 // 转正状态 8959 // 8960 // 示例值:1 8961 func (builder *EmployeeBuilder) ConversionStatus(conversionStatus int) *EmployeeBuilder { 8962 builder.conversionStatus = conversionStatus 8963 builder.conversionStatusFlag = true 8964 return builder 8965 } 8966 8967 // 实际入职时间 8968 // 8969 // 示例值:1637596800000 8970 func (builder *EmployeeBuilder) OnboardTime(onboardTime int) *EmployeeBuilder { 8971 builder.onboardTime = onboardTime 8972 builder.onboardTimeFlag = true 8973 return builder 8974 } 8975 8976 // 预期转正时间 8977 // 8978 // 示例值:1637596800000 8979 func (builder *EmployeeBuilder) ExpectedConversionTime(expectedConversionTime int) *EmployeeBuilder { 8980 builder.expectedConversionTime = expectedConversionTime 8981 builder.expectedConversionTimeFlag = true 8982 return builder 8983 } 8984 8985 // 实际转正时间 8986 // 8987 // 示例值:1637596800000 8988 func (builder *EmployeeBuilder) ActualConversionTime(actualConversionTime int) *EmployeeBuilder { 8989 builder.actualConversionTime = actualConversionTime 8990 builder.actualConversionTimeFlag = true 8991 return builder 8992 } 8993 8994 // 离职时间 8995 // 8996 // 示例值:1637596800000 8997 func (builder *EmployeeBuilder) OverboardTime(overboardTime int) *EmployeeBuilder { 8998 builder.overboardTime = overboardTime 8999 builder.overboardTimeFlag = true 9000 return builder 9001 } 9002 9003 // 离职原因 9004 // 9005 // 示例值:职业发展考虑 9006 func (builder *EmployeeBuilder) OverboardNote(overboardNote string) *EmployeeBuilder { 9007 builder.overboardNote = overboardNote 9008 builder.overboardNoteFlag = true 9009 return builder 9010 } 9011 9012 // 办公地点 9013 // 9014 // 示例值:CT_2 9015 func (builder *EmployeeBuilder) OnboardCityCode(onboardCityCode string) *EmployeeBuilder { 9016 builder.onboardCityCode = onboardCityCode 9017 builder.onboardCityCodeFlag = true 9018 return builder 9019 } 9020 9021 // 入职部门 9022 // 9023 // 示例值:6966123381141866028 9024 func (builder *EmployeeBuilder) Department(department string) *EmployeeBuilder { 9025 builder.department = department 9026 builder.departmentFlag = true 9027 return builder 9028 } 9029 9030 // 直属上级 9031 // 9032 // 示例值:ou-xxx 9033 func (builder *EmployeeBuilder) Leader(leader string) *EmployeeBuilder { 9034 builder.leader = leader 9035 builder.leaderFlag = true 9036 return builder 9037 } 9038 9039 // 序列 9040 // 9041 // 示例值:6937934036379650311 9042 func (builder *EmployeeBuilder) Sequence(sequence string) *EmployeeBuilder { 9043 builder.sequence = sequence 9044 builder.sequenceFlag = true 9045 return builder 9046 } 9047 9048 // 职级 9049 // 9050 // 示例值:7006234385490345986 9051 func (builder *EmployeeBuilder) Level(level string) *EmployeeBuilder { 9052 builder.level = level 9053 builder.levelFlag = true 9054 return builder 9055 } 9056 9057 // 员工类型 9058 // 9059 // 示例值:1 9060 func (builder *EmployeeBuilder) EmployeeType(employeeType string) *EmployeeBuilder { 9061 builder.employeeType = employeeType 9062 builder.employeeTypeFlag = true 9063 return builder 9064 } 9065 9066 func (builder *EmployeeBuilder) Build() *Employee { 9067 req := &Employee{} 9068 if builder.idFlag { 9069 req.Id = &builder.id 9070 9071 } 9072 if builder.applicationIdFlag { 9073 req.ApplicationId = &builder.applicationId 9074 9075 } 9076 if builder.onboardStatusFlag { 9077 req.OnboardStatus = &builder.onboardStatus 9078 9079 } 9080 if builder.conversionStatusFlag { 9081 req.ConversionStatus = &builder.conversionStatus 9082 9083 } 9084 if builder.onboardTimeFlag { 9085 req.OnboardTime = &builder.onboardTime 9086 9087 } 9088 if builder.expectedConversionTimeFlag { 9089 req.ExpectedConversionTime = &builder.expectedConversionTime 9090 9091 } 9092 if builder.actualConversionTimeFlag { 9093 req.ActualConversionTime = &builder.actualConversionTime 9094 9095 } 9096 if builder.overboardTimeFlag { 9097 req.OverboardTime = &builder.overboardTime 9098 9099 } 9100 if builder.overboardNoteFlag { 9101 req.OverboardNote = &builder.overboardNote 9102 9103 } 9104 if builder.onboardCityCodeFlag { 9105 req.OnboardCityCode = &builder.onboardCityCode 9106 9107 } 9108 if builder.departmentFlag { 9109 req.Department = &builder.department 9110 9111 } 9112 if builder.leaderFlag { 9113 req.Leader = &builder.leader 9114 9115 } 9116 if builder.sequenceFlag { 9117 req.Sequence = &builder.sequence 9118 9119 } 9120 if builder.levelFlag { 9121 req.Level = &builder.level 9122 9123 } 9124 if builder.employeeTypeFlag { 9125 req.EmployeeType = &builder.employeeType 9126 9127 } 9128 return req 9129 } 9130 9131 type EmployeeConversionInfo struct { 9132 ActualConversionTime *int `json:"actual_conversion_time,omitempty"` // 实际转正日期 9133 } 9134 9135 type EmployeeConversionInfoBuilder struct { 9136 actualConversionTime int // 实际转正日期 9137 actualConversionTimeFlag bool 9138 } 9139 9140 func NewEmployeeConversionInfoBuilder() *EmployeeConversionInfoBuilder { 9141 builder := &EmployeeConversionInfoBuilder{} 9142 return builder 9143 } 9144 9145 // 实际转正日期 9146 // 9147 // 示例值:1637596800000 9148 func (builder *EmployeeConversionInfoBuilder) ActualConversionTime(actualConversionTime int) *EmployeeConversionInfoBuilder { 9149 builder.actualConversionTime = actualConversionTime 9150 builder.actualConversionTimeFlag = true 9151 return builder 9152 } 9153 9154 func (builder *EmployeeConversionInfoBuilder) Build() *EmployeeConversionInfo { 9155 req := &EmployeeConversionInfo{} 9156 if builder.actualConversionTimeFlag { 9157 req.ActualConversionTime = &builder.actualConversionTime 9158 9159 } 9160 return req 9161 } 9162 9163 type EmployeeOverboardInfo struct { 9164 ActualOverboardTime *int `json:"actual_overboard_time,omitempty"` // 实际离职日期 9165 OverboardNote *string `json:"overboard_note,omitempty"` // 离职原因 9166 } 9167 9168 type EmployeeOverboardInfoBuilder struct { 9169 actualOverboardTime int // 实际离职日期 9170 actualOverboardTimeFlag bool 9171 overboardNote string // 离职原因 9172 overboardNoteFlag bool 9173 } 9174 9175 func NewEmployeeOverboardInfoBuilder() *EmployeeOverboardInfoBuilder { 9176 builder := &EmployeeOverboardInfoBuilder{} 9177 return builder 9178 } 9179 9180 // 实际离职日期 9181 // 9182 // 示例值:1637596800000 9183 func (builder *EmployeeOverboardInfoBuilder) ActualOverboardTime(actualOverboardTime int) *EmployeeOverboardInfoBuilder { 9184 builder.actualOverboardTime = actualOverboardTime 9185 builder.actualOverboardTimeFlag = true 9186 return builder 9187 } 9188 9189 // 离职原因 9190 // 9191 // 示例值:职业发展考虑 9192 func (builder *EmployeeOverboardInfoBuilder) OverboardNote(overboardNote string) *EmployeeOverboardInfoBuilder { 9193 builder.overboardNote = overboardNote 9194 builder.overboardNoteFlag = true 9195 return builder 9196 } 9197 9198 func (builder *EmployeeOverboardInfoBuilder) Build() *EmployeeOverboardInfo { 9199 req := &EmployeeOverboardInfo{} 9200 if builder.actualOverboardTimeFlag { 9201 req.ActualOverboardTime = &builder.actualOverboardTime 9202 9203 } 9204 if builder.overboardNoteFlag { 9205 req.OverboardNote = &builder.overboardNote 9206 9207 } 9208 return req 9209 } 9210 9211 type Evaluation struct { 9212 Id *string `json:"id,omitempty"` // 评估 ID 9213 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 9214 StageId *string `json:"stage_id,omitempty"` // 投递阶段 9215 CreatorId *string `json:"creator_id,omitempty"` // 创建人user_id 9216 EvaluatorId *string `json:"evaluator_id,omitempty"` // 评估人user_id 9217 CommitStatus *int `json:"commit_status,omitempty"` // 提交状态 9218 Conclusion *int `json:"conclusion,omitempty"` // 评估结论 9219 Content *string `json:"content,omitempty"` // 评估详情 9220 CreateTime *string `json:"create_time,omitempty"` // 创建时间 9221 UpdateTime *string `json:"update_time,omitempty"` // 最近更新时间 9222 } 9223 9224 type EvaluationBuilder struct { 9225 id string // 评估 ID 9226 idFlag bool 9227 applicationId string // 投递 ID 9228 applicationIdFlag bool 9229 stageId string // 投递阶段 9230 stageIdFlag bool 9231 creatorId string // 创建人user_id 9232 creatorIdFlag bool 9233 evaluatorId string // 评估人user_id 9234 evaluatorIdFlag bool 9235 commitStatus int // 提交状态 9236 commitStatusFlag bool 9237 conclusion int // 评估结论 9238 conclusionFlag bool 9239 content string // 评估详情 9240 contentFlag bool 9241 createTime string // 创建时间 9242 createTimeFlag bool 9243 updateTime string // 最近更新时间 9244 updateTimeFlag bool 9245 } 9246 9247 func NewEvaluationBuilder() *EvaluationBuilder { 9248 builder := &EvaluationBuilder{} 9249 return builder 9250 } 9251 9252 // 评估 ID 9253 // 9254 // 示例值:6875295756292425998 9255 func (builder *EvaluationBuilder) Id(id string) *EvaluationBuilder { 9256 builder.id = id 9257 builder.idFlag = true 9258 return builder 9259 } 9260 9261 // 投递 ID 9262 // 9263 // 示例值:6875569957036738823 9264 func (builder *EvaluationBuilder) ApplicationId(applicationId string) *EvaluationBuilder { 9265 builder.applicationId = applicationId 9266 builder.applicationIdFlag = true 9267 return builder 9268 } 9269 9270 // 投递阶段 9271 // 9272 // 示例值:6784315427607595268 9273 func (builder *EvaluationBuilder) StageId(stageId string) *EvaluationBuilder { 9274 builder.stageId = stageId 9275 builder.stageIdFlag = true 9276 return builder 9277 } 9278 9279 // 创建人user_id 9280 // 9281 // 示例值:ou_aaf83d1b2c856ead36aa9a38784b9a5c 9282 func (builder *EvaluationBuilder) CreatorId(creatorId string) *EvaluationBuilder { 9283 builder.creatorId = creatorId 9284 builder.creatorIdFlag = true 9285 return builder 9286 } 9287 9288 // 评估人user_id 9289 // 9290 // 示例值:ou_aaf83d1b2c856ead36aa9a38784b9a5c 9291 func (builder *EvaluationBuilder) EvaluatorId(evaluatorId string) *EvaluationBuilder { 9292 builder.evaluatorId = evaluatorId 9293 builder.evaluatorIdFlag = true 9294 return builder 9295 } 9296 9297 // 提交状态 9298 // 9299 // 示例值:1 9300 func (builder *EvaluationBuilder) CommitStatus(commitStatus int) *EvaluationBuilder { 9301 builder.commitStatus = commitStatus 9302 builder.commitStatusFlag = true 9303 return builder 9304 } 9305 9306 // 评估结论 9307 // 9308 // 示例值:1 9309 func (builder *EvaluationBuilder) Conclusion(conclusion int) *EvaluationBuilder { 9310 builder.conclusion = conclusion 9311 builder.conclusionFlag = true 9312 return builder 9313 } 9314 9315 // 评估详情 9316 // 9317 // 示例值:这位同学很优秀 9318 func (builder *EvaluationBuilder) Content(content string) *EvaluationBuilder { 9319 builder.content = content 9320 builder.contentFlag = true 9321 return builder 9322 } 9323 9324 // 创建时间 9325 // 9326 // 示例值:1600843767338 9327 func (builder *EvaluationBuilder) CreateTime(createTime string) *EvaluationBuilder { 9328 builder.createTime = createTime 9329 builder.createTimeFlag = true 9330 return builder 9331 } 9332 9333 // 最近更新时间 9334 // 9335 // 示例值:1600843937733 9336 func (builder *EvaluationBuilder) UpdateTime(updateTime string) *EvaluationBuilder { 9337 builder.updateTime = updateTime 9338 builder.updateTimeFlag = true 9339 return builder 9340 } 9341 9342 func (builder *EvaluationBuilder) Build() *Evaluation { 9343 req := &Evaluation{} 9344 if builder.idFlag { 9345 req.Id = &builder.id 9346 9347 } 9348 if builder.applicationIdFlag { 9349 req.ApplicationId = &builder.applicationId 9350 9351 } 9352 if builder.stageIdFlag { 9353 req.StageId = &builder.stageId 9354 9355 } 9356 if builder.creatorIdFlag { 9357 req.CreatorId = &builder.creatorId 9358 9359 } 9360 if builder.evaluatorIdFlag { 9361 req.EvaluatorId = &builder.evaluatorId 9362 9363 } 9364 if builder.commitStatusFlag { 9365 req.CommitStatus = &builder.commitStatus 9366 9367 } 9368 if builder.conclusionFlag { 9369 req.Conclusion = &builder.conclusion 9370 9371 } 9372 if builder.contentFlag { 9373 req.Content = &builder.content 9374 9375 } 9376 if builder.createTimeFlag { 9377 req.CreateTime = &builder.createTime 9378 9379 } 9380 if builder.updateTimeFlag { 9381 req.UpdateTime = &builder.updateTime 9382 9383 } 9384 return req 9385 } 9386 9387 type EvaluationTask struct { 9388 Id *string `json:"id,omitempty"` // 评估 ID 9389 JobId *string `json:"job_id,omitempty"` // 职位 ID 9390 TalentId *string `json:"talent_id,omitempty"` // 人才 ID 9391 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 9392 ActivityStatus *int `json:"activity_status,omitempty"` // 任务状态 9393 } 9394 9395 type EvaluationTaskBuilder struct { 9396 id string // 评估 ID 9397 idFlag bool 9398 jobId string // 职位 ID 9399 jobIdFlag bool 9400 talentId string // 人才 ID 9401 talentIdFlag bool 9402 applicationId string // 投递 ID 9403 applicationIdFlag bool 9404 activityStatus int // 任务状态 9405 activityStatusFlag bool 9406 } 9407 9408 func NewEvaluationTaskBuilder() *EvaluationTaskBuilder { 9409 builder := &EvaluationTaskBuilder{} 9410 return builder 9411 } 9412 9413 // 评估 ID 9414 // 9415 // 示例值:6989202908470446380 9416 func (builder *EvaluationTaskBuilder) Id(id string) *EvaluationTaskBuilder { 9417 builder.id = id 9418 builder.idFlag = true 9419 return builder 9420 } 9421 9422 // 职位 ID 9423 // 9424 // 示例值:6897921873523247373 9425 func (builder *EvaluationTaskBuilder) JobId(jobId string) *EvaluationTaskBuilder { 9426 builder.jobId = jobId 9427 builder.jobIdFlag = true 9428 return builder 9429 } 9430 9431 // 人才 ID 9432 // 9433 // 示例值:7046263097923537196 9434 func (builder *EvaluationTaskBuilder) TalentId(talentId string) *EvaluationTaskBuilder { 9435 builder.talentId = talentId 9436 builder.talentIdFlag = true 9437 return builder 9438 } 9439 9440 // 投递 ID 9441 // 9442 // 示例值:7046315599510833452 9443 func (builder *EvaluationTaskBuilder) ApplicationId(applicationId string) *EvaluationTaskBuilder { 9444 builder.applicationId = applicationId 9445 builder.applicationIdFlag = true 9446 return builder 9447 } 9448 9449 // 任务状态 9450 // 9451 // 示例值:1 9452 func (builder *EvaluationTaskBuilder) ActivityStatus(activityStatus int) *EvaluationTaskBuilder { 9453 builder.activityStatus = activityStatus 9454 builder.activityStatusFlag = true 9455 return builder 9456 } 9457 9458 func (builder *EvaluationTaskBuilder) Build() *EvaluationTask { 9459 req := &EvaluationTask{} 9460 if builder.idFlag { 9461 req.Id = &builder.id 9462 9463 } 9464 if builder.jobIdFlag { 9465 req.JobId = &builder.jobId 9466 9467 } 9468 if builder.talentIdFlag { 9469 req.TalentId = &builder.talentId 9470 9471 } 9472 if builder.applicationIdFlag { 9473 req.ApplicationId = &builder.applicationId 9474 9475 } 9476 if builder.activityStatusFlag { 9477 req.ActivityStatus = &builder.activityStatus 9478 9479 } 9480 return req 9481 } 9482 9483 type ExamMarkingTask struct { 9484 Id *string `json:"id,omitempty"` // 笔试 ID 9485 JobId *string `json:"job_id,omitempty"` // 职位 ID 9486 TalentId *string `json:"talent_id,omitempty"` // 人才 ID 9487 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 9488 ActivityStatus *int `json:"activity_status,omitempty"` // 任务状态 9489 } 9490 9491 type ExamMarkingTaskBuilder struct { 9492 id string // 笔试 ID 9493 idFlag bool 9494 jobId string // 职位 ID 9495 jobIdFlag bool 9496 talentId string // 人才 ID 9497 talentIdFlag bool 9498 applicationId string // 投递 ID 9499 applicationIdFlag bool 9500 activityStatus int // 任务状态 9501 activityStatusFlag bool 9502 } 9503 9504 func NewExamMarkingTaskBuilder() *ExamMarkingTaskBuilder { 9505 builder := &ExamMarkingTaskBuilder{} 9506 return builder 9507 } 9508 9509 // 笔试 ID 9510 // 9511 // 示例值:6989202908470446380 9512 func (builder *ExamMarkingTaskBuilder) Id(id string) *ExamMarkingTaskBuilder { 9513 builder.id = id 9514 builder.idFlag = true 9515 return builder 9516 } 9517 9518 // 职位 ID 9519 // 9520 // 示例值:6897921873523247373 9521 func (builder *ExamMarkingTaskBuilder) JobId(jobId string) *ExamMarkingTaskBuilder { 9522 builder.jobId = jobId 9523 builder.jobIdFlag = true 9524 return builder 9525 } 9526 9527 // 人才 ID 9528 // 9529 // 示例值:7046263097923537196 9530 func (builder *ExamMarkingTaskBuilder) TalentId(talentId string) *ExamMarkingTaskBuilder { 9531 builder.talentId = talentId 9532 builder.talentIdFlag = true 9533 return builder 9534 } 9535 9536 // 投递 ID 9537 // 9538 // 示例值:7046315599510833452 9539 func (builder *ExamMarkingTaskBuilder) ApplicationId(applicationId string) *ExamMarkingTaskBuilder { 9540 builder.applicationId = applicationId 9541 builder.applicationIdFlag = true 9542 return builder 9543 } 9544 9545 // 任务状态 9546 // 9547 // 示例值:1 9548 func (builder *ExamMarkingTaskBuilder) ActivityStatus(activityStatus int) *ExamMarkingTaskBuilder { 9549 builder.activityStatus = activityStatus 9550 builder.activityStatusFlag = true 9551 return builder 9552 } 9553 9554 func (builder *ExamMarkingTaskBuilder) Build() *ExamMarkingTask { 9555 req := &ExamMarkingTask{} 9556 if builder.idFlag { 9557 req.Id = &builder.id 9558 9559 } 9560 if builder.jobIdFlag { 9561 req.JobId = &builder.jobId 9562 9563 } 9564 if builder.talentIdFlag { 9565 req.TalentId = &builder.talentId 9566 9567 } 9568 if builder.applicationIdFlag { 9569 req.ApplicationId = &builder.applicationId 9570 9571 } 9572 if builder.activityStatusFlag { 9573 req.ActivityStatus = &builder.activityStatus 9574 9575 } 9576 return req 9577 } 9578 9579 type ExternalApplication struct { 9580 Id *string `json:"id,omitempty"` // 外部投递 ID 9581 ExternalId *string `json:"external_id,omitempty"` // 外部系统投递主键 (仅用于幂等) 9582 JobRecruitmentType *int `json:"job_recruitment_type,omitempty"` // 职位招聘类型 9583 JobTitle *string `json:"job_title,omitempty"` // 职位名称 9584 ResumeSource *string `json:"resume_source,omitempty"` // 简历来源 9585 Stage *string `json:"stage,omitempty"` // 阶段 9586 TalentId *string `json:"talent_id,omitempty"` // 人才 ID 9587 TerminationReason *string `json:"termination_reason,omitempty"` // 终止原因 9588 DeliveryType *int `json:"delivery_type,omitempty"` // 投递类型 9589 ModifyTime *int `json:"modify_time,omitempty"` // 更新时间 9590 TerminationType *string `json:"termination_type,omitempty"` // 终止类型 9591 } 9592 9593 type ExternalApplicationBuilder struct { 9594 id string // 外部投递 ID 9595 idFlag bool 9596 externalId string // 外部系统投递主键 (仅用于幂等) 9597 externalIdFlag bool 9598 jobRecruitmentType int // 职位招聘类型 9599 jobRecruitmentTypeFlag bool 9600 jobTitle string // 职位名称 9601 jobTitleFlag bool 9602 resumeSource string // 简历来源 9603 resumeSourceFlag bool 9604 stage string // 阶段 9605 stageFlag bool 9606 talentId string // 人才 ID 9607 talentIdFlag bool 9608 terminationReason string // 终止原因 9609 terminationReasonFlag bool 9610 deliveryType int // 投递类型 9611 deliveryTypeFlag bool 9612 modifyTime int // 更新时间 9613 modifyTimeFlag bool 9614 terminationType string // 终止类型 9615 terminationTypeFlag bool 9616 } 9617 9618 func NewExternalApplicationBuilder() *ExternalApplicationBuilder { 9619 builder := &ExternalApplicationBuilder{} 9620 return builder 9621 } 9622 9623 // 外部投递 ID 9624 // 9625 // 示例值:6989202908470446380 9626 func (builder *ExternalApplicationBuilder) Id(id string) *ExternalApplicationBuilder { 9627 builder.id = id 9628 builder.idFlag = true 9629 return builder 9630 } 9631 9632 // 外部系统投递主键 (仅用于幂等) 9633 // 9634 // 示例值:123 9635 func (builder *ExternalApplicationBuilder) ExternalId(externalId string) *ExternalApplicationBuilder { 9636 builder.externalId = externalId 9637 builder.externalIdFlag = true 9638 return builder 9639 } 9640 9641 // 职位招聘类型 9642 // 9643 // 示例值:1 9644 func (builder *ExternalApplicationBuilder) JobRecruitmentType(jobRecruitmentType int) *ExternalApplicationBuilder { 9645 builder.jobRecruitmentType = jobRecruitmentType 9646 builder.jobRecruitmentTypeFlag = true 9647 return builder 9648 } 9649 9650 // 职位名称 9651 // 9652 // 示例值:高级Java 9653 func (builder *ExternalApplicationBuilder) JobTitle(jobTitle string) *ExternalApplicationBuilder { 9654 builder.jobTitle = jobTitle 9655 builder.jobTitleFlag = true 9656 return builder 9657 } 9658 9659 // 简历来源 9660 // 9661 // 示例值:lagou 9662 func (builder *ExternalApplicationBuilder) ResumeSource(resumeSource string) *ExternalApplicationBuilder { 9663 builder.resumeSource = resumeSource 9664 builder.resumeSourceFlag = true 9665 return builder 9666 } 9667 9668 // 阶段 9669 // 9670 // 示例值:1 9671 func (builder *ExternalApplicationBuilder) Stage(stage string) *ExternalApplicationBuilder { 9672 builder.stage = stage 9673 builder.stageFlag = true 9674 return builder 9675 } 9676 9677 // 人才 ID 9678 // 9679 // 示例值:6960663240925956459 9680 func (builder *ExternalApplicationBuilder) TalentId(talentId string) *ExternalApplicationBuilder { 9681 builder.talentId = talentId 9682 builder.talentIdFlag = true 9683 return builder 9684 } 9685 9686 // 终止原因 9687 // 9688 // 示例值:不合适 9689 func (builder *ExternalApplicationBuilder) TerminationReason(terminationReason string) *ExternalApplicationBuilder { 9690 builder.terminationReason = terminationReason 9691 builder.terminationReasonFlag = true 9692 return builder 9693 } 9694 9695 // 投递类型 9696 // 9697 // 示例值:1 9698 func (builder *ExternalApplicationBuilder) DeliveryType(deliveryType int) *ExternalApplicationBuilder { 9699 builder.deliveryType = deliveryType 9700 builder.deliveryTypeFlag = true 9701 return builder 9702 } 9703 9704 // 更新时间 9705 // 9706 // 示例值:1618500278645 9707 func (builder *ExternalApplicationBuilder) ModifyTime(modifyTime int) *ExternalApplicationBuilder { 9708 builder.modifyTime = modifyTime 9709 builder.modifyTimeFlag = true 9710 return builder 9711 } 9712 9713 // 终止类型 9714 // 9715 // 示例值:health 9716 func (builder *ExternalApplicationBuilder) TerminationType(terminationType string) *ExternalApplicationBuilder { 9717 builder.terminationType = terminationType 9718 builder.terminationTypeFlag = true 9719 return builder 9720 } 9721 9722 func (builder *ExternalApplicationBuilder) Build() *ExternalApplication { 9723 req := &ExternalApplication{} 9724 if builder.idFlag { 9725 req.Id = &builder.id 9726 9727 } 9728 if builder.externalIdFlag { 9729 req.ExternalId = &builder.externalId 9730 9731 } 9732 if builder.jobRecruitmentTypeFlag { 9733 req.JobRecruitmentType = &builder.jobRecruitmentType 9734 9735 } 9736 if builder.jobTitleFlag { 9737 req.JobTitle = &builder.jobTitle 9738 9739 } 9740 if builder.resumeSourceFlag { 9741 req.ResumeSource = &builder.resumeSource 9742 9743 } 9744 if builder.stageFlag { 9745 req.Stage = &builder.stage 9746 9747 } 9748 if builder.talentIdFlag { 9749 req.TalentId = &builder.talentId 9750 9751 } 9752 if builder.terminationReasonFlag { 9753 req.TerminationReason = &builder.terminationReason 9754 9755 } 9756 if builder.deliveryTypeFlag { 9757 req.DeliveryType = &builder.deliveryType 9758 9759 } 9760 if builder.modifyTimeFlag { 9761 req.ModifyTime = &builder.modifyTime 9762 9763 } 9764 if builder.terminationTypeFlag { 9765 req.TerminationType = &builder.terminationType 9766 9767 } 9768 return req 9769 } 9770 9771 type ExternalBackgroundCheck struct { 9772 Id *string `json:"id,omitempty"` // 外部背调 ID 9773 ExternalId *string `json:"external_id,omitempty"` // 外部系统背调主键 (仅用于幂等) 9774 ExternalApplicationId *string `json:"external_application_id,omitempty"` // 外部投递 ID 9775 Date *int `json:"date,omitempty"` // 背调日期 9776 Name *string `json:"name,omitempty"` // 背调名字 9777 Result *string `json:"result,omitempty"` // 背调结果 9778 AttachmentIdList []string `json:"attachment_id_list,omitempty"` // 背调附件ID列表 9779 AttachmentList []*ExternalBackgroundCheckAttachment `json:"attachment_list,omitempty"` // 背调附件 9780 } 9781 9782 type ExternalBackgroundCheckBuilder struct { 9783 id string // 外部背调 ID 9784 idFlag bool 9785 externalId string // 外部系统背调主键 (仅用于幂等) 9786 externalIdFlag bool 9787 externalApplicationId string // 外部投递 ID 9788 externalApplicationIdFlag bool 9789 date int // 背调日期 9790 dateFlag bool 9791 name string // 背调名字 9792 nameFlag bool 9793 result string // 背调结果 9794 resultFlag bool 9795 attachmentIdList []string // 背调附件ID列表 9796 attachmentIdListFlag bool 9797 attachmentList []*ExternalBackgroundCheckAttachment // 背调附件 9798 attachmentListFlag bool 9799 } 9800 9801 func NewExternalBackgroundCheckBuilder() *ExternalBackgroundCheckBuilder { 9802 builder := &ExternalBackgroundCheckBuilder{} 9803 return builder 9804 } 9805 9806 // 外部背调 ID 9807 // 9808 // 示例值:6989202908470446380 9809 func (builder *ExternalBackgroundCheckBuilder) Id(id string) *ExternalBackgroundCheckBuilder { 9810 builder.id = id 9811 builder.idFlag = true 9812 return builder 9813 } 9814 9815 // 外部系统背调主键 (仅用于幂等) 9816 // 9817 // 示例值:123 9818 func (builder *ExternalBackgroundCheckBuilder) ExternalId(externalId string) *ExternalBackgroundCheckBuilder { 9819 builder.externalId = externalId 9820 builder.externalIdFlag = true 9821 return builder 9822 } 9823 9824 // 外部投递 ID 9825 // 9826 // 示例值:1234111 9827 func (builder *ExternalBackgroundCheckBuilder) ExternalApplicationId(externalApplicationId string) *ExternalBackgroundCheckBuilder { 9828 builder.externalApplicationId = externalApplicationId 9829 builder.externalApplicationIdFlag = true 9830 return builder 9831 } 9832 9833 // 背调日期 9834 // 9835 // 示例值:1626602069393 9836 func (builder *ExternalBackgroundCheckBuilder) Date(date int) *ExternalBackgroundCheckBuilder { 9837 builder.date = date 9838 builder.dateFlag = true 9839 return builder 9840 } 9841 9842 // 背调名字 9843 // 9844 // 示例值:测试.pdf 9845 func (builder *ExternalBackgroundCheckBuilder) Name(name string) *ExternalBackgroundCheckBuilder { 9846 builder.name = name 9847 builder.nameFlag = true 9848 return builder 9849 } 9850 9851 // 背调结果 9852 // 9853 // 示例值:1 9854 func (builder *ExternalBackgroundCheckBuilder) Result(result string) *ExternalBackgroundCheckBuilder { 9855 builder.result = result 9856 builder.resultFlag = true 9857 return builder 9858 } 9859 9860 // 背调附件ID列表 9861 // 9862 // 示例值:6989181065243969836 9863 func (builder *ExternalBackgroundCheckBuilder) AttachmentIdList(attachmentIdList []string) *ExternalBackgroundCheckBuilder { 9864 builder.attachmentIdList = attachmentIdList 9865 builder.attachmentIdListFlag = true 9866 return builder 9867 } 9868 9869 // 背调附件 9870 // 9871 // 示例值: 9872 func (builder *ExternalBackgroundCheckBuilder) AttachmentList(attachmentList []*ExternalBackgroundCheckAttachment) *ExternalBackgroundCheckBuilder { 9873 builder.attachmentList = attachmentList 9874 builder.attachmentListFlag = true 9875 return builder 9876 } 9877 9878 func (builder *ExternalBackgroundCheckBuilder) Build() *ExternalBackgroundCheck { 9879 req := &ExternalBackgroundCheck{} 9880 if builder.idFlag { 9881 req.Id = &builder.id 9882 9883 } 9884 if builder.externalIdFlag { 9885 req.ExternalId = &builder.externalId 9886 9887 } 9888 if builder.externalApplicationIdFlag { 9889 req.ExternalApplicationId = &builder.externalApplicationId 9890 9891 } 9892 if builder.dateFlag { 9893 req.Date = &builder.date 9894 9895 } 9896 if builder.nameFlag { 9897 req.Name = &builder.name 9898 9899 } 9900 if builder.resultFlag { 9901 req.Result = &builder.result 9902 9903 } 9904 if builder.attachmentIdListFlag { 9905 req.AttachmentIdList = builder.attachmentIdList 9906 } 9907 if builder.attachmentListFlag { 9908 req.AttachmentList = builder.attachmentList 9909 } 9910 return req 9911 } 9912 9913 type ExternalBackgroundCheckAttachment struct { 9914 Id *string `json:"id,omitempty"` // 附件 ID 9915 Name *string `json:"name,omitempty"` // 附件名字 9916 Size *int `json:"size,omitempty"` // 附件大小 9917 } 9918 9919 type ExternalBackgroundCheckAttachmentBuilder struct { 9920 id string // 附件 ID 9921 idFlag bool 9922 name string // 附件名字 9923 nameFlag bool 9924 size int // 附件大小 9925 sizeFlag bool 9926 } 9927 9928 func NewExternalBackgroundCheckAttachmentBuilder() *ExternalBackgroundCheckAttachmentBuilder { 9929 builder := &ExternalBackgroundCheckAttachmentBuilder{} 9930 return builder 9931 } 9932 9933 // 附件 ID 9934 // 9935 // 示例值:6987954043925432620 9936 func (builder *ExternalBackgroundCheckAttachmentBuilder) Id(id string) *ExternalBackgroundCheckAttachmentBuilder { 9937 builder.id = id 9938 builder.idFlag = true 9939 return builder 9940 } 9941 9942 // 附件名字 9943 // 9944 // 示例值:test_resume.pdf 9945 func (builder *ExternalBackgroundCheckAttachmentBuilder) Name(name string) *ExternalBackgroundCheckAttachmentBuilder { 9946 builder.name = name 9947 builder.nameFlag = true 9948 return builder 9949 } 9950 9951 // 附件大小 9952 // 9953 // 示例值:126371 9954 func (builder *ExternalBackgroundCheckAttachmentBuilder) Size(size int) *ExternalBackgroundCheckAttachmentBuilder { 9955 builder.size = size 9956 builder.sizeFlag = true 9957 return builder 9958 } 9959 9960 func (builder *ExternalBackgroundCheckAttachmentBuilder) Build() *ExternalBackgroundCheckAttachment { 9961 req := &ExternalBackgroundCheckAttachment{} 9962 if builder.idFlag { 9963 req.Id = &builder.id 9964 9965 } 9966 if builder.nameFlag { 9967 req.Name = &builder.name 9968 9969 } 9970 if builder.sizeFlag { 9971 req.Size = &builder.size 9972 9973 } 9974 return req 9975 } 9976 9977 type ExternalInterview struct { 9978 ExternalId *string `json:"external_id,omitempty"` // 外部系统面试主键 (仅用于幂等) 9979 ExternalApplicationId *string `json:"external_application_id,omitempty"` // 外部投递 ID 9980 Id *string `json:"id,omitempty"` // 外部面试 ID 9981 ParticipateStatus *int `json:"participate_status,omitempty"` // 参与状态 9982 BeginTime *int `json:"begin_time,omitempty"` // 开始时间 9983 EndTime *int `json:"end_time,omitempty"` // 结束时间 9984 } 9985 9986 type ExternalInterviewBuilder struct { 9987 externalId string // 外部系统面试主键 (仅用于幂等) 9988 externalIdFlag bool 9989 externalApplicationId string // 外部投递 ID 9990 externalApplicationIdFlag bool 9991 id string // 外部面试 ID 9992 idFlag bool 9993 participateStatus int // 参与状态 9994 participateStatusFlag bool 9995 beginTime int // 开始时间 9996 beginTimeFlag bool 9997 endTime int // 结束时间 9998 endTimeFlag bool 9999 } 10000 10001 func NewExternalInterviewBuilder() *ExternalInterviewBuilder { 10002 builder := &ExternalInterviewBuilder{} 10003 return builder 10004 } 10005 10006 // 外部系统面试主键 (仅用于幂等) 10007 // 10008 // 示例值:123 10009 func (builder *ExternalInterviewBuilder) ExternalId(externalId string) *ExternalInterviewBuilder { 10010 builder.externalId = externalId 10011 builder.externalIdFlag = true 10012 return builder 10013 } 10014 10015 // 外部投递 ID 10016 // 10017 // 示例值:6960663240925956437 10018 func (builder *ExternalInterviewBuilder) ExternalApplicationId(externalApplicationId string) *ExternalInterviewBuilder { 10019 builder.externalApplicationId = externalApplicationId 10020 builder.externalApplicationIdFlag = true 10021 return builder 10022 } 10023 10024 // 外部面试 ID 10025 // 10026 // 示例值:6960663240925956436 10027 func (builder *ExternalInterviewBuilder) Id(id string) *ExternalInterviewBuilder { 10028 builder.id = id 10029 builder.idFlag = true 10030 return builder 10031 } 10032 10033 // 参与状态 10034 // 10035 // 示例值:1 10036 func (builder *ExternalInterviewBuilder) ParticipateStatus(participateStatus int) *ExternalInterviewBuilder { 10037 builder.participateStatus = participateStatus 10038 builder.participateStatusFlag = true 10039 return builder 10040 } 10041 10042 // 开始时间 10043 // 10044 // 示例值:1618500278638 10045 func (builder *ExternalInterviewBuilder) BeginTime(beginTime int) *ExternalInterviewBuilder { 10046 builder.beginTime = beginTime 10047 builder.beginTimeFlag = true 10048 return builder 10049 } 10050 10051 // 结束时间 10052 // 10053 // 示例值:1618500278639 10054 func (builder *ExternalInterviewBuilder) EndTime(endTime int) *ExternalInterviewBuilder { 10055 builder.endTime = endTime 10056 builder.endTimeFlag = true 10057 return builder 10058 } 10059 10060 func (builder *ExternalInterviewBuilder) Build() *ExternalInterview { 10061 req := &ExternalInterview{} 10062 if builder.externalIdFlag { 10063 req.ExternalId = &builder.externalId 10064 10065 } 10066 if builder.externalApplicationIdFlag { 10067 req.ExternalApplicationId = &builder.externalApplicationId 10068 10069 } 10070 if builder.idFlag { 10071 req.Id = &builder.id 10072 10073 } 10074 if builder.participateStatusFlag { 10075 req.ParticipateStatus = &builder.participateStatus 10076 10077 } 10078 if builder.beginTimeFlag { 10079 req.BeginTime = &builder.beginTime 10080 10081 } 10082 if builder.endTimeFlag { 10083 req.EndTime = &builder.endTime 10084 10085 } 10086 return req 10087 } 10088 10089 type ExternalInterviewAssessment struct { 10090 Id *string `json:"id,omitempty"` // 外部面评 ID 10091 ExternalId *string `json:"external_id,omitempty"` // 外部系统面评主键(仅用于幂等) 10092 Username *string `json:"username,omitempty"` // 面试官姓名 10093 Conclusion *int `json:"conclusion,omitempty"` // 面试结果 10094 AssessmentDimensionList []*ExternalInterviewAssessmentDimension `json:"assessment_dimension_list,omitempty"` // 评价维度列表 10095 Content *string `json:"content,omitempty"` // 综合记录 10096 ExternalInterviewId *string `json:"external_interview_id,omitempty"` // 外部面试 ID 10097 } 10098 10099 type ExternalInterviewAssessmentBuilder struct { 10100 id string // 外部面评 ID 10101 idFlag bool 10102 externalId string // 外部系统面评主键(仅用于幂等) 10103 externalIdFlag bool 10104 username string // 面试官姓名 10105 usernameFlag bool 10106 conclusion int // 面试结果 10107 conclusionFlag bool 10108 assessmentDimensionList []*ExternalInterviewAssessmentDimension // 评价维度列表 10109 assessmentDimensionListFlag bool 10110 content string // 综合记录 10111 contentFlag bool 10112 externalInterviewId string // 外部面试 ID 10113 externalInterviewIdFlag bool 10114 } 10115 10116 func NewExternalInterviewAssessmentBuilder() *ExternalInterviewAssessmentBuilder { 10117 builder := &ExternalInterviewAssessmentBuilder{} 10118 return builder 10119 } 10120 10121 // 外部面评 ID 10122 // 10123 // 示例值:6989181065243969836 10124 func (builder *ExternalInterviewAssessmentBuilder) Id(id string) *ExternalInterviewAssessmentBuilder { 10125 builder.id = id 10126 builder.idFlag = true 10127 return builder 10128 } 10129 10130 // 外部系统面评主键(仅用于幂等) 10131 // 10132 // 示例值:123 10133 func (builder *ExternalInterviewAssessmentBuilder) ExternalId(externalId string) *ExternalInterviewAssessmentBuilder { 10134 builder.externalId = externalId 10135 builder.externalIdFlag = true 10136 return builder 10137 } 10138 10139 // 面试官姓名 10140 // 10141 // 示例值:shaojiale 10142 func (builder *ExternalInterviewAssessmentBuilder) Username(username string) *ExternalInterviewAssessmentBuilder { 10143 builder.username = username 10144 builder.usernameFlag = true 10145 return builder 10146 } 10147 10148 // 面试结果 10149 // 10150 // 示例值:1 10151 func (builder *ExternalInterviewAssessmentBuilder) Conclusion(conclusion int) *ExternalInterviewAssessmentBuilder { 10152 builder.conclusion = conclusion 10153 builder.conclusionFlag = true 10154 return builder 10155 } 10156 10157 // 评价维度列表 10158 // 10159 // 示例值: 10160 func (builder *ExternalInterviewAssessmentBuilder) AssessmentDimensionList(assessmentDimensionList []*ExternalInterviewAssessmentDimension) *ExternalInterviewAssessmentBuilder { 10161 builder.assessmentDimensionList = assessmentDimensionList 10162 builder.assessmentDimensionListFlag = true 10163 return builder 10164 } 10165 10166 // 综合记录 10167 // 10168 // 示例值:hello world 10169 func (builder *ExternalInterviewAssessmentBuilder) Content(content string) *ExternalInterviewAssessmentBuilder { 10170 builder.content = content 10171 builder.contentFlag = true 10172 return builder 10173 } 10174 10175 // 外部面试 ID 10176 // 10177 // 示例值:6986199832494934316 10178 func (builder *ExternalInterviewAssessmentBuilder) ExternalInterviewId(externalInterviewId string) *ExternalInterviewAssessmentBuilder { 10179 builder.externalInterviewId = externalInterviewId 10180 builder.externalInterviewIdFlag = true 10181 return builder 10182 } 10183 10184 func (builder *ExternalInterviewAssessmentBuilder) Build() *ExternalInterviewAssessment { 10185 req := &ExternalInterviewAssessment{} 10186 if builder.idFlag { 10187 req.Id = &builder.id 10188 10189 } 10190 if builder.externalIdFlag { 10191 req.ExternalId = &builder.externalId 10192 10193 } 10194 if builder.usernameFlag { 10195 req.Username = &builder.username 10196 10197 } 10198 if builder.conclusionFlag { 10199 req.Conclusion = &builder.conclusion 10200 10201 } 10202 if builder.assessmentDimensionListFlag { 10203 req.AssessmentDimensionList = builder.assessmentDimensionList 10204 } 10205 if builder.contentFlag { 10206 req.Content = &builder.content 10207 10208 } 10209 if builder.externalInterviewIdFlag { 10210 req.ExternalInterviewId = &builder.externalInterviewId 10211 10212 } 10213 return req 10214 } 10215 10216 type ExternalInterviewAssessmentDimension struct { 10217 Score *int `json:"score,omitempty"` // 打分题分数(当题目类型为「打分题」时使用) 10218 Option *string `json:"option,omitempty"` // 单选选项(当题目类型为「单选题」时使用) 10219 Options []string `json:"options,omitempty"` // 多选选项(当题目类型为「多选题」时使用) 10220 Content *string `json:"content,omitempty"` // 描述内容(当题目类型为「描述题」时使用) 10221 AssessmentType *int `json:"assessment_type,omitempty"` // 题目类型 10222 Title *string `json:"title,omitempty"` // 题目标题 10223 Description *string `json:"description,omitempty"` // 题目描述 10224 } 10225 10226 type ExternalInterviewAssessmentDimensionBuilder struct { 10227 score int // 打分题分数(当题目类型为「打分题」时使用) 10228 scoreFlag bool 10229 option string // 单选选项(当题目类型为「单选题」时使用) 10230 optionFlag bool 10231 options []string // 多选选项(当题目类型为「多选题」时使用) 10232 optionsFlag bool 10233 content string // 描述内容(当题目类型为「描述题」时使用) 10234 contentFlag bool 10235 assessmentType int // 题目类型 10236 assessmentTypeFlag bool 10237 title string // 题目标题 10238 titleFlag bool 10239 description string // 题目描述 10240 descriptionFlag bool 10241 } 10242 10243 func NewExternalInterviewAssessmentDimensionBuilder() *ExternalInterviewAssessmentDimensionBuilder { 10244 builder := &ExternalInterviewAssessmentDimensionBuilder{} 10245 return builder 10246 } 10247 10248 // 打分题分数(当题目类型为「打分题」时使用) 10249 // 10250 // 示例值:99 10251 func (builder *ExternalInterviewAssessmentDimensionBuilder) Score(score int) *ExternalInterviewAssessmentDimensionBuilder { 10252 builder.score = score 10253 builder.scoreFlag = true 10254 return builder 10255 } 10256 10257 // 单选选项(当题目类型为「单选题」时使用) 10258 // 10259 // 示例值:opt 10260 func (builder *ExternalInterviewAssessmentDimensionBuilder) Option(option string) *ExternalInterviewAssessmentDimensionBuilder { 10261 builder.option = option 10262 builder.optionFlag = true 10263 return builder 10264 } 10265 10266 // 多选选项(当题目类型为「多选题」时使用) 10267 // 10268 // 示例值:6989181065243969836 10269 func (builder *ExternalInterviewAssessmentDimensionBuilder) Options(options []string) *ExternalInterviewAssessmentDimensionBuilder { 10270 builder.options = options 10271 builder.optionsFlag = true 10272 return builder 10273 } 10274 10275 // 描述内容(当题目类型为「描述题」时使用) 10276 // 10277 // 示例值:content 10278 func (builder *ExternalInterviewAssessmentDimensionBuilder) Content(content string) *ExternalInterviewAssessmentDimensionBuilder { 10279 builder.content = content 10280 builder.contentFlag = true 10281 return builder 10282 } 10283 10284 // 题目类型 10285 // 10286 // 示例值:1 10287 func (builder *ExternalInterviewAssessmentDimensionBuilder) AssessmentType(assessmentType int) *ExternalInterviewAssessmentDimensionBuilder { 10288 builder.assessmentType = assessmentType 10289 builder.assessmentTypeFlag = true 10290 return builder 10291 } 10292 10293 // 题目标题 10294 // 10295 // 示例值:title 10296 func (builder *ExternalInterviewAssessmentDimensionBuilder) Title(title string) *ExternalInterviewAssessmentDimensionBuilder { 10297 builder.title = title 10298 builder.titleFlag = true 10299 return builder 10300 } 10301 10302 // 题目描述 10303 // 10304 // 示例值:desc 10305 func (builder *ExternalInterviewAssessmentDimensionBuilder) Description(description string) *ExternalInterviewAssessmentDimensionBuilder { 10306 builder.description = description 10307 builder.descriptionFlag = true 10308 return builder 10309 } 10310 10311 func (builder *ExternalInterviewAssessmentDimensionBuilder) Build() *ExternalInterviewAssessmentDimension { 10312 req := &ExternalInterviewAssessmentDimension{} 10313 if builder.scoreFlag { 10314 req.Score = &builder.score 10315 10316 } 10317 if builder.optionFlag { 10318 req.Option = &builder.option 10319 10320 } 10321 if builder.optionsFlag { 10322 req.Options = builder.options 10323 } 10324 if builder.contentFlag { 10325 req.Content = &builder.content 10326 10327 } 10328 if builder.assessmentTypeFlag { 10329 req.AssessmentType = &builder.assessmentType 10330 10331 } 10332 if builder.titleFlag { 10333 req.Title = &builder.title 10334 10335 } 10336 if builder.descriptionFlag { 10337 req.Description = &builder.description 10338 10339 } 10340 return req 10341 } 10342 10343 type FiveStartScoringResult struct { 10344 HighestScoreDesc *string `json:"highest_score_desc,omitempty"` // 最高分中文描述 10345 HighestScoreEnDesc *string `json:"highest_score_en_desc,omitempty"` // 最高分英文描述 10346 LowestScoreDesc *string `json:"lowest_score_desc,omitempty"` // 最低分中文描述 10347 LowestScoreEnDesc *string `json:"lowest_score_en_desc,omitempty"` // 最低分英文描述 10348 ScoreResult *float64 `json:"score_result,omitempty"` // 评分分数 10349 } 10350 10351 type FiveStartScoringResultBuilder struct { 10352 highestScoreDesc string // 最高分中文描述 10353 highestScoreDescFlag bool 10354 highestScoreEnDesc string // 最高分英文描述 10355 highestScoreEnDescFlag bool 10356 lowestScoreDesc string // 最低分中文描述 10357 lowestScoreDescFlag bool 10358 lowestScoreEnDesc string // 最低分英文描述 10359 lowestScoreEnDescFlag bool 10360 scoreResult float64 // 评分分数 10361 scoreResultFlag bool 10362 } 10363 10364 func NewFiveStartScoringResultBuilder() *FiveStartScoringResultBuilder { 10365 builder := &FiveStartScoringResultBuilder{} 10366 return builder 10367 } 10368 10369 // 最高分中文描述 10370 // 10371 // 示例值:非常好 10372 func (builder *FiveStartScoringResultBuilder) HighestScoreDesc(highestScoreDesc string) *FiveStartScoringResultBuilder { 10373 builder.highestScoreDesc = highestScoreDesc 10374 builder.highestScoreDescFlag = true 10375 return builder 10376 } 10377 10378 // 最高分英文描述 10379 // 10380 // 示例值:Very Good 10381 func (builder *FiveStartScoringResultBuilder) HighestScoreEnDesc(highestScoreEnDesc string) *FiveStartScoringResultBuilder { 10382 builder.highestScoreEnDesc = highestScoreEnDesc 10383 builder.highestScoreEnDescFlag = true 10384 return builder 10385 } 10386 10387 // 最低分中文描述 10388 // 10389 // 示例值:非常差 10390 func (builder *FiveStartScoringResultBuilder) LowestScoreDesc(lowestScoreDesc string) *FiveStartScoringResultBuilder { 10391 builder.lowestScoreDesc = lowestScoreDesc 10392 builder.lowestScoreDescFlag = true 10393 return builder 10394 } 10395 10396 // 最低分英文描述 10397 // 10398 // 示例值:Very Bad 10399 func (builder *FiveStartScoringResultBuilder) LowestScoreEnDesc(lowestScoreEnDesc string) *FiveStartScoringResultBuilder { 10400 builder.lowestScoreEnDesc = lowestScoreEnDesc 10401 builder.lowestScoreEnDescFlag = true 10402 return builder 10403 } 10404 10405 // 评分分数 10406 // 10407 // 示例值:4 10408 func (builder *FiveStartScoringResultBuilder) ScoreResult(scoreResult float64) *FiveStartScoringResultBuilder { 10409 builder.scoreResult = scoreResult 10410 builder.scoreResultFlag = true 10411 return builder 10412 } 10413 10414 func (builder *FiveStartScoringResultBuilder) Build() *FiveStartScoringResult { 10415 req := &FiveStartScoringResult{} 10416 if builder.highestScoreDescFlag { 10417 req.HighestScoreDesc = &builder.highestScoreDesc 10418 10419 } 10420 if builder.highestScoreEnDescFlag { 10421 req.HighestScoreEnDesc = &builder.highestScoreEnDesc 10422 10423 } 10424 if builder.lowestScoreDescFlag { 10425 req.LowestScoreDesc = &builder.lowestScoreDesc 10426 10427 } 10428 if builder.lowestScoreEnDescFlag { 10429 req.LowestScoreEnDesc = &builder.lowestScoreEnDesc 10430 10431 } 10432 if builder.scoreResultFlag { 10433 req.ScoreResult = &builder.scoreResult 10434 10435 } 10436 return req 10437 } 10438 10439 type I18n struct { 10440 ZhCn *string `json:"zh_cn,omitempty"` // 中文 10441 EnUs *string `json:"en_us,omitempty"` // 英文 10442 } 10443 10444 type I18nBuilder struct { 10445 zhCn string // 中文 10446 zhCnFlag bool 10447 enUs string // 英文 10448 enUsFlag bool 10449 } 10450 10451 func NewI18nBuilder() *I18nBuilder { 10452 builder := &I18nBuilder{} 10453 return builder 10454 } 10455 10456 // 中文 10457 // 10458 // 示例值:测试 10459 func (builder *I18nBuilder) ZhCn(zhCn string) *I18nBuilder { 10460 builder.zhCn = zhCn 10461 builder.zhCnFlag = true 10462 return builder 10463 } 10464 10465 // 英文 10466 // 10467 // 示例值:test 10468 func (builder *I18nBuilder) EnUs(enUs string) *I18nBuilder { 10469 builder.enUs = enUs 10470 builder.enUsFlag = true 10471 return builder 10472 } 10473 10474 func (builder *I18nBuilder) Build() *I18n { 10475 req := &I18n{} 10476 if builder.zhCnFlag { 10477 req.ZhCn = &builder.zhCn 10478 10479 } 10480 if builder.enUsFlag { 10481 req.EnUs = &builder.enUs 10482 10483 } 10484 return req 10485 } 10486 10487 type IdNameObject struct { 10488 Id *string `json:"id,omitempty"` // ID 10489 Name *I18n `json:"name,omitempty"` // 名称 10490 } 10491 10492 type IdNameObjectBuilder struct { 10493 id string // ID 10494 idFlag bool 10495 name *I18n // 名称 10496 nameFlag bool 10497 } 10498 10499 func NewIdNameObjectBuilder() *IdNameObjectBuilder { 10500 builder := &IdNameObjectBuilder{} 10501 return builder 10502 } 10503 10504 // ID 10505 // 10506 // 示例值:1213213123123 10507 func (builder *IdNameObjectBuilder) Id(id string) *IdNameObjectBuilder { 10508 builder.id = id 10509 builder.idFlag = true 10510 return builder 10511 } 10512 10513 // 名称 10514 // 10515 // 示例值: 10516 func (builder *IdNameObjectBuilder) Name(name *I18n) *IdNameObjectBuilder { 10517 builder.name = name 10518 builder.nameFlag = true 10519 return builder 10520 } 10521 10522 func (builder *IdNameObjectBuilder) Build() *IdNameObject { 10523 req := &IdNameObject{} 10524 if builder.idFlag { 10525 req.Id = &builder.id 10526 10527 } 10528 if builder.nameFlag { 10529 req.Name = builder.name 10530 } 10531 return req 10532 } 10533 10534 type Identification struct { 10535 IdentificationNumber *string `json:"identification_number,omitempty"` // 证件号码 10536 IdentificationType *int `json:"identification_type,omitempty"` // 证件类型 10537 } 10538 10539 type IdentificationBuilder struct { 10540 identificationNumber string // 证件号码 10541 identificationNumberFlag bool 10542 identificationType int // 证件类型 10543 identificationTypeFlag bool 10544 } 10545 10546 func NewIdentificationBuilder() *IdentificationBuilder { 10547 builder := &IdentificationBuilder{} 10548 return builder 10549 } 10550 10551 // 证件号码 10552 // 10553 // 示例值: 10554 func (builder *IdentificationBuilder) IdentificationNumber(identificationNumber string) *IdentificationBuilder { 10555 builder.identificationNumber = identificationNumber 10556 builder.identificationNumberFlag = true 10557 return builder 10558 } 10559 10560 // 证件类型 10561 // 10562 // 示例值: 10563 func (builder *IdentificationBuilder) IdentificationType(identificationType int) *IdentificationBuilder { 10564 builder.identificationType = identificationType 10565 builder.identificationTypeFlag = true 10566 return builder 10567 } 10568 10569 func (builder *IdentificationBuilder) Build() *Identification { 10570 req := &Identification{} 10571 if builder.identificationNumberFlag { 10572 req.IdentificationNumber = &builder.identificationNumber 10573 10574 } 10575 if builder.identificationTypeFlag { 10576 req.IdentificationType = &builder.identificationType 10577 10578 } 10579 return req 10580 } 10581 10582 type InternshipInfo struct { 10583 CareerType *int `json:"career_type,omitempty"` // 类型 10584 Company *string `json:"company,omitempty"` // 公司 10585 Desc *string `json:"desc,omitempty"` // 描述 10586 EndTime *int `json:"end_time,omitempty"` // 结束时间 10587 StartTime *int `json:"start_time,omitempty"` // 开始时间 10588 Title *string `json:"title,omitempty"` // 职称 10589 } 10590 10591 type InternshipInfoBuilder struct { 10592 careerType int // 类型 10593 careerTypeFlag bool 10594 company string // 公司 10595 companyFlag bool 10596 desc string // 描述 10597 descFlag bool 10598 endTime int // 结束时间 10599 endTimeFlag bool 10600 startTime int // 开始时间 10601 startTimeFlag bool 10602 title string // 职称 10603 titleFlag bool 10604 } 10605 10606 func NewInternshipInfoBuilder() *InternshipInfoBuilder { 10607 builder := &InternshipInfoBuilder{} 10608 return builder 10609 } 10610 10611 // 类型 10612 // 10613 // 示例值: 10614 func (builder *InternshipInfoBuilder) CareerType(careerType int) *InternshipInfoBuilder { 10615 builder.careerType = careerType 10616 builder.careerTypeFlag = true 10617 return builder 10618 } 10619 10620 // 公司 10621 // 10622 // 示例值: 10623 func (builder *InternshipInfoBuilder) Company(company string) *InternshipInfoBuilder { 10624 builder.company = company 10625 builder.companyFlag = true 10626 return builder 10627 } 10628 10629 // 描述 10630 // 10631 // 示例值: 10632 func (builder *InternshipInfoBuilder) Desc(desc string) *InternshipInfoBuilder { 10633 builder.desc = desc 10634 builder.descFlag = true 10635 return builder 10636 } 10637 10638 // 结束时间 10639 // 10640 // 示例值: 10641 func (builder *InternshipInfoBuilder) EndTime(endTime int) *InternshipInfoBuilder { 10642 builder.endTime = endTime 10643 builder.endTimeFlag = true 10644 return builder 10645 } 10646 10647 // 开始时间 10648 // 10649 // 示例值: 10650 func (builder *InternshipInfoBuilder) StartTime(startTime int) *InternshipInfoBuilder { 10651 builder.startTime = startTime 10652 builder.startTimeFlag = true 10653 return builder 10654 } 10655 10656 // 职称 10657 // 10658 // 示例值: 10659 func (builder *InternshipInfoBuilder) Title(title string) *InternshipInfoBuilder { 10660 builder.title = title 10661 builder.titleFlag = true 10662 return builder 10663 } 10664 10665 func (builder *InternshipInfoBuilder) Build() *InternshipInfo { 10666 req := &InternshipInfo{} 10667 if builder.careerTypeFlag { 10668 req.CareerType = &builder.careerType 10669 10670 } 10671 if builder.companyFlag { 10672 req.Company = &builder.company 10673 10674 } 10675 if builder.descFlag { 10676 req.Desc = &builder.desc 10677 10678 } 10679 if builder.endTimeFlag { 10680 req.EndTime = &builder.endTime 10681 10682 } 10683 if builder.startTimeFlag { 10684 req.StartTime = &builder.startTime 10685 10686 } 10687 if builder.titleFlag { 10688 req.Title = &builder.title 10689 10690 } 10691 return req 10692 } 10693 10694 type Interview struct { 10695 Id *string `json:"id,omitempty"` // 面试id 10696 BeginTime *int `json:"begin_time,omitempty"` // 面试开始时间(ms) 10697 EndTime *int `json:"end_time,omitempty"` // 面试结束时间(ms) 10698 Round *int `json:"round,omitempty"` // 面试轮次(从0开始计数) 10699 StageId *string `json:"stage_id,omitempty"` // 面试关联的投递阶段 10700 InterviewRecordList []*InterviewRecord `json:"interview_record_list,omitempty"` // 面试官记录列表 10701 } 10702 10703 type InterviewBuilder struct { 10704 id string // 面试id 10705 idFlag bool 10706 beginTime int // 面试开始时间(ms) 10707 beginTimeFlag bool 10708 endTime int // 面试结束时间(ms) 10709 endTimeFlag bool 10710 round int // 面试轮次(从0开始计数) 10711 roundFlag bool 10712 stageId string // 面试关联的投递阶段 10713 stageIdFlag bool 10714 interviewRecordList []*InterviewRecord // 面试官记录列表 10715 interviewRecordListFlag bool 10716 } 10717 10718 func NewInterviewBuilder() *InterviewBuilder { 10719 builder := &InterviewBuilder{} 10720 return builder 10721 } 10722 10723 // 面试id 10724 // 10725 // 示例值:6949805467799537964 10726 func (builder *InterviewBuilder) Id(id string) *InterviewBuilder { 10727 builder.id = id 10728 builder.idFlag = true 10729 return builder 10730 } 10731 10732 // 面试开始时间(ms) 10733 // 10734 // 示例值:1618899376474 10735 func (builder *InterviewBuilder) BeginTime(beginTime int) *InterviewBuilder { 10736 builder.beginTime = beginTime 10737 builder.beginTimeFlag = true 10738 return builder 10739 } 10740 10741 // 面试结束时间(ms) 10742 // 10743 // 示例值:1618999376474 10744 func (builder *InterviewBuilder) EndTime(endTime int) *InterviewBuilder { 10745 builder.endTime = endTime 10746 builder.endTimeFlag = true 10747 return builder 10748 } 10749 10750 // 面试轮次(从0开始计数) 10751 // 10752 // 示例值:0 10753 func (builder *InterviewBuilder) Round(round int) *InterviewBuilder { 10754 builder.round = round 10755 builder.roundFlag = true 10756 return builder 10757 } 10758 10759 // 面试关联的投递阶段 10760 // 10761 // 示例值:634324253532232 10762 func (builder *InterviewBuilder) StageId(stageId string) *InterviewBuilder { 10763 builder.stageId = stageId 10764 builder.stageIdFlag = true 10765 return builder 10766 } 10767 10768 // 面试官记录列表 10769 // 10770 // 示例值: 10771 func (builder *InterviewBuilder) InterviewRecordList(interviewRecordList []*InterviewRecord) *InterviewBuilder { 10772 builder.interviewRecordList = interviewRecordList 10773 builder.interviewRecordListFlag = true 10774 return builder 10775 } 10776 10777 func (builder *InterviewBuilder) Build() *Interview { 10778 req := &Interview{} 10779 if builder.idFlag { 10780 req.Id = &builder.id 10781 10782 } 10783 if builder.beginTimeFlag { 10784 req.BeginTime = &builder.beginTime 10785 10786 } 10787 if builder.endTimeFlag { 10788 req.EndTime = &builder.endTime 10789 10790 } 10791 if builder.roundFlag { 10792 req.Round = &builder.round 10793 10794 } 10795 if builder.stageIdFlag { 10796 req.StageId = &builder.stageId 10797 10798 } 10799 if builder.interviewRecordListFlag { 10800 req.InterviewRecordList = builder.interviewRecordList 10801 } 10802 return req 10803 } 10804 10805 type InterviewAddress struct { 10806 Id *string `json:"id,omitempty"` // 地址 ID 10807 Name *I18n `json:"name,omitempty"` // 地址名称 10808 District *CodeNameObject `json:"district,omitempty"` // 区域 10809 City *CodeNameObject `json:"city,omitempty"` // 城市 10810 State *CodeNameObject `json:"state,omitempty"` // 省 10811 Country *CodeNameObject `json:"country,omitempty"` // 国家 10812 } 10813 10814 type InterviewAddressBuilder struct { 10815 id string // 地址 ID 10816 idFlag bool 10817 name *I18n // 地址名称 10818 nameFlag bool 10819 district *CodeNameObject // 区域 10820 districtFlag bool 10821 city *CodeNameObject // 城市 10822 cityFlag bool 10823 state *CodeNameObject // 省 10824 stateFlag bool 10825 country *CodeNameObject // 国家 10826 countryFlag bool 10827 } 10828 10829 func NewInterviewAddressBuilder() *InterviewAddressBuilder { 10830 builder := &InterviewAddressBuilder{} 10831 return builder 10832 } 10833 10834 // 地址 ID 10835 // 10836 // 示例值:6949805467799537964 10837 func (builder *InterviewAddressBuilder) Id(id string) *InterviewAddressBuilder { 10838 builder.id = id 10839 builder.idFlag = true 10840 return builder 10841 } 10842 10843 // 地址名称 10844 // 10845 // 示例值: 10846 func (builder *InterviewAddressBuilder) Name(name *I18n) *InterviewAddressBuilder { 10847 builder.name = name 10848 builder.nameFlag = true 10849 return builder 10850 } 10851 10852 // 区域 10853 // 10854 // 示例值: 10855 func (builder *InterviewAddressBuilder) District(district *CodeNameObject) *InterviewAddressBuilder { 10856 builder.district = district 10857 builder.districtFlag = true 10858 return builder 10859 } 10860 10861 // 城市 10862 // 10863 // 示例值: 10864 func (builder *InterviewAddressBuilder) City(city *CodeNameObject) *InterviewAddressBuilder { 10865 builder.city = city 10866 builder.cityFlag = true 10867 return builder 10868 } 10869 10870 // 省 10871 // 10872 // 示例值: 10873 func (builder *InterviewAddressBuilder) State(state *CodeNameObject) *InterviewAddressBuilder { 10874 builder.state = state 10875 builder.stateFlag = true 10876 return builder 10877 } 10878 10879 // 国家 10880 // 10881 // 示例值: 10882 func (builder *InterviewAddressBuilder) Country(country *CodeNameObject) *InterviewAddressBuilder { 10883 builder.country = country 10884 builder.countryFlag = true 10885 return builder 10886 } 10887 10888 func (builder *InterviewAddressBuilder) Build() *InterviewAddress { 10889 req := &InterviewAddress{} 10890 if builder.idFlag { 10891 req.Id = &builder.id 10892 10893 } 10894 if builder.nameFlag { 10895 req.Name = builder.name 10896 } 10897 if builder.districtFlag { 10898 req.District = builder.district 10899 } 10900 if builder.cityFlag { 10901 req.City = builder.city 10902 } 10903 if builder.stateFlag { 10904 req.State = builder.state 10905 } 10906 if builder.countryFlag { 10907 req.Country = builder.country 10908 } 10909 return req 10910 } 10911 10912 type InterviewAssessmentDimension struct { 10913 Id *string `json:"id,omitempty"` // 题目 ID 10914 Name *I18n `json:"name,omitempty"` // 题目名称 10915 Description *I18n `json:"description,omitempty"` // 题目描述 10916 Enabled *bool `json:"enabled,omitempty"` // 是否启用 10917 Seq *int `json:"seq,omitempty"` // 题目排序 10918 Required *bool `json:"required,omitempty"` // 是否必填 10919 DimensionType *int `json:"dimension_type,omitempty"` // 题目类型 10920 Args *InterviewAssessmentDimensionArgs `json:"args,omitempty"` // 选项信息,仅当题目类型为单选题、多选题时有值 10921 } 10922 10923 type InterviewAssessmentDimensionBuilder struct { 10924 id string // 题目 ID 10925 idFlag bool 10926 name *I18n // 题目名称 10927 nameFlag bool 10928 description *I18n // 题目描述 10929 descriptionFlag bool 10930 enabled bool // 是否启用 10931 enabledFlag bool 10932 seq int // 题目排序 10933 seqFlag bool 10934 required bool // 是否必填 10935 requiredFlag bool 10936 dimensionType int // 题目类型 10937 dimensionTypeFlag bool 10938 args *InterviewAssessmentDimensionArgs // 选项信息,仅当题目类型为单选题、多选题时有值 10939 argsFlag bool 10940 } 10941 10942 func NewInterviewAssessmentDimensionBuilder() *InterviewAssessmentDimensionBuilder { 10943 builder := &InterviewAssessmentDimensionBuilder{} 10944 return builder 10945 } 10946 10947 // 题目 ID 10948 // 10949 // 示例值:6949805467799537964 10950 func (builder *InterviewAssessmentDimensionBuilder) Id(id string) *InterviewAssessmentDimensionBuilder { 10951 builder.id = id 10952 builder.idFlag = true 10953 return builder 10954 } 10955 10956 // 题目名称 10957 // 10958 // 示例值: 10959 func (builder *InterviewAssessmentDimensionBuilder) Name(name *I18n) *InterviewAssessmentDimensionBuilder { 10960 builder.name = name 10961 builder.nameFlag = true 10962 return builder 10963 } 10964 10965 // 题目描述 10966 // 10967 // 示例值: 10968 func (builder *InterviewAssessmentDimensionBuilder) Description(description *I18n) *InterviewAssessmentDimensionBuilder { 10969 builder.description = description 10970 builder.descriptionFlag = true 10971 return builder 10972 } 10973 10974 // 是否启用 10975 // 10976 // 示例值:true 10977 func (builder *InterviewAssessmentDimensionBuilder) Enabled(enabled bool) *InterviewAssessmentDimensionBuilder { 10978 builder.enabled = enabled 10979 builder.enabledFlag = true 10980 return builder 10981 } 10982 10983 // 题目排序 10984 // 10985 // 示例值:1 10986 func (builder *InterviewAssessmentDimensionBuilder) Seq(seq int) *InterviewAssessmentDimensionBuilder { 10987 builder.seq = seq 10988 builder.seqFlag = true 10989 return builder 10990 } 10991 10992 // 是否必填 10993 // 10994 // 示例值:true 10995 func (builder *InterviewAssessmentDimensionBuilder) Required(required bool) *InterviewAssessmentDimensionBuilder { 10996 builder.required = required 10997 builder.requiredFlag = true 10998 return builder 10999 } 11000 11001 // 题目类型 11002 // 11003 // 示例值:1 11004 func (builder *InterviewAssessmentDimensionBuilder) DimensionType(dimensionType int) *InterviewAssessmentDimensionBuilder { 11005 builder.dimensionType = dimensionType 11006 builder.dimensionTypeFlag = true 11007 return builder 11008 } 11009 11010 // 选项信息,仅当题目类型为单选题、多选题时有值 11011 // 11012 // 示例值: 11013 func (builder *InterviewAssessmentDimensionBuilder) Args(args *InterviewAssessmentDimensionArgs) *InterviewAssessmentDimensionBuilder { 11014 builder.args = args 11015 builder.argsFlag = true 11016 return builder 11017 } 11018 11019 func (builder *InterviewAssessmentDimensionBuilder) Build() *InterviewAssessmentDimension { 11020 req := &InterviewAssessmentDimension{} 11021 if builder.idFlag { 11022 req.Id = &builder.id 11023 11024 } 11025 if builder.nameFlag { 11026 req.Name = builder.name 11027 } 11028 if builder.descriptionFlag { 11029 req.Description = builder.description 11030 } 11031 if builder.enabledFlag { 11032 req.Enabled = &builder.enabled 11033 11034 } 11035 if builder.seqFlag { 11036 req.Seq = &builder.seq 11037 11038 } 11039 if builder.requiredFlag { 11040 req.Required = &builder.required 11041 11042 } 11043 if builder.dimensionTypeFlag { 11044 req.DimensionType = &builder.dimensionType 11045 11046 } 11047 if builder.argsFlag { 11048 req.Args = builder.args 11049 } 11050 return req 11051 } 11052 11053 type InterviewAssessmentDimensionArgs struct { 11054 ScoreList []*InterviewAssessmentDimensionArgsScore `json:"score_list,omitempty"` // 选项列表 11055 } 11056 11057 type InterviewAssessmentDimensionArgsBuilder struct { 11058 scoreList []*InterviewAssessmentDimensionArgsScore // 选项列表 11059 scoreListFlag bool 11060 } 11061 11062 func NewInterviewAssessmentDimensionArgsBuilder() *InterviewAssessmentDimensionArgsBuilder { 11063 builder := &InterviewAssessmentDimensionArgsBuilder{} 11064 return builder 11065 } 11066 11067 // 选项列表 11068 // 11069 // 示例值: 11070 func (builder *InterviewAssessmentDimensionArgsBuilder) ScoreList(scoreList []*InterviewAssessmentDimensionArgsScore) *InterviewAssessmentDimensionArgsBuilder { 11071 builder.scoreList = scoreList 11072 builder.scoreListFlag = true 11073 return builder 11074 } 11075 11076 func (builder *InterviewAssessmentDimensionArgsBuilder) Build() *InterviewAssessmentDimensionArgs { 11077 req := &InterviewAssessmentDimensionArgs{} 11078 if builder.scoreListFlag { 11079 req.ScoreList = builder.scoreList 11080 } 11081 return req 11082 } 11083 11084 type InterviewAssessmentDimensionArgsScore struct { 11085 Id *string `json:"id,omitempty"` // 选项 ID 11086 Name *I18n `json:"name,omitempty"` // 选项名称 11087 Description *I18n `json:"description,omitempty"` // 选项描述 11088 Enabled *bool `json:"enabled,omitempty"` // 是否启用 11089 } 11090 11091 type InterviewAssessmentDimensionArgsScoreBuilder struct { 11092 id string // 选项 ID 11093 idFlag bool 11094 name *I18n // 选项名称 11095 nameFlag bool 11096 description *I18n // 选项描述 11097 descriptionFlag bool 11098 enabled bool // 是否启用 11099 enabledFlag bool 11100 } 11101 11102 func NewInterviewAssessmentDimensionArgsScoreBuilder() *InterviewAssessmentDimensionArgsScoreBuilder { 11103 builder := &InterviewAssessmentDimensionArgsScoreBuilder{} 11104 return builder 11105 } 11106 11107 // 选项 ID 11108 // 11109 // 示例值:6949805467799537964 11110 func (builder *InterviewAssessmentDimensionArgsScoreBuilder) Id(id string) *InterviewAssessmentDimensionArgsScoreBuilder { 11111 builder.id = id 11112 builder.idFlag = true 11113 return builder 11114 } 11115 11116 // 选项名称 11117 // 11118 // 示例值: 11119 func (builder *InterviewAssessmentDimensionArgsScoreBuilder) Name(name *I18n) *InterviewAssessmentDimensionArgsScoreBuilder { 11120 builder.name = name 11121 builder.nameFlag = true 11122 return builder 11123 } 11124 11125 // 选项描述 11126 // 11127 // 示例值: 11128 func (builder *InterviewAssessmentDimensionArgsScoreBuilder) Description(description *I18n) *InterviewAssessmentDimensionArgsScoreBuilder { 11129 builder.description = description 11130 builder.descriptionFlag = true 11131 return builder 11132 } 11133 11134 // 是否启用 11135 // 11136 // 示例值:true 11137 func (builder *InterviewAssessmentDimensionArgsScoreBuilder) Enabled(enabled bool) *InterviewAssessmentDimensionArgsScoreBuilder { 11138 builder.enabled = enabled 11139 builder.enabledFlag = true 11140 return builder 11141 } 11142 11143 func (builder *InterviewAssessmentDimensionArgsScoreBuilder) Build() *InterviewAssessmentDimensionArgsScore { 11144 req := &InterviewAssessmentDimensionArgsScore{} 11145 if builder.idFlag { 11146 req.Id = &builder.id 11147 11148 } 11149 if builder.nameFlag { 11150 req.Name = builder.name 11151 } 11152 if builder.descriptionFlag { 11153 req.Description = builder.description 11154 } 11155 if builder.enabledFlag { 11156 req.Enabled = &builder.enabled 11157 11158 } 11159 return req 11160 } 11161 11162 type InterviewAssessmentTemplate struct { 11163 Id *string `json:"id,omitempty"` // 面试评价表 ID 11164 Name *I18n `json:"name,omitempty"` // 面试评价表名称 11165 Args *InterviewAssessmentTemplateArgs `json:"args,omitempty"` // 面试评价表题目 11166 } 11167 11168 type InterviewAssessmentTemplateBuilder struct { 11169 id string // 面试评价表 ID 11170 idFlag bool 11171 name *I18n // 面试评价表名称 11172 nameFlag bool 11173 args *InterviewAssessmentTemplateArgs // 面试评价表题目 11174 argsFlag bool 11175 } 11176 11177 func NewInterviewAssessmentTemplateBuilder() *InterviewAssessmentTemplateBuilder { 11178 builder := &InterviewAssessmentTemplateBuilder{} 11179 return builder 11180 } 11181 11182 // 面试评价表 ID 11183 // 11184 // 示例值:6949805467799537964 11185 func (builder *InterviewAssessmentTemplateBuilder) Id(id string) *InterviewAssessmentTemplateBuilder { 11186 builder.id = id 11187 builder.idFlag = true 11188 return builder 11189 } 11190 11191 // 面试评价表名称 11192 // 11193 // 示例值: 11194 func (builder *InterviewAssessmentTemplateBuilder) Name(name *I18n) *InterviewAssessmentTemplateBuilder { 11195 builder.name = name 11196 builder.nameFlag = true 11197 return builder 11198 } 11199 11200 // 面试评价表题目 11201 // 11202 // 示例值: 11203 func (builder *InterviewAssessmentTemplateBuilder) Args(args *InterviewAssessmentTemplateArgs) *InterviewAssessmentTemplateBuilder { 11204 builder.args = args 11205 builder.argsFlag = true 11206 return builder 11207 } 11208 11209 func (builder *InterviewAssessmentTemplateBuilder) Build() *InterviewAssessmentTemplate { 11210 req := &InterviewAssessmentTemplate{} 11211 if builder.idFlag { 11212 req.Id = &builder.id 11213 11214 } 11215 if builder.nameFlag { 11216 req.Name = builder.name 11217 } 11218 if builder.argsFlag { 11219 req.Args = builder.args 11220 } 11221 return req 11222 } 11223 11224 type InterviewAssessmentTemplateArgs struct { 11225 ConclusionDimension *InterviewAssessmentDimension `json:"conclusion_dimension,omitempty"` // 结论题 11226 ScoreDimension *InterviewAssessmentDimension `json:"score_dimension,omitempty"` // 得分题 11227 ContentDimension *InterviewAssessmentDimension `json:"content_dimension,omitempty"` // 记录题 11228 CustomDimensionList []*InterviewAssessmentDimension `json:"custom_dimension_list,omitempty"` // 自定义题目 11229 } 11230 11231 type InterviewAssessmentTemplateArgsBuilder struct { 11232 conclusionDimension *InterviewAssessmentDimension // 结论题 11233 conclusionDimensionFlag bool 11234 scoreDimension *InterviewAssessmentDimension // 得分题 11235 scoreDimensionFlag bool 11236 contentDimension *InterviewAssessmentDimension // 记录题 11237 contentDimensionFlag bool 11238 customDimensionList []*InterviewAssessmentDimension // 自定义题目 11239 customDimensionListFlag bool 11240 } 11241 11242 func NewInterviewAssessmentTemplateArgsBuilder() *InterviewAssessmentTemplateArgsBuilder { 11243 builder := &InterviewAssessmentTemplateArgsBuilder{} 11244 return builder 11245 } 11246 11247 // 结论题 11248 // 11249 // 示例值: 11250 func (builder *InterviewAssessmentTemplateArgsBuilder) ConclusionDimension(conclusionDimension *InterviewAssessmentDimension) *InterviewAssessmentTemplateArgsBuilder { 11251 builder.conclusionDimension = conclusionDimension 11252 builder.conclusionDimensionFlag = true 11253 return builder 11254 } 11255 11256 // 得分题 11257 // 11258 // 示例值: 11259 func (builder *InterviewAssessmentTemplateArgsBuilder) ScoreDimension(scoreDimension *InterviewAssessmentDimension) *InterviewAssessmentTemplateArgsBuilder { 11260 builder.scoreDimension = scoreDimension 11261 builder.scoreDimensionFlag = true 11262 return builder 11263 } 11264 11265 // 记录题 11266 // 11267 // 示例值: 11268 func (builder *InterviewAssessmentTemplateArgsBuilder) ContentDimension(contentDimension *InterviewAssessmentDimension) *InterviewAssessmentTemplateArgsBuilder { 11269 builder.contentDimension = contentDimension 11270 builder.contentDimensionFlag = true 11271 return builder 11272 } 11273 11274 // 自定义题目 11275 // 11276 // 示例值: 11277 func (builder *InterviewAssessmentTemplateArgsBuilder) CustomDimensionList(customDimensionList []*InterviewAssessmentDimension) *InterviewAssessmentTemplateArgsBuilder { 11278 builder.customDimensionList = customDimensionList 11279 builder.customDimensionListFlag = true 11280 return builder 11281 } 11282 11283 func (builder *InterviewAssessmentTemplateArgsBuilder) Build() *InterviewAssessmentTemplateArgs { 11284 req := &InterviewAssessmentTemplateArgs{} 11285 if builder.conclusionDimensionFlag { 11286 req.ConclusionDimension = builder.conclusionDimension 11287 } 11288 if builder.scoreDimensionFlag { 11289 req.ScoreDimension = builder.scoreDimension 11290 } 11291 if builder.contentDimensionFlag { 11292 req.ContentDimension = builder.contentDimension 11293 } 11294 if builder.customDimensionListFlag { 11295 req.CustomDimensionList = builder.customDimensionList 11296 } 11297 return req 11298 } 11299 11300 type InterviewDimensionAssessment struct { 11301 Id *string `json:"id,omitempty"` // 题目评价 ID 11302 Name *I18n `json:"name,omitempty"` // 题目名称 11303 Content *string `json:"content,omitempty"` // 当题目类型为描述题时,从此取值 11304 DimensionId *string `json:"dimension_id,omitempty"` // 题目 ID 11305 DimensionScore *InterviewDimensionScore `json:"dimension_score,omitempty"` // 当题目类型为单选题时,从此取值 11306 DimensionScoreList []*InterviewDimensionScore `json:"dimension_score_list,omitempty"` // 当题目类型为多选题时,从此取值 11307 DimensionType *int `json:"dimension_type,omitempty"` // 题目类型 11308 } 11309 11310 type InterviewDimensionAssessmentBuilder struct { 11311 id string // 题目评价 ID 11312 idFlag bool 11313 name *I18n // 题目名称 11314 nameFlag bool 11315 content string // 当题目类型为描述题时,从此取值 11316 contentFlag bool 11317 dimensionId string // 题目 ID 11318 dimensionIdFlag bool 11319 dimensionScore *InterviewDimensionScore // 当题目类型为单选题时,从此取值 11320 dimensionScoreFlag bool 11321 dimensionScoreList []*InterviewDimensionScore // 当题目类型为多选题时,从此取值 11322 dimensionScoreListFlag bool 11323 dimensionType int // 题目类型 11324 dimensionTypeFlag bool 11325 } 11326 11327 func NewInterviewDimensionAssessmentBuilder() *InterviewDimensionAssessmentBuilder { 11328 builder := &InterviewDimensionAssessmentBuilder{} 11329 return builder 11330 } 11331 11332 // 题目评价 ID 11333 // 11334 // 示例值:6949805467799537964 11335 func (builder *InterviewDimensionAssessmentBuilder) Id(id string) *InterviewDimensionAssessmentBuilder { 11336 builder.id = id 11337 builder.idFlag = true 11338 return builder 11339 } 11340 11341 // 题目名称 11342 // 11343 // 示例值: 11344 func (builder *InterviewDimensionAssessmentBuilder) Name(name *I18n) *InterviewDimensionAssessmentBuilder { 11345 builder.name = name 11346 builder.nameFlag = true 11347 return builder 11348 } 11349 11350 // 当题目类型为描述题时,从此取值 11351 // 11352 // 示例值:这个候选人还不错 11353 func (builder *InterviewDimensionAssessmentBuilder) Content(content string) *InterviewDimensionAssessmentBuilder { 11354 builder.content = content 11355 builder.contentFlag = true 11356 return builder 11357 } 11358 11359 // 题目 ID 11360 // 11361 // 示例值:11111111 11362 func (builder *InterviewDimensionAssessmentBuilder) DimensionId(dimensionId string) *InterviewDimensionAssessmentBuilder { 11363 builder.dimensionId = dimensionId 11364 builder.dimensionIdFlag = true 11365 return builder 11366 } 11367 11368 // 当题目类型为单选题时,从此取值 11369 // 11370 // 示例值: 11371 func (builder *InterviewDimensionAssessmentBuilder) DimensionScore(dimensionScore *InterviewDimensionScore) *InterviewDimensionAssessmentBuilder { 11372 builder.dimensionScore = dimensionScore 11373 builder.dimensionScoreFlag = true 11374 return builder 11375 } 11376 11377 // 当题目类型为多选题时,从此取值 11378 // 11379 // 示例值: 11380 func (builder *InterviewDimensionAssessmentBuilder) DimensionScoreList(dimensionScoreList []*InterviewDimensionScore) *InterviewDimensionAssessmentBuilder { 11381 builder.dimensionScoreList = dimensionScoreList 11382 builder.dimensionScoreListFlag = true 11383 return builder 11384 } 11385 11386 // 题目类型 11387 // 11388 // 示例值:1 11389 func (builder *InterviewDimensionAssessmentBuilder) DimensionType(dimensionType int) *InterviewDimensionAssessmentBuilder { 11390 builder.dimensionType = dimensionType 11391 builder.dimensionTypeFlag = true 11392 return builder 11393 } 11394 11395 func (builder *InterviewDimensionAssessmentBuilder) Build() *InterviewDimensionAssessment { 11396 req := &InterviewDimensionAssessment{} 11397 if builder.idFlag { 11398 req.Id = &builder.id 11399 11400 } 11401 if builder.nameFlag { 11402 req.Name = builder.name 11403 } 11404 if builder.contentFlag { 11405 req.Content = &builder.content 11406 11407 } 11408 if builder.dimensionIdFlag { 11409 req.DimensionId = &builder.dimensionId 11410 11411 } 11412 if builder.dimensionScoreFlag { 11413 req.DimensionScore = builder.dimensionScore 11414 } 11415 if builder.dimensionScoreListFlag { 11416 req.DimensionScoreList = builder.dimensionScoreList 11417 } 11418 if builder.dimensionTypeFlag { 11419 req.DimensionType = &builder.dimensionType 11420 11421 } 11422 return req 11423 } 11424 11425 type InterviewDimensionScore struct { 11426 Id *string `json:"id,omitempty"` // 选项 ID 11427 Name *I18n `json:"name,omitempty"` // 选项名称 11428 } 11429 11430 type InterviewDimensionScoreBuilder struct { 11431 id string // 选项 ID 11432 idFlag bool 11433 name *I18n // 选项名称 11434 nameFlag bool 11435 } 11436 11437 func NewInterviewDimensionScoreBuilder() *InterviewDimensionScoreBuilder { 11438 builder := &InterviewDimensionScoreBuilder{} 11439 return builder 11440 } 11441 11442 // 选项 ID 11443 // 11444 // 示例值:6949805467799537964 11445 func (builder *InterviewDimensionScoreBuilder) Id(id string) *InterviewDimensionScoreBuilder { 11446 builder.id = id 11447 builder.idFlag = true 11448 return builder 11449 } 11450 11451 // 选项名称 11452 // 11453 // 示例值: 11454 func (builder *InterviewDimensionScoreBuilder) Name(name *I18n) *InterviewDimensionScoreBuilder { 11455 builder.name = name 11456 builder.nameFlag = true 11457 return builder 11458 } 11459 11460 func (builder *InterviewDimensionScoreBuilder) Build() *InterviewDimensionScore { 11461 req := &InterviewDimensionScore{} 11462 if builder.idFlag { 11463 req.Id = &builder.id 11464 11465 } 11466 if builder.nameFlag { 11467 req.Name = builder.name 11468 } 11469 return req 11470 } 11471 11472 type InterviewExtend struct { 11473 Id *string `json:"id,omitempty"` // 面试 ID 11474 BeginTime *int `json:"begin_time,omitempty"` // 面试开始时间(ms) 11475 EndTime *int `json:"end_time,omitempty"` // 面试结束时间(ms) 11476 Round *int `json:"round,omitempty"` // 面试轮次 11477 InterviewRecordList []*InterviewRecord `json:"interview_record_list,omitempty"` // 面试记录信息 11478 FeedbackSubmitTime *int `json:"feedback_submit_time,omitempty"` // 面试评价提交时间 11479 StageId *string `json:"stage_id,omitempty"` // 面试关联的投递阶段 11480 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 11481 Stage *IdNameObject `json:"stage,omitempty"` // 阶段信息 11482 Creator *IdNameObject `json:"creator,omitempty"` // 创建人 11483 BizCreateTime *int `json:"biz_create_time,omitempty"` // 创建时间(ms) 11484 BizModifyTime *int `json:"biz_modify_time,omitempty"` // 最近更新时间(ms) 11485 InterviewRoundSummary *int `json:"interview_round_summary,omitempty"` // 面试状态 11486 InterviewArrangementId *string `json:"interview_arrangement_id,omitempty"` // 面试安排 ID 11487 InterviewType *int `json:"interview_type,omitempty"` // 面试类型 11488 TalentTimeZone *CodeNameObject `json:"talent_time_zone,omitempty"` // 候选人时区 11489 ContactUser *IdNameObject `json:"contact_user,omitempty"` // 面试联系人 11490 ContactMobile *string `json:"contact_mobile,omitempty"` // 面试联系人电话 11491 Remark *string `json:"remark,omitempty"` // 备注 11492 Address *InterviewAddress `json:"address,omitempty"` // 面试地点 11493 VideoType *int `json:"video_type,omitempty"` // 视频面试工具 11494 ArrangementStatus *int `json:"arrangement_status,omitempty"` // 当安排类型为集中面试时,此值表示集中面试的安排状态 11495 ArrangementType *int `json:"arrangement_type,omitempty"` // 安排类型 11496 ArrangementAppointmentKind *int `json:"arrangement_appointment_kind,omitempty"` // 安排方式(是否使用自助约面) 11497 MeetingRoomList []*InterviewMeetingRoom `json:"meeting_room_list,omitempty"` // 面试会议室 11498 InterviewRoundType *IdNameObject `json:"interview_round_type,omitempty"` // 面试轮次类型 11499 } 11500 11501 type InterviewExtendBuilder struct { 11502 id string // 面试 ID 11503 idFlag bool 11504 beginTime int // 面试开始时间(ms) 11505 beginTimeFlag bool 11506 endTime int // 面试结束时间(ms) 11507 endTimeFlag bool 11508 round int // 面试轮次 11509 roundFlag bool 11510 interviewRecordList []*InterviewRecord // 面试记录信息 11511 interviewRecordListFlag bool 11512 feedbackSubmitTime int // 面试评价提交时间 11513 feedbackSubmitTimeFlag bool 11514 stageId string // 面试关联的投递阶段 11515 stageIdFlag bool 11516 applicationId string // 投递 ID 11517 applicationIdFlag bool 11518 stage *IdNameObject // 阶段信息 11519 stageFlag bool 11520 creator *IdNameObject // 创建人 11521 creatorFlag bool 11522 bizCreateTime int // 创建时间(ms) 11523 bizCreateTimeFlag bool 11524 bizModifyTime int // 最近更新时间(ms) 11525 bizModifyTimeFlag bool 11526 interviewRoundSummary int // 面试状态 11527 interviewRoundSummaryFlag bool 11528 interviewArrangementId string // 面试安排 ID 11529 interviewArrangementIdFlag bool 11530 interviewType int // 面试类型 11531 interviewTypeFlag bool 11532 talentTimeZone *CodeNameObject // 候选人时区 11533 talentTimeZoneFlag bool 11534 contactUser *IdNameObject // 面试联系人 11535 contactUserFlag bool 11536 contactMobile string // 面试联系人电话 11537 contactMobileFlag bool 11538 remark string // 备注 11539 remarkFlag bool 11540 address *InterviewAddress // 面试地点 11541 addressFlag bool 11542 videoType int // 视频面试工具 11543 videoTypeFlag bool 11544 arrangementStatus int // 当安排类型为集中面试时,此值表示集中面试的安排状态 11545 arrangementStatusFlag bool 11546 arrangementType int // 安排类型 11547 arrangementTypeFlag bool 11548 arrangementAppointmentKind int // 安排方式(是否使用自助约面) 11549 arrangementAppointmentKindFlag bool 11550 meetingRoomList []*InterviewMeetingRoom // 面试会议室 11551 meetingRoomListFlag bool 11552 interviewRoundType *IdNameObject // 面试轮次类型 11553 interviewRoundTypeFlag bool 11554 } 11555 11556 func NewInterviewExtendBuilder() *InterviewExtendBuilder { 11557 builder := &InterviewExtendBuilder{} 11558 return builder 11559 } 11560 11561 // 面试 ID 11562 // 11563 // 示例值:6949805467799537964 11564 func (builder *InterviewExtendBuilder) Id(id string) *InterviewExtendBuilder { 11565 builder.id = id 11566 builder.idFlag = true 11567 return builder 11568 } 11569 11570 // 面试开始时间(ms) 11571 // 11572 // 示例值:1618899376474 11573 func (builder *InterviewExtendBuilder) BeginTime(beginTime int) *InterviewExtendBuilder { 11574 builder.beginTime = beginTime 11575 builder.beginTimeFlag = true 11576 return builder 11577 } 11578 11579 // 面试结束时间(ms) 11580 // 11581 // 示例值:1618999376474 11582 func (builder *InterviewExtendBuilder) EndTime(endTime int) *InterviewExtendBuilder { 11583 builder.endTime = endTime 11584 builder.endTimeFlag = true 11585 return builder 11586 } 11587 11588 // 面试轮次 11589 // 11590 // 示例值:0 11591 func (builder *InterviewExtendBuilder) Round(round int) *InterviewExtendBuilder { 11592 builder.round = round 11593 builder.roundFlag = true 11594 return builder 11595 } 11596 11597 // 面试记录信息 11598 // 11599 // 示例值: 11600 func (builder *InterviewExtendBuilder) InterviewRecordList(interviewRecordList []*InterviewRecord) *InterviewExtendBuilder { 11601 builder.interviewRecordList = interviewRecordList 11602 builder.interviewRecordListFlag = true 11603 return builder 11604 } 11605 11606 // 面试评价提交时间 11607 // 11608 // 示例值:1659318415000 11609 func (builder *InterviewExtendBuilder) FeedbackSubmitTime(feedbackSubmitTime int) *InterviewExtendBuilder { 11610 builder.feedbackSubmitTime = feedbackSubmitTime 11611 builder.feedbackSubmitTimeFlag = true 11612 return builder 11613 } 11614 11615 // 面试关联的投递阶段 11616 // 11617 // 示例值:634324253532232 11618 func (builder *InterviewExtendBuilder) StageId(stageId string) *InterviewExtendBuilder { 11619 builder.stageId = stageId 11620 builder.stageIdFlag = true 11621 return builder 11622 } 11623 11624 // 投递 ID 11625 // 11626 // 示例值:634324253532232 11627 func (builder *InterviewExtendBuilder) ApplicationId(applicationId string) *InterviewExtendBuilder { 11628 builder.applicationId = applicationId 11629 builder.applicationIdFlag = true 11630 return builder 11631 } 11632 11633 // 阶段信息 11634 // 11635 // 示例值: 11636 func (builder *InterviewExtendBuilder) Stage(stage *IdNameObject) *InterviewExtendBuilder { 11637 builder.stage = stage 11638 builder.stageFlag = true 11639 return builder 11640 } 11641 11642 // 创建人 11643 // 11644 // 示例值: 11645 func (builder *InterviewExtendBuilder) Creator(creator *IdNameObject) *InterviewExtendBuilder { 11646 builder.creator = creator 11647 builder.creatorFlag = true 11648 return builder 11649 } 11650 11651 // 创建时间(ms) 11652 // 11653 // 示例值:1618999376474 11654 func (builder *InterviewExtendBuilder) BizCreateTime(bizCreateTime int) *InterviewExtendBuilder { 11655 builder.bizCreateTime = bizCreateTime 11656 builder.bizCreateTimeFlag = true 11657 return builder 11658 } 11659 11660 // 最近更新时间(ms) 11661 // 11662 // 示例值:1618999376474 11663 func (builder *InterviewExtendBuilder) BizModifyTime(bizModifyTime int) *InterviewExtendBuilder { 11664 builder.bizModifyTime = bizModifyTime 11665 builder.bizModifyTimeFlag = true 11666 return builder 11667 } 11668 11669 // 面试状态 11670 // 11671 // 示例值:1 11672 func (builder *InterviewExtendBuilder) InterviewRoundSummary(interviewRoundSummary int) *InterviewExtendBuilder { 11673 builder.interviewRoundSummary = interviewRoundSummary 11674 builder.interviewRoundSummaryFlag = true 11675 return builder 11676 } 11677 11678 // 面试安排 ID 11679 // 11680 // 示例值:1111111 11681 func (builder *InterviewExtendBuilder) InterviewArrangementId(interviewArrangementId string) *InterviewExtendBuilder { 11682 builder.interviewArrangementId = interviewArrangementId 11683 builder.interviewArrangementIdFlag = true 11684 return builder 11685 } 11686 11687 // 面试类型 11688 // 11689 // 示例值:1 11690 func (builder *InterviewExtendBuilder) InterviewType(interviewType int) *InterviewExtendBuilder { 11691 builder.interviewType = interviewType 11692 builder.interviewTypeFlag = true 11693 return builder 11694 } 11695 11696 // 候选人时区 11697 // 11698 // 示例值: 11699 func (builder *InterviewExtendBuilder) TalentTimeZone(talentTimeZone *CodeNameObject) *InterviewExtendBuilder { 11700 builder.talentTimeZone = talentTimeZone 11701 builder.talentTimeZoneFlag = true 11702 return builder 11703 } 11704 11705 // 面试联系人 11706 // 11707 // 示例值: 11708 func (builder *InterviewExtendBuilder) ContactUser(contactUser *IdNameObject) *InterviewExtendBuilder { 11709 builder.contactUser = contactUser 11710 builder.contactUserFlag = true 11711 return builder 11712 } 11713 11714 // 面试联系人电话 11715 // 11716 // 示例值:13333333333 11717 func (builder *InterviewExtendBuilder) ContactMobile(contactMobile string) *InterviewExtendBuilder { 11718 builder.contactMobile = contactMobile 11719 builder.contactMobileFlag = true 11720 return builder 11721 } 11722 11723 // 备注 11724 // 11725 // 示例值:test 11726 func (builder *InterviewExtendBuilder) Remark(remark string) *InterviewExtendBuilder { 11727 builder.remark = remark 11728 builder.remarkFlag = true 11729 return builder 11730 } 11731 11732 // 面试地点 11733 // 11734 // 示例值: 11735 func (builder *InterviewExtendBuilder) Address(address *InterviewAddress) *InterviewExtendBuilder { 11736 builder.address = address 11737 builder.addressFlag = true 11738 return builder 11739 } 11740 11741 // 视频面试工具 11742 // 11743 // 示例值:1 11744 func (builder *InterviewExtendBuilder) VideoType(videoType int) *InterviewExtendBuilder { 11745 builder.videoType = videoType 11746 builder.videoTypeFlag = true 11747 return builder 11748 } 11749 11750 // 当安排类型为集中面试时,此值表示集中面试的安排状态 11751 // 11752 // 示例值:1 11753 func (builder *InterviewExtendBuilder) ArrangementStatus(arrangementStatus int) *InterviewExtendBuilder { 11754 builder.arrangementStatus = arrangementStatus 11755 builder.arrangementStatusFlag = true 11756 return builder 11757 } 11758 11759 // 安排类型 11760 // 11761 // 示例值:1 11762 func (builder *InterviewExtendBuilder) ArrangementType(arrangementType int) *InterviewExtendBuilder { 11763 builder.arrangementType = arrangementType 11764 builder.arrangementTypeFlag = true 11765 return builder 11766 } 11767 11768 // 安排方式(是否使用自助约面) 11769 // 11770 // 示例值:1 11771 func (builder *InterviewExtendBuilder) ArrangementAppointmentKind(arrangementAppointmentKind int) *InterviewExtendBuilder { 11772 builder.arrangementAppointmentKind = arrangementAppointmentKind 11773 builder.arrangementAppointmentKindFlag = true 11774 return builder 11775 } 11776 11777 // 面试会议室 11778 // 11779 // 示例值: 11780 func (builder *InterviewExtendBuilder) MeetingRoomList(meetingRoomList []*InterviewMeetingRoom) *InterviewExtendBuilder { 11781 builder.meetingRoomList = meetingRoomList 11782 builder.meetingRoomListFlag = true 11783 return builder 11784 } 11785 11786 // 面试轮次类型 11787 // 11788 // 示例值: 11789 func (builder *InterviewExtendBuilder) InterviewRoundType(interviewRoundType *IdNameObject) *InterviewExtendBuilder { 11790 builder.interviewRoundType = interviewRoundType 11791 builder.interviewRoundTypeFlag = true 11792 return builder 11793 } 11794 11795 func (builder *InterviewExtendBuilder) Build() *InterviewExtend { 11796 req := &InterviewExtend{} 11797 if builder.idFlag { 11798 req.Id = &builder.id 11799 11800 } 11801 if builder.beginTimeFlag { 11802 req.BeginTime = &builder.beginTime 11803 11804 } 11805 if builder.endTimeFlag { 11806 req.EndTime = &builder.endTime 11807 11808 } 11809 if builder.roundFlag { 11810 req.Round = &builder.round 11811 11812 } 11813 if builder.interviewRecordListFlag { 11814 req.InterviewRecordList = builder.interviewRecordList 11815 } 11816 if builder.feedbackSubmitTimeFlag { 11817 req.FeedbackSubmitTime = &builder.feedbackSubmitTime 11818 11819 } 11820 if builder.stageIdFlag { 11821 req.StageId = &builder.stageId 11822 11823 } 11824 if builder.applicationIdFlag { 11825 req.ApplicationId = &builder.applicationId 11826 11827 } 11828 if builder.stageFlag { 11829 req.Stage = builder.stage 11830 } 11831 if builder.creatorFlag { 11832 req.Creator = builder.creator 11833 } 11834 if builder.bizCreateTimeFlag { 11835 req.BizCreateTime = &builder.bizCreateTime 11836 11837 } 11838 if builder.bizModifyTimeFlag { 11839 req.BizModifyTime = &builder.bizModifyTime 11840 11841 } 11842 if builder.interviewRoundSummaryFlag { 11843 req.InterviewRoundSummary = &builder.interviewRoundSummary 11844 11845 } 11846 if builder.interviewArrangementIdFlag { 11847 req.InterviewArrangementId = &builder.interviewArrangementId 11848 11849 } 11850 if builder.interviewTypeFlag { 11851 req.InterviewType = &builder.interviewType 11852 11853 } 11854 if builder.talentTimeZoneFlag { 11855 req.TalentTimeZone = builder.talentTimeZone 11856 } 11857 if builder.contactUserFlag { 11858 req.ContactUser = builder.contactUser 11859 } 11860 if builder.contactMobileFlag { 11861 req.ContactMobile = &builder.contactMobile 11862 11863 } 11864 if builder.remarkFlag { 11865 req.Remark = &builder.remark 11866 11867 } 11868 if builder.addressFlag { 11869 req.Address = builder.address 11870 } 11871 if builder.videoTypeFlag { 11872 req.VideoType = &builder.videoType 11873 11874 } 11875 if builder.arrangementStatusFlag { 11876 req.ArrangementStatus = &builder.arrangementStatus 11877 11878 } 11879 if builder.arrangementTypeFlag { 11880 req.ArrangementType = &builder.arrangementType 11881 11882 } 11883 if builder.arrangementAppointmentKindFlag { 11884 req.ArrangementAppointmentKind = &builder.arrangementAppointmentKind 11885 11886 } 11887 if builder.meetingRoomListFlag { 11888 req.MeetingRoomList = builder.meetingRoomList 11889 } 11890 if builder.interviewRoundTypeFlag { 11891 req.InterviewRoundType = builder.interviewRoundType 11892 } 11893 return req 11894 } 11895 11896 type InterviewMeetingRoom struct { 11897 RoomId *string `json:"room_id,omitempty"` // 会议室 ID 11898 RoomName *string `json:"room_name,omitempty"` // 会议室名称 11899 BuildingName *string `json:"building_name,omitempty"` // 建筑名称 11900 ReservedStatus *int `json:"reserved_status,omitempty"` // 会议室预定状态 11901 FloorName *string `json:"floor_name,omitempty"` // 楼层 11902 } 11903 11904 type InterviewMeetingRoomBuilder struct { 11905 roomId string // 会议室 ID 11906 roomIdFlag bool 11907 roomName string // 会议室名称 11908 roomNameFlag bool 11909 buildingName string // 建筑名称 11910 buildingNameFlag bool 11911 reservedStatus int // 会议室预定状态 11912 reservedStatusFlag bool 11913 floorName string // 楼层 11914 floorNameFlag bool 11915 } 11916 11917 func NewInterviewMeetingRoomBuilder() *InterviewMeetingRoomBuilder { 11918 builder := &InterviewMeetingRoomBuilder{} 11919 return builder 11920 } 11921 11922 // 会议室 ID 11923 // 11924 // 示例值:6949805467799537964 11925 func (builder *InterviewMeetingRoomBuilder) RoomId(roomId string) *InterviewMeetingRoomBuilder { 11926 builder.roomId = roomId 11927 builder.roomIdFlag = true 11928 return builder 11929 } 11930 11931 // 会议室名称 11932 // 11933 // 示例值:OCG111 11934 func (builder *InterviewMeetingRoomBuilder) RoomName(roomName string) *InterviewMeetingRoomBuilder { 11935 builder.roomName = roomName 11936 builder.roomNameFlag = true 11937 return builder 11938 } 11939 11940 // 建筑名称 11941 // 11942 // 示例值:OCG 11943 func (builder *InterviewMeetingRoomBuilder) BuildingName(buildingName string) *InterviewMeetingRoomBuilder { 11944 builder.buildingName = buildingName 11945 builder.buildingNameFlag = true 11946 return builder 11947 } 11948 11949 // 会议室预定状态 11950 // 11951 // 示例值:1 11952 func (builder *InterviewMeetingRoomBuilder) ReservedStatus(reservedStatus int) *InterviewMeetingRoomBuilder { 11953 builder.reservedStatus = reservedStatus 11954 builder.reservedStatusFlag = true 11955 return builder 11956 } 11957 11958 // 楼层 11959 // 11960 // 示例值:17 11961 func (builder *InterviewMeetingRoomBuilder) FloorName(floorName string) *InterviewMeetingRoomBuilder { 11962 builder.floorName = floorName 11963 builder.floorNameFlag = true 11964 return builder 11965 } 11966 11967 func (builder *InterviewMeetingRoomBuilder) Build() *InterviewMeetingRoom { 11968 req := &InterviewMeetingRoom{} 11969 if builder.roomIdFlag { 11970 req.RoomId = &builder.roomId 11971 11972 } 11973 if builder.roomNameFlag { 11974 req.RoomName = &builder.roomName 11975 11976 } 11977 if builder.buildingNameFlag { 11978 req.BuildingName = &builder.buildingName 11979 11980 } 11981 if builder.reservedStatusFlag { 11982 req.ReservedStatus = &builder.reservedStatus 11983 11984 } 11985 if builder.floorNameFlag { 11986 req.FloorName = &builder.floorName 11987 11988 } 11989 return req 11990 } 11991 11992 type InterviewRecord struct { 11993 Id *string `json:"id,omitempty"` // 面试记录 ID 11994 UserId *string `json:"user_id,omitempty"` // 面试官用户 ID 11995 Content *string `json:"content,omitempty"` // 系统预设「记录」题目内容 11996 MinJobLevelId *string `json:"min_job_level_id,omitempty"` // 建议定级下限的职级 ID 11997 MaxJobLevelId *string `json:"max_job_level_id,omitempty"` // 建议定级上限的职级 ID 11998 CommitStatus *int `json:"commit_status,omitempty"` // 提交状态 11999 FeedbackSubmitTime *int `json:"feedback_submit_time,omitempty"` // 面试评价提交时间 12000 Conclusion *int `json:"conclusion,omitempty"` // 面试结论 12001 InterviewScore *InterviewScore `json:"interview_score,omitempty"` // 面试评分 12002 Interviewer *IdNameObject `json:"interviewer,omitempty"` // 面试官信息 12003 DimensionAssessmentList []*InterviewDimensionAssessment `json:"dimension_assessment_list,omitempty"` // 面试评价 12004 } 12005 12006 type InterviewRecordBuilder struct { 12007 id string // 面试记录 ID 12008 idFlag bool 12009 userId string // 面试官用户 ID 12010 userIdFlag bool 12011 content string // 系统预设「记录」题目内容 12012 contentFlag bool 12013 minJobLevelId string // 建议定级下限的职级 ID 12014 minJobLevelIdFlag bool 12015 maxJobLevelId string // 建议定级上限的职级 ID 12016 maxJobLevelIdFlag bool 12017 commitStatus int // 提交状态 12018 commitStatusFlag bool 12019 feedbackSubmitTime int // 面试评价提交时间 12020 feedbackSubmitTimeFlag bool 12021 conclusion int // 面试结论 12022 conclusionFlag bool 12023 interviewScore *InterviewScore // 面试评分 12024 interviewScoreFlag bool 12025 interviewer *IdNameObject // 面试官信息 12026 interviewerFlag bool 12027 dimensionAssessmentList []*InterviewDimensionAssessment // 面试评价 12028 dimensionAssessmentListFlag bool 12029 } 12030 12031 func NewInterviewRecordBuilder() *InterviewRecordBuilder { 12032 builder := &InterviewRecordBuilder{} 12033 return builder 12034 } 12035 12036 // 面试记录 ID 12037 // 12038 // 示例值:6949805467799537964 12039 func (builder *InterviewRecordBuilder) Id(id string) *InterviewRecordBuilder { 12040 builder.id = id 12041 builder.idFlag = true 12042 return builder 12043 } 12044 12045 // 面试官用户 ID 12046 // 12047 // 示例值:1618899376474 12048 func (builder *InterviewRecordBuilder) UserId(userId string) *InterviewRecordBuilder { 12049 builder.userId = userId 12050 builder.userIdFlag = true 12051 return builder 12052 } 12053 12054 // 系统预设「记录」题目内容 12055 // 12056 // 示例值:代码还行,只是不够聪明 12057 func (builder *InterviewRecordBuilder) Content(content string) *InterviewRecordBuilder { 12058 builder.content = content 12059 builder.contentFlag = true 12060 return builder 12061 } 12062 12063 // 建议定级下限的职级 ID 12064 // 12065 // 示例值:6435238827342432 12066 func (builder *InterviewRecordBuilder) MinJobLevelId(minJobLevelId string) *InterviewRecordBuilder { 12067 builder.minJobLevelId = minJobLevelId 12068 builder.minJobLevelIdFlag = true 12069 return builder 12070 } 12071 12072 // 建议定级上限的职级 ID 12073 // 12074 // 示例值:643523885843573 12075 func (builder *InterviewRecordBuilder) MaxJobLevelId(maxJobLevelId string) *InterviewRecordBuilder { 12076 builder.maxJobLevelId = maxJobLevelId 12077 builder.maxJobLevelIdFlag = true 12078 return builder 12079 } 12080 12081 // 提交状态 12082 // 12083 // 示例值:1 12084 func (builder *InterviewRecordBuilder) CommitStatus(commitStatus int) *InterviewRecordBuilder { 12085 builder.commitStatus = commitStatus 12086 builder.commitStatusFlag = true 12087 return builder 12088 } 12089 12090 // 面试评价提交时间 12091 // 12092 // 示例值:1659318415000 12093 func (builder *InterviewRecordBuilder) FeedbackSubmitTime(feedbackSubmitTime int) *InterviewRecordBuilder { 12094 builder.feedbackSubmitTime = feedbackSubmitTime 12095 builder.feedbackSubmitTimeFlag = true 12096 return builder 12097 } 12098 12099 // 面试结论 12100 // 12101 // 示例值:1 12102 func (builder *InterviewRecordBuilder) Conclusion(conclusion int) *InterviewRecordBuilder { 12103 builder.conclusion = conclusion 12104 builder.conclusionFlag = true 12105 return builder 12106 } 12107 12108 // 面试评分 12109 // 12110 // 示例值: 12111 func (builder *InterviewRecordBuilder) InterviewScore(interviewScore *InterviewScore) *InterviewRecordBuilder { 12112 builder.interviewScore = interviewScore 12113 builder.interviewScoreFlag = true 12114 return builder 12115 } 12116 12117 // 面试官信息 12118 // 12119 // 示例值: 12120 func (builder *InterviewRecordBuilder) Interviewer(interviewer *IdNameObject) *InterviewRecordBuilder { 12121 builder.interviewer = interviewer 12122 builder.interviewerFlag = true 12123 return builder 12124 } 12125 12126 // 面试评价 12127 // 12128 // 示例值: 12129 func (builder *InterviewRecordBuilder) DimensionAssessmentList(dimensionAssessmentList []*InterviewDimensionAssessment) *InterviewRecordBuilder { 12130 builder.dimensionAssessmentList = dimensionAssessmentList 12131 builder.dimensionAssessmentListFlag = true 12132 return builder 12133 } 12134 12135 func (builder *InterviewRecordBuilder) Build() *InterviewRecord { 12136 req := &InterviewRecord{} 12137 if builder.idFlag { 12138 req.Id = &builder.id 12139 12140 } 12141 if builder.userIdFlag { 12142 req.UserId = &builder.userId 12143 12144 } 12145 if builder.contentFlag { 12146 req.Content = &builder.content 12147 12148 } 12149 if builder.minJobLevelIdFlag { 12150 req.MinJobLevelId = &builder.minJobLevelId 12151 12152 } 12153 if builder.maxJobLevelIdFlag { 12154 req.MaxJobLevelId = &builder.maxJobLevelId 12155 12156 } 12157 if builder.commitStatusFlag { 12158 req.CommitStatus = &builder.commitStatus 12159 12160 } 12161 if builder.feedbackSubmitTimeFlag { 12162 req.FeedbackSubmitTime = &builder.feedbackSubmitTime 12163 12164 } 12165 if builder.conclusionFlag { 12166 req.Conclusion = &builder.conclusion 12167 12168 } 12169 if builder.interviewScoreFlag { 12170 req.InterviewScore = builder.interviewScore 12171 } 12172 if builder.interviewerFlag { 12173 req.Interviewer = builder.interviewer 12174 } 12175 if builder.dimensionAssessmentListFlag { 12176 req.DimensionAssessmentList = builder.dimensionAssessmentList 12177 } 12178 return req 12179 } 12180 12181 type InterviewRecordTemplate struct { 12182 AssessmentTemplate *InterviewAssessmentTemplate `json:"assessment_template,omitempty"` // 面试评价表 12183 } 12184 12185 type InterviewRecordTemplateBuilder struct { 12186 assessmentTemplate *InterviewAssessmentTemplate // 面试评价表 12187 assessmentTemplateFlag bool 12188 } 12189 12190 func NewInterviewRecordTemplateBuilder() *InterviewRecordTemplateBuilder { 12191 builder := &InterviewRecordTemplateBuilder{} 12192 return builder 12193 } 12194 12195 // 面试评价表 12196 // 12197 // 示例值: 12198 func (builder *InterviewRecordTemplateBuilder) AssessmentTemplate(assessmentTemplate *InterviewAssessmentTemplate) *InterviewRecordTemplateBuilder { 12199 builder.assessmentTemplate = assessmentTemplate 12200 builder.assessmentTemplateFlag = true 12201 return builder 12202 } 12203 12204 func (builder *InterviewRecordTemplateBuilder) Build() *InterviewRecordTemplate { 12205 req := &InterviewRecordTemplate{} 12206 if builder.assessmentTemplateFlag { 12207 req.AssessmentTemplate = builder.assessmentTemplate 12208 } 12209 return req 12210 } 12211 12212 type InterviewRegistrationSchema struct { 12213 Id *string `json:"id,omitempty"` // 面试登记表模板 ID 12214 Name *string `json:"name,omitempty"` // 面试登记表模板名称 12215 IsUsedAsInterview *bool `json:"is_used_as_interview,omitempty"` // 是否用作面试登记表 12216 ObjectList []*CommonSchema `json:"object_list,omitempty"` // 模块列表 12217 } 12218 12219 type InterviewRegistrationSchemaBuilder struct { 12220 id string // 面试登记表模板 ID 12221 idFlag bool 12222 name string // 面试登记表模板名称 12223 nameFlag bool 12224 isUsedAsInterview bool // 是否用作面试登记表 12225 isUsedAsInterviewFlag bool 12226 objectList []*CommonSchema // 模块列表 12227 objectListFlag bool 12228 } 12229 12230 func NewInterviewRegistrationSchemaBuilder() *InterviewRegistrationSchemaBuilder { 12231 builder := &InterviewRegistrationSchemaBuilder{} 12232 return builder 12233 } 12234 12235 // 面试登记表模板 ID 12236 // 12237 // 示例值:7044739584859326764 12238 func (builder *InterviewRegistrationSchemaBuilder) Id(id string) *InterviewRegistrationSchemaBuilder { 12239 builder.id = id 12240 builder.idFlag = true 12241 return builder 12242 } 12243 12244 // 面试登记表模板名称 12245 // 12246 // 示例值:默认面试登记表 12247 func (builder *InterviewRegistrationSchemaBuilder) Name(name string) *InterviewRegistrationSchemaBuilder { 12248 builder.name = name 12249 builder.nameFlag = true 12250 return builder 12251 } 12252 12253 // 是否用作面试登记表 12254 // 12255 // 示例值:true 12256 func (builder *InterviewRegistrationSchemaBuilder) IsUsedAsInterview(isUsedAsInterview bool) *InterviewRegistrationSchemaBuilder { 12257 builder.isUsedAsInterview = isUsedAsInterview 12258 builder.isUsedAsInterviewFlag = true 12259 return builder 12260 } 12261 12262 // 模块列表 12263 // 12264 // 示例值: 12265 func (builder *InterviewRegistrationSchemaBuilder) ObjectList(objectList []*CommonSchema) *InterviewRegistrationSchemaBuilder { 12266 builder.objectList = objectList 12267 builder.objectListFlag = true 12268 return builder 12269 } 12270 12271 func (builder *InterviewRegistrationSchemaBuilder) Build() *InterviewRegistrationSchema { 12272 req := &InterviewRegistrationSchema{} 12273 if builder.idFlag { 12274 req.Id = &builder.id 12275 12276 } 12277 if builder.nameFlag { 12278 req.Name = &builder.name 12279 12280 } 12281 if builder.isUsedAsInterviewFlag { 12282 req.IsUsedAsInterview = &builder.isUsedAsInterview 12283 12284 } 12285 if builder.objectListFlag { 12286 req.ObjectList = builder.objectList 12287 } 12288 return req 12289 } 12290 12291 type InterviewRoundType struct { 12292 Id *string `json:"id,omitempty"` // 面试轮次类型 ID 12293 BizId *string `json:"biz_id,omitempty"` // 面试轮次类型业务 ID 12294 Name *I18n `json:"name,omitempty"` // 面试轮次类型名称 12295 ProcessType *int `json:"process_type,omitempty"` // 职位流程类型 12296 ActiveStatus *int `json:"active_status,omitempty"` // 启用状态 12297 InterviewAssessmentTemplateInfo *InterviewRoundTypeAssessmentTemplate `json:"interview_assessment_template_info,omitempty"` // 面试评价表 12298 } 12299 12300 type InterviewRoundTypeBuilder struct { 12301 id string // 面试轮次类型 ID 12302 idFlag bool 12303 bizId string // 面试轮次类型业务 ID 12304 bizIdFlag bool 12305 name *I18n // 面试轮次类型名称 12306 nameFlag bool 12307 processType int // 职位流程类型 12308 processTypeFlag bool 12309 activeStatus int // 启用状态 12310 activeStatusFlag bool 12311 interviewAssessmentTemplateInfo *InterviewRoundTypeAssessmentTemplate // 面试评价表 12312 interviewAssessmentTemplateInfoFlag bool 12313 } 12314 12315 func NewInterviewRoundTypeBuilder() *InterviewRoundTypeBuilder { 12316 builder := &InterviewRoundTypeBuilder{} 12317 return builder 12318 } 12319 12320 // 面试轮次类型 ID 12321 // 12322 // 示例值:7012129842917869868 12323 func (builder *InterviewRoundTypeBuilder) Id(id string) *InterviewRoundTypeBuilder { 12324 builder.id = id 12325 builder.idFlag = true 12326 return builder 12327 } 12328 12329 // 面试轮次类型业务 ID 12330 // 12331 // 示例值:7012129842917869868 12332 func (builder *InterviewRoundTypeBuilder) BizId(bizId string) *InterviewRoundTypeBuilder { 12333 builder.bizId = bizId 12334 builder.bizIdFlag = true 12335 return builder 12336 } 12337 12338 // 面试轮次类型名称 12339 // 12340 // 示例值: 12341 func (builder *InterviewRoundTypeBuilder) Name(name *I18n) *InterviewRoundTypeBuilder { 12342 builder.name = name 12343 builder.nameFlag = true 12344 return builder 12345 } 12346 12347 // 职位流程类型 12348 // 12349 // 示例值:1 12350 func (builder *InterviewRoundTypeBuilder) ProcessType(processType int) *InterviewRoundTypeBuilder { 12351 builder.processType = processType 12352 builder.processTypeFlag = true 12353 return builder 12354 } 12355 12356 // 启用状态 12357 // 12358 // 示例值:1 12359 func (builder *InterviewRoundTypeBuilder) ActiveStatus(activeStatus int) *InterviewRoundTypeBuilder { 12360 builder.activeStatus = activeStatus 12361 builder.activeStatusFlag = true 12362 return builder 12363 } 12364 12365 // 面试评价表 12366 // 12367 // 示例值: 12368 func (builder *InterviewRoundTypeBuilder) InterviewAssessmentTemplateInfo(interviewAssessmentTemplateInfo *InterviewRoundTypeAssessmentTemplate) *InterviewRoundTypeBuilder { 12369 builder.interviewAssessmentTemplateInfo = interviewAssessmentTemplateInfo 12370 builder.interviewAssessmentTemplateInfoFlag = true 12371 return builder 12372 } 12373 12374 func (builder *InterviewRoundTypeBuilder) Build() *InterviewRoundType { 12375 req := &InterviewRoundType{} 12376 if builder.idFlag { 12377 req.Id = &builder.id 12378 12379 } 12380 if builder.bizIdFlag { 12381 req.BizId = &builder.bizId 12382 12383 } 12384 if builder.nameFlag { 12385 req.Name = builder.name 12386 } 12387 if builder.processTypeFlag { 12388 req.ProcessType = &builder.processType 12389 12390 } 12391 if builder.activeStatusFlag { 12392 req.ActiveStatus = &builder.activeStatus 12393 12394 } 12395 if builder.interviewAssessmentTemplateInfoFlag { 12396 req.InterviewAssessmentTemplateInfo = builder.interviewAssessmentTemplateInfo 12397 } 12398 return req 12399 } 12400 12401 type InterviewRoundTypeAssessmentTemplate struct { 12402 Id *string `json:"id,omitempty"` // 面试评价表 ID 12403 BizId *string `json:"biz_id,omitempty"` // 面试评价表业务 ID 12404 Name *I18n `json:"name,omitempty"` // 面试评价表名称 12405 } 12406 12407 type InterviewRoundTypeAssessmentTemplateBuilder struct { 12408 id string // 面试评价表 ID 12409 idFlag bool 12410 bizId string // 面试评价表业务 ID 12411 bizIdFlag bool 12412 name *I18n // 面试评价表名称 12413 nameFlag bool 12414 } 12415 12416 func NewInterviewRoundTypeAssessmentTemplateBuilder() *InterviewRoundTypeAssessmentTemplateBuilder { 12417 builder := &InterviewRoundTypeAssessmentTemplateBuilder{} 12418 return builder 12419 } 12420 12421 // 面试评价表 ID 12422 // 12423 // 示例值:7012129842917869868 12424 func (builder *InterviewRoundTypeAssessmentTemplateBuilder) Id(id string) *InterviewRoundTypeAssessmentTemplateBuilder { 12425 builder.id = id 12426 builder.idFlag = true 12427 return builder 12428 } 12429 12430 // 面试评价表业务 ID 12431 // 12432 // 示例值:7012129842917869868 12433 func (builder *InterviewRoundTypeAssessmentTemplateBuilder) BizId(bizId string) *InterviewRoundTypeAssessmentTemplateBuilder { 12434 builder.bizId = bizId 12435 builder.bizIdFlag = true 12436 return builder 12437 } 12438 12439 // 面试评价表名称 12440 // 12441 // 示例值: 12442 func (builder *InterviewRoundTypeAssessmentTemplateBuilder) Name(name *I18n) *InterviewRoundTypeAssessmentTemplateBuilder { 12443 builder.name = name 12444 builder.nameFlag = true 12445 return builder 12446 } 12447 12448 func (builder *InterviewRoundTypeAssessmentTemplateBuilder) Build() *InterviewRoundTypeAssessmentTemplate { 12449 req := &InterviewRoundTypeAssessmentTemplate{} 12450 if builder.idFlag { 12451 req.Id = &builder.id 12452 12453 } 12454 if builder.bizIdFlag { 12455 req.BizId = &builder.bizId 12456 12457 } 12458 if builder.nameFlag { 12459 req.Name = builder.name 12460 } 12461 return req 12462 } 12463 12464 type InterviewScore struct { 12465 Id *string `json:"id,omitempty"` // 面试评分 ID 12466 Level *int `json:"level,omitempty"` // 分数级别 12467 ZhName *string `json:"zh_name,omitempty"` // 中文名称 12468 ZhDescription *string `json:"zh_description,omitempty"` // 中文描述 12469 EnName *string `json:"en_name,omitempty"` // 英文名称 12470 EnDescription *string `json:"en_description,omitempty"` // 英文描述 12471 } 12472 12473 type InterviewScoreBuilder struct { 12474 id string // 面试评分 ID 12475 idFlag bool 12476 level int // 分数级别 12477 levelFlag bool 12478 zhName string // 中文名称 12479 zhNameFlag bool 12480 zhDescription string // 中文描述 12481 zhDescriptionFlag bool 12482 enName string // 英文名称 12483 enNameFlag bool 12484 enDescription string // 英文描述 12485 enDescriptionFlag bool 12486 } 12487 12488 func NewInterviewScoreBuilder() *InterviewScoreBuilder { 12489 builder := &InterviewScoreBuilder{} 12490 return builder 12491 } 12492 12493 // 面试评分 ID 12494 // 12495 // 示例值:6949805467799537964 12496 func (builder *InterviewScoreBuilder) Id(id string) *InterviewScoreBuilder { 12497 builder.id = id 12498 builder.idFlag = true 12499 return builder 12500 } 12501 12502 // 分数级别 12503 // 12504 // 示例值:3 12505 func (builder *InterviewScoreBuilder) Level(level int) *InterviewScoreBuilder { 12506 builder.level = level 12507 builder.levelFlag = true 12508 return builder 12509 } 12510 12511 // 中文名称 12512 // 12513 // 示例值:3 12514 func (builder *InterviewScoreBuilder) ZhName(zhName string) *InterviewScoreBuilder { 12515 builder.zhName = zhName 12516 builder.zhNameFlag = true 12517 return builder 12518 } 12519 12520 // 中文描述 12521 // 12522 // 示例值:通过, 能力达到要求, 建议录用 12523 func (builder *InterviewScoreBuilder) ZhDescription(zhDescription string) *InterviewScoreBuilder { 12524 builder.zhDescription = zhDescription 12525 builder.zhDescriptionFlag = true 12526 return builder 12527 } 12528 12529 // 英文名称 12530 // 12531 // 示例值:three 12532 func (builder *InterviewScoreBuilder) EnName(enName string) *InterviewScoreBuilder { 12533 builder.enName = enName 12534 builder.enNameFlag = true 12535 return builder 12536 } 12537 12538 // 英文描述 12539 // 12540 // 示例值:Pass, ability to meet the requirements, suggest to hire 12541 func (builder *InterviewScoreBuilder) EnDescription(enDescription string) *InterviewScoreBuilder { 12542 builder.enDescription = enDescription 12543 builder.enDescriptionFlag = true 12544 return builder 12545 } 12546 12547 func (builder *InterviewScoreBuilder) Build() *InterviewScore { 12548 req := &InterviewScore{} 12549 if builder.idFlag { 12550 req.Id = &builder.id 12551 12552 } 12553 if builder.levelFlag { 12554 req.Level = &builder.level 12555 12556 } 12557 if builder.zhNameFlag { 12558 req.ZhName = &builder.zhName 12559 12560 } 12561 if builder.zhDescriptionFlag { 12562 req.ZhDescription = &builder.zhDescription 12563 12564 } 12565 if builder.enNameFlag { 12566 req.EnName = &builder.enName 12567 12568 } 12569 if builder.enDescriptionFlag { 12570 req.EnDescription = &builder.enDescription 12571 12572 } 12573 return req 12574 } 12575 12576 type InterviewTask struct { 12577 Id *string `json:"id,omitempty"` // 面试 ID 12578 JobId *string `json:"job_id,omitempty"` // 职位 ID 12579 TalentId *string `json:"talent_id,omitempty"` // 人才 ID 12580 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 12581 ActivityStatus *int `json:"activity_status,omitempty"` // 任务状态 12582 } 12583 12584 type InterviewTaskBuilder struct { 12585 id string // 面试 ID 12586 idFlag bool 12587 jobId string // 职位 ID 12588 jobIdFlag bool 12589 talentId string // 人才 ID 12590 talentIdFlag bool 12591 applicationId string // 投递 ID 12592 applicationIdFlag bool 12593 activityStatus int // 任务状态 12594 activityStatusFlag bool 12595 } 12596 12597 func NewInterviewTaskBuilder() *InterviewTaskBuilder { 12598 builder := &InterviewTaskBuilder{} 12599 return builder 12600 } 12601 12602 // 面试 ID 12603 // 12604 // 示例值:6989202908470446380 12605 func (builder *InterviewTaskBuilder) Id(id string) *InterviewTaskBuilder { 12606 builder.id = id 12607 builder.idFlag = true 12608 return builder 12609 } 12610 12611 // 职位 ID 12612 // 12613 // 示例值:6897921873523247373 12614 func (builder *InterviewTaskBuilder) JobId(jobId string) *InterviewTaskBuilder { 12615 builder.jobId = jobId 12616 builder.jobIdFlag = true 12617 return builder 12618 } 12619 12620 // 人才 ID 12621 // 12622 // 示例值:7046263097923537196 12623 func (builder *InterviewTaskBuilder) TalentId(talentId string) *InterviewTaskBuilder { 12624 builder.talentId = talentId 12625 builder.talentIdFlag = true 12626 return builder 12627 } 12628 12629 // 投递 ID 12630 // 12631 // 示例值:7046315599510833452 12632 func (builder *InterviewTaskBuilder) ApplicationId(applicationId string) *InterviewTaskBuilder { 12633 builder.applicationId = applicationId 12634 builder.applicationIdFlag = true 12635 return builder 12636 } 12637 12638 // 任务状态 12639 // 12640 // 示例值:1 12641 func (builder *InterviewTaskBuilder) ActivityStatus(activityStatus int) *InterviewTaskBuilder { 12642 builder.activityStatus = activityStatus 12643 builder.activityStatusFlag = true 12644 return builder 12645 } 12646 12647 func (builder *InterviewTaskBuilder) Build() *InterviewTask { 12648 req := &InterviewTask{} 12649 if builder.idFlag { 12650 req.Id = &builder.id 12651 12652 } 12653 if builder.jobIdFlag { 12654 req.JobId = &builder.jobId 12655 12656 } 12657 if builder.talentIdFlag { 12658 req.TalentId = &builder.talentId 12659 12660 } 12661 if builder.applicationIdFlag { 12662 req.ApplicationId = &builder.applicationId 12663 12664 } 12665 if builder.activityStatusFlag { 12666 req.ActivityStatus = &builder.activityStatus 12667 12668 } 12669 return req 12670 } 12671 12672 type Job struct { 12673 Id *string `json:"id,omitempty"` // 职位 ID 12674 Title *string `json:"title,omitempty"` // 职位名称 12675 Description *string `json:"description,omitempty"` // 职位描述 12676 Code *string `json:"code,omitempty"` // 职位编号 12677 Requirement *string `json:"requirement,omitempty"` // 职位要求 12678 RecruitmentType *JobRecruitmentType `json:"recruitment_type,omitempty"` // 雇佣类型 12679 Department *JobDepartment `json:"department,omitempty"` // 部门 12680 City *JobCity `json:"city,omitempty"` // 工作地点 12681 MinJobLevel *JobLevel `json:"min_job_level,omitempty"` // 最低职级 12682 MaxJobLevel *JobLevel `json:"max_job_level,omitempty"` // 最高职级 12683 HighlightList []*JobHighlight `json:"highlight_list,omitempty"` // 职位亮点 12684 JobCategory *JobCategory `json:"job_category,omitempty"` // 职位序列 12685 JobType *JobType `json:"job_type,omitempty"` // 职位类别 12686 ActiveStatus *int `json:"active_status,omitempty"` // 启用状态 12687 CreateUserId *string `json:"create_user_id,omitempty"` // 创建人ID,若为空则为系统或其他对接系统创建 12688 CreateTime *int `json:"create_time,omitempty"` // 创建时间 12689 UpdateTime *int `json:"update_time,omitempty"` // 更新时间 12690 ProcessType *int `json:"process_type,omitempty"` // 招聘流程类型 12691 ProcessId *string `json:"process_id,omitempty"` // 招聘流程 ID 12692 ProcessName *string `json:"process_name,omitempty"` // 招聘流程中文名称 12693 ProcessEnName *string `json:"process_en_name,omitempty"` // 招聘流程英文名称 12694 CustomizedDataList []*JobCustomizedData `json:"customized_data_list,omitempty"` // 自定义字段列表 12695 JobFunction *IdNameObject `json:"job_function,omitempty"` // 职能分类 12696 Subject *IdNameObject `json:"subject,omitempty"` // 职位项目 12697 HeadCount *int `json:"head_count,omitempty"` // 招聘数量 12698 Experience *int `json:"experience,omitempty"` // 工作年限 12699 ExpiryTime *int `json:"expiry_time,omitempty"` // 到期日期 12700 MinSalary *int `json:"min_salary,omitempty"` // 最低薪资,单位:k 12701 MaxSalary *int `json:"max_salary,omitempty"` // 最高薪资,单位:k 12702 RequiredDegree *int `json:"required_degree,omitempty"` // 学历要求 12703 CityList []*CodeNameObject `json:"city_list,omitempty"` // 工作地点列表 12704 } 12705 12706 type JobBuilder struct { 12707 id string // 职位 ID 12708 idFlag bool 12709 title string // 职位名称 12710 titleFlag bool 12711 description string // 职位描述 12712 descriptionFlag bool 12713 code string // 职位编号 12714 codeFlag bool 12715 requirement string // 职位要求 12716 requirementFlag bool 12717 recruitmentType *JobRecruitmentType // 雇佣类型 12718 recruitmentTypeFlag bool 12719 department *JobDepartment // 部门 12720 departmentFlag bool 12721 city *JobCity // 工作地点 12722 cityFlag bool 12723 minJobLevel *JobLevel // 最低职级 12724 minJobLevelFlag bool 12725 maxJobLevel *JobLevel // 最高职级 12726 maxJobLevelFlag bool 12727 highlightList []*JobHighlight // 职位亮点 12728 highlightListFlag bool 12729 jobCategory *JobCategory // 职位序列 12730 jobCategoryFlag bool 12731 jobType *JobType // 职位类别 12732 jobTypeFlag bool 12733 activeStatus int // 启用状态 12734 activeStatusFlag bool 12735 createUserId string // 创建人ID,若为空则为系统或其他对接系统创建 12736 createUserIdFlag bool 12737 createTime int // 创建时间 12738 createTimeFlag bool 12739 updateTime int // 更新时间 12740 updateTimeFlag bool 12741 processType int // 招聘流程类型 12742 processTypeFlag bool 12743 processId string // 招聘流程 ID 12744 processIdFlag bool 12745 processName string // 招聘流程中文名称 12746 processNameFlag bool 12747 processEnName string // 招聘流程英文名称 12748 processEnNameFlag bool 12749 customizedDataList []*JobCustomizedData // 自定义字段列表 12750 customizedDataListFlag bool 12751 jobFunction *IdNameObject // 职能分类 12752 jobFunctionFlag bool 12753 subject *IdNameObject // 职位项目 12754 subjectFlag bool 12755 headCount int // 招聘数量 12756 headCountFlag bool 12757 experience int // 工作年限 12758 experienceFlag bool 12759 expiryTime int // 到期日期 12760 expiryTimeFlag bool 12761 minSalary int // 最低薪资,单位:k 12762 minSalaryFlag bool 12763 maxSalary int // 最高薪资,单位:k 12764 maxSalaryFlag bool 12765 requiredDegree int // 学历要求 12766 requiredDegreeFlag bool 12767 cityList []*CodeNameObject // 工作地点列表 12768 cityListFlag bool 12769 } 12770 12771 func NewJobBuilder() *JobBuilder { 12772 builder := &JobBuilder{} 12773 return builder 12774 } 12775 12776 // 职位 ID 12777 // 12778 // 示例值:6001 12779 func (builder *JobBuilder) Id(id string) *JobBuilder { 12780 builder.id = id 12781 builder.idFlag = true 12782 return builder 12783 } 12784 12785 // 职位名称 12786 // 12787 // 示例值:测试职位 12788 func (builder *JobBuilder) Title(title string) *JobBuilder { 12789 builder.title = title 12790 builder.titleFlag = true 12791 return builder 12792 } 12793 12794 // 职位描述 12795 // 12796 // 示例值:职位描述文本 12797 func (builder *JobBuilder) Description(description string) *JobBuilder { 12798 builder.description = description 12799 builder.descriptionFlag = true 12800 return builder 12801 } 12802 12803 // 职位编号 12804 // 12805 // 示例值:R18 12806 func (builder *JobBuilder) Code(code string) *JobBuilder { 12807 builder.code = code 12808 builder.codeFlag = true 12809 return builder 12810 } 12811 12812 // 职位要求 12813 // 12814 // 示例值:职位要求文本 12815 func (builder *JobBuilder) Requirement(requirement string) *JobBuilder { 12816 builder.requirement = requirement 12817 builder.requirementFlag = true 12818 return builder 12819 } 12820 12821 // 雇佣类型 12822 // 12823 // 示例值: 12824 func (builder *JobBuilder) RecruitmentType(recruitmentType *JobRecruitmentType) *JobBuilder { 12825 builder.recruitmentType = recruitmentType 12826 builder.recruitmentTypeFlag = true 12827 return builder 12828 } 12829 12830 // 部门 12831 // 12832 // 示例值: 12833 func (builder *JobBuilder) Department(department *JobDepartment) *JobBuilder { 12834 builder.department = department 12835 builder.departmentFlag = true 12836 return builder 12837 } 12838 12839 // 工作地点 12840 // 12841 // 示例值: 12842 func (builder *JobBuilder) City(city *JobCity) *JobBuilder { 12843 builder.city = city 12844 builder.cityFlag = true 12845 return builder 12846 } 12847 12848 // 最低职级 12849 // 12850 // 示例值: 12851 func (builder *JobBuilder) MinJobLevel(minJobLevel *JobLevel) *JobBuilder { 12852 builder.minJobLevel = minJobLevel 12853 builder.minJobLevelFlag = true 12854 return builder 12855 } 12856 12857 // 最高职级 12858 // 12859 // 示例值: 12860 func (builder *JobBuilder) MaxJobLevel(maxJobLevel *JobLevel) *JobBuilder { 12861 builder.maxJobLevel = maxJobLevel 12862 builder.maxJobLevelFlag = true 12863 return builder 12864 } 12865 12866 // 职位亮点 12867 // 12868 // 示例值: 12869 func (builder *JobBuilder) HighlightList(highlightList []*JobHighlight) *JobBuilder { 12870 builder.highlightList = highlightList 12871 builder.highlightListFlag = true 12872 return builder 12873 } 12874 12875 // 职位序列 12876 // 12877 // 示例值: 12878 func (builder *JobBuilder) JobCategory(jobCategory *JobCategory) *JobBuilder { 12879 builder.jobCategory = jobCategory 12880 builder.jobCategoryFlag = true 12881 return builder 12882 } 12883 12884 // 职位类别 12885 // 12886 // 示例值: 12887 func (builder *JobBuilder) JobType(jobType *JobType) *JobBuilder { 12888 builder.jobType = jobType 12889 builder.jobTypeFlag = true 12890 return builder 12891 } 12892 12893 // 启用状态 12894 // 12895 // 示例值:1 12896 func (builder *JobBuilder) ActiveStatus(activeStatus int) *JobBuilder { 12897 builder.activeStatus = activeStatus 12898 builder.activeStatusFlag = true 12899 return builder 12900 } 12901 12902 // 创建人ID,若为空则为系统或其他对接系统创建 12903 // 12904 // 示例值:ou-xxx 12905 func (builder *JobBuilder) CreateUserId(createUserId string) *JobBuilder { 12906 builder.createUserId = createUserId 12907 builder.createUserIdFlag = true 12908 return builder 12909 } 12910 12911 // 创建时间 12912 // 12913 // 示例值:1617170925462 12914 func (builder *JobBuilder) CreateTime(createTime int) *JobBuilder { 12915 builder.createTime = createTime 12916 builder.createTimeFlag = true 12917 return builder 12918 } 12919 12920 // 更新时间 12921 // 12922 // 示例值:1617170925462 12923 func (builder *JobBuilder) UpdateTime(updateTime int) *JobBuilder { 12924 builder.updateTime = updateTime 12925 builder.updateTimeFlag = true 12926 return builder 12927 } 12928 12929 // 招聘流程类型 12930 // 12931 // 示例值:1 12932 func (builder *JobBuilder) ProcessType(processType int) *JobBuilder { 12933 builder.processType = processType 12934 builder.processTypeFlag = true 12935 return builder 12936 } 12937 12938 // 招聘流程 ID 12939 // 12940 // 示例值:1 12941 func (builder *JobBuilder) ProcessId(processId string) *JobBuilder { 12942 builder.processId = processId 12943 builder.processIdFlag = true 12944 return builder 12945 } 12946 12947 // 招聘流程中文名称 12948 // 12949 // 示例值:流程中文名 12950 func (builder *JobBuilder) ProcessName(processName string) *JobBuilder { 12951 builder.processName = processName 12952 builder.processNameFlag = true 12953 return builder 12954 } 12955 12956 // 招聘流程英文名称 12957 // 12958 // 示例值:流程英文名 12959 func (builder *JobBuilder) ProcessEnName(processEnName string) *JobBuilder { 12960 builder.processEnName = processEnName 12961 builder.processEnNameFlag = true 12962 return builder 12963 } 12964 12965 // 自定义字段列表 12966 // 12967 // 示例值: 12968 func (builder *JobBuilder) CustomizedDataList(customizedDataList []*JobCustomizedData) *JobBuilder { 12969 builder.customizedDataList = customizedDataList 12970 builder.customizedDataListFlag = true 12971 return builder 12972 } 12973 12974 // 职能分类 12975 // 12976 // 示例值: 12977 func (builder *JobBuilder) JobFunction(jobFunction *IdNameObject) *JobBuilder { 12978 builder.jobFunction = jobFunction 12979 builder.jobFunctionFlag = true 12980 return builder 12981 } 12982 12983 // 职位项目 12984 // 12985 // 示例值: 12986 func (builder *JobBuilder) Subject(subject *IdNameObject) *JobBuilder { 12987 builder.subject = subject 12988 builder.subjectFlag = true 12989 return builder 12990 } 12991 12992 // 招聘数量 12993 // 12994 // 示例值:100 12995 func (builder *JobBuilder) HeadCount(headCount int) *JobBuilder { 12996 builder.headCount = headCount 12997 builder.headCountFlag = true 12998 return builder 12999 } 13000 13001 // 工作年限 13002 // 13003 // 示例值:1 13004 func (builder *JobBuilder) Experience(experience int) *JobBuilder { 13005 builder.experience = experience 13006 builder.experienceFlag = true 13007 return builder 13008 } 13009 13010 // 到期日期 13011 // 13012 // 示例值:1622484739955 13013 func (builder *JobBuilder) ExpiryTime(expiryTime int) *JobBuilder { 13014 builder.expiryTime = expiryTime 13015 builder.expiryTimeFlag = true 13016 return builder 13017 } 13018 13019 // 最低薪资,单位:k 13020 // 13021 // 示例值:10 13022 func (builder *JobBuilder) MinSalary(minSalary int) *JobBuilder { 13023 builder.minSalary = minSalary 13024 builder.minSalaryFlag = true 13025 return builder 13026 } 13027 13028 // 最高薪资,单位:k 13029 // 13030 // 示例值:20 13031 func (builder *JobBuilder) MaxSalary(maxSalary int) *JobBuilder { 13032 builder.maxSalary = maxSalary 13033 builder.maxSalaryFlag = true 13034 return builder 13035 } 13036 13037 // 学历要求 13038 // 13039 // 示例值:1 13040 func (builder *JobBuilder) RequiredDegree(requiredDegree int) *JobBuilder { 13041 builder.requiredDegree = requiredDegree 13042 builder.requiredDegreeFlag = true 13043 return builder 13044 } 13045 13046 // 工作地点列表 13047 // 13048 // 示例值: 13049 func (builder *JobBuilder) CityList(cityList []*CodeNameObject) *JobBuilder { 13050 builder.cityList = cityList 13051 builder.cityListFlag = true 13052 return builder 13053 } 13054 13055 func (builder *JobBuilder) Build() *Job { 13056 req := &Job{} 13057 if builder.idFlag { 13058 req.Id = &builder.id 13059 13060 } 13061 if builder.titleFlag { 13062 req.Title = &builder.title 13063 13064 } 13065 if builder.descriptionFlag { 13066 req.Description = &builder.description 13067 13068 } 13069 if builder.codeFlag { 13070 req.Code = &builder.code 13071 13072 } 13073 if builder.requirementFlag { 13074 req.Requirement = &builder.requirement 13075 13076 } 13077 if builder.recruitmentTypeFlag { 13078 req.RecruitmentType = builder.recruitmentType 13079 } 13080 if builder.departmentFlag { 13081 req.Department = builder.department 13082 } 13083 if builder.cityFlag { 13084 req.City = builder.city 13085 } 13086 if builder.minJobLevelFlag { 13087 req.MinJobLevel = builder.minJobLevel 13088 } 13089 if builder.maxJobLevelFlag { 13090 req.MaxJobLevel = builder.maxJobLevel 13091 } 13092 if builder.highlightListFlag { 13093 req.HighlightList = builder.highlightList 13094 } 13095 if builder.jobCategoryFlag { 13096 req.JobCategory = builder.jobCategory 13097 } 13098 if builder.jobTypeFlag { 13099 req.JobType = builder.jobType 13100 } 13101 if builder.activeStatusFlag { 13102 req.ActiveStatus = &builder.activeStatus 13103 13104 } 13105 if builder.createUserIdFlag { 13106 req.CreateUserId = &builder.createUserId 13107 13108 } 13109 if builder.createTimeFlag { 13110 req.CreateTime = &builder.createTime 13111 13112 } 13113 if builder.updateTimeFlag { 13114 req.UpdateTime = &builder.updateTime 13115 13116 } 13117 if builder.processTypeFlag { 13118 req.ProcessType = &builder.processType 13119 13120 } 13121 if builder.processIdFlag { 13122 req.ProcessId = &builder.processId 13123 13124 } 13125 if builder.processNameFlag { 13126 req.ProcessName = &builder.processName 13127 13128 } 13129 if builder.processEnNameFlag { 13130 req.ProcessEnName = &builder.processEnName 13131 13132 } 13133 if builder.customizedDataListFlag { 13134 req.CustomizedDataList = builder.customizedDataList 13135 } 13136 if builder.jobFunctionFlag { 13137 req.JobFunction = builder.jobFunction 13138 } 13139 if builder.subjectFlag { 13140 req.Subject = builder.subject 13141 } 13142 if builder.headCountFlag { 13143 req.HeadCount = &builder.headCount 13144 13145 } 13146 if builder.experienceFlag { 13147 req.Experience = &builder.experience 13148 13149 } 13150 if builder.expiryTimeFlag { 13151 req.ExpiryTime = &builder.expiryTime 13152 13153 } 13154 if builder.minSalaryFlag { 13155 req.MinSalary = &builder.minSalary 13156 13157 } 13158 if builder.maxSalaryFlag { 13159 req.MaxSalary = &builder.maxSalary 13160 13161 } 13162 if builder.requiredDegreeFlag { 13163 req.RequiredDegree = &builder.requiredDegree 13164 13165 } 13166 if builder.cityListFlag { 13167 req.CityList = builder.cityList 13168 } 13169 return req 13170 } 13171 13172 type JobManager struct { 13173 Id *string `json:"id,omitempty"` // 职位 ID 13174 RecruiterId *string `json:"recruiter_id,omitempty"` // 招聘负责人 ID,仅一位,可通过用户相关接口获取用户 ID 13175 HiringManagerIdList []string `json:"hiring_manager_id_list,omitempty"` // 用人经理 ID 列表 13176 AssistantIdList []string `json:"assistant_id_list,omitempty"` // 协助人 ID 列表 13177 } 13178 13179 type JobManagerBuilder struct { 13180 id string // 职位 ID 13181 idFlag bool 13182 recruiterId string // 招聘负责人 ID,仅一位,可通过用户相关接口获取用户 ID 13183 recruiterIdFlag bool 13184 hiringManagerIdList []string // 用人经理 ID 列表 13185 hiringManagerIdListFlag bool 13186 assistantIdList []string // 协助人 ID 列表 13187 assistantIdListFlag bool 13188 } 13189 13190 func NewJobManagerBuilder() *JobManagerBuilder { 13191 builder := &JobManagerBuilder{} 13192 return builder 13193 } 13194 13195 // 职位 ID 13196 // 13197 // 示例值:1618209327096 13198 func (builder *JobManagerBuilder) Id(id string) *JobManagerBuilder { 13199 builder.id = id 13200 builder.idFlag = true 13201 return builder 13202 } 13203 13204 // 招聘负责人 ID,仅一位,可通过用户相关接口获取用户 ID 13205 // 13206 // 示例值:ou_efk39117c300506837def50545420c6a 13207 func (builder *JobManagerBuilder) RecruiterId(recruiterId string) *JobManagerBuilder { 13208 builder.recruiterId = recruiterId 13209 builder.recruiterIdFlag = true 13210 return builder 13211 } 13212 13213 // 用人经理 ID 列表 13214 // 13215 // 示例值:6960663240925956554 13216 func (builder *JobManagerBuilder) HiringManagerIdList(hiringManagerIdList []string) *JobManagerBuilder { 13217 builder.hiringManagerIdList = hiringManagerIdList 13218 builder.hiringManagerIdListFlag = true 13219 return builder 13220 } 13221 13222 // 协助人 ID 列表 13223 // 13224 // 示例值:6960663240925956554 13225 func (builder *JobManagerBuilder) AssistantIdList(assistantIdList []string) *JobManagerBuilder { 13226 builder.assistantIdList = assistantIdList 13227 builder.assistantIdListFlag = true 13228 return builder 13229 } 13230 13231 func (builder *JobManagerBuilder) Build() *JobManager { 13232 req := &JobManager{} 13233 if builder.idFlag { 13234 req.Id = &builder.id 13235 13236 } 13237 if builder.recruiterIdFlag { 13238 req.RecruiterId = &builder.recruiterId 13239 13240 } 13241 if builder.hiringManagerIdListFlag { 13242 req.HiringManagerIdList = builder.hiringManagerIdList 13243 } 13244 if builder.assistantIdListFlag { 13245 req.AssistantIdList = builder.assistantIdList 13246 } 13247 return req 13248 } 13249 13250 type JobRecruiter struct { 13251 Id *string `json:"id,omitempty"` // 职位ID 13252 RecruiterId *string `json:"recruiter_id,omitempty"` // 招聘负责人ID 13253 HiringManagerIdList []string `json:"hiring_manager_id_list,omitempty"` // 用人经理ID列表 13254 AssistantIdList []string `json:"assistant_id_list,omitempty"` // 协助人ID列表 13255 } 13256 13257 type JobRecruiterBuilder struct { 13258 id string // 职位ID 13259 idFlag bool 13260 recruiterId string // 招聘负责人ID 13261 recruiterIdFlag bool 13262 hiringManagerIdList []string // 用人经理ID列表 13263 hiringManagerIdListFlag bool 13264 assistantIdList []string // 协助人ID列表 13265 assistantIdListFlag bool 13266 } 13267 13268 func NewJobRecruiterBuilder() *JobRecruiterBuilder { 13269 builder := &JobRecruiterBuilder{} 13270 return builder 13271 } 13272 13273 // 职位ID 13274 // 13275 // 示例值: 13276 func (builder *JobRecruiterBuilder) Id(id string) *JobRecruiterBuilder { 13277 builder.id = id 13278 builder.idFlag = true 13279 return builder 13280 } 13281 13282 // 招聘负责人ID 13283 // 13284 // 示例值: 13285 func (builder *JobRecruiterBuilder) RecruiterId(recruiterId string) *JobRecruiterBuilder { 13286 builder.recruiterId = recruiterId 13287 builder.recruiterIdFlag = true 13288 return builder 13289 } 13290 13291 // 用人经理ID列表 13292 // 13293 // 示例值: 13294 func (builder *JobRecruiterBuilder) HiringManagerIdList(hiringManagerIdList []string) *JobRecruiterBuilder { 13295 builder.hiringManagerIdList = hiringManagerIdList 13296 builder.hiringManagerIdListFlag = true 13297 return builder 13298 } 13299 13300 // 协助人ID列表 13301 // 13302 // 示例值: 13303 func (builder *JobRecruiterBuilder) AssistantIdList(assistantIdList []string) *JobRecruiterBuilder { 13304 builder.assistantIdList = assistantIdList 13305 builder.assistantIdListFlag = true 13306 return builder 13307 } 13308 13309 func (builder *JobRecruiterBuilder) Build() *JobRecruiter { 13310 req := &JobRecruiter{} 13311 if builder.idFlag { 13312 req.Id = &builder.id 13313 13314 } 13315 if builder.recruiterIdFlag { 13316 req.RecruiterId = &builder.recruiterId 13317 13318 } 13319 if builder.hiringManagerIdListFlag { 13320 req.HiringManagerIdList = builder.hiringManagerIdList 13321 } 13322 if builder.assistantIdListFlag { 13323 req.AssistantIdList = builder.assistantIdList 13324 } 13325 return req 13326 } 13327 13328 type JobCategory struct { 13329 Id *string `json:"id,omitempty"` // 职位序列 ID 13330 ZhName *string `json:"zh_name,omitempty"` // 职位序列中文名称 13331 EnName *string `json:"en_name,omitempty"` // 职位序列英文名称 13332 ActiveStatus *int `json:"active_status,omitempty"` // 职位序列启用状态 13333 } 13334 13335 type JobCategoryBuilder struct { 13336 id string // 职位序列 ID 13337 idFlag bool 13338 zhName string // 职位序列中文名称 13339 zhNameFlag bool 13340 enName string // 职位序列英文名称 13341 enNameFlag bool 13342 activeStatus int // 职位序列启用状态 13343 activeStatusFlag bool 13344 } 13345 13346 func NewJobCategoryBuilder() *JobCategoryBuilder { 13347 builder := &JobCategoryBuilder{} 13348 return builder 13349 } 13350 13351 // 职位序列 ID 13352 // 13353 // 示例值:6301 13354 func (builder *JobCategoryBuilder) Id(id string) *JobCategoryBuilder { 13355 builder.id = id 13356 builder.idFlag = true 13357 return builder 13358 } 13359 13360 // 职位序列中文名称 13361 // 13362 // 示例值:序列-A 13363 func (builder *JobCategoryBuilder) ZhName(zhName string) *JobCategoryBuilder { 13364 builder.zhName = zhName 13365 builder.zhNameFlag = true 13366 return builder 13367 } 13368 13369 // 职位序列英文名称 13370 // 13371 // 示例值:category-A 13372 func (builder *JobCategoryBuilder) EnName(enName string) *JobCategoryBuilder { 13373 builder.enName = enName 13374 builder.enNameFlag = true 13375 return builder 13376 } 13377 13378 // 职位序列启用状态 13379 // 13380 // 示例值:1 13381 func (builder *JobCategoryBuilder) ActiveStatus(activeStatus int) *JobCategoryBuilder { 13382 builder.activeStatus = activeStatus 13383 builder.activeStatusFlag = true 13384 return builder 13385 } 13386 13387 func (builder *JobCategoryBuilder) Build() *JobCategory { 13388 req := &JobCategory{} 13389 if builder.idFlag { 13390 req.Id = &builder.id 13391 13392 } 13393 if builder.zhNameFlag { 13394 req.ZhName = &builder.zhName 13395 13396 } 13397 if builder.enNameFlag { 13398 req.EnName = &builder.enName 13399 13400 } 13401 if builder.activeStatusFlag { 13402 req.ActiveStatus = &builder.activeStatus 13403 13404 } 13405 return req 13406 } 13407 13408 type JobCity struct { 13409 CityCode *string `json:"city_code,omitempty"` // 工作地点城市代码 13410 ZhName *string `json:"zh_name,omitempty"` // 工作地点中文名称 13411 EnName *string `json:"en_name,omitempty"` // 工作地点英文名称 13412 } 13413 13414 type JobCityBuilder struct { 13415 cityCode string // 工作地点城市代码 13416 cityCodeFlag bool 13417 zhName string // 工作地点中文名称 13418 zhNameFlag bool 13419 enName string // 工作地点英文名称 13420 enNameFlag bool 13421 } 13422 13423 func NewJobCityBuilder() *JobCityBuilder { 13424 builder := &JobCityBuilder{} 13425 return builder 13426 } 13427 13428 // 工作地点城市代码 13429 // 13430 // 示例值:C20 13431 func (builder *JobCityBuilder) CityCode(cityCode string) *JobCityBuilder { 13432 builder.cityCode = cityCode 13433 builder.cityCodeFlag = true 13434 return builder 13435 } 13436 13437 // 工作地点中文名称 13438 // 13439 // 示例值:成都 13440 func (builder *JobCityBuilder) ZhName(zhName string) *JobCityBuilder { 13441 builder.zhName = zhName 13442 builder.zhNameFlag = true 13443 return builder 13444 } 13445 13446 // 工作地点英文名称 13447 // 13448 // 示例值:Chengdu 13449 func (builder *JobCityBuilder) EnName(enName string) *JobCityBuilder { 13450 builder.enName = enName 13451 builder.enNameFlag = true 13452 return builder 13453 } 13454 13455 func (builder *JobCityBuilder) Build() *JobCity { 13456 req := &JobCity{} 13457 if builder.cityCodeFlag { 13458 req.CityCode = &builder.cityCode 13459 13460 } 13461 if builder.zhNameFlag { 13462 req.ZhName = &builder.zhName 13463 13464 } 13465 if builder.enNameFlag { 13466 req.EnName = &builder.enName 13467 13468 } 13469 return req 13470 } 13471 13472 type JobConfig struct { 13473 OfferApplySchemaId *string `json:"offer_apply_schema_id,omitempty"` // Offer 申请表,枚举通过接口「获取 Offer 申请表列表」获取 13474 OfferProcessConf *string `json:"offer_process_conf,omitempty"` // Offer 审批流,枚举通过接口「获取 Offer 审批流列表」获取 13475 RecommendedEvaluatorIdList []string `json:"recommended_evaluator_id_list,omitempty"` // 建议评估人 ID 列表 13476 UpdateOptionList []int `json:"update_option_list,omitempty"` // 更新选项,传入要更新的配置项,1=更新面试评价表,2=更新 Offer 申请表,3=更新 Offer 审批流程,4=更新招聘需求,5=更新建议面试官,6=更新推荐评估人 13477 AssessmentTemplateBizId *string `json:"assessment_template_biz_id,omitempty"` // 面试评价表,枚举通过接口「获取面试评价表列表」获取 13478 InterviewRoundConfList []*JobConfigInterviewRoundConf `json:"interview_round_conf_list,omitempty"` // 建议面试官列表 13479 JrIdList []string `json:"jr_id_list,omitempty"` // 关联招聘需求,支持关联多个,枚举通过接口「获取招聘需求」获取 13480 InterviewRoundTypeConfList []*JobConfigRoundType `json:"interview_round_type_conf_list,omitempty"` // 面试轮次类型 ID 列表 13481 } 13482 13483 type JobConfigBuilder struct { 13484 offerApplySchemaId string // Offer 申请表,枚举通过接口「获取 Offer 申请表列表」获取 13485 offerApplySchemaIdFlag bool 13486 offerProcessConf string // Offer 审批流,枚举通过接口「获取 Offer 审批流列表」获取 13487 offerProcessConfFlag bool 13488 recommendedEvaluatorIdList []string // 建议评估人 ID 列表 13489 recommendedEvaluatorIdListFlag bool 13490 updateOptionList []int // 更新选项,传入要更新的配置项,1=更新面试评价表,2=更新 Offer 申请表,3=更新 Offer 审批流程,4=更新招聘需求,5=更新建议面试官,6=更新推荐评估人 13491 updateOptionListFlag bool 13492 assessmentTemplateBizId string // 面试评价表,枚举通过接口「获取面试评价表列表」获取 13493 assessmentTemplateBizIdFlag bool 13494 interviewRoundConfList []*JobConfigInterviewRoundConf // 建议面试官列表 13495 interviewRoundConfListFlag bool 13496 jrIdList []string // 关联招聘需求,支持关联多个,枚举通过接口「获取招聘需求」获取 13497 jrIdListFlag bool 13498 interviewRoundTypeConfList []*JobConfigRoundType // 面试轮次类型 ID 列表 13499 interviewRoundTypeConfListFlag bool 13500 } 13501 13502 func NewJobConfigBuilder() *JobConfigBuilder { 13503 builder := &JobConfigBuilder{} 13504 return builder 13505 } 13506 13507 // Offer 申请表,枚举通过接口「获取 Offer 申请表列表」获取 13508 // 13509 // 示例值:6960663240925956573 13510 func (builder *JobConfigBuilder) OfferApplySchemaId(offerApplySchemaId string) *JobConfigBuilder { 13511 builder.offerApplySchemaId = offerApplySchemaId 13512 builder.offerApplySchemaIdFlag = true 13513 return builder 13514 } 13515 13516 // Offer 审批流,枚举通过接口「获取 Offer 审批流列表」获取 13517 // 13518 // 示例值:6960663240925956572 13519 func (builder *JobConfigBuilder) OfferProcessConf(offerProcessConf string) *JobConfigBuilder { 13520 builder.offerProcessConf = offerProcessConf 13521 builder.offerProcessConfFlag = true 13522 return builder 13523 } 13524 13525 // 建议评估人 ID 列表 13526 // 13527 // 示例值:6966533137982392320 13528 func (builder *JobConfigBuilder) RecommendedEvaluatorIdList(recommendedEvaluatorIdList []string) *JobConfigBuilder { 13529 builder.recommendedEvaluatorIdList = recommendedEvaluatorIdList 13530 builder.recommendedEvaluatorIdListFlag = true 13531 return builder 13532 } 13533 13534 // 更新选项,传入要更新的配置项,1=更新面试评价表,2=更新 Offer 申请表,3=更新 Offer 审批流程,4=更新招聘需求,5=更新建议面试官,6=更新推荐评估人 13535 // 13536 // 示例值:1 13537 func (builder *JobConfigBuilder) UpdateOptionList(updateOptionList []int) *JobConfigBuilder { 13538 builder.updateOptionList = updateOptionList 13539 builder.updateOptionListFlag = true 13540 return builder 13541 } 13542 13543 // 面试评价表,枚举通过接口「获取面试评价表列表」获取 13544 // 13545 // 示例值:6960663240925956571 13546 func (builder *JobConfigBuilder) AssessmentTemplateBizId(assessmentTemplateBizId string) *JobConfigBuilder { 13547 builder.assessmentTemplateBizId = assessmentTemplateBizId 13548 builder.assessmentTemplateBizIdFlag = true 13549 return builder 13550 } 13551 13552 // 建议面试官列表 13553 // 13554 // 示例值: 13555 func (builder *JobConfigBuilder) InterviewRoundConfList(interviewRoundConfList []*JobConfigInterviewRoundConf) *JobConfigBuilder { 13556 builder.interviewRoundConfList = interviewRoundConfList 13557 builder.interviewRoundConfListFlag = true 13558 return builder 13559 } 13560 13561 // 关联招聘需求,支持关联多个,枚举通过接口「获取招聘需求」获取 13562 // 13563 // 示例值:6966533137982392320 13564 func (builder *JobConfigBuilder) JrIdList(jrIdList []string) *JobConfigBuilder { 13565 builder.jrIdList = jrIdList 13566 builder.jrIdListFlag = true 13567 return builder 13568 } 13569 13570 // 面试轮次类型 ID 列表 13571 // 13572 // 示例值: 13573 func (builder *JobConfigBuilder) InterviewRoundTypeConfList(interviewRoundTypeConfList []*JobConfigRoundType) *JobConfigBuilder { 13574 builder.interviewRoundTypeConfList = interviewRoundTypeConfList 13575 builder.interviewRoundTypeConfListFlag = true 13576 return builder 13577 } 13578 13579 func (builder *JobConfigBuilder) Build() *JobConfig { 13580 req := &JobConfig{} 13581 if builder.offerApplySchemaIdFlag { 13582 req.OfferApplySchemaId = &builder.offerApplySchemaId 13583 13584 } 13585 if builder.offerProcessConfFlag { 13586 req.OfferProcessConf = &builder.offerProcessConf 13587 13588 } 13589 if builder.recommendedEvaluatorIdListFlag { 13590 req.RecommendedEvaluatorIdList = builder.recommendedEvaluatorIdList 13591 } 13592 if builder.updateOptionListFlag { 13593 req.UpdateOptionList = builder.updateOptionList 13594 } 13595 if builder.assessmentTemplateBizIdFlag { 13596 req.AssessmentTemplateBizId = &builder.assessmentTemplateBizId 13597 13598 } 13599 if builder.interviewRoundConfListFlag { 13600 req.InterviewRoundConfList = builder.interviewRoundConfList 13601 } 13602 if builder.jrIdListFlag { 13603 req.JrIdList = builder.jrIdList 13604 } 13605 if builder.interviewRoundTypeConfListFlag { 13606 req.InterviewRoundTypeConfList = builder.interviewRoundTypeConfList 13607 } 13608 return req 13609 } 13610 13611 type JobConfigInterviewRound struct { 13612 InterviewerList []*IdNameObject `json:"interviewer_list,omitempty"` // 面试官列表 13613 Round *int `json:"round,omitempty"` // 面试轮次 13614 } 13615 13616 type JobConfigInterviewRoundBuilder struct { 13617 interviewerList []*IdNameObject // 面试官列表 13618 interviewerListFlag bool 13619 round int // 面试轮次 13620 roundFlag bool 13621 } 13622 13623 func NewJobConfigInterviewRoundBuilder() *JobConfigInterviewRoundBuilder { 13624 builder := &JobConfigInterviewRoundBuilder{} 13625 return builder 13626 } 13627 13628 // 面试官列表 13629 // 13630 // 示例值: 13631 func (builder *JobConfigInterviewRoundBuilder) InterviewerList(interviewerList []*IdNameObject) *JobConfigInterviewRoundBuilder { 13632 builder.interviewerList = interviewerList 13633 builder.interviewerListFlag = true 13634 return builder 13635 } 13636 13637 // 面试轮次 13638 // 13639 // 示例值:1 13640 func (builder *JobConfigInterviewRoundBuilder) Round(round int) *JobConfigInterviewRoundBuilder { 13641 builder.round = round 13642 builder.roundFlag = true 13643 return builder 13644 } 13645 13646 func (builder *JobConfigInterviewRoundBuilder) Build() *JobConfigInterviewRound { 13647 req := &JobConfigInterviewRound{} 13648 if builder.interviewerListFlag { 13649 req.InterviewerList = builder.interviewerList 13650 } 13651 if builder.roundFlag { 13652 req.Round = &builder.round 13653 13654 } 13655 return req 13656 } 13657 13658 type JobConfigInterviewRoundConf struct { 13659 InterviewerIdList []string `json:"interviewer_id_list,omitempty"` // 建议面试官 ID 列表 13660 Round *int `json:"round,omitempty"` // 面试轮次 13661 } 13662 13663 type JobConfigInterviewRoundConfBuilder struct { 13664 interviewerIdList []string // 建议面试官 ID 列表 13665 interviewerIdListFlag bool 13666 round int // 面试轮次 13667 roundFlag bool 13668 } 13669 13670 func NewJobConfigInterviewRoundConfBuilder() *JobConfigInterviewRoundConfBuilder { 13671 builder := &JobConfigInterviewRoundConfBuilder{} 13672 return builder 13673 } 13674 13675 // 建议面试官 ID 列表 13676 // 13677 // 示例值:6960663240925956571 13678 func (builder *JobConfigInterviewRoundConfBuilder) InterviewerIdList(interviewerIdList []string) *JobConfigInterviewRoundConfBuilder { 13679 builder.interviewerIdList = interviewerIdList 13680 builder.interviewerIdListFlag = true 13681 return builder 13682 } 13683 13684 // 面试轮次 13685 // 13686 // 示例值:1 13687 func (builder *JobConfigInterviewRoundConfBuilder) Round(round int) *JobConfigInterviewRoundConfBuilder { 13688 builder.round = round 13689 builder.roundFlag = true 13690 return builder 13691 } 13692 13693 func (builder *JobConfigInterviewRoundConfBuilder) Build() *JobConfigInterviewRoundConf { 13694 req := &JobConfigInterviewRoundConf{} 13695 if builder.interviewerIdListFlag { 13696 req.InterviewerIdList = builder.interviewerIdList 13697 } 13698 if builder.roundFlag { 13699 req.Round = &builder.round 13700 13701 } 13702 return req 13703 } 13704 13705 type JobConfigResult struct { 13706 OfferApplySchema *IdNameObject `json:"offer_apply_schema,omitempty"` // Offer 申请表 13707 OfferProcessConf *IdNameObject `json:"offer_process_conf,omitempty"` // Offer 审批流 13708 RecommendedEvaluatorList []*IdNameObject `json:"recommended_evaluator_list,omitempty"` // 建议评估人列表 13709 AssessmentTemplate *IdNameObject `json:"assessment_template,omitempty"` // 面试评价表 13710 Id *string `json:"id,omitempty"` // 职位 ID 13711 InterviewRoundList []*JobConfigInterviewRound `json:"interview_round_list,omitempty"` // 建议面试官列表 13712 JobRequirementList []*IdNameObject `json:"job_requirement_list,omitempty"` // 招聘需求 13713 InterviewRoundTypeList []*JobConfigRoundTypeResult `json:"interview_round_type_list,omitempty"` // 面试轮次类型列表 13714 } 13715 13716 type JobConfigResultBuilder struct { 13717 offerApplySchema *IdNameObject // Offer 申请表 13718 offerApplySchemaFlag bool 13719 offerProcessConf *IdNameObject // Offer 审批流 13720 offerProcessConfFlag bool 13721 recommendedEvaluatorList []*IdNameObject // 建议评估人列表 13722 recommendedEvaluatorListFlag bool 13723 assessmentTemplate *IdNameObject // 面试评价表 13724 assessmentTemplateFlag bool 13725 id string // 职位 ID 13726 idFlag bool 13727 interviewRoundList []*JobConfigInterviewRound // 建议面试官列表 13728 interviewRoundListFlag bool 13729 jobRequirementList []*IdNameObject // 招聘需求 13730 jobRequirementListFlag bool 13731 interviewRoundTypeList []*JobConfigRoundTypeResult // 面试轮次类型列表 13732 interviewRoundTypeListFlag bool 13733 } 13734 13735 func NewJobConfigResultBuilder() *JobConfigResultBuilder { 13736 builder := &JobConfigResultBuilder{} 13737 return builder 13738 } 13739 13740 // Offer 申请表 13741 // 13742 // 示例值: 13743 func (builder *JobConfigResultBuilder) OfferApplySchema(offerApplySchema *IdNameObject) *JobConfigResultBuilder { 13744 builder.offerApplySchema = offerApplySchema 13745 builder.offerApplySchemaFlag = true 13746 return builder 13747 } 13748 13749 // Offer 审批流 13750 // 13751 // 示例值: 13752 func (builder *JobConfigResultBuilder) OfferProcessConf(offerProcessConf *IdNameObject) *JobConfigResultBuilder { 13753 builder.offerProcessConf = offerProcessConf 13754 builder.offerProcessConfFlag = true 13755 return builder 13756 } 13757 13758 // 建议评估人列表 13759 // 13760 // 示例值: 13761 func (builder *JobConfigResultBuilder) RecommendedEvaluatorList(recommendedEvaluatorList []*IdNameObject) *JobConfigResultBuilder { 13762 builder.recommendedEvaluatorList = recommendedEvaluatorList 13763 builder.recommendedEvaluatorListFlag = true 13764 return builder 13765 } 13766 13767 // 面试评价表 13768 // 13769 // 示例值: 13770 func (builder *JobConfigResultBuilder) AssessmentTemplate(assessmentTemplate *IdNameObject) *JobConfigResultBuilder { 13771 builder.assessmentTemplate = assessmentTemplate 13772 builder.assessmentTemplateFlag = true 13773 return builder 13774 } 13775 13776 // 职位 ID 13777 // 13778 // 示例值:6960663240925956574 13779 func (builder *JobConfigResultBuilder) Id(id string) *JobConfigResultBuilder { 13780 builder.id = id 13781 builder.idFlag = true 13782 return builder 13783 } 13784 13785 // 建议面试官列表 13786 // 13787 // 示例值: 13788 func (builder *JobConfigResultBuilder) InterviewRoundList(interviewRoundList []*JobConfigInterviewRound) *JobConfigResultBuilder { 13789 builder.interviewRoundList = interviewRoundList 13790 builder.interviewRoundListFlag = true 13791 return builder 13792 } 13793 13794 // 招聘需求 13795 // 13796 // 示例值: 13797 func (builder *JobConfigResultBuilder) JobRequirementList(jobRequirementList []*IdNameObject) *JobConfigResultBuilder { 13798 builder.jobRequirementList = jobRequirementList 13799 builder.jobRequirementListFlag = true 13800 return builder 13801 } 13802 13803 // 面试轮次类型列表 13804 // 13805 // 示例值: 13806 func (builder *JobConfigResultBuilder) InterviewRoundTypeList(interviewRoundTypeList []*JobConfigRoundTypeResult) *JobConfigResultBuilder { 13807 builder.interviewRoundTypeList = interviewRoundTypeList 13808 builder.interviewRoundTypeListFlag = true 13809 return builder 13810 } 13811 13812 func (builder *JobConfigResultBuilder) Build() *JobConfigResult { 13813 req := &JobConfigResult{} 13814 if builder.offerApplySchemaFlag { 13815 req.OfferApplySchema = builder.offerApplySchema 13816 } 13817 if builder.offerProcessConfFlag { 13818 req.OfferProcessConf = builder.offerProcessConf 13819 } 13820 if builder.recommendedEvaluatorListFlag { 13821 req.RecommendedEvaluatorList = builder.recommendedEvaluatorList 13822 } 13823 if builder.assessmentTemplateFlag { 13824 req.AssessmentTemplate = builder.assessmentTemplate 13825 } 13826 if builder.idFlag { 13827 req.Id = &builder.id 13828 13829 } 13830 if builder.interviewRoundListFlag { 13831 req.InterviewRoundList = builder.interviewRoundList 13832 } 13833 if builder.jobRequirementListFlag { 13834 req.JobRequirementList = builder.jobRequirementList 13835 } 13836 if builder.interviewRoundTypeListFlag { 13837 req.InterviewRoundTypeList = builder.interviewRoundTypeList 13838 } 13839 return req 13840 } 13841 13842 type JobConfigRoundType struct { 13843 RoundBizId *string `json:"round_biz_id,omitempty"` // 面试轮次类型业务 ID 13844 AssessmentTemplateBizId *string `json:"assessment_template_biz_id,omitempty"` // 面试评价表业务 ID 13845 } 13846 13847 type JobConfigRoundTypeBuilder struct { 13848 roundBizId string // 面试轮次类型业务 ID 13849 roundBizIdFlag bool 13850 assessmentTemplateBizId string // 面试评价表业务 ID 13851 assessmentTemplateBizIdFlag bool 13852 } 13853 13854 func NewJobConfigRoundTypeBuilder() *JobConfigRoundTypeBuilder { 13855 builder := &JobConfigRoundTypeBuilder{} 13856 return builder 13857 } 13858 13859 // 面试轮次类型业务 ID 13860 // 13861 // 示例值:7012129842917837100 13862 func (builder *JobConfigRoundTypeBuilder) RoundBizId(roundBizId string) *JobConfigRoundTypeBuilder { 13863 builder.roundBizId = roundBizId 13864 builder.roundBizIdFlag = true 13865 return builder 13866 } 13867 13868 // 面试评价表业务 ID 13869 // 13870 // 示例值:6960663240925956632 13871 func (builder *JobConfigRoundTypeBuilder) AssessmentTemplateBizId(assessmentTemplateBizId string) *JobConfigRoundTypeBuilder { 13872 builder.assessmentTemplateBizId = assessmentTemplateBizId 13873 builder.assessmentTemplateBizIdFlag = true 13874 return builder 13875 } 13876 13877 func (builder *JobConfigRoundTypeBuilder) Build() *JobConfigRoundType { 13878 req := &JobConfigRoundType{} 13879 if builder.roundBizIdFlag { 13880 req.RoundBizId = &builder.roundBizId 13881 13882 } 13883 if builder.assessmentTemplateBizIdFlag { 13884 req.AssessmentTemplateBizId = &builder.assessmentTemplateBizId 13885 13886 } 13887 return req 13888 } 13889 13890 type JobConfigRoundTypeResult struct { 13891 AssessmentRound *IdNameObject `json:"assessment_round,omitempty"` // 面试轮次类型 13892 AssessmentTemplate *IdNameObject `json:"assessment_template,omitempty"` // 面试评价表 13893 } 13894 13895 type JobConfigRoundTypeResultBuilder struct { 13896 assessmentRound *IdNameObject // 面试轮次类型 13897 assessmentRoundFlag bool 13898 assessmentTemplate *IdNameObject // 面试评价表 13899 assessmentTemplateFlag bool 13900 } 13901 13902 func NewJobConfigRoundTypeResultBuilder() *JobConfigRoundTypeResultBuilder { 13903 builder := &JobConfigRoundTypeResultBuilder{} 13904 return builder 13905 } 13906 13907 // 面试轮次类型 13908 // 13909 // 示例值: 13910 func (builder *JobConfigRoundTypeResultBuilder) AssessmentRound(assessmentRound *IdNameObject) *JobConfigRoundTypeResultBuilder { 13911 builder.assessmentRound = assessmentRound 13912 builder.assessmentRoundFlag = true 13913 return builder 13914 } 13915 13916 // 面试评价表 13917 // 13918 // 示例值: 13919 func (builder *JobConfigRoundTypeResultBuilder) AssessmentTemplate(assessmentTemplate *IdNameObject) *JobConfigRoundTypeResultBuilder { 13920 builder.assessmentTemplate = assessmentTemplate 13921 builder.assessmentTemplateFlag = true 13922 return builder 13923 } 13924 13925 func (builder *JobConfigRoundTypeResultBuilder) Build() *JobConfigRoundTypeResult { 13926 req := &JobConfigRoundTypeResult{} 13927 if builder.assessmentRoundFlag { 13928 req.AssessmentRound = builder.assessmentRound 13929 } 13930 if builder.assessmentTemplateFlag { 13931 req.AssessmentTemplate = builder.assessmentTemplate 13932 } 13933 return req 13934 } 13935 13936 type JobCustomizedData struct { 13937 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 13938 Name *I18n `json:"name,omitempty"` // 字段名称 13939 ObjectType *int `json:"object_type,omitempty"` // 字段类型 13940 Value *JobCustomizedValue `json:"value,omitempty"` // 自定义字段值 13941 } 13942 13943 type JobCustomizedDataBuilder struct { 13944 objectId string // 自定义字段 ID 13945 objectIdFlag bool 13946 name *I18n // 字段名称 13947 nameFlag bool 13948 objectType int // 字段类型 13949 objectTypeFlag bool 13950 value *JobCustomizedValue // 自定义字段值 13951 valueFlag bool 13952 } 13953 13954 func NewJobCustomizedDataBuilder() *JobCustomizedDataBuilder { 13955 builder := &JobCustomizedDataBuilder{} 13956 return builder 13957 } 13958 13959 // 自定义字段 ID 13960 // 13961 // 示例值:xxxx 13962 func (builder *JobCustomizedDataBuilder) ObjectId(objectId string) *JobCustomizedDataBuilder { 13963 builder.objectId = objectId 13964 builder.objectIdFlag = true 13965 return builder 13966 } 13967 13968 // 字段名称 13969 // 13970 // 示例值: 13971 func (builder *JobCustomizedDataBuilder) Name(name *I18n) *JobCustomizedDataBuilder { 13972 builder.name = name 13973 builder.nameFlag = true 13974 return builder 13975 } 13976 13977 // 字段类型 13978 // 13979 // 示例值:1 13980 func (builder *JobCustomizedDataBuilder) ObjectType(objectType int) *JobCustomizedDataBuilder { 13981 builder.objectType = objectType 13982 builder.objectTypeFlag = true 13983 return builder 13984 } 13985 13986 // 自定义字段值 13987 // 13988 // 示例值: 13989 func (builder *JobCustomizedDataBuilder) Value(value *JobCustomizedValue) *JobCustomizedDataBuilder { 13990 builder.value = value 13991 builder.valueFlag = true 13992 return builder 13993 } 13994 13995 func (builder *JobCustomizedDataBuilder) Build() *JobCustomizedData { 13996 req := &JobCustomizedData{} 13997 if builder.objectIdFlag { 13998 req.ObjectId = &builder.objectId 13999 14000 } 14001 if builder.nameFlag { 14002 req.Name = builder.name 14003 } 14004 if builder.objectTypeFlag { 14005 req.ObjectType = &builder.objectType 14006 14007 } 14008 if builder.valueFlag { 14009 req.Value = builder.value 14010 } 14011 return req 14012 } 14013 14014 type JobCustomizedOption struct { 14015 Key *string `json:"key,omitempty"` // 选项 ID 14016 Name *I18n `json:"name,omitempty"` // 选项名称 14017 } 14018 14019 type JobCustomizedOptionBuilder struct { 14020 key string // 选项 ID 14021 keyFlag bool 14022 name *I18n // 选项名称 14023 nameFlag bool 14024 } 14025 14026 func NewJobCustomizedOptionBuilder() *JobCustomizedOptionBuilder { 14027 builder := &JobCustomizedOptionBuilder{} 14028 return builder 14029 } 14030 14031 // 选项 ID 14032 // 14033 // 示例值:AA 14034 func (builder *JobCustomizedOptionBuilder) Key(key string) *JobCustomizedOptionBuilder { 14035 builder.key = key 14036 builder.keyFlag = true 14037 return builder 14038 } 14039 14040 // 选项名称 14041 // 14042 // 示例值: 14043 func (builder *JobCustomizedOptionBuilder) Name(name *I18n) *JobCustomizedOptionBuilder { 14044 builder.name = name 14045 builder.nameFlag = true 14046 return builder 14047 } 14048 14049 func (builder *JobCustomizedOptionBuilder) Build() *JobCustomizedOption { 14050 req := &JobCustomizedOption{} 14051 if builder.keyFlag { 14052 req.Key = &builder.key 14053 14054 } 14055 if builder.nameFlag { 14056 req.Name = builder.name 14057 } 14058 return req 14059 } 14060 14061 type JobCustomizedTimeRange struct { 14062 StartTime *string `json:"start_time,omitempty"` // 开始时间 14063 EndTime *string `json:"end_time,omitempty"` // 结束时间 14064 } 14065 14066 type JobCustomizedTimeRangeBuilder struct { 14067 startTime string // 开始时间 14068 startTimeFlag bool 14069 endTime string // 结束时间 14070 endTimeFlag bool 14071 } 14072 14073 func NewJobCustomizedTimeRangeBuilder() *JobCustomizedTimeRangeBuilder { 14074 builder := &JobCustomizedTimeRangeBuilder{} 14075 return builder 14076 } 14077 14078 // 开始时间 14079 // 14080 // 示例值:AA 14081 func (builder *JobCustomizedTimeRangeBuilder) StartTime(startTime string) *JobCustomizedTimeRangeBuilder { 14082 builder.startTime = startTime 14083 builder.startTimeFlag = true 14084 return builder 14085 } 14086 14087 // 结束时间 14088 // 14089 // 示例值:AA 14090 func (builder *JobCustomizedTimeRangeBuilder) EndTime(endTime string) *JobCustomizedTimeRangeBuilder { 14091 builder.endTime = endTime 14092 builder.endTimeFlag = true 14093 return builder 14094 } 14095 14096 func (builder *JobCustomizedTimeRangeBuilder) Build() *JobCustomizedTimeRange { 14097 req := &JobCustomizedTimeRange{} 14098 if builder.startTimeFlag { 14099 req.StartTime = &builder.startTime 14100 14101 } 14102 if builder.endTimeFlag { 14103 req.EndTime = &builder.endTime 14104 14105 } 14106 return req 14107 } 14108 14109 type JobCustomizedValue struct { 14110 Content *string `json:"content,omitempty"` // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 14111 Option *JobCustomizedOption `json:"option,omitempty"` // 当字段类型为单选时,从此字段取值 14112 OptionList []*JobCustomizedOption `json:"option_list,omitempty"` // 当字段类型为多选时,从此字段取值 14113 TimeRange *JobCustomizedTimeRange `json:"time_range,omitempty"` // 当字段类型为时间段时,从此字段取值 14114 Time *string `json:"time,omitempty"` // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是毫秒级时间戳 14115 Number *string `json:"number,omitempty"` // 当字段类型为数字时,从此字段取值 14116 } 14117 14118 type JobCustomizedValueBuilder struct { 14119 content string // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 14120 contentFlag bool 14121 option *JobCustomizedOption // 当字段类型为单选时,从此字段取值 14122 optionFlag bool 14123 optionList []*JobCustomizedOption // 当字段类型为多选时,从此字段取值 14124 optionListFlag bool 14125 timeRange *JobCustomizedTimeRange // 当字段类型为时间段时,从此字段取值 14126 timeRangeFlag bool 14127 time string // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是毫秒级时间戳 14128 timeFlag bool 14129 number string // 当字段类型为数字时,从此字段取值 14130 numberFlag bool 14131 } 14132 14133 func NewJobCustomizedValueBuilder() *JobCustomizedValueBuilder { 14134 builder := &JobCustomizedValueBuilder{} 14135 return builder 14136 } 14137 14138 // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 14139 // 14140 // 示例值:text 14141 func (builder *JobCustomizedValueBuilder) Content(content string) *JobCustomizedValueBuilder { 14142 builder.content = content 14143 builder.contentFlag = true 14144 return builder 14145 } 14146 14147 // 当字段类型为单选时,从此字段取值 14148 // 14149 // 示例值: 14150 func (builder *JobCustomizedValueBuilder) Option(option *JobCustomizedOption) *JobCustomizedValueBuilder { 14151 builder.option = option 14152 builder.optionFlag = true 14153 return builder 14154 } 14155 14156 // 当字段类型为多选时,从此字段取值 14157 // 14158 // 示例值: 14159 func (builder *JobCustomizedValueBuilder) OptionList(optionList []*JobCustomizedOption) *JobCustomizedValueBuilder { 14160 builder.optionList = optionList 14161 builder.optionListFlag = true 14162 return builder 14163 } 14164 14165 // 当字段类型为时间段时,从此字段取值 14166 // 14167 // 示例值: 14168 func (builder *JobCustomizedValueBuilder) TimeRange(timeRange *JobCustomizedTimeRange) *JobCustomizedValueBuilder { 14169 builder.timeRange = timeRange 14170 builder.timeRangeFlag = true 14171 return builder 14172 } 14173 14174 // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是毫秒级时间戳 14175 // 14176 // 示例值:1625456721000 14177 func (builder *JobCustomizedValueBuilder) Time(time string) *JobCustomizedValueBuilder { 14178 builder.time = time 14179 builder.timeFlag = true 14180 return builder 14181 } 14182 14183 // 当字段类型为数字时,从此字段取值 14184 // 14185 // 示例值:111 14186 func (builder *JobCustomizedValueBuilder) Number(number string) *JobCustomizedValueBuilder { 14187 builder.number = number 14188 builder.numberFlag = true 14189 return builder 14190 } 14191 14192 func (builder *JobCustomizedValueBuilder) Build() *JobCustomizedValue { 14193 req := &JobCustomizedValue{} 14194 if builder.contentFlag { 14195 req.Content = &builder.content 14196 14197 } 14198 if builder.optionFlag { 14199 req.Option = builder.option 14200 } 14201 if builder.optionListFlag { 14202 req.OptionList = builder.optionList 14203 } 14204 if builder.timeRangeFlag { 14205 req.TimeRange = builder.timeRange 14206 } 14207 if builder.timeFlag { 14208 req.Time = &builder.time 14209 14210 } 14211 if builder.numberFlag { 14212 req.Number = &builder.number 14213 14214 } 14215 return req 14216 } 14217 14218 type JobDepartment struct { 14219 Id *string `json:"id,omitempty"` // 部门 ID 14220 ZhName *string `json:"zh_name,omitempty"` // 部门中文名称 14221 EnName *string `json:"en_name,omitempty"` // 部门英文名称 14222 } 14223 14224 type JobDepartmentBuilder struct { 14225 id string // 部门 ID 14226 idFlag bool 14227 zhName string // 部门中文名称 14228 zhNameFlag bool 14229 enName string // 部门英文名称 14230 enNameFlag bool 14231 } 14232 14233 func NewJobDepartmentBuilder() *JobDepartmentBuilder { 14234 builder := &JobDepartmentBuilder{} 14235 return builder 14236 } 14237 14238 // 部门 ID 14239 // 14240 // 示例值:od-xxxx 14241 func (builder *JobDepartmentBuilder) Id(id string) *JobDepartmentBuilder { 14242 builder.id = id 14243 builder.idFlag = true 14244 return builder 14245 } 14246 14247 // 部门中文名称 14248 // 14249 // 示例值:字节跳动 14250 func (builder *JobDepartmentBuilder) ZhName(zhName string) *JobDepartmentBuilder { 14251 builder.zhName = zhName 14252 builder.zhNameFlag = true 14253 return builder 14254 } 14255 14256 // 部门英文名称 14257 // 14258 // 示例值:Bytedance 14259 func (builder *JobDepartmentBuilder) EnName(enName string) *JobDepartmentBuilder { 14260 builder.enName = enName 14261 builder.enNameFlag = true 14262 return builder 14263 } 14264 14265 func (builder *JobDepartmentBuilder) Build() *JobDepartment { 14266 req := &JobDepartment{} 14267 if builder.idFlag { 14268 req.Id = &builder.id 14269 14270 } 14271 if builder.zhNameFlag { 14272 req.ZhName = &builder.zhName 14273 14274 } 14275 if builder.enNameFlag { 14276 req.EnName = &builder.enName 14277 14278 } 14279 return req 14280 } 14281 14282 type JobFunction struct { 14283 Id *string `json:"id,omitempty"` // 职能分类 ID 14284 Name *I18n `json:"name,omitempty"` // 职能名称 14285 ActiveStatus *int `json:"active_status,omitempty"` // 启用状态 14286 ParentId *string `json:"parent_id,omitempty"` // 父级职能分类 ID 14287 } 14288 14289 type JobFunctionBuilder struct { 14290 id string // 职能分类 ID 14291 idFlag bool 14292 name *I18n // 职能名称 14293 nameFlag bool 14294 activeStatus int // 启用状态 14295 activeStatusFlag bool 14296 parentId string // 父级职能分类 ID 14297 parentIdFlag bool 14298 } 14299 14300 func NewJobFunctionBuilder() *JobFunctionBuilder { 14301 builder := &JobFunctionBuilder{} 14302 return builder 14303 } 14304 14305 // 职能分类 ID 14306 // 14307 // 示例值:7010952553315895596 14308 func (builder *JobFunctionBuilder) Id(id string) *JobFunctionBuilder { 14309 builder.id = id 14310 builder.idFlag = true 14311 return builder 14312 } 14313 14314 // 职能名称 14315 // 14316 // 示例值: 14317 func (builder *JobFunctionBuilder) Name(name *I18n) *JobFunctionBuilder { 14318 builder.name = name 14319 builder.nameFlag = true 14320 return builder 14321 } 14322 14323 // 启用状态 14324 // 14325 // 示例值:1 14326 func (builder *JobFunctionBuilder) ActiveStatus(activeStatus int) *JobFunctionBuilder { 14327 builder.activeStatus = activeStatus 14328 builder.activeStatusFlag = true 14329 return builder 14330 } 14331 14332 // 父级职能分类 ID 14333 // 14334 // 示例值:0 14335 func (builder *JobFunctionBuilder) ParentId(parentId string) *JobFunctionBuilder { 14336 builder.parentId = parentId 14337 builder.parentIdFlag = true 14338 return builder 14339 } 14340 14341 func (builder *JobFunctionBuilder) Build() *JobFunction { 14342 req := &JobFunction{} 14343 if builder.idFlag { 14344 req.Id = &builder.id 14345 14346 } 14347 if builder.nameFlag { 14348 req.Name = builder.name 14349 } 14350 if builder.activeStatusFlag { 14351 req.ActiveStatus = &builder.activeStatus 14352 14353 } 14354 if builder.parentIdFlag { 14355 req.ParentId = &builder.parentId 14356 14357 } 14358 return req 14359 } 14360 14361 type JobHighlight struct { 14362 Id *string `json:"id,omitempty"` // 职位亮点 ID 14363 ZhName *string `json:"zh_name,omitempty"` // 职位亮点中文名称 14364 EnName *string `json:"en_name,omitempty"` // 职位亮点英文名称 14365 } 14366 14367 type JobHighlightBuilder struct { 14368 id string // 职位亮点 ID 14369 idFlag bool 14370 zhName string // 职位亮点中文名称 14371 zhNameFlag bool 14372 enName string // 职位亮点英文名称 14373 enNameFlag bool 14374 } 14375 14376 func NewJobHighlightBuilder() *JobHighlightBuilder { 14377 builder := &JobHighlightBuilder{} 14378 return builder 14379 } 14380 14381 // 职位亮点 ID 14382 // 14383 // 示例值:6301 14384 func (builder *JobHighlightBuilder) Id(id string) *JobHighlightBuilder { 14385 builder.id = id 14386 builder.idFlag = true 14387 return builder 14388 } 14389 14390 // 职位亮点中文名称 14391 // 14392 // 示例值:团队氛围好 14393 func (builder *JobHighlightBuilder) ZhName(zhName string) *JobHighlightBuilder { 14394 builder.zhName = zhName 14395 builder.zhNameFlag = true 14396 return builder 14397 } 14398 14399 // 职位亮点英文名称 14400 // 14401 // 示例值:Positive team atmosphere 14402 func (builder *JobHighlightBuilder) EnName(enName string) *JobHighlightBuilder { 14403 builder.enName = enName 14404 builder.enNameFlag = true 14405 return builder 14406 } 14407 14408 func (builder *JobHighlightBuilder) Build() *JobHighlight { 14409 req := &JobHighlight{} 14410 if builder.idFlag { 14411 req.Id = &builder.id 14412 14413 } 14414 if builder.zhNameFlag { 14415 req.ZhName = &builder.zhName 14416 14417 } 14418 if builder.enNameFlag { 14419 req.EnName = &builder.enName 14420 14421 } 14422 return req 14423 } 14424 14425 type JobLevel struct { 14426 Id *string `json:"id,omitempty"` // 职级 ID 14427 ZhName *string `json:"zh_name,omitempty"` // 职级中文名称 14428 EnName *string `json:"en_name,omitempty"` // 职级英文名称 14429 ActiveStatus *int `json:"active_status,omitempty"` // 职级启用状态 14430 } 14431 14432 type JobLevelBuilder struct { 14433 id string // 职级 ID 14434 idFlag bool 14435 zhName string // 职级中文名称 14436 zhNameFlag bool 14437 enName string // 职级英文名称 14438 enNameFlag bool 14439 activeStatus int // 职级启用状态 14440 activeStatusFlag bool 14441 } 14442 14443 func NewJobLevelBuilder() *JobLevelBuilder { 14444 builder := &JobLevelBuilder{} 14445 return builder 14446 } 14447 14448 // 职级 ID 14449 // 14450 // 示例值:6301 14451 func (builder *JobLevelBuilder) Id(id string) *JobLevelBuilder { 14452 builder.id = id 14453 builder.idFlag = true 14454 return builder 14455 } 14456 14457 // 职级中文名称 14458 // 14459 // 示例值:级别-2 14460 func (builder *JobLevelBuilder) ZhName(zhName string) *JobLevelBuilder { 14461 builder.zhName = zhName 14462 builder.zhNameFlag = true 14463 return builder 14464 } 14465 14466 // 职级英文名称 14467 // 14468 // 示例值:level-2 14469 func (builder *JobLevelBuilder) EnName(enName string) *JobLevelBuilder { 14470 builder.enName = enName 14471 builder.enNameFlag = true 14472 return builder 14473 } 14474 14475 // 职级启用状态 14476 // 14477 // 示例值:1 14478 func (builder *JobLevelBuilder) ActiveStatus(activeStatus int) *JobLevelBuilder { 14479 builder.activeStatus = activeStatus 14480 builder.activeStatusFlag = true 14481 return builder 14482 } 14483 14484 func (builder *JobLevelBuilder) Build() *JobLevel { 14485 req := &JobLevel{} 14486 if builder.idFlag { 14487 req.Id = &builder.id 14488 14489 } 14490 if builder.zhNameFlag { 14491 req.ZhName = &builder.zhName 14492 14493 } 14494 if builder.enNameFlag { 14495 req.EnName = &builder.enName 14496 14497 } 14498 if builder.activeStatusFlag { 14499 req.ActiveStatus = &builder.activeStatus 14500 14501 } 14502 return req 14503 } 14504 14505 type JobProcess struct { 14506 YourPropertyName *string `json:"your_property_name,omitempty"` // id 14507 } 14508 14509 type JobProcessBuilder struct { 14510 yourPropertyName string // id 14511 yourPropertyNameFlag bool 14512 } 14513 14514 func NewJobProcessBuilder() *JobProcessBuilder { 14515 builder := &JobProcessBuilder{} 14516 return builder 14517 } 14518 14519 // id 14520 // 14521 // 示例值: 14522 func (builder *JobProcessBuilder) YourPropertyName(yourPropertyName string) *JobProcessBuilder { 14523 builder.yourPropertyName = yourPropertyName 14524 builder.yourPropertyNameFlag = true 14525 return builder 14526 } 14527 14528 func (builder *JobProcessBuilder) Build() *JobProcess { 14529 req := &JobProcess{} 14530 if builder.yourPropertyNameFlag { 14531 req.YourPropertyName = &builder.yourPropertyName 14532 14533 } 14534 return req 14535 } 14536 14537 type JobProcesses struct { 14538 Id *string `json:"id,omitempty"` // ID 14539 ZhName *string `json:"zh_name,omitempty"` // 中文名称 14540 EnName *string `json:"en_name,omitempty"` // 英文名称 14541 Type *int `json:"type,omitempty"` // 类型 1=社招流程, 2=校招流程, 14542 StageList []*JobProcessesStage `json:"stage_list,omitempty"` // 阶段列表, 内部按用户设置顺序排列 14543 } 14544 14545 type JobProcessesBuilder struct { 14546 id string // ID 14547 idFlag bool 14548 zhName string // 中文名称 14549 zhNameFlag bool 14550 enName string // 英文名称 14551 enNameFlag bool 14552 type_ int // 类型 1=社招流程, 2=校招流程, 14553 typeFlag bool 14554 stageList []*JobProcessesStage // 阶段列表, 内部按用户设置顺序排列 14555 stageListFlag bool 14556 } 14557 14558 func NewJobProcessesBuilder() *JobProcessesBuilder { 14559 builder := &JobProcessesBuilder{} 14560 return builder 14561 } 14562 14563 // ID 14564 // 14565 // 示例值:123123123123 14566 func (builder *JobProcessesBuilder) Id(id string) *JobProcessesBuilder { 14567 builder.id = id 14568 builder.idFlag = true 14569 return builder 14570 } 14571 14572 // 中文名称 14573 // 14574 // 示例值:中文 14575 func (builder *JobProcessesBuilder) ZhName(zhName string) *JobProcessesBuilder { 14576 builder.zhName = zhName 14577 builder.zhNameFlag = true 14578 return builder 14579 } 14580 14581 // 英文名称 14582 // 14583 // 示例值:name 14584 func (builder *JobProcessesBuilder) EnName(enName string) *JobProcessesBuilder { 14585 builder.enName = enName 14586 builder.enNameFlag = true 14587 return builder 14588 } 14589 14590 // 类型 1=社招流程, 2=校招流程, 14591 // 14592 // 示例值:1 14593 func (builder *JobProcessesBuilder) Type(type_ int) *JobProcessesBuilder { 14594 builder.type_ = type_ 14595 builder.typeFlag = true 14596 return builder 14597 } 14598 14599 // 阶段列表, 内部按用户设置顺序排列 14600 // 14601 // 示例值: 14602 func (builder *JobProcessesBuilder) StageList(stageList []*JobProcessesStage) *JobProcessesBuilder { 14603 builder.stageList = stageList 14604 builder.stageListFlag = true 14605 return builder 14606 } 14607 14608 func (builder *JobProcessesBuilder) Build() *JobProcesses { 14609 req := &JobProcesses{} 14610 if builder.idFlag { 14611 req.Id = &builder.id 14612 14613 } 14614 if builder.zhNameFlag { 14615 req.ZhName = &builder.zhName 14616 14617 } 14618 if builder.enNameFlag { 14619 req.EnName = &builder.enName 14620 14621 } 14622 if builder.typeFlag { 14623 req.Type = &builder.type_ 14624 14625 } 14626 if builder.stageListFlag { 14627 req.StageList = builder.stageList 14628 } 14629 return req 14630 } 14631 14632 type JobProcessesStage struct { 14633 Id *string `json:"id,omitempty"` // ID 14634 ZhName *string `json:"zh_name,omitempty"` // 中文名称 14635 EnName *string `json:"en_name,omitempty"` // 英文名称 14636 Type *int `json:"type,omitempty"` // 1=筛选型, 2=评估型, 3=笔试型, 4=面试型, 5=Offer型, 6=待入职, 7=已入职, 8=其它类型, 255=系统默认,后端模型中并没有该字段,仅用于前端显示, 14637 } 14638 14639 type JobProcessesStageBuilder struct { 14640 id string // ID 14641 idFlag bool 14642 zhName string // 中文名称 14643 zhNameFlag bool 14644 enName string // 英文名称 14645 enNameFlag bool 14646 type_ int // 1=筛选型, 2=评估型, 3=笔试型, 4=面试型, 5=Offer型, 6=待入职, 7=已入职, 8=其它类型, 255=系统默认,后端模型中并没有该字段,仅用于前端显示, 14647 typeFlag bool 14648 } 14649 14650 func NewJobProcessesStageBuilder() *JobProcessesStageBuilder { 14651 builder := &JobProcessesStageBuilder{} 14652 return builder 14653 } 14654 14655 // ID 14656 // 14657 // 示例值:123123123123123 14658 func (builder *JobProcessesStageBuilder) Id(id string) *JobProcessesStageBuilder { 14659 builder.id = id 14660 builder.idFlag = true 14661 return builder 14662 } 14663 14664 // 中文名称 14665 // 14666 // 示例值:名字 14667 func (builder *JobProcessesStageBuilder) ZhName(zhName string) *JobProcessesStageBuilder { 14668 builder.zhName = zhName 14669 builder.zhNameFlag = true 14670 return builder 14671 } 14672 14673 // 英文名称 14674 // 14675 // 示例值:name 14676 func (builder *JobProcessesStageBuilder) EnName(enName string) *JobProcessesStageBuilder { 14677 builder.enName = enName 14678 builder.enNameFlag = true 14679 return builder 14680 } 14681 14682 // 1=筛选型, 2=评估型, 3=笔试型, 4=面试型, 5=Offer型, 6=待入职, 7=已入职, 8=其它类型, 255=系统默认,后端模型中并没有该字段,仅用于前端显示, 14683 // 14684 // 示例值:1 14685 func (builder *JobProcessesStageBuilder) Type(type_ int) *JobProcessesStageBuilder { 14686 builder.type_ = type_ 14687 builder.typeFlag = true 14688 return builder 14689 } 14690 14691 func (builder *JobProcessesStageBuilder) Build() *JobProcessesStage { 14692 req := &JobProcessesStage{} 14693 if builder.idFlag { 14694 req.Id = &builder.id 14695 14696 } 14697 if builder.zhNameFlag { 14698 req.ZhName = &builder.zhName 14699 14700 } 14701 if builder.enNameFlag { 14702 req.EnName = &builder.enName 14703 14704 } 14705 if builder.typeFlag { 14706 req.Type = &builder.type_ 14707 14708 } 14709 return req 14710 } 14711 14712 type JobRecruiter2 struct { 14713 Id *string `json:"id,omitempty"` // 职位ID 14714 RecruiterId *string `json:"recruiter_id,omitempty"` // 招聘负责人ID 14715 HiringManagerIdList []string `json:"hiring_manager_id_list,omitempty"` // 用人经理ID列表 14716 AssistantIdList []string `json:"assistant_id_list,omitempty"` // 协助人ID列表 14717 } 14718 14719 type JobRecruiter2Builder struct { 14720 id string // 职位ID 14721 idFlag bool 14722 recruiterId string // 招聘负责人ID 14723 recruiterIdFlag bool 14724 hiringManagerIdList []string // 用人经理ID列表 14725 hiringManagerIdListFlag bool 14726 assistantIdList []string // 协助人ID列表 14727 assistantIdListFlag bool 14728 } 14729 14730 func NewJobRecruiter2Builder() *JobRecruiter2Builder { 14731 builder := &JobRecruiter2Builder{} 14732 return builder 14733 } 14734 14735 // 职位ID 14736 // 14737 // 示例值: 14738 func (builder *JobRecruiter2Builder) Id(id string) *JobRecruiter2Builder { 14739 builder.id = id 14740 builder.idFlag = true 14741 return builder 14742 } 14743 14744 // 招聘负责人ID 14745 // 14746 // 示例值: 14747 func (builder *JobRecruiter2Builder) RecruiterId(recruiterId string) *JobRecruiter2Builder { 14748 builder.recruiterId = recruiterId 14749 builder.recruiterIdFlag = true 14750 return builder 14751 } 14752 14753 // 用人经理ID列表 14754 // 14755 // 示例值: 14756 func (builder *JobRecruiter2Builder) HiringManagerIdList(hiringManagerIdList []string) *JobRecruiter2Builder { 14757 builder.hiringManagerIdList = hiringManagerIdList 14758 builder.hiringManagerIdListFlag = true 14759 return builder 14760 } 14761 14762 // 协助人ID列表 14763 // 14764 // 示例值: 14765 func (builder *JobRecruiter2Builder) AssistantIdList(assistantIdList []string) *JobRecruiter2Builder { 14766 builder.assistantIdList = assistantIdList 14767 builder.assistantIdListFlag = true 14768 return builder 14769 } 14770 14771 func (builder *JobRecruiter2Builder) Build() *JobRecruiter2 { 14772 req := &JobRecruiter2{} 14773 if builder.idFlag { 14774 req.Id = &builder.id 14775 14776 } 14777 if builder.recruiterIdFlag { 14778 req.RecruiterId = &builder.recruiterId 14779 14780 } 14781 if builder.hiringManagerIdListFlag { 14782 req.HiringManagerIdList = builder.hiringManagerIdList 14783 } 14784 if builder.assistantIdListFlag { 14785 req.AssistantIdList = builder.assistantIdList 14786 } 14787 return req 14788 } 14789 14790 type JobRecruitmentType struct { 14791 Id *string `json:"id,omitempty"` // 雇佣类型 ID 14792 ZhName *string `json:"zh_name,omitempty"` // 雇佣类型中文名称 14793 EnName *string `json:"en_name,omitempty"` // 雇佣类型英文名称 14794 ActiveStatus *int `json:"active_status,omitempty"` // 雇佣类型启用状态 14795 } 14796 14797 type JobRecruitmentTypeBuilder struct { 14798 id string // 雇佣类型 ID 14799 idFlag bool 14800 zhName string // 雇佣类型中文名称 14801 zhNameFlag bool 14802 enName string // 雇佣类型英文名称 14803 enNameFlag bool 14804 activeStatus int // 雇佣类型启用状态 14805 activeStatusFlag bool 14806 } 14807 14808 func NewJobRecruitmentTypeBuilder() *JobRecruitmentTypeBuilder { 14809 builder := &JobRecruitmentTypeBuilder{} 14810 return builder 14811 } 14812 14813 // 雇佣类型 ID 14814 // 14815 // 示例值:6001 14816 func (builder *JobRecruitmentTypeBuilder) Id(id string) *JobRecruitmentTypeBuilder { 14817 builder.id = id 14818 builder.idFlag = true 14819 return builder 14820 } 14821 14822 // 雇佣类型中文名称 14823 // 14824 // 示例值:全职 14825 func (builder *JobRecruitmentTypeBuilder) ZhName(zhName string) *JobRecruitmentTypeBuilder { 14826 builder.zhName = zhName 14827 builder.zhNameFlag = true 14828 return builder 14829 } 14830 14831 // 雇佣类型英文名称 14832 // 14833 // 示例值:FullTime 14834 func (builder *JobRecruitmentTypeBuilder) EnName(enName string) *JobRecruitmentTypeBuilder { 14835 builder.enName = enName 14836 builder.enNameFlag = true 14837 return builder 14838 } 14839 14840 // 雇佣类型启用状态 14841 // 14842 // 示例值:1 14843 func (builder *JobRecruitmentTypeBuilder) ActiveStatus(activeStatus int) *JobRecruitmentTypeBuilder { 14844 builder.activeStatus = activeStatus 14845 builder.activeStatusFlag = true 14846 return builder 14847 } 14848 14849 func (builder *JobRecruitmentTypeBuilder) Build() *JobRecruitmentType { 14850 req := &JobRecruitmentType{} 14851 if builder.idFlag { 14852 req.Id = &builder.id 14853 14854 } 14855 if builder.zhNameFlag { 14856 req.ZhName = &builder.zhName 14857 14858 } 14859 if builder.enNameFlag { 14860 req.EnName = &builder.enName 14861 14862 } 14863 if builder.activeStatusFlag { 14864 req.ActiveStatus = &builder.activeStatus 14865 14866 } 14867 return req 14868 } 14869 14870 type JobRequirement struct { 14871 ShortCode *string `json:"short_code,omitempty"` // 招聘需求编号 14872 Name *string `json:"name,omitempty"` // 需求名称 14873 DisplayProgress *int `json:"display_progress,omitempty"` // 需求状态 14874 HeadCount *int `json:"head_count,omitempty"` // 需求人数 14875 RecruitmentTypeId *string `json:"recruitment_type_id,omitempty"` // 职位性质 ID,可在「招聘枚举常量」文档中查看枚举值 14876 MaxLevelId *string `json:"max_level_id,omitempty"` // 最高职级 ID 14877 MinLevelId *string `json:"min_level_id,omitempty"` // 最低职级 ID 14878 SequenceId *string `json:"sequence_id,omitempty"` // 职位序列 ID 14879 Category *int `json:"category,omitempty"` // 需求类型 14880 DepartmentId *string `json:"department_id,omitempty"` // 需求部门的 open department id 14881 RecruiterIdList []string `json:"recruiter_id_list,omitempty"` // 需求负责人 ID 列表 14882 DirectLeaderIdList []string `json:"direct_leader_id_list,omitempty"` // 直属上级 ID 14883 StartTime *string `json:"start_time,omitempty"` // 开始日期,毫秒级时间戳 14884 Deadline *string `json:"deadline,omitempty"` // 预计完成日期,毫秒级时间戳 14885 Priority *int `json:"priority,omitempty"` // 招聘优先级 14886 RequiredDegree *int `json:"required_degree,omitempty"` // 学历要求 14887 MaxSalary *string `json:"max_salary,omitempty"` // 最高薪资,单位:千 14888 MinSalary *string `json:"min_salary,omitempty"` // 最低薪资,单位:千 14889 AddressId *string `json:"address_id,omitempty"` // 工作地点 ID,枚举值可通过「获取地址列表」接口查询获得 14890 Description *string `json:"description,omitempty"` // 需求描述 14891 CustomizedDataList []*JobRequirementCustomizedData `json:"customized_data_list,omitempty"` // 自定义字段 14892 } 14893 14894 type JobRequirementBuilder struct { 14895 shortCode string // 招聘需求编号 14896 shortCodeFlag bool 14897 name string // 需求名称 14898 nameFlag bool 14899 displayProgress int // 需求状态 14900 displayProgressFlag bool 14901 headCount int // 需求人数 14902 headCountFlag bool 14903 recruitmentTypeId string // 职位性质 ID,可在「招聘枚举常量」文档中查看枚举值 14904 recruitmentTypeIdFlag bool 14905 maxLevelId string // 最高职级 ID 14906 maxLevelIdFlag bool 14907 minLevelId string // 最低职级 ID 14908 minLevelIdFlag bool 14909 sequenceId string // 职位序列 ID 14910 sequenceIdFlag bool 14911 category int // 需求类型 14912 categoryFlag bool 14913 departmentId string // 需求部门的 open department id 14914 departmentIdFlag bool 14915 recruiterIdList []string // 需求负责人 ID 列表 14916 recruiterIdListFlag bool 14917 directLeaderIdList []string // 直属上级 ID 14918 directLeaderIdListFlag bool 14919 startTime string // 开始日期,毫秒级时间戳 14920 startTimeFlag bool 14921 deadline string // 预计完成日期,毫秒级时间戳 14922 deadlineFlag bool 14923 priority int // 招聘优先级 14924 priorityFlag bool 14925 requiredDegree int // 学历要求 14926 requiredDegreeFlag bool 14927 maxSalary string // 最高薪资,单位:千 14928 maxSalaryFlag bool 14929 minSalary string // 最低薪资,单位:千 14930 minSalaryFlag bool 14931 addressId string // 工作地点 ID,枚举值可通过「获取地址列表」接口查询获得 14932 addressIdFlag bool 14933 description string // 需求描述 14934 descriptionFlag bool 14935 customizedDataList []*JobRequirementCustomizedData // 自定义字段 14936 customizedDataListFlag bool 14937 } 14938 14939 func NewJobRequirementBuilder() *JobRequirementBuilder { 14940 builder := &JobRequirementBuilder{} 14941 return builder 14942 } 14943 14944 // 招聘需求编号 14945 // 14946 // 示例值:xx1 14947 func (builder *JobRequirementBuilder) ShortCode(shortCode string) *JobRequirementBuilder { 14948 builder.shortCode = shortCode 14949 builder.shortCodeFlag = true 14950 return builder 14951 } 14952 14953 // 需求名称 14954 // 14955 // 示例值:test 14956 func (builder *JobRequirementBuilder) Name(name string) *JobRequirementBuilder { 14957 builder.name = name 14958 builder.nameFlag = true 14959 return builder 14960 } 14961 14962 // 需求状态 14963 // 14964 // 示例值:1 14965 func (builder *JobRequirementBuilder) DisplayProgress(displayProgress int) *JobRequirementBuilder { 14966 builder.displayProgress = displayProgress 14967 builder.displayProgressFlag = true 14968 return builder 14969 } 14970 14971 // 需求人数 14972 // 14973 // 示例值:11 14974 func (builder *JobRequirementBuilder) HeadCount(headCount int) *JobRequirementBuilder { 14975 builder.headCount = headCount 14976 builder.headCountFlag = true 14977 return builder 14978 } 14979 14980 // 职位性质 ID,可在「招聘枚举常量」文档中查看枚举值 14981 // 14982 // 示例值:101 14983 func (builder *JobRequirementBuilder) RecruitmentTypeId(recruitmentTypeId string) *JobRequirementBuilder { 14984 builder.recruitmentTypeId = recruitmentTypeId 14985 builder.recruitmentTypeIdFlag = true 14986 return builder 14987 } 14988 14989 // 最高职级 ID 14990 // 14991 // 示例值:6807409776231254285 14992 func (builder *JobRequirementBuilder) MaxLevelId(maxLevelId string) *JobRequirementBuilder { 14993 builder.maxLevelId = maxLevelId 14994 builder.maxLevelIdFlag = true 14995 return builder 14996 } 14997 14998 // 最低职级 ID 14999 // 15000 // 示例值:6911957338526091534 15001 func (builder *JobRequirementBuilder) MinLevelId(minLevelId string) *JobRequirementBuilder { 15002 builder.minLevelId = minLevelId 15003 builder.minLevelIdFlag = true 15004 return builder 15005 } 15006 15007 // 职位序列 ID 15008 // 15009 // 示例值:6911957338526091536 15010 func (builder *JobRequirementBuilder) SequenceId(sequenceId string) *JobRequirementBuilder { 15011 builder.sequenceId = sequenceId 15012 builder.sequenceIdFlag = true 15013 return builder 15014 } 15015 15016 // 需求类型 15017 // 15018 // 示例值:1 15019 func (builder *JobRequirementBuilder) Category(category int) *JobRequirementBuilder { 15020 builder.category = category 15021 builder.categoryFlag = true 15022 return builder 15023 } 15024 15025 // 需求部门的 open department id 15026 // 15027 // 示例值:od-4e6ac4d14bcd5071a37a39de902c7141 15028 func (builder *JobRequirementBuilder) DepartmentId(departmentId string) *JobRequirementBuilder { 15029 builder.departmentId = departmentId 15030 builder.departmentIdFlag = true 15031 return builder 15032 } 15033 15034 // 需求负责人 ID 列表 15035 // 15036 // 示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62 15037 func (builder *JobRequirementBuilder) RecruiterIdList(recruiterIdList []string) *JobRequirementBuilder { 15038 builder.recruiterIdList = recruiterIdList 15039 builder.recruiterIdListFlag = true 15040 return builder 15041 } 15042 15043 // 直属上级 ID 15044 // 15045 // 示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62 15046 func (builder *JobRequirementBuilder) DirectLeaderIdList(directLeaderIdList []string) *JobRequirementBuilder { 15047 builder.directLeaderIdList = directLeaderIdList 15048 builder.directLeaderIdListFlag = true 15049 return builder 15050 } 15051 15052 // 开始日期,毫秒级时间戳 15053 // 15054 // 示例值:1625729379000 15055 func (builder *JobRequirementBuilder) StartTime(startTime string) *JobRequirementBuilder { 15056 builder.startTime = startTime 15057 builder.startTimeFlag = true 15058 return builder 15059 } 15060 15061 // 预计完成日期,毫秒级时间戳 15062 // 15063 // 示例值:1625729379000 15064 func (builder *JobRequirementBuilder) Deadline(deadline string) *JobRequirementBuilder { 15065 builder.deadline = deadline 15066 builder.deadlineFlag = true 15067 return builder 15068 } 15069 15070 // 招聘优先级 15071 // 15072 // 示例值:1 15073 func (builder *JobRequirementBuilder) Priority(priority int) *JobRequirementBuilder { 15074 builder.priority = priority 15075 builder.priorityFlag = true 15076 return builder 15077 } 15078 15079 // 学历要求 15080 // 15081 // 示例值:1 15082 func (builder *JobRequirementBuilder) RequiredDegree(requiredDegree int) *JobRequirementBuilder { 15083 builder.requiredDegree = requiredDegree 15084 builder.requiredDegreeFlag = true 15085 return builder 15086 } 15087 15088 // 最高薪资,单位:千 15089 // 15090 // 示例值:10 15091 func (builder *JobRequirementBuilder) MaxSalary(maxSalary string) *JobRequirementBuilder { 15092 builder.maxSalary = maxSalary 15093 builder.maxSalaryFlag = true 15094 return builder 15095 } 15096 15097 // 最低薪资,单位:千 15098 // 15099 // 示例值:15 15100 func (builder *JobRequirementBuilder) MinSalary(minSalary string) *JobRequirementBuilder { 15101 builder.minSalary = minSalary 15102 builder.minSalaryFlag = true 15103 return builder 15104 } 15105 15106 // 工作地点 ID,枚举值可通过「获取地址列表」接口查询获得 15107 // 15108 // 示例值:11 15109 func (builder *JobRequirementBuilder) AddressId(addressId string) *JobRequirementBuilder { 15110 builder.addressId = addressId 15111 builder.addressIdFlag = true 15112 return builder 15113 } 15114 15115 // 需求描述 15116 // 15117 // 示例值:11 15118 func (builder *JobRequirementBuilder) Description(description string) *JobRequirementBuilder { 15119 builder.description = description 15120 builder.descriptionFlag = true 15121 return builder 15122 } 15123 15124 // 自定义字段 15125 // 15126 // 示例值: 15127 func (builder *JobRequirementBuilder) CustomizedDataList(customizedDataList []*JobRequirementCustomizedData) *JobRequirementBuilder { 15128 builder.customizedDataList = customizedDataList 15129 builder.customizedDataListFlag = true 15130 return builder 15131 } 15132 15133 func (builder *JobRequirementBuilder) Build() *JobRequirement { 15134 req := &JobRequirement{} 15135 if builder.shortCodeFlag { 15136 req.ShortCode = &builder.shortCode 15137 15138 } 15139 if builder.nameFlag { 15140 req.Name = &builder.name 15141 15142 } 15143 if builder.displayProgressFlag { 15144 req.DisplayProgress = &builder.displayProgress 15145 15146 } 15147 if builder.headCountFlag { 15148 req.HeadCount = &builder.headCount 15149 15150 } 15151 if builder.recruitmentTypeIdFlag { 15152 req.RecruitmentTypeId = &builder.recruitmentTypeId 15153 15154 } 15155 if builder.maxLevelIdFlag { 15156 req.MaxLevelId = &builder.maxLevelId 15157 15158 } 15159 if builder.minLevelIdFlag { 15160 req.MinLevelId = &builder.minLevelId 15161 15162 } 15163 if builder.sequenceIdFlag { 15164 req.SequenceId = &builder.sequenceId 15165 15166 } 15167 if builder.categoryFlag { 15168 req.Category = &builder.category 15169 15170 } 15171 if builder.departmentIdFlag { 15172 req.DepartmentId = &builder.departmentId 15173 15174 } 15175 if builder.recruiterIdListFlag { 15176 req.RecruiterIdList = builder.recruiterIdList 15177 } 15178 if builder.directLeaderIdListFlag { 15179 req.DirectLeaderIdList = builder.directLeaderIdList 15180 } 15181 if builder.startTimeFlag { 15182 req.StartTime = &builder.startTime 15183 15184 } 15185 if builder.deadlineFlag { 15186 req.Deadline = &builder.deadline 15187 15188 } 15189 if builder.priorityFlag { 15190 req.Priority = &builder.priority 15191 15192 } 15193 if builder.requiredDegreeFlag { 15194 req.RequiredDegree = &builder.requiredDegree 15195 15196 } 15197 if builder.maxSalaryFlag { 15198 req.MaxSalary = &builder.maxSalary 15199 15200 } 15201 if builder.minSalaryFlag { 15202 req.MinSalary = &builder.minSalary 15203 15204 } 15205 if builder.addressIdFlag { 15206 req.AddressId = &builder.addressId 15207 15208 } 15209 if builder.descriptionFlag { 15210 req.Description = &builder.description 15211 15212 } 15213 if builder.customizedDataListFlag { 15214 req.CustomizedDataList = builder.customizedDataList 15215 } 15216 return req 15217 } 15218 15219 type JobRequirementCustomizedData struct { 15220 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 15221 Value *string `json:"value,omitempty"` // 自定义字段 value,1. 对于自定义字段,若字段类型为单行文本/多行文本,传值格式为"这是一个文本";2. 若字段类型为单选,传值内容为选项的 ID,格式为"6890840516938696974";;3. 若字段类型为多选,传值内容为选项的ID 列表,格式为"[\"6890840516938696974\", \"6890840516938696975\" ]";;4. 若字段类型为时间段,传值格式为"[\"1609430400000\", \"1612108800000\" ]",单位是毫米级时间戳;;5. 若字段类型为年份选择,传值格式为"1609430400000",单位是毫秒级时间戳;;6. 若字段类型为月份选择,传值格式为"1625068800000",单位是毫秒级时间戳;;7. 若字段类型为数字,传值格式为"1"; 15222 } 15223 15224 type JobRequirementCustomizedDataBuilder struct { 15225 objectId string // 自定义字段 ID 15226 objectIdFlag bool 15227 value string // 自定义字段 value,1. 对于自定义字段,若字段类型为单行文本/多行文本,传值格式为"这是一个文本";2. 若字段类型为单选,传值内容为选项的 ID,格式为"6890840516938696974";;3. 若字段类型为多选,传值内容为选项的ID 列表,格式为"[\"6890840516938696974\", \"6890840516938696975\" ]";;4. 若字段类型为时间段,传值格式为"[\"1609430400000\", \"1612108800000\" ]",单位是毫米级时间戳;;5. 若字段类型为年份选择,传值格式为"1609430400000",单位是毫秒级时间戳;;6. 若字段类型为月份选择,传值格式为"1625068800000",单位是毫秒级时间戳;;7. 若字段类型为数字,传值格式为"1"; 15228 valueFlag bool 15229 } 15230 15231 func NewJobRequirementCustomizedDataBuilder() *JobRequirementCustomizedDataBuilder { 15232 builder := &JobRequirementCustomizedDataBuilder{} 15233 return builder 15234 } 15235 15236 // 自定义字段 ID 15237 // 15238 // 示例值:1213213123123 15239 func (builder *JobRequirementCustomizedDataBuilder) ObjectId(objectId string) *JobRequirementCustomizedDataBuilder { 15240 builder.objectId = objectId 15241 builder.objectIdFlag = true 15242 return builder 15243 } 15244 15245 // 自定义字段 value,1. 对于自定义字段,若字段类型为单行文本/多行文本,传值格式为"这是一个文本";2. 若字段类型为单选,传值内容为选项的 ID,格式为"6890840516938696974";;3. 若字段类型为多选,传值内容为选项的ID 列表,格式为"[\"6890840516938696974\", \"6890840516938696975\" ]";;4. 若字段类型为时间段,传值格式为"[\"1609430400000\", \"1612108800000\" ]",单位是毫米级时间戳;;5. 若字段类型为年份选择,传值格式为"1609430400000",单位是毫秒级时间戳;;6. 若字段类型为月份选择,传值格式为"1625068800000",单位是毫秒级时间戳;;7. 若字段类型为数字,传值格式为"1"; 15246 // 15247 // 示例值:测试 15248 func (builder *JobRequirementCustomizedDataBuilder) Value(value string) *JobRequirementCustomizedDataBuilder { 15249 builder.value = value 15250 builder.valueFlag = true 15251 return builder 15252 } 15253 15254 func (builder *JobRequirementCustomizedDataBuilder) Build() *JobRequirementCustomizedData { 15255 req := &JobRequirementCustomizedData{} 15256 if builder.objectIdFlag { 15257 req.ObjectId = &builder.objectId 15258 15259 } 15260 if builder.valueFlag { 15261 req.Value = &builder.value 15262 15263 } 15264 return req 15265 } 15266 15267 type JobRequirementCustomizedDataDto struct { 15268 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 15269 Name *I18n `json:"name,omitempty"` // 字段名称 15270 ObjectType *int `json:"object_type,omitempty"` // 字段类型 15271 Value *JobRequirementCustomizedValue `json:"value,omitempty"` // 自定义字段值 15272 } 15273 15274 type JobRequirementCustomizedDataDtoBuilder struct { 15275 objectId string // 自定义字段 ID 15276 objectIdFlag bool 15277 name *I18n // 字段名称 15278 nameFlag bool 15279 objectType int // 字段类型 15280 objectTypeFlag bool 15281 value *JobRequirementCustomizedValue // 自定义字段值 15282 valueFlag bool 15283 } 15284 15285 func NewJobRequirementCustomizedDataDtoBuilder() *JobRequirementCustomizedDataDtoBuilder { 15286 builder := &JobRequirementCustomizedDataDtoBuilder{} 15287 return builder 15288 } 15289 15290 // 自定义字段 ID 15291 // 15292 // 示例值:xxxx 15293 func (builder *JobRequirementCustomizedDataDtoBuilder) ObjectId(objectId string) *JobRequirementCustomizedDataDtoBuilder { 15294 builder.objectId = objectId 15295 builder.objectIdFlag = true 15296 return builder 15297 } 15298 15299 // 字段名称 15300 // 15301 // 示例值: 15302 func (builder *JobRequirementCustomizedDataDtoBuilder) Name(name *I18n) *JobRequirementCustomizedDataDtoBuilder { 15303 builder.name = name 15304 builder.nameFlag = true 15305 return builder 15306 } 15307 15308 // 字段类型 15309 // 15310 // 示例值:1 15311 func (builder *JobRequirementCustomizedDataDtoBuilder) ObjectType(objectType int) *JobRequirementCustomizedDataDtoBuilder { 15312 builder.objectType = objectType 15313 builder.objectTypeFlag = true 15314 return builder 15315 } 15316 15317 // 自定义字段值 15318 // 15319 // 示例值: 15320 func (builder *JobRequirementCustomizedDataDtoBuilder) Value(value *JobRequirementCustomizedValue) *JobRequirementCustomizedDataDtoBuilder { 15321 builder.value = value 15322 builder.valueFlag = true 15323 return builder 15324 } 15325 15326 func (builder *JobRequirementCustomizedDataDtoBuilder) Build() *JobRequirementCustomizedDataDto { 15327 req := &JobRequirementCustomizedDataDto{} 15328 if builder.objectIdFlag { 15329 req.ObjectId = &builder.objectId 15330 15331 } 15332 if builder.nameFlag { 15333 req.Name = builder.name 15334 } 15335 if builder.objectTypeFlag { 15336 req.ObjectType = &builder.objectType 15337 15338 } 15339 if builder.valueFlag { 15340 req.Value = builder.value 15341 } 15342 return req 15343 } 15344 15345 type JobRequirementCustomizedOption struct { 15346 Key *string `json:"key,omitempty"` // 选项 ID 15347 Name *I18n `json:"name,omitempty"` // 选项名称 15348 } 15349 15350 type JobRequirementCustomizedOptionBuilder struct { 15351 key string // 选项 ID 15352 keyFlag bool 15353 name *I18n // 选项名称 15354 nameFlag bool 15355 } 15356 15357 func NewJobRequirementCustomizedOptionBuilder() *JobRequirementCustomizedOptionBuilder { 15358 builder := &JobRequirementCustomizedOptionBuilder{} 15359 return builder 15360 } 15361 15362 // 选项 ID 15363 // 15364 // 示例值:AA 15365 func (builder *JobRequirementCustomizedOptionBuilder) Key(key string) *JobRequirementCustomizedOptionBuilder { 15366 builder.key = key 15367 builder.keyFlag = true 15368 return builder 15369 } 15370 15371 // 选项名称 15372 // 15373 // 示例值: 15374 func (builder *JobRequirementCustomizedOptionBuilder) Name(name *I18n) *JobRequirementCustomizedOptionBuilder { 15375 builder.name = name 15376 builder.nameFlag = true 15377 return builder 15378 } 15379 15380 func (builder *JobRequirementCustomizedOptionBuilder) Build() *JobRequirementCustomizedOption { 15381 req := &JobRequirementCustomizedOption{} 15382 if builder.keyFlag { 15383 req.Key = &builder.key 15384 15385 } 15386 if builder.nameFlag { 15387 req.Name = builder.name 15388 } 15389 return req 15390 } 15391 15392 type JobRequirementCustomizedTimeRange struct { 15393 StartTime *string `json:"start_time,omitempty"` // 开始时间,毫秒级时间戳 15394 EndTime *string `json:"end_time,omitempty"` // 结束时间,毫秒级时间戳 15395 } 15396 15397 type JobRequirementCustomizedTimeRangeBuilder struct { 15398 startTime string // 开始时间,毫秒级时间戳 15399 startTimeFlag bool 15400 endTime string // 结束时间,毫秒级时间戳 15401 endTimeFlag bool 15402 } 15403 15404 func NewJobRequirementCustomizedTimeRangeBuilder() *JobRequirementCustomizedTimeRangeBuilder { 15405 builder := &JobRequirementCustomizedTimeRangeBuilder{} 15406 return builder 15407 } 15408 15409 // 开始时间,毫秒级时间戳 15410 // 15411 // 示例值:AA 15412 func (builder *JobRequirementCustomizedTimeRangeBuilder) StartTime(startTime string) *JobRequirementCustomizedTimeRangeBuilder { 15413 builder.startTime = startTime 15414 builder.startTimeFlag = true 15415 return builder 15416 } 15417 15418 // 结束时间,毫秒级时间戳 15419 // 15420 // 示例值:AA 15421 func (builder *JobRequirementCustomizedTimeRangeBuilder) EndTime(endTime string) *JobRequirementCustomizedTimeRangeBuilder { 15422 builder.endTime = endTime 15423 builder.endTimeFlag = true 15424 return builder 15425 } 15426 15427 func (builder *JobRequirementCustomizedTimeRangeBuilder) Build() *JobRequirementCustomizedTimeRange { 15428 req := &JobRequirementCustomizedTimeRange{} 15429 if builder.startTimeFlag { 15430 req.StartTime = &builder.startTime 15431 15432 } 15433 if builder.endTimeFlag { 15434 req.EndTime = &builder.endTime 15435 15436 } 15437 return req 15438 } 15439 15440 type JobRequirementCustomizedValue struct { 15441 Content *string `json:"content,omitempty"` // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 15442 Option *JobRequirementCustomizedOption `json:"option,omitempty"` // 当字段类型为单选时,从此字段取值 15443 OptionList []*JobRequirementCustomizedOption `json:"option_list,omitempty"` // 当字段类型为多选时,从此字段取值 15444 TimeRange *JobRequirementCustomizedTimeRange `json:"time_range,omitempty"` // 当字段类型为时间段时,从此字段取值 15445 Time *string `json:"time,omitempty"` // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是毫秒级时间戳 15446 Number *string `json:"number,omitempty"` // 当字段类型为数字时,从此字段取值 15447 } 15448 15449 type JobRequirementCustomizedValueBuilder struct { 15450 content string // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 15451 contentFlag bool 15452 option *JobRequirementCustomizedOption // 当字段类型为单选时,从此字段取值 15453 optionFlag bool 15454 optionList []*JobRequirementCustomizedOption // 当字段类型为多选时,从此字段取值 15455 optionListFlag bool 15456 timeRange *JobRequirementCustomizedTimeRange // 当字段类型为时间段时,从此字段取值 15457 timeRangeFlag bool 15458 time string // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是毫秒级时间戳 15459 timeFlag bool 15460 number string // 当字段类型为数字时,从此字段取值 15461 numberFlag bool 15462 } 15463 15464 func NewJobRequirementCustomizedValueBuilder() *JobRequirementCustomizedValueBuilder { 15465 builder := &JobRequirementCustomizedValueBuilder{} 15466 return builder 15467 } 15468 15469 // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 15470 // 15471 // 示例值:text 15472 func (builder *JobRequirementCustomizedValueBuilder) Content(content string) *JobRequirementCustomizedValueBuilder { 15473 builder.content = content 15474 builder.contentFlag = true 15475 return builder 15476 } 15477 15478 // 当字段类型为单选时,从此字段取值 15479 // 15480 // 示例值: 15481 func (builder *JobRequirementCustomizedValueBuilder) Option(option *JobRequirementCustomizedOption) *JobRequirementCustomizedValueBuilder { 15482 builder.option = option 15483 builder.optionFlag = true 15484 return builder 15485 } 15486 15487 // 当字段类型为多选时,从此字段取值 15488 // 15489 // 示例值: 15490 func (builder *JobRequirementCustomizedValueBuilder) OptionList(optionList []*JobRequirementCustomizedOption) *JobRequirementCustomizedValueBuilder { 15491 builder.optionList = optionList 15492 builder.optionListFlag = true 15493 return builder 15494 } 15495 15496 // 当字段类型为时间段时,从此字段取值 15497 // 15498 // 示例值: 15499 func (builder *JobRequirementCustomizedValueBuilder) TimeRange(timeRange *JobRequirementCustomizedTimeRange) *JobRequirementCustomizedValueBuilder { 15500 builder.timeRange = timeRange 15501 builder.timeRangeFlag = true 15502 return builder 15503 } 15504 15505 // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是毫秒级时间戳 15506 // 15507 // 示例值:1625456721000 15508 func (builder *JobRequirementCustomizedValueBuilder) Time(time string) *JobRequirementCustomizedValueBuilder { 15509 builder.time = time 15510 builder.timeFlag = true 15511 return builder 15512 } 15513 15514 // 当字段类型为数字时,从此字段取值 15515 // 15516 // 示例值:111 15517 func (builder *JobRequirementCustomizedValueBuilder) Number(number string) *JobRequirementCustomizedValueBuilder { 15518 builder.number = number 15519 builder.numberFlag = true 15520 return builder 15521 } 15522 15523 func (builder *JobRequirementCustomizedValueBuilder) Build() *JobRequirementCustomizedValue { 15524 req := &JobRequirementCustomizedValue{} 15525 if builder.contentFlag { 15526 req.Content = &builder.content 15527 15528 } 15529 if builder.optionFlag { 15530 req.Option = builder.option 15531 } 15532 if builder.optionListFlag { 15533 req.OptionList = builder.optionList 15534 } 15535 if builder.timeRangeFlag { 15536 req.TimeRange = builder.timeRange 15537 } 15538 if builder.timeFlag { 15539 req.Time = &builder.time 15540 15541 } 15542 if builder.numberFlag { 15543 req.Number = &builder.number 15544 15545 } 15546 return req 15547 } 15548 15549 type JobRequirementDto struct { 15550 Id *string `json:"id,omitempty"` // 招聘需求 ID 15551 ShortCode *string `json:"short_code,omitempty"` // 招聘需求编号 15552 Name *string `json:"name,omitempty"` // 需求名称 15553 DisplayProgress *int `json:"display_progress,omitempty"` // 需求状态 15554 HeadCount *int `json:"head_count,omitempty"` // 需求人数 15555 RecruitmentType *IdNameObject `json:"recruitment_type,omitempty"` // 职位性质 15556 MaxLevel *IdNameObject `json:"max_level,omitempty"` // 最高职级 15557 MinLevel *IdNameObject `json:"min_level,omitempty"` // 最低职级 15558 Sequence *IdNameObject `json:"sequence,omitempty"` // 职位序列 15559 Category *int `json:"category,omitempty"` // 需求类型 15560 Department *IdNameObject `json:"department,omitempty"` // 需求部门 15561 RecruiterList []*IdNameObject `json:"recruiter_list,omitempty"` // 需求负责人 15562 DirectLeaderList []*IdNameObject `json:"direct_leader_list,omitempty"` // 直属上级 15563 StartTime *string `json:"start_time,omitempty"` // 开始日期,毫秒级时间戳 15564 Deadline *string `json:"deadline,omitempty"` // 预计完成日期,毫秒级时间戳 15565 Priority *int `json:"priority,omitempty"` // 招聘优先级 15566 RequiredDegree *int `json:"required_degree,omitempty"` // 学历要求 15567 MaxSalary *string `json:"max_salary,omitempty"` // 最高薪资 15568 MinSalary *string `json:"min_salary,omitempty"` // 最低薪资 15569 Address *IdNameObject `json:"address,omitempty"` // 工作地点 15570 Description *string `json:"description,omitempty"` // 需求描述 15571 CustomizedDataList []*JobRequirementCustomizedDataDto `json:"customized_data_list,omitempty"` // 自定义字段 15572 JobIdList []string `json:"job_id_list,omitempty"` // 关联职位 ID 15573 } 15574 15575 type JobRequirementDtoBuilder struct { 15576 id string // 招聘需求 ID 15577 idFlag bool 15578 shortCode string // 招聘需求编号 15579 shortCodeFlag bool 15580 name string // 需求名称 15581 nameFlag bool 15582 displayProgress int // 需求状态 15583 displayProgressFlag bool 15584 headCount int // 需求人数 15585 headCountFlag bool 15586 recruitmentType *IdNameObject // 职位性质 15587 recruitmentTypeFlag bool 15588 maxLevel *IdNameObject // 最高职级 15589 maxLevelFlag bool 15590 minLevel *IdNameObject // 最低职级 15591 minLevelFlag bool 15592 sequence *IdNameObject // 职位序列 15593 sequenceFlag bool 15594 category int // 需求类型 15595 categoryFlag bool 15596 department *IdNameObject // 需求部门 15597 departmentFlag bool 15598 recruiterList []*IdNameObject // 需求负责人 15599 recruiterListFlag bool 15600 directLeaderList []*IdNameObject // 直属上级 15601 directLeaderListFlag bool 15602 startTime string // 开始日期,毫秒级时间戳 15603 startTimeFlag bool 15604 deadline string // 预计完成日期,毫秒级时间戳 15605 deadlineFlag bool 15606 priority int // 招聘优先级 15607 priorityFlag bool 15608 requiredDegree int // 学历要求 15609 requiredDegreeFlag bool 15610 maxSalary string // 最高薪资 15611 maxSalaryFlag bool 15612 minSalary string // 最低薪资 15613 minSalaryFlag bool 15614 address *IdNameObject // 工作地点 15615 addressFlag bool 15616 description string // 需求描述 15617 descriptionFlag bool 15618 customizedDataList []*JobRequirementCustomizedDataDto // 自定义字段 15619 customizedDataListFlag bool 15620 jobIdList []string // 关联职位 ID 15621 jobIdListFlag bool 15622 } 15623 15624 func NewJobRequirementDtoBuilder() *JobRequirementDtoBuilder { 15625 builder := &JobRequirementDtoBuilder{} 15626 return builder 15627 } 15628 15629 // 招聘需求 ID 15630 // 15631 // 示例值:6949805467799537964 15632 func (builder *JobRequirementDtoBuilder) Id(id string) *JobRequirementDtoBuilder { 15633 builder.id = id 15634 builder.idFlag = true 15635 return builder 15636 } 15637 15638 // 招聘需求编号 15639 // 15640 // 示例值:xx1 15641 func (builder *JobRequirementDtoBuilder) ShortCode(shortCode string) *JobRequirementDtoBuilder { 15642 builder.shortCode = shortCode 15643 builder.shortCodeFlag = true 15644 return builder 15645 } 15646 15647 // 需求名称 15648 // 15649 // 示例值:test 15650 func (builder *JobRequirementDtoBuilder) Name(name string) *JobRequirementDtoBuilder { 15651 builder.name = name 15652 builder.nameFlag = true 15653 return builder 15654 } 15655 15656 // 需求状态 15657 // 15658 // 示例值:1 15659 func (builder *JobRequirementDtoBuilder) DisplayProgress(displayProgress int) *JobRequirementDtoBuilder { 15660 builder.displayProgress = displayProgress 15661 builder.displayProgressFlag = true 15662 return builder 15663 } 15664 15665 // 需求人数 15666 // 15667 // 示例值:11 15668 func (builder *JobRequirementDtoBuilder) HeadCount(headCount int) *JobRequirementDtoBuilder { 15669 builder.headCount = headCount 15670 builder.headCountFlag = true 15671 return builder 15672 } 15673 15674 // 职位性质 15675 // 15676 // 示例值: 15677 func (builder *JobRequirementDtoBuilder) RecruitmentType(recruitmentType *IdNameObject) *JobRequirementDtoBuilder { 15678 builder.recruitmentType = recruitmentType 15679 builder.recruitmentTypeFlag = true 15680 return builder 15681 } 15682 15683 // 最高职级 15684 // 15685 // 示例值: 15686 func (builder *JobRequirementDtoBuilder) MaxLevel(maxLevel *IdNameObject) *JobRequirementDtoBuilder { 15687 builder.maxLevel = maxLevel 15688 builder.maxLevelFlag = true 15689 return builder 15690 } 15691 15692 // 最低职级 15693 // 15694 // 示例值: 15695 func (builder *JobRequirementDtoBuilder) MinLevel(minLevel *IdNameObject) *JobRequirementDtoBuilder { 15696 builder.minLevel = minLevel 15697 builder.minLevelFlag = true 15698 return builder 15699 } 15700 15701 // 职位序列 15702 // 15703 // 示例值: 15704 func (builder *JobRequirementDtoBuilder) Sequence(sequence *IdNameObject) *JobRequirementDtoBuilder { 15705 builder.sequence = sequence 15706 builder.sequenceFlag = true 15707 return builder 15708 } 15709 15710 // 需求类型 15711 // 15712 // 示例值:1 15713 func (builder *JobRequirementDtoBuilder) Category(category int) *JobRequirementDtoBuilder { 15714 builder.category = category 15715 builder.categoryFlag = true 15716 return builder 15717 } 15718 15719 // 需求部门 15720 // 15721 // 示例值: 15722 func (builder *JobRequirementDtoBuilder) Department(department *IdNameObject) *JobRequirementDtoBuilder { 15723 builder.department = department 15724 builder.departmentFlag = true 15725 return builder 15726 } 15727 15728 // 需求负责人 15729 // 15730 // 示例值: 15731 func (builder *JobRequirementDtoBuilder) RecruiterList(recruiterList []*IdNameObject) *JobRequirementDtoBuilder { 15732 builder.recruiterList = recruiterList 15733 builder.recruiterListFlag = true 15734 return builder 15735 } 15736 15737 // 直属上级 15738 // 15739 // 示例值: 15740 func (builder *JobRequirementDtoBuilder) DirectLeaderList(directLeaderList []*IdNameObject) *JobRequirementDtoBuilder { 15741 builder.directLeaderList = directLeaderList 15742 builder.directLeaderListFlag = true 15743 return builder 15744 } 15745 15746 // 开始日期,毫秒级时间戳 15747 // 15748 // 示例值:1625729379000 15749 func (builder *JobRequirementDtoBuilder) StartTime(startTime string) *JobRequirementDtoBuilder { 15750 builder.startTime = startTime 15751 builder.startTimeFlag = true 15752 return builder 15753 } 15754 15755 // 预计完成日期,毫秒级时间戳 15756 // 15757 // 示例值:1625729379000 15758 func (builder *JobRequirementDtoBuilder) Deadline(deadline string) *JobRequirementDtoBuilder { 15759 builder.deadline = deadline 15760 builder.deadlineFlag = true 15761 return builder 15762 } 15763 15764 // 招聘优先级 15765 // 15766 // 示例值:1 15767 func (builder *JobRequirementDtoBuilder) Priority(priority int) *JobRequirementDtoBuilder { 15768 builder.priority = priority 15769 builder.priorityFlag = true 15770 return builder 15771 } 15772 15773 // 学历要求 15774 // 15775 // 示例值:1 15776 func (builder *JobRequirementDtoBuilder) RequiredDegree(requiredDegree int) *JobRequirementDtoBuilder { 15777 builder.requiredDegree = requiredDegree 15778 builder.requiredDegreeFlag = true 15779 return builder 15780 } 15781 15782 // 最高薪资 15783 // 15784 // 示例值:123 15785 func (builder *JobRequirementDtoBuilder) MaxSalary(maxSalary string) *JobRequirementDtoBuilder { 15786 builder.maxSalary = maxSalary 15787 builder.maxSalaryFlag = true 15788 return builder 15789 } 15790 15791 // 最低薪资 15792 // 15793 // 示例值:11 15794 func (builder *JobRequirementDtoBuilder) MinSalary(minSalary string) *JobRequirementDtoBuilder { 15795 builder.minSalary = minSalary 15796 builder.minSalaryFlag = true 15797 return builder 15798 } 15799 15800 // 工作地点 15801 // 15802 // 示例值: 15803 func (builder *JobRequirementDtoBuilder) Address(address *IdNameObject) *JobRequirementDtoBuilder { 15804 builder.address = address 15805 builder.addressFlag = true 15806 return builder 15807 } 15808 15809 // 需求描述 15810 // 15811 // 示例值:11 15812 func (builder *JobRequirementDtoBuilder) Description(description string) *JobRequirementDtoBuilder { 15813 builder.description = description 15814 builder.descriptionFlag = true 15815 return builder 15816 } 15817 15818 // 自定义字段 15819 // 15820 // 示例值: 15821 func (builder *JobRequirementDtoBuilder) CustomizedDataList(customizedDataList []*JobRequirementCustomizedDataDto) *JobRequirementDtoBuilder { 15822 builder.customizedDataList = customizedDataList 15823 builder.customizedDataListFlag = true 15824 return builder 15825 } 15826 15827 // 关联职位 ID 15828 // 15829 // 示例值: 15830 func (builder *JobRequirementDtoBuilder) JobIdList(jobIdList []string) *JobRequirementDtoBuilder { 15831 builder.jobIdList = jobIdList 15832 builder.jobIdListFlag = true 15833 return builder 15834 } 15835 15836 func (builder *JobRequirementDtoBuilder) Build() *JobRequirementDto { 15837 req := &JobRequirementDto{} 15838 if builder.idFlag { 15839 req.Id = &builder.id 15840 15841 } 15842 if builder.shortCodeFlag { 15843 req.ShortCode = &builder.shortCode 15844 15845 } 15846 if builder.nameFlag { 15847 req.Name = &builder.name 15848 15849 } 15850 if builder.displayProgressFlag { 15851 req.DisplayProgress = &builder.displayProgress 15852 15853 } 15854 if builder.headCountFlag { 15855 req.HeadCount = &builder.headCount 15856 15857 } 15858 if builder.recruitmentTypeFlag { 15859 req.RecruitmentType = builder.recruitmentType 15860 } 15861 if builder.maxLevelFlag { 15862 req.MaxLevel = builder.maxLevel 15863 } 15864 if builder.minLevelFlag { 15865 req.MinLevel = builder.minLevel 15866 } 15867 if builder.sequenceFlag { 15868 req.Sequence = builder.sequence 15869 } 15870 if builder.categoryFlag { 15871 req.Category = &builder.category 15872 15873 } 15874 if builder.departmentFlag { 15875 req.Department = builder.department 15876 } 15877 if builder.recruiterListFlag { 15878 req.RecruiterList = builder.recruiterList 15879 } 15880 if builder.directLeaderListFlag { 15881 req.DirectLeaderList = builder.directLeaderList 15882 } 15883 if builder.startTimeFlag { 15884 req.StartTime = &builder.startTime 15885 15886 } 15887 if builder.deadlineFlag { 15888 req.Deadline = &builder.deadline 15889 15890 } 15891 if builder.priorityFlag { 15892 req.Priority = &builder.priority 15893 15894 } 15895 if builder.requiredDegreeFlag { 15896 req.RequiredDegree = &builder.requiredDegree 15897 15898 } 15899 if builder.maxSalaryFlag { 15900 req.MaxSalary = &builder.maxSalary 15901 15902 } 15903 if builder.minSalaryFlag { 15904 req.MinSalary = &builder.minSalary 15905 15906 } 15907 if builder.addressFlag { 15908 req.Address = builder.address 15909 } 15910 if builder.descriptionFlag { 15911 req.Description = &builder.description 15912 15913 } 15914 if builder.customizedDataListFlag { 15915 req.CustomizedDataList = builder.customizedDataList 15916 } 15917 if builder.jobIdListFlag { 15918 req.JobIdList = builder.jobIdList 15919 } 15920 return req 15921 } 15922 15923 type JobRequirementSchema struct { 15924 Id *string `json:"id,omitempty"` // 模板 ID 15925 Name *I18n `json:"name,omitempty"` // 国际化模板名称 15926 ObjectList []*CommonSchema `json:"object_list,omitempty"` // 模板字段 15927 } 15928 15929 type JobRequirementSchemaBuilder struct { 15930 id string // 模板 ID 15931 idFlag bool 15932 name *I18n // 国际化模板名称 15933 nameFlag bool 15934 objectList []*CommonSchema // 模板字段 15935 objectListFlag bool 15936 } 15937 15938 func NewJobRequirementSchemaBuilder() *JobRequirementSchemaBuilder { 15939 builder := &JobRequirementSchemaBuilder{} 15940 return builder 15941 } 15942 15943 // 模板 ID 15944 // 15945 // 示例值:6949805467799537964 15946 func (builder *JobRequirementSchemaBuilder) Id(id string) *JobRequirementSchemaBuilder { 15947 builder.id = id 15948 builder.idFlag = true 15949 return builder 15950 } 15951 15952 // 国际化模板名称 15953 // 15954 // 示例值: 15955 func (builder *JobRequirementSchemaBuilder) Name(name *I18n) *JobRequirementSchemaBuilder { 15956 builder.name = name 15957 builder.nameFlag = true 15958 return builder 15959 } 15960 15961 // 模板字段 15962 // 15963 // 示例值: 15964 func (builder *JobRequirementSchemaBuilder) ObjectList(objectList []*CommonSchema) *JobRequirementSchemaBuilder { 15965 builder.objectList = objectList 15966 builder.objectListFlag = true 15967 return builder 15968 } 15969 15970 func (builder *JobRequirementSchemaBuilder) Build() *JobRequirementSchema { 15971 req := &JobRequirementSchema{} 15972 if builder.idFlag { 15973 req.Id = &builder.id 15974 15975 } 15976 if builder.nameFlag { 15977 req.Name = builder.name 15978 } 15979 if builder.objectListFlag { 15980 req.ObjectList = builder.objectList 15981 } 15982 return req 15983 } 15984 15985 type JobSchema struct { 15986 Id *string `json:"id,omitempty"` // 职位模板 ID 15987 Name *I18n `json:"name,omitempty"` // 职位模板名称 15988 ScenarioType *int `json:"scenario_type,omitempty"` // 职位模板类型 15989 ObjectList []*CommonSchema `json:"object_list,omitempty"` // 模块列表 15990 } 15991 15992 type JobSchemaBuilder struct { 15993 id string // 职位模板 ID 15994 idFlag bool 15995 name *I18n // 职位模板名称 15996 nameFlag bool 15997 scenarioType int // 职位模板类型 15998 scenarioTypeFlag bool 15999 objectList []*CommonSchema // 模块列表 16000 objectListFlag bool 16001 } 16002 16003 func NewJobSchemaBuilder() *JobSchemaBuilder { 16004 builder := &JobSchemaBuilder{} 16005 return builder 16006 } 16007 16008 // 职位模板 ID 16009 // 16010 // 示例值:6949805467799537964 16011 func (builder *JobSchemaBuilder) Id(id string) *JobSchemaBuilder { 16012 builder.id = id 16013 builder.idFlag = true 16014 return builder 16015 } 16016 16017 // 职位模板名称 16018 // 16019 // 示例值: 16020 func (builder *JobSchemaBuilder) Name(name *I18n) *JobSchemaBuilder { 16021 builder.name = name 16022 builder.nameFlag = true 16023 return builder 16024 } 16025 16026 // 职位模板类型 16027 // 16028 // 示例值:1 16029 func (builder *JobSchemaBuilder) ScenarioType(scenarioType int) *JobSchemaBuilder { 16030 builder.scenarioType = scenarioType 16031 builder.scenarioTypeFlag = true 16032 return builder 16033 } 16034 16035 // 模块列表 16036 // 16037 // 示例值: 16038 func (builder *JobSchemaBuilder) ObjectList(objectList []*CommonSchema) *JobSchemaBuilder { 16039 builder.objectList = objectList 16040 builder.objectListFlag = true 16041 return builder 16042 } 16043 16044 func (builder *JobSchemaBuilder) Build() *JobSchema { 16045 req := &JobSchema{} 16046 if builder.idFlag { 16047 req.Id = &builder.id 16048 16049 } 16050 if builder.nameFlag { 16051 req.Name = builder.name 16052 } 16053 if builder.scenarioTypeFlag { 16054 req.ScenarioType = &builder.scenarioType 16055 16056 } 16057 if builder.objectListFlag { 16058 req.ObjectList = builder.objectList 16059 } 16060 return req 16061 } 16062 16063 type JobType struct { 16064 Id *string `json:"id,omitempty"` // 职位类别 ID 16065 ZhName *string `json:"zh_name,omitempty"` // 职位类别中文名称 16066 EnName *string `json:"en_name,omitempty"` // 职位类别英文名称 16067 } 16068 16069 type JobTypeBuilder struct { 16070 id string // 职位类别 ID 16071 idFlag bool 16072 zhName string // 职位类别中文名称 16073 zhNameFlag bool 16074 enName string // 职位类别英文名称 16075 enNameFlag bool 16076 } 16077 16078 func NewJobTypeBuilder() *JobTypeBuilder { 16079 builder := &JobTypeBuilder{} 16080 return builder 16081 } 16082 16083 // 职位类别 ID 16084 // 16085 // 示例值:6890840777044265230 16086 func (builder *JobTypeBuilder) Id(id string) *JobTypeBuilder { 16087 builder.id = id 16088 builder.idFlag = true 16089 return builder 16090 } 16091 16092 // 职位类别中文名称 16093 // 16094 // 示例值:金融 16095 func (builder *JobTypeBuilder) ZhName(zhName string) *JobTypeBuilder { 16096 builder.zhName = zhName 16097 builder.zhNameFlag = true 16098 return builder 16099 } 16100 16101 // 职位类别英文名称 16102 // 16103 // 示例值:Finance 16104 func (builder *JobTypeBuilder) EnName(enName string) *JobTypeBuilder { 16105 builder.enName = enName 16106 builder.enNameFlag = true 16107 return builder 16108 } 16109 16110 func (builder *JobTypeBuilder) Build() *JobType { 16111 req := &JobType{} 16112 if builder.idFlag { 16113 req.Id = &builder.id 16114 16115 } 16116 if builder.zhNameFlag { 16117 req.ZhName = &builder.zhName 16118 16119 } 16120 if builder.enNameFlag { 16121 req.EnName = &builder.enName 16122 16123 } 16124 return req 16125 } 16126 16127 type LanguageInfo struct { 16128 Language *int `json:"language,omitempty"` // 语言 16129 Proficiency *int `json:"proficiency,omitempty"` // 熟练程度 16130 } 16131 16132 type LanguageInfoBuilder struct { 16133 language int // 语言 16134 languageFlag bool 16135 proficiency int // 熟练程度 16136 proficiencyFlag bool 16137 } 16138 16139 func NewLanguageInfoBuilder() *LanguageInfoBuilder { 16140 builder := &LanguageInfoBuilder{} 16141 return builder 16142 } 16143 16144 // 语言 16145 // 16146 // 示例值: 16147 func (builder *LanguageInfoBuilder) Language(language int) *LanguageInfoBuilder { 16148 builder.language = language 16149 builder.languageFlag = true 16150 return builder 16151 } 16152 16153 // 熟练程度 16154 // 16155 // 示例值: 16156 func (builder *LanguageInfoBuilder) Proficiency(proficiency int) *LanguageInfoBuilder { 16157 builder.proficiency = proficiency 16158 builder.proficiencyFlag = true 16159 return builder 16160 } 16161 16162 func (builder *LanguageInfoBuilder) Build() *LanguageInfo { 16163 req := &LanguageInfo{} 16164 if builder.languageFlag { 16165 req.Language = &builder.language 16166 16167 } 16168 if builder.proficiencyFlag { 16169 req.Proficiency = &builder.proficiency 16170 16171 } 16172 return req 16173 } 16174 16175 type Level struct { 16176 Id *string `json:"id,omitempty"` // ID 16177 Name *string `json:"name,omitempty"` // 名字 16178 EnName *string `json:"en_name,omitempty"` // 英文名 16179 } 16180 16181 type LevelBuilder struct { 16182 id string // ID 16183 idFlag bool 16184 name string // 名字 16185 nameFlag bool 16186 enName string // 英文名 16187 enNameFlag bool 16188 } 16189 16190 func NewLevelBuilder() *LevelBuilder { 16191 builder := &LevelBuilder{} 16192 return builder 16193 } 16194 16195 // ID 16196 // 16197 // 示例值: 16198 func (builder *LevelBuilder) Id(id string) *LevelBuilder { 16199 builder.id = id 16200 builder.idFlag = true 16201 return builder 16202 } 16203 16204 // 名字 16205 // 16206 // 示例值: 16207 func (builder *LevelBuilder) Name(name string) *LevelBuilder { 16208 builder.name = name 16209 builder.nameFlag = true 16210 return builder 16211 } 16212 16213 // 英文名 16214 // 16215 // 示例值: 16216 func (builder *LevelBuilder) EnName(enName string) *LevelBuilder { 16217 builder.enName = enName 16218 builder.enNameFlag = true 16219 return builder 16220 } 16221 16222 func (builder *LevelBuilder) Build() *Level { 16223 req := &Level{} 16224 if builder.idFlag { 16225 req.Id = &builder.id 16226 16227 } 16228 if builder.nameFlag { 16229 req.Name = &builder.name 16230 16231 } 16232 if builder.enNameFlag { 16233 req.EnName = &builder.enName 16234 16235 } 16236 return req 16237 } 16238 16239 type Location struct { 16240 Id *string `json:"id,omitempty"` // 地点 ID 16241 Name *I18n `json:"name,omitempty"` // 地点名称 16242 District *CodeNameObject `json:"district,omitempty"` // 区信息 16243 City *CodeNameObject `json:"city,omitempty"` // 市信息 16244 State *CodeNameObject `json:"state,omitempty"` // 省份/州信息 16245 Country *CodeNameObject `json:"country,omitempty"` // 国家信息 16246 ActiveStatus *int `json:"active_status,omitempty"` // 启用状态 16247 } 16248 16249 type LocationBuilder struct { 16250 id string // 地点 ID 16251 idFlag bool 16252 name *I18n // 地点名称 16253 nameFlag bool 16254 district *CodeNameObject // 区信息 16255 districtFlag bool 16256 city *CodeNameObject // 市信息 16257 cityFlag bool 16258 state *CodeNameObject // 省份/州信息 16259 stateFlag bool 16260 country *CodeNameObject // 国家信息 16261 countryFlag bool 16262 activeStatus int // 启用状态 16263 activeStatusFlag bool 16264 } 16265 16266 func NewLocationBuilder() *LocationBuilder { 16267 builder := &LocationBuilder{} 16268 return builder 16269 } 16270 16271 // 地点 ID 16272 // 16273 // 示例值:1213213123123 16274 func (builder *LocationBuilder) Id(id string) *LocationBuilder { 16275 builder.id = id 16276 builder.idFlag = true 16277 return builder 16278 } 16279 16280 // 地点名称 16281 // 16282 // 示例值: 16283 func (builder *LocationBuilder) Name(name *I18n) *LocationBuilder { 16284 builder.name = name 16285 builder.nameFlag = true 16286 return builder 16287 } 16288 16289 // 区信息 16290 // 16291 // 示例值: 16292 func (builder *LocationBuilder) District(district *CodeNameObject) *LocationBuilder { 16293 builder.district = district 16294 builder.districtFlag = true 16295 return builder 16296 } 16297 16298 // 市信息 16299 // 16300 // 示例值: 16301 func (builder *LocationBuilder) City(city *CodeNameObject) *LocationBuilder { 16302 builder.city = city 16303 builder.cityFlag = true 16304 return builder 16305 } 16306 16307 // 省份/州信息 16308 // 16309 // 示例值: 16310 func (builder *LocationBuilder) State(state *CodeNameObject) *LocationBuilder { 16311 builder.state = state 16312 builder.stateFlag = true 16313 return builder 16314 } 16315 16316 // 国家信息 16317 // 16318 // 示例值: 16319 func (builder *LocationBuilder) Country(country *CodeNameObject) *LocationBuilder { 16320 builder.country = country 16321 builder.countryFlag = true 16322 return builder 16323 } 16324 16325 // 启用状态 16326 // 16327 // 示例值:1 16328 func (builder *LocationBuilder) ActiveStatus(activeStatus int) *LocationBuilder { 16329 builder.activeStatus = activeStatus 16330 builder.activeStatusFlag = true 16331 return builder 16332 } 16333 16334 func (builder *LocationBuilder) Build() *Location { 16335 req := &Location{} 16336 if builder.idFlag { 16337 req.Id = &builder.id 16338 16339 } 16340 if builder.nameFlag { 16341 req.Name = builder.name 16342 } 16343 if builder.districtFlag { 16344 req.District = builder.district 16345 } 16346 if builder.cityFlag { 16347 req.City = builder.city 16348 } 16349 if builder.stateFlag { 16350 req.State = builder.state 16351 } 16352 if builder.countryFlag { 16353 req.Country = builder.country 16354 } 16355 if builder.activeStatusFlag { 16356 req.ActiveStatus = &builder.activeStatus 16357 16358 } 16359 return req 16360 } 16361 16362 type LocationBaseInfo struct { 16363 Code *string `json:"code,omitempty"` // location 地址码 16364 Name *string `json:"name,omitempty"` // location 中文名字 16365 EnName *string `json:"en_name,omitempty"` // location 英文名字 16366 LocationType *int `json:"location_type,omitempty"` // location 的类型 16367 I18nName *string `json:"i18n_name,omitempty"` // location 国际名字 16368 PyName *string `json:"py_name,omitempty"` // location 拼音名字 16369 } 16370 16371 type LocationBaseInfoBuilder struct { 16372 code string // location 地址码 16373 codeFlag bool 16374 name string // location 中文名字 16375 nameFlag bool 16376 enName string // location 英文名字 16377 enNameFlag bool 16378 locationType int // location 的类型 16379 locationTypeFlag bool 16380 i18nName string // location 国际名字 16381 i18nNameFlag bool 16382 pyName string // location 拼音名字 16383 pyNameFlag bool 16384 } 16385 16386 func NewLocationBaseInfoBuilder() *LocationBaseInfoBuilder { 16387 builder := &LocationBaseInfoBuilder{} 16388 return builder 16389 } 16390 16391 // location 地址码 16392 // 16393 // 示例值: 16394 func (builder *LocationBaseInfoBuilder) Code(code string) *LocationBaseInfoBuilder { 16395 builder.code = code 16396 builder.codeFlag = true 16397 return builder 16398 } 16399 16400 // location 中文名字 16401 // 16402 // 示例值: 16403 func (builder *LocationBaseInfoBuilder) Name(name string) *LocationBaseInfoBuilder { 16404 builder.name = name 16405 builder.nameFlag = true 16406 return builder 16407 } 16408 16409 // location 英文名字 16410 // 16411 // 示例值: 16412 func (builder *LocationBaseInfoBuilder) EnName(enName string) *LocationBaseInfoBuilder { 16413 builder.enName = enName 16414 builder.enNameFlag = true 16415 return builder 16416 } 16417 16418 // location 的类型 16419 // 16420 // 示例值: 16421 func (builder *LocationBaseInfoBuilder) LocationType(locationType int) *LocationBaseInfoBuilder { 16422 builder.locationType = locationType 16423 builder.locationTypeFlag = true 16424 return builder 16425 } 16426 16427 // location 国际名字 16428 // 16429 // 示例值: 16430 func (builder *LocationBaseInfoBuilder) I18nName(i18nName string) *LocationBaseInfoBuilder { 16431 builder.i18nName = i18nName 16432 builder.i18nNameFlag = true 16433 return builder 16434 } 16435 16436 // location 拼音名字 16437 // 16438 // 示例值: 16439 func (builder *LocationBaseInfoBuilder) PyName(pyName string) *LocationBaseInfoBuilder { 16440 builder.pyName = pyName 16441 builder.pyNameFlag = true 16442 return builder 16443 } 16444 16445 func (builder *LocationBaseInfoBuilder) Build() *LocationBaseInfo { 16446 req := &LocationBaseInfo{} 16447 if builder.codeFlag { 16448 req.Code = &builder.code 16449 16450 } 16451 if builder.nameFlag { 16452 req.Name = &builder.name 16453 16454 } 16455 if builder.enNameFlag { 16456 req.EnName = &builder.enName 16457 16458 } 16459 if builder.locationTypeFlag { 16460 req.LocationType = &builder.locationType 16461 16462 } 16463 if builder.i18nNameFlag { 16464 req.I18nName = &builder.i18nName 16465 16466 } 16467 if builder.pyNameFlag { 16468 req.PyName = &builder.pyName 16469 16470 } 16471 return req 16472 } 16473 16474 type Nationality struct { 16475 NationalityCode *string `json:"nationality_code,omitempty"` // 国家编码 16476 Name *string `json:"name,omitempty"` // 名字 16477 EnName *string `json:"en_name,omitempty"` // 英文名 16478 } 16479 16480 type NationalityBuilder struct { 16481 nationalityCode string // 国家编码 16482 nationalityCodeFlag bool 16483 name string // 名字 16484 nameFlag bool 16485 enName string // 英文名 16486 enNameFlag bool 16487 } 16488 16489 func NewNationalityBuilder() *NationalityBuilder { 16490 builder := &NationalityBuilder{} 16491 return builder 16492 } 16493 16494 // 国家编码 16495 // 16496 // 示例值: 16497 func (builder *NationalityBuilder) NationalityCode(nationalityCode string) *NationalityBuilder { 16498 builder.nationalityCode = nationalityCode 16499 builder.nationalityCodeFlag = true 16500 return builder 16501 } 16502 16503 // 名字 16504 // 16505 // 示例值: 16506 func (builder *NationalityBuilder) Name(name string) *NationalityBuilder { 16507 builder.name = name 16508 builder.nameFlag = true 16509 return builder 16510 } 16511 16512 // 英文名 16513 // 16514 // 示例值: 16515 func (builder *NationalityBuilder) EnName(enName string) *NationalityBuilder { 16516 builder.enName = enName 16517 builder.enNameFlag = true 16518 return builder 16519 } 16520 16521 func (builder *NationalityBuilder) Build() *Nationality { 16522 req := &Nationality{} 16523 if builder.nationalityCodeFlag { 16524 req.NationalityCode = &builder.nationalityCode 16525 16526 } 16527 if builder.nameFlag { 16528 req.Name = &builder.name 16529 16530 } 16531 if builder.enNameFlag { 16532 req.EnName = &builder.enName 16533 16534 } 16535 return req 16536 } 16537 16538 type Note struct { 16539 Id *string `json:"id,omitempty"` // 备注ID 16540 TalentId *string `json:"talent_id,omitempty"` // 人才ID 16541 ApplicationId *string `json:"application_id,omitempty"` // 投递ID 16542 IsPrivate *bool `json:"is_private,omitempty"` // 是否私密 16543 CreateTime *int `json:"create_time,omitempty"` // 创建时间 16544 ModifyTime *int `json:"modify_time,omitempty"` // 更新时间 16545 CreatorId *string `json:"creator_id,omitempty"` // 创建人ID 16546 Content *string `json:"content,omitempty"` // 内容 16547 Privacy *int `json:"privacy,omitempty"` // 备注私密属性(默认为公开) 16548 } 16549 16550 type NoteBuilder struct { 16551 id string // 备注ID 16552 idFlag bool 16553 talentId string // 人才ID 16554 talentIdFlag bool 16555 applicationId string // 投递ID 16556 applicationIdFlag bool 16557 isPrivate bool // 是否私密 16558 isPrivateFlag bool 16559 createTime int // 创建时间 16560 createTimeFlag bool 16561 modifyTime int // 更新时间 16562 modifyTimeFlag bool 16563 creatorId string // 创建人ID 16564 creatorIdFlag bool 16565 content string // 内容 16566 contentFlag bool 16567 privacy int // 备注私密属性(默认为公开) 16568 privacyFlag bool 16569 } 16570 16571 func NewNoteBuilder() *NoteBuilder { 16572 builder := &NoteBuilder{} 16573 return builder 16574 } 16575 16576 // 备注ID 16577 // 16578 // 示例值:6949805467799537964 16579 func (builder *NoteBuilder) Id(id string) *NoteBuilder { 16580 builder.id = id 16581 builder.idFlag = true 16582 return builder 16583 } 16584 16585 // 人才ID 16586 // 16587 // 示例值:6916472453069883661 16588 func (builder *NoteBuilder) TalentId(talentId string) *NoteBuilder { 16589 builder.talentId = talentId 16590 builder.talentIdFlag = true 16591 return builder 16592 } 16593 16594 // 投递ID 16595 // 16596 // 示例值:6891565253964859661 16597 func (builder *NoteBuilder) ApplicationId(applicationId string) *NoteBuilder { 16598 builder.applicationId = applicationId 16599 builder.applicationIdFlag = true 16600 return builder 16601 } 16602 16603 // 是否私密 16604 // 16605 // 示例值:false 16606 func (builder *NoteBuilder) IsPrivate(isPrivate bool) *NoteBuilder { 16607 builder.isPrivate = isPrivate 16608 builder.isPrivateFlag = true 16609 return builder 16610 } 16611 16612 // 创建时间 16613 // 16614 // 示例值:1618209327096 16615 func (builder *NoteBuilder) CreateTime(createTime int) *NoteBuilder { 16616 builder.createTime = createTime 16617 builder.createTimeFlag = true 16618 return builder 16619 } 16620 16621 // 更新时间 16622 // 16623 // 示例值:1618209327096 16624 func (builder *NoteBuilder) ModifyTime(modifyTime int) *NoteBuilder { 16625 builder.modifyTime = modifyTime 16626 builder.modifyTimeFlag = true 16627 return builder 16628 } 16629 16630 // 创建人ID 16631 // 16632 // 示例值:ou_f476cb099ac9227c9bae09ce46112579 16633 func (builder *NoteBuilder) CreatorId(creatorId string) *NoteBuilder { 16634 builder.creatorId = creatorId 16635 builder.creatorIdFlag = true 16636 return builder 16637 } 16638 16639 // 内容 16640 // 16641 // 示例值:测试 16642 func (builder *NoteBuilder) Content(content string) *NoteBuilder { 16643 builder.content = content 16644 builder.contentFlag = true 16645 return builder 16646 } 16647 16648 // 备注私密属性(默认为公开) 16649 // 16650 // 示例值:1 16651 func (builder *NoteBuilder) Privacy(privacy int) *NoteBuilder { 16652 builder.privacy = privacy 16653 builder.privacyFlag = true 16654 return builder 16655 } 16656 16657 func (builder *NoteBuilder) Build() *Note { 16658 req := &Note{} 16659 if builder.idFlag { 16660 req.Id = &builder.id 16661 16662 } 16663 if builder.talentIdFlag { 16664 req.TalentId = &builder.talentId 16665 16666 } 16667 if builder.applicationIdFlag { 16668 req.ApplicationId = &builder.applicationId 16669 16670 } 16671 if builder.isPrivateFlag { 16672 req.IsPrivate = &builder.isPrivate 16673 16674 } 16675 if builder.createTimeFlag { 16676 req.CreateTime = &builder.createTime 16677 16678 } 16679 if builder.modifyTimeFlag { 16680 req.ModifyTime = &builder.modifyTime 16681 16682 } 16683 if builder.creatorIdFlag { 16684 req.CreatorId = &builder.creatorId 16685 16686 } 16687 if builder.contentFlag { 16688 req.Content = &builder.content 16689 16690 } 16691 if builder.privacyFlag { 16692 req.Privacy = &builder.privacy 16693 16694 } 16695 return req 16696 } 16697 16698 type Offer struct { 16699 Id *string `json:"id,omitempty"` // Offer ID 16700 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 16701 BasicInfo *ApplicationOfferBasicInfo `json:"basic_info,omitempty"` // 基础信息 16702 SalaryPlan *ApplicationOfferSalaryPlan `json:"salary_plan,omitempty"` // 薪酬计划 16703 SchemaId *string `json:"schema_id,omitempty"` // 当前 Offer 使用的 Schema 16704 OfferStatus *int `json:"offer_status,omitempty"` // Offer 状态 16705 JobInfo *OfferJobInfo `json:"job_info,omitempty"` // 职位信息 16706 } 16707 16708 type OfferBuilder struct { 16709 id string // Offer ID 16710 idFlag bool 16711 applicationId string // 投递 ID 16712 applicationIdFlag bool 16713 basicInfo *ApplicationOfferBasicInfo // 基础信息 16714 basicInfoFlag bool 16715 salaryPlan *ApplicationOfferSalaryPlan // 薪酬计划 16716 salaryPlanFlag bool 16717 schemaId string // 当前 Offer 使用的 Schema 16718 schemaIdFlag bool 16719 offerStatus int // Offer 状态 16720 offerStatusFlag bool 16721 jobInfo *OfferJobInfo // 职位信息 16722 jobInfoFlag bool 16723 } 16724 16725 func NewOfferBuilder() *OfferBuilder { 16726 builder := &OfferBuilder{} 16727 return builder 16728 } 16729 16730 // Offer ID 16731 // 16732 // 示例值:1231231231231231 16733 func (builder *OfferBuilder) Id(id string) *OfferBuilder { 16734 builder.id = id 16735 builder.idFlag = true 16736 return builder 16737 } 16738 16739 // 投递 ID 16740 // 16741 // 示例值:1231231232312312 16742 func (builder *OfferBuilder) ApplicationId(applicationId string) *OfferBuilder { 16743 builder.applicationId = applicationId 16744 builder.applicationIdFlag = true 16745 return builder 16746 } 16747 16748 // 基础信息 16749 // 16750 // 示例值: 16751 func (builder *OfferBuilder) BasicInfo(basicInfo *ApplicationOfferBasicInfo) *OfferBuilder { 16752 builder.basicInfo = basicInfo 16753 builder.basicInfoFlag = true 16754 return builder 16755 } 16756 16757 // 薪酬计划 16758 // 16759 // 示例值: 16760 func (builder *OfferBuilder) SalaryPlan(salaryPlan *ApplicationOfferSalaryPlan) *OfferBuilder { 16761 builder.salaryPlan = salaryPlan 16762 builder.salaryPlanFlag = true 16763 return builder 16764 } 16765 16766 // 当前 Offer 使用的 Schema 16767 // 16768 // 示例值:6963562624677398823 16769 func (builder *OfferBuilder) SchemaId(schemaId string) *OfferBuilder { 16770 builder.schemaId = schemaId 16771 builder.schemaIdFlag = true 16772 return builder 16773 } 16774 16775 // Offer 状态 16776 // 16777 // 示例值:0 16778 func (builder *OfferBuilder) OfferStatus(offerStatus int) *OfferBuilder { 16779 builder.offerStatus = offerStatus 16780 builder.offerStatusFlag = true 16781 return builder 16782 } 16783 16784 // 职位信息 16785 // 16786 // 示例值: 16787 func (builder *OfferBuilder) JobInfo(jobInfo *OfferJobInfo) *OfferBuilder { 16788 builder.jobInfo = jobInfo 16789 builder.jobInfoFlag = true 16790 return builder 16791 } 16792 16793 func (builder *OfferBuilder) Build() *Offer { 16794 req := &Offer{} 16795 if builder.idFlag { 16796 req.Id = &builder.id 16797 16798 } 16799 if builder.applicationIdFlag { 16800 req.ApplicationId = &builder.applicationId 16801 16802 } 16803 if builder.basicInfoFlag { 16804 req.BasicInfo = builder.basicInfo 16805 } 16806 if builder.salaryPlanFlag { 16807 req.SalaryPlan = builder.salaryPlan 16808 } 16809 if builder.schemaIdFlag { 16810 req.SchemaId = &builder.schemaId 16811 16812 } 16813 if builder.offerStatusFlag { 16814 req.OfferStatus = &builder.offerStatus 16815 16816 } 16817 if builder.jobInfoFlag { 16818 req.JobInfo = builder.jobInfo 16819 } 16820 return req 16821 } 16822 16823 type OfferApplyForm struct { 16824 Id *string `json:"id,omitempty"` // ID 16825 Name *I18n `json:"name,omitempty"` // 名称 16826 CreateTime *string `json:"create_time,omitempty"` // 创建时间 16827 } 16828 16829 type OfferApplyFormBuilder struct { 16830 id string // ID 16831 idFlag bool 16832 name *I18n // 名称 16833 nameFlag bool 16834 createTime string // 创建时间 16835 createTimeFlag bool 16836 } 16837 16838 func NewOfferApplyFormBuilder() *OfferApplyFormBuilder { 16839 builder := &OfferApplyFormBuilder{} 16840 return builder 16841 } 16842 16843 // ID 16844 // 16845 // 示例值:1213213123123 16846 func (builder *OfferApplyFormBuilder) Id(id string) *OfferApplyFormBuilder { 16847 builder.id = id 16848 builder.idFlag = true 16849 return builder 16850 } 16851 16852 // 名称 16853 // 16854 // 示例值: 16855 func (builder *OfferApplyFormBuilder) Name(name *I18n) *OfferApplyFormBuilder { 16856 builder.name = name 16857 builder.nameFlag = true 16858 return builder 16859 } 16860 16861 // 创建时间 16862 // 16863 // 示例值:1628512038000 16864 func (builder *OfferApplyFormBuilder) CreateTime(createTime string) *OfferApplyFormBuilder { 16865 builder.createTime = createTime 16866 builder.createTimeFlag = true 16867 return builder 16868 } 16869 16870 func (builder *OfferApplyFormBuilder) Build() *OfferApplyForm { 16871 req := &OfferApplyForm{} 16872 if builder.idFlag { 16873 req.Id = &builder.id 16874 16875 } 16876 if builder.nameFlag { 16877 req.Name = builder.name 16878 } 16879 if builder.createTimeFlag { 16880 req.CreateTime = &builder.createTime 16881 16882 } 16883 return req 16884 } 16885 16886 type OfferApplyFormConfigFormulaInfo struct { 16887 Value *string `json:"value,omitempty"` // 公式值 16888 Result *int `json:"result,omitempty"` // 公式结果类型枚举 16889 ExtraMap []*OfferApplyFormFormulaExtraMapInfo `json:"extra_map,omitempty"` // 公式额外描述 16890 } 16891 16892 type OfferApplyFormConfigFormulaInfoBuilder struct { 16893 value string // 公式值 16894 valueFlag bool 16895 result int // 公式结果类型枚举 16896 resultFlag bool 16897 extraMap []*OfferApplyFormFormulaExtraMapInfo // 公式额外描述 16898 extraMapFlag bool 16899 } 16900 16901 func NewOfferApplyFormConfigFormulaInfoBuilder() *OfferApplyFormConfigFormulaInfoBuilder { 16902 builder := &OfferApplyFormConfigFormulaInfoBuilder{} 16903 return builder 16904 } 16905 16906 // 公式值 16907 // 16908 // 示例值:[object_id_1] + [object_id_2] * 12 16909 func (builder *OfferApplyFormConfigFormulaInfoBuilder) Value(value string) *OfferApplyFormConfigFormulaInfoBuilder { 16910 builder.value = value 16911 builder.valueFlag = true 16912 return builder 16913 } 16914 16915 // 公式结果类型枚举 16916 // 16917 // 示例值:1 16918 func (builder *OfferApplyFormConfigFormulaInfoBuilder) Result(result int) *OfferApplyFormConfigFormulaInfoBuilder { 16919 builder.result = result 16920 builder.resultFlag = true 16921 return builder 16922 } 16923 16924 // 公式额外描述 16925 // 16926 // 示例值: 16927 func (builder *OfferApplyFormConfigFormulaInfoBuilder) ExtraMap(extraMap []*OfferApplyFormFormulaExtraMapInfo) *OfferApplyFormConfigFormulaInfoBuilder { 16928 builder.extraMap = extraMap 16929 builder.extraMapFlag = true 16930 return builder 16931 } 16932 16933 func (builder *OfferApplyFormConfigFormulaInfoBuilder) Build() *OfferApplyFormConfigFormulaInfo { 16934 req := &OfferApplyFormConfigFormulaInfo{} 16935 if builder.valueFlag { 16936 req.Value = &builder.value 16937 16938 } 16939 if builder.resultFlag { 16940 req.Result = &builder.result 16941 16942 } 16943 if builder.extraMapFlag { 16944 req.ExtraMap = builder.extraMap 16945 } 16946 return req 16947 } 16948 16949 type OfferApplyFormConfigOptionInfo struct { 16950 Id *string `json:"id,omitempty"` // 选项 ID 16951 Name *I18n `json:"name,omitempty"` // 选项名称 16952 Description *I18n `json:"description,omitempty"` // 选项描述 16953 } 16954 16955 type OfferApplyFormConfigOptionInfoBuilder struct { 16956 id string // 选项 ID 16957 idFlag bool 16958 name *I18n // 选项名称 16959 nameFlag bool 16960 description *I18n // 选项描述 16961 descriptionFlag bool 16962 } 16963 16964 func NewOfferApplyFormConfigOptionInfoBuilder() *OfferApplyFormConfigOptionInfoBuilder { 16965 builder := &OfferApplyFormConfigOptionInfoBuilder{} 16966 return builder 16967 } 16968 16969 // 选项 ID 16970 // 16971 // 示例值:2378568265 16972 func (builder *OfferApplyFormConfigOptionInfoBuilder) Id(id string) *OfferApplyFormConfigOptionInfoBuilder { 16973 builder.id = id 16974 builder.idFlag = true 16975 return builder 16976 } 16977 16978 // 选项名称 16979 // 16980 // 示例值: 16981 func (builder *OfferApplyFormConfigOptionInfoBuilder) Name(name *I18n) *OfferApplyFormConfigOptionInfoBuilder { 16982 builder.name = name 16983 builder.nameFlag = true 16984 return builder 16985 } 16986 16987 // 选项描述 16988 // 16989 // 示例值: 16990 func (builder *OfferApplyFormConfigOptionInfoBuilder) Description(description *I18n) *OfferApplyFormConfigOptionInfoBuilder { 16991 builder.description = description 16992 builder.descriptionFlag = true 16993 return builder 16994 } 16995 16996 func (builder *OfferApplyFormConfigOptionInfoBuilder) Build() *OfferApplyFormConfigOptionInfo { 16997 req := &OfferApplyFormConfigOptionInfo{} 16998 if builder.idFlag { 16999 req.Id = &builder.id 17000 17001 } 17002 if builder.nameFlag { 17003 req.Name = builder.name 17004 } 17005 if builder.descriptionFlag { 17006 req.Description = builder.description 17007 } 17008 return req 17009 } 17010 17011 type OfferApplyFormFormulaExtraMapInfo struct { 17012 Key *string `json:"key,omitempty"` // object ID 17013 Value *I18n `json:"value,omitempty"` // object 名称 17014 } 17015 17016 type OfferApplyFormFormulaExtraMapInfoBuilder struct { 17017 key string // object ID 17018 keyFlag bool 17019 value *I18n // object 名称 17020 valueFlag bool 17021 } 17022 17023 func NewOfferApplyFormFormulaExtraMapInfoBuilder() *OfferApplyFormFormulaExtraMapInfoBuilder { 17024 builder := &OfferApplyFormFormulaExtraMapInfoBuilder{} 17025 return builder 17026 } 17027 17028 // object ID 17029 // 17030 // 示例值:object_id_1 17031 func (builder *OfferApplyFormFormulaExtraMapInfoBuilder) Key(key string) *OfferApplyFormFormulaExtraMapInfoBuilder { 17032 builder.key = key 17033 builder.keyFlag = true 17034 return builder 17035 } 17036 17037 // object 名称 17038 // 17039 // 示例值: 17040 func (builder *OfferApplyFormFormulaExtraMapInfoBuilder) Value(value *I18n) *OfferApplyFormFormulaExtraMapInfoBuilder { 17041 builder.value = value 17042 builder.valueFlag = true 17043 return builder 17044 } 17045 17046 func (builder *OfferApplyFormFormulaExtraMapInfoBuilder) Build() *OfferApplyFormFormulaExtraMapInfo { 17047 req := &OfferApplyFormFormulaExtraMapInfo{} 17048 if builder.keyFlag { 17049 req.Key = &builder.key 17050 17051 } 17052 if builder.valueFlag { 17053 req.Value = builder.value 17054 } 17055 return req 17056 } 17057 17058 type OfferApplyFormInfo struct { 17059 Id *string `json:"id,omitempty"` // offer申请表 ID 17060 Name *I18n `json:"name,omitempty"` // offer申请表名称 17061 Schema *OfferApplyFormSchema `json:"schema,omitempty"` // schema 信息,用于描述申请表单结构的元数据定义,即对申请表内容的描述 17062 } 17063 17064 type OfferApplyFormInfoBuilder struct { 17065 id string // offer申请表 ID 17066 idFlag bool 17067 name *I18n // offer申请表名称 17068 nameFlag bool 17069 schema *OfferApplyFormSchema // schema 信息,用于描述申请表单结构的元数据定义,即对申请表内容的描述 17070 schemaFlag bool 17071 } 17072 17073 func NewOfferApplyFormInfoBuilder() *OfferApplyFormInfoBuilder { 17074 builder := &OfferApplyFormInfoBuilder{} 17075 return builder 17076 } 17077 17078 // offer申请表 ID 17079 // 17080 // 示例值:23746823748 17081 func (builder *OfferApplyFormInfoBuilder) Id(id string) *OfferApplyFormInfoBuilder { 17082 builder.id = id 17083 builder.idFlag = true 17084 return builder 17085 } 17086 17087 // offer申请表名称 17088 // 17089 // 示例值: 17090 func (builder *OfferApplyFormInfoBuilder) Name(name *I18n) *OfferApplyFormInfoBuilder { 17091 builder.name = name 17092 builder.nameFlag = true 17093 return builder 17094 } 17095 17096 // schema 信息,用于描述申请表单结构的元数据定义,即对申请表内容的描述 17097 // 17098 // 示例值: 17099 func (builder *OfferApplyFormInfoBuilder) Schema(schema *OfferApplyFormSchema) *OfferApplyFormInfoBuilder { 17100 builder.schema = schema 17101 builder.schemaFlag = true 17102 return builder 17103 } 17104 17105 func (builder *OfferApplyFormInfoBuilder) Build() *OfferApplyFormInfo { 17106 req := &OfferApplyFormInfo{} 17107 if builder.idFlag { 17108 req.Id = &builder.id 17109 17110 } 17111 if builder.nameFlag { 17112 req.Name = builder.name 17113 } 17114 if builder.schemaFlag { 17115 req.Schema = builder.schema 17116 } 17117 return req 17118 } 17119 17120 type OfferApplyFormModuleInfo struct { 17121 Id *string `json:"id,omitempty"` // 模块 ID 17122 Name *I18n `json:"name,omitempty"` // 模块名称 17123 IsCustomized *bool `json:"is_customized,omitempty"` // 是否为自定义模块 17124 ActiveStatus *int `json:"active_status,omitempty"` // 模块状态是否启用 17125 Hint *I18n `json:"hint,omitempty"` // 模块填写提示 17126 ObjectList []*OfferApplyFormObjectInfo `json:"object_list,omitempty"` // 字段列表 17127 } 17128 17129 type OfferApplyFormModuleInfoBuilder struct { 17130 id string // 模块 ID 17131 idFlag bool 17132 name *I18n // 模块名称 17133 nameFlag bool 17134 isCustomized bool // 是否为自定义模块 17135 isCustomizedFlag bool 17136 activeStatus int // 模块状态是否启用 17137 activeStatusFlag bool 17138 hint *I18n // 模块填写提示 17139 hintFlag bool 17140 objectList []*OfferApplyFormObjectInfo // 字段列表 17141 objectListFlag bool 17142 } 17143 17144 func NewOfferApplyFormModuleInfoBuilder() *OfferApplyFormModuleInfoBuilder { 17145 builder := &OfferApplyFormModuleInfoBuilder{} 17146 return builder 17147 } 17148 17149 // 模块 ID 17150 // 17151 // 示例值:23746823748 17152 func (builder *OfferApplyFormModuleInfoBuilder) Id(id string) *OfferApplyFormModuleInfoBuilder { 17153 builder.id = id 17154 builder.idFlag = true 17155 return builder 17156 } 17157 17158 // 模块名称 17159 // 17160 // 示例值: 17161 func (builder *OfferApplyFormModuleInfoBuilder) Name(name *I18n) *OfferApplyFormModuleInfoBuilder { 17162 builder.name = name 17163 builder.nameFlag = true 17164 return builder 17165 } 17166 17167 // 是否为自定义模块 17168 // 17169 // 示例值:false 17170 func (builder *OfferApplyFormModuleInfoBuilder) IsCustomized(isCustomized bool) *OfferApplyFormModuleInfoBuilder { 17171 builder.isCustomized = isCustomized 17172 builder.isCustomizedFlag = true 17173 return builder 17174 } 17175 17176 // 模块状态是否启用 17177 // 17178 // 示例值:1 17179 func (builder *OfferApplyFormModuleInfoBuilder) ActiveStatus(activeStatus int) *OfferApplyFormModuleInfoBuilder { 17180 builder.activeStatus = activeStatus 17181 builder.activeStatusFlag = true 17182 return builder 17183 } 17184 17185 // 模块填写提示 17186 // 17187 // 示例值: 17188 func (builder *OfferApplyFormModuleInfoBuilder) Hint(hint *I18n) *OfferApplyFormModuleInfoBuilder { 17189 builder.hint = hint 17190 builder.hintFlag = true 17191 return builder 17192 } 17193 17194 // 字段列表 17195 // 17196 // 示例值: 17197 func (builder *OfferApplyFormModuleInfoBuilder) ObjectList(objectList []*OfferApplyFormObjectInfo) *OfferApplyFormModuleInfoBuilder { 17198 builder.objectList = objectList 17199 builder.objectListFlag = true 17200 return builder 17201 } 17202 17203 func (builder *OfferApplyFormModuleInfoBuilder) Build() *OfferApplyFormModuleInfo { 17204 req := &OfferApplyFormModuleInfo{} 17205 if builder.idFlag { 17206 req.Id = &builder.id 17207 17208 } 17209 if builder.nameFlag { 17210 req.Name = builder.name 17211 } 17212 if builder.isCustomizedFlag { 17213 req.IsCustomized = &builder.isCustomized 17214 17215 } 17216 if builder.activeStatusFlag { 17217 req.ActiveStatus = &builder.activeStatus 17218 17219 } 17220 if builder.hintFlag { 17221 req.Hint = builder.hint 17222 } 17223 if builder.objectListFlag { 17224 req.ObjectList = builder.objectList 17225 } 17226 return req 17227 } 17228 17229 type OfferApplyFormObjectConfigInfo struct { 17230 Options []*OfferApplyFormConfigOptionInfo `json:"options,omitempty"` // 选项信息 17231 Formula *OfferApplyFormConfigFormulaInfo `json:"formula,omitempty"` // 公式信息 17232 ObjectDisplayConfig *OfferApplyFormObjectDisplayConfigInfo `json:"object_display_config,omitempty"` // 级联配置信息 17233 } 17234 17235 type OfferApplyFormObjectConfigInfoBuilder struct { 17236 options []*OfferApplyFormConfigOptionInfo // 选项信息 17237 optionsFlag bool 17238 formula *OfferApplyFormConfigFormulaInfo // 公式信息 17239 formulaFlag bool 17240 objectDisplayConfig *OfferApplyFormObjectDisplayConfigInfo // 级联配置信息 17241 objectDisplayConfigFlag bool 17242 } 17243 17244 func NewOfferApplyFormObjectConfigInfoBuilder() *OfferApplyFormObjectConfigInfoBuilder { 17245 builder := &OfferApplyFormObjectConfigInfoBuilder{} 17246 return builder 17247 } 17248 17249 // 选项信息 17250 // 17251 // 示例值: 17252 func (builder *OfferApplyFormObjectConfigInfoBuilder) Options(options []*OfferApplyFormConfigOptionInfo) *OfferApplyFormObjectConfigInfoBuilder { 17253 builder.options = options 17254 builder.optionsFlag = true 17255 return builder 17256 } 17257 17258 // 公式信息 17259 // 17260 // 示例值: 17261 func (builder *OfferApplyFormObjectConfigInfoBuilder) Formula(formula *OfferApplyFormConfigFormulaInfo) *OfferApplyFormObjectConfigInfoBuilder { 17262 builder.formula = formula 17263 builder.formulaFlag = true 17264 return builder 17265 } 17266 17267 // 级联配置信息 17268 // 17269 // 示例值: 17270 func (builder *OfferApplyFormObjectConfigInfoBuilder) ObjectDisplayConfig(objectDisplayConfig *OfferApplyFormObjectDisplayConfigInfo) *OfferApplyFormObjectConfigInfoBuilder { 17271 builder.objectDisplayConfig = objectDisplayConfig 17272 builder.objectDisplayConfigFlag = true 17273 return builder 17274 } 17275 17276 func (builder *OfferApplyFormObjectConfigInfoBuilder) Build() *OfferApplyFormObjectConfigInfo { 17277 req := &OfferApplyFormObjectConfigInfo{} 17278 if builder.optionsFlag { 17279 req.Options = builder.options 17280 } 17281 if builder.formulaFlag { 17282 req.Formula = builder.formula 17283 } 17284 if builder.objectDisplayConfigFlag { 17285 req.ObjectDisplayConfig = builder.objectDisplayConfig 17286 } 17287 return req 17288 } 17289 17290 type OfferApplyFormObjectDisplayConfigInfo struct { 17291 DisplayCondition *int `json:"display_condition,omitempty"` // 展示条件枚举 17292 PreObjectConfigList []*OfferApplyFormPreObjectConfigInfo `json:"pre_object_config_list,omitempty"` // 字段条件配置 17293 } 17294 17295 type OfferApplyFormObjectDisplayConfigInfoBuilder struct { 17296 displayCondition int // 展示条件枚举 17297 displayConditionFlag bool 17298 preObjectConfigList []*OfferApplyFormPreObjectConfigInfo // 字段条件配置 17299 preObjectConfigListFlag bool 17300 } 17301 17302 func NewOfferApplyFormObjectDisplayConfigInfoBuilder() *OfferApplyFormObjectDisplayConfigInfoBuilder { 17303 builder := &OfferApplyFormObjectDisplayConfigInfoBuilder{} 17304 return builder 17305 } 17306 17307 // 展示条件枚举 17308 // 17309 // 示例值:1 17310 func (builder *OfferApplyFormObjectDisplayConfigInfoBuilder) DisplayCondition(displayCondition int) *OfferApplyFormObjectDisplayConfigInfoBuilder { 17311 builder.displayCondition = displayCondition 17312 builder.displayConditionFlag = true 17313 return builder 17314 } 17315 17316 // 字段条件配置 17317 // 17318 // 示例值: 17319 func (builder *OfferApplyFormObjectDisplayConfigInfoBuilder) PreObjectConfigList(preObjectConfigList []*OfferApplyFormPreObjectConfigInfo) *OfferApplyFormObjectDisplayConfigInfoBuilder { 17320 builder.preObjectConfigList = preObjectConfigList 17321 builder.preObjectConfigListFlag = true 17322 return builder 17323 } 17324 17325 func (builder *OfferApplyFormObjectDisplayConfigInfoBuilder) Build() *OfferApplyFormObjectDisplayConfigInfo { 17326 req := &OfferApplyFormObjectDisplayConfigInfo{} 17327 if builder.displayConditionFlag { 17328 req.DisplayCondition = &builder.displayCondition 17329 17330 } 17331 if builder.preObjectConfigListFlag { 17332 req.PreObjectConfigList = builder.preObjectConfigList 17333 } 17334 return req 17335 } 17336 17337 type OfferApplyFormObjectInfo struct { 17338 Id *string `json:"id,omitempty"` // 字段 ID 17339 Name *I18n `json:"name,omitempty"` // 字段名称 17340 Description *I18n `json:"description,omitempty"` // 字段描述 17341 ModuleId *string `json:"module_id,omitempty"` // 所属模块 ID 17342 IsCustomized *bool `json:"is_customized,omitempty"` // 是否为自定义字段 17343 IsRequired *bool `json:"is_required,omitempty"` // 是否必填 17344 ActiveStatus *int `json:"active_status,omitempty"` // 是否启用 17345 NeedApprove *bool `json:"need_approve,omitempty"` // 是否修改后需审批 17346 IsSensitive *bool `json:"is_sensitive,omitempty"` // 是否敏感 17347 ObjectType *int `json:"object_type,omitempty"` // 字段类型枚举 17348 Config *OfferApplyFormObjectConfigInfo `json:"config,omitempty"` // 配置信息 17349 } 17350 17351 type OfferApplyFormObjectInfoBuilder struct { 17352 id string // 字段 ID 17353 idFlag bool 17354 name *I18n // 字段名称 17355 nameFlag bool 17356 description *I18n // 字段描述 17357 descriptionFlag bool 17358 moduleId string // 所属模块 ID 17359 moduleIdFlag bool 17360 isCustomized bool // 是否为自定义字段 17361 isCustomizedFlag bool 17362 isRequired bool // 是否必填 17363 isRequiredFlag bool 17364 activeStatus int // 是否启用 17365 activeStatusFlag bool 17366 needApprove bool // 是否修改后需审批 17367 needApproveFlag bool 17368 isSensitive bool // 是否敏感 17369 isSensitiveFlag bool 17370 objectType int // 字段类型枚举 17371 objectTypeFlag bool 17372 config *OfferApplyFormObjectConfigInfo // 配置信息 17373 configFlag bool 17374 } 17375 17376 func NewOfferApplyFormObjectInfoBuilder() *OfferApplyFormObjectInfoBuilder { 17377 builder := &OfferApplyFormObjectInfoBuilder{} 17378 return builder 17379 } 17380 17381 // 字段 ID 17382 // 17383 // 示例值:23847293234 17384 func (builder *OfferApplyFormObjectInfoBuilder) Id(id string) *OfferApplyFormObjectInfoBuilder { 17385 builder.id = id 17386 builder.idFlag = true 17387 return builder 17388 } 17389 17390 // 字段名称 17391 // 17392 // 示例值: 17393 func (builder *OfferApplyFormObjectInfoBuilder) Name(name *I18n) *OfferApplyFormObjectInfoBuilder { 17394 builder.name = name 17395 builder.nameFlag = true 17396 return builder 17397 } 17398 17399 // 字段描述 17400 // 17401 // 示例值: 17402 func (builder *OfferApplyFormObjectInfoBuilder) Description(description *I18n) *OfferApplyFormObjectInfoBuilder { 17403 builder.description = description 17404 builder.descriptionFlag = true 17405 return builder 17406 } 17407 17408 // 所属模块 ID 17409 // 17410 // 示例值:23847293234 17411 func (builder *OfferApplyFormObjectInfoBuilder) ModuleId(moduleId string) *OfferApplyFormObjectInfoBuilder { 17412 builder.moduleId = moduleId 17413 builder.moduleIdFlag = true 17414 return builder 17415 } 17416 17417 // 是否为自定义字段 17418 // 17419 // 示例值:true 17420 func (builder *OfferApplyFormObjectInfoBuilder) IsCustomized(isCustomized bool) *OfferApplyFormObjectInfoBuilder { 17421 builder.isCustomized = isCustomized 17422 builder.isCustomizedFlag = true 17423 return builder 17424 } 17425 17426 // 是否必填 17427 // 17428 // 示例值:true 17429 func (builder *OfferApplyFormObjectInfoBuilder) IsRequired(isRequired bool) *OfferApplyFormObjectInfoBuilder { 17430 builder.isRequired = isRequired 17431 builder.isRequiredFlag = true 17432 return builder 17433 } 17434 17435 // 是否启用 17436 // 17437 // 示例值:1 17438 func (builder *OfferApplyFormObjectInfoBuilder) ActiveStatus(activeStatus int) *OfferApplyFormObjectInfoBuilder { 17439 builder.activeStatus = activeStatus 17440 builder.activeStatusFlag = true 17441 return builder 17442 } 17443 17444 // 是否修改后需审批 17445 // 17446 // 示例值:true 17447 func (builder *OfferApplyFormObjectInfoBuilder) NeedApprove(needApprove bool) *OfferApplyFormObjectInfoBuilder { 17448 builder.needApprove = needApprove 17449 builder.needApproveFlag = true 17450 return builder 17451 } 17452 17453 // 是否敏感 17454 // 17455 // 示例值:false 17456 func (builder *OfferApplyFormObjectInfoBuilder) IsSensitive(isSensitive bool) *OfferApplyFormObjectInfoBuilder { 17457 builder.isSensitive = isSensitive 17458 builder.isSensitiveFlag = true 17459 return builder 17460 } 17461 17462 // 字段类型枚举 17463 // 17464 // 示例值:1 17465 func (builder *OfferApplyFormObjectInfoBuilder) ObjectType(objectType int) *OfferApplyFormObjectInfoBuilder { 17466 builder.objectType = objectType 17467 builder.objectTypeFlag = true 17468 return builder 17469 } 17470 17471 // 配置信息 17472 // 17473 // 示例值: 17474 func (builder *OfferApplyFormObjectInfoBuilder) Config(config *OfferApplyFormObjectConfigInfo) *OfferApplyFormObjectInfoBuilder { 17475 builder.config = config 17476 builder.configFlag = true 17477 return builder 17478 } 17479 17480 func (builder *OfferApplyFormObjectInfoBuilder) Build() *OfferApplyFormObjectInfo { 17481 req := &OfferApplyFormObjectInfo{} 17482 if builder.idFlag { 17483 req.Id = &builder.id 17484 17485 } 17486 if builder.nameFlag { 17487 req.Name = builder.name 17488 } 17489 if builder.descriptionFlag { 17490 req.Description = builder.description 17491 } 17492 if builder.moduleIdFlag { 17493 req.ModuleId = &builder.moduleId 17494 17495 } 17496 if builder.isCustomizedFlag { 17497 req.IsCustomized = &builder.isCustomized 17498 17499 } 17500 if builder.isRequiredFlag { 17501 req.IsRequired = &builder.isRequired 17502 17503 } 17504 if builder.activeStatusFlag { 17505 req.ActiveStatus = &builder.activeStatus 17506 17507 } 17508 if builder.needApproveFlag { 17509 req.NeedApprove = &builder.needApprove 17510 17511 } 17512 if builder.isSensitiveFlag { 17513 req.IsSensitive = &builder.isSensitive 17514 17515 } 17516 if builder.objectTypeFlag { 17517 req.ObjectType = &builder.objectType 17518 17519 } 17520 if builder.configFlag { 17521 req.Config = builder.config 17522 } 17523 return req 17524 } 17525 17526 type OfferApplyFormPreObjectConfigInfo struct { 17527 Id *string `json:"id,omitempty"` // 字段 ID 17528 Operator *int `json:"operator,omitempty"` // 运算符枚举 17529 Value []string `json:"value,omitempty"` // 字段值 17530 } 17531 17532 type OfferApplyFormPreObjectConfigInfoBuilder struct { 17533 id string // 字段 ID 17534 idFlag bool 17535 operator int // 运算符枚举 17536 operatorFlag bool 17537 value []string // 字段值 17538 valueFlag bool 17539 } 17540 17541 func NewOfferApplyFormPreObjectConfigInfoBuilder() *OfferApplyFormPreObjectConfigInfoBuilder { 17542 builder := &OfferApplyFormPreObjectConfigInfoBuilder{} 17543 return builder 17544 } 17545 17546 // 字段 ID 17547 // 17548 // 示例值:687529575 17549 func (builder *OfferApplyFormPreObjectConfigInfoBuilder) Id(id string) *OfferApplyFormPreObjectConfigInfoBuilder { 17550 builder.id = id 17551 builder.idFlag = true 17552 return builder 17553 } 17554 17555 // 运算符枚举 17556 // 17557 // 示例值:1 17558 func (builder *OfferApplyFormPreObjectConfigInfoBuilder) Operator(operator int) *OfferApplyFormPreObjectConfigInfoBuilder { 17559 builder.operator = operator 17560 builder.operatorFlag = true 17561 return builder 17562 } 17563 17564 // 字段值 17565 // 17566 // 示例值: 17567 func (builder *OfferApplyFormPreObjectConfigInfoBuilder) Value(value []string) *OfferApplyFormPreObjectConfigInfoBuilder { 17568 builder.value = value 17569 builder.valueFlag = true 17570 return builder 17571 } 17572 17573 func (builder *OfferApplyFormPreObjectConfigInfoBuilder) Build() *OfferApplyFormPreObjectConfigInfo { 17574 req := &OfferApplyFormPreObjectConfigInfo{} 17575 if builder.idFlag { 17576 req.Id = &builder.id 17577 17578 } 17579 if builder.operatorFlag { 17580 req.Operator = &builder.operator 17581 17582 } 17583 if builder.valueFlag { 17584 req.Value = builder.value 17585 } 17586 return req 17587 } 17588 17589 type OfferApplyFormSchema struct { 17590 Id *string `json:"id,omitempty"` // schema ID 17591 ModuleList []*OfferApplyFormModuleInfo `json:"module_list,omitempty"` // 模块列表 17592 } 17593 17594 type OfferApplyFormSchemaBuilder struct { 17595 id string // schema ID 17596 idFlag bool 17597 moduleList []*OfferApplyFormModuleInfo // 模块列表 17598 moduleListFlag bool 17599 } 17600 17601 func NewOfferApplyFormSchemaBuilder() *OfferApplyFormSchemaBuilder { 17602 builder := &OfferApplyFormSchemaBuilder{} 17603 return builder 17604 } 17605 17606 // schema ID 17607 // 17608 // 示例值:7080465990618843430 17609 func (builder *OfferApplyFormSchemaBuilder) Id(id string) *OfferApplyFormSchemaBuilder { 17610 builder.id = id 17611 builder.idFlag = true 17612 return builder 17613 } 17614 17615 // 模块列表 17616 // 17617 // 示例值: 17618 func (builder *OfferApplyFormSchemaBuilder) ModuleList(moduleList []*OfferApplyFormModuleInfo) *OfferApplyFormSchemaBuilder { 17619 builder.moduleList = moduleList 17620 builder.moduleListFlag = true 17621 return builder 17622 } 17623 17624 func (builder *OfferApplyFormSchemaBuilder) Build() *OfferApplyFormSchema { 17625 req := &OfferApplyFormSchema{} 17626 if builder.idFlag { 17627 req.Id = &builder.id 17628 17629 } 17630 if builder.moduleListFlag { 17631 req.ModuleList = builder.moduleList 17632 } 17633 return req 17634 } 17635 17636 type OfferApprovalTemplate struct { 17637 Id *string `json:"id,omitempty"` // ID 17638 Name *I18n `json:"name,omitempty"` // 名称 17639 CreateTime *string `json:"create_time,omitempty"` // 创建时间 17640 Remark *string `json:"remark,omitempty"` // 备注 17641 DepartmentList []*Department `json:"department_list,omitempty"` // 适用部门 17642 } 17643 17644 type OfferApprovalTemplateBuilder struct { 17645 id string // ID 17646 idFlag bool 17647 name *I18n // 名称 17648 nameFlag bool 17649 createTime string // 创建时间 17650 createTimeFlag bool 17651 remark string // 备注 17652 remarkFlag bool 17653 departmentList []*Department // 适用部门 17654 departmentListFlag bool 17655 } 17656 17657 func NewOfferApprovalTemplateBuilder() *OfferApprovalTemplateBuilder { 17658 builder := &OfferApprovalTemplateBuilder{} 17659 return builder 17660 } 17661 17662 // ID 17663 // 17664 // 示例值:1213213123123 17665 func (builder *OfferApprovalTemplateBuilder) Id(id string) *OfferApprovalTemplateBuilder { 17666 builder.id = id 17667 builder.idFlag = true 17668 return builder 17669 } 17670 17671 // 名称 17672 // 17673 // 示例值: 17674 func (builder *OfferApprovalTemplateBuilder) Name(name *I18n) *OfferApprovalTemplateBuilder { 17675 builder.name = name 17676 builder.nameFlag = true 17677 return builder 17678 } 17679 17680 // 创建时间 17681 // 17682 // 示例值:1628512038000 17683 func (builder *OfferApprovalTemplateBuilder) CreateTime(createTime string) *OfferApprovalTemplateBuilder { 17684 builder.createTime = createTime 17685 builder.createTimeFlag = true 17686 return builder 17687 } 17688 17689 // 备注 17690 // 17691 // 示例值:test 17692 func (builder *OfferApprovalTemplateBuilder) Remark(remark string) *OfferApprovalTemplateBuilder { 17693 builder.remark = remark 17694 builder.remarkFlag = true 17695 return builder 17696 } 17697 17698 // 适用部门 17699 // 17700 // 示例值: 17701 func (builder *OfferApprovalTemplateBuilder) DepartmentList(departmentList []*Department) *OfferApprovalTemplateBuilder { 17702 builder.departmentList = departmentList 17703 builder.departmentListFlag = true 17704 return builder 17705 } 17706 17707 func (builder *OfferApprovalTemplateBuilder) Build() *OfferApprovalTemplate { 17708 req := &OfferApprovalTemplate{} 17709 if builder.idFlag { 17710 req.Id = &builder.id 17711 17712 } 17713 if builder.nameFlag { 17714 req.Name = builder.name 17715 } 17716 if builder.createTimeFlag { 17717 req.CreateTime = &builder.createTime 17718 17719 } 17720 if builder.remarkFlag { 17721 req.Remark = &builder.remark 17722 17723 } 17724 if builder.departmentListFlag { 17725 req.DepartmentList = builder.departmentList 17726 } 17727 return req 17728 } 17729 17730 type OfferBasicInfo struct { 17731 DepartmentId *string `json:"department_id,omitempty"` // 部门 ID 17732 LeaderUserId *string `json:"leader_user_id,omitempty"` // 直属上级 ID 17733 EmploymentJobId *string `json:"employment_job_id,omitempty"` // 职务 ID 17734 EmployeeTypeId *string `json:"employee_type_id,omitempty"` // 人员类型 ID 17735 JobFamilyId *string `json:"job_family_id,omitempty"` // 职位序列 ID 17736 JobLevelId *string `json:"job_level_id,omitempty"` // 职位级别 ID 17737 ProbationMonth *int `json:"probation_month,omitempty"` // 试用期 17738 ContractYear *int `json:"contract_year,omitempty"` // 合同期 17739 ExpectedOnboardDate *string `json:"expected_onboard_date,omitempty"` // 预计入职日期 17740 OnboardAddressId *string `json:"onboard_address_id,omitempty"` // 入职地点 ID 17741 WorkAddressId *string `json:"work_address_id,omitempty"` // 办公地点 ID 17742 OwnerUserId *string `json:"owner_user_id,omitempty"` // Offer负责人 ID 17743 RecommendedWords *string `json:"recommended_words,omitempty"` // Offer 推荐语 17744 JobRequirementId *string `json:"job_requirement_id,omitempty"` // 招聘需求 ID 17745 JobProcessTypeId *int `json:"job_process_type_id,omitempty"` // 招聘流程类型 ID 17746 AttachmentIdList []string `json:"attachment_id_list,omitempty"` // 附件ID列表 17747 AttachmentDescription *string `json:"attachment_description,omitempty"` // 附件描述 17748 OperatorUserId *string `json:"operator_user_id,omitempty"` // Offer操作人 ID 17749 } 17750 17751 type OfferBasicInfoBuilder struct { 17752 departmentId string // 部门 ID 17753 departmentIdFlag bool 17754 leaderUserId string // 直属上级 ID 17755 leaderUserIdFlag bool 17756 employmentJobId string // 职务 ID 17757 employmentJobIdFlag bool 17758 employeeTypeId string // 人员类型 ID 17759 employeeTypeIdFlag bool 17760 jobFamilyId string // 职位序列 ID 17761 jobFamilyIdFlag bool 17762 jobLevelId string // 职位级别 ID 17763 jobLevelIdFlag bool 17764 probationMonth int // 试用期 17765 probationMonthFlag bool 17766 contractYear int // 合同期 17767 contractYearFlag bool 17768 expectedOnboardDate string // 预计入职日期 17769 expectedOnboardDateFlag bool 17770 onboardAddressId string // 入职地点 ID 17771 onboardAddressIdFlag bool 17772 workAddressId string // 办公地点 ID 17773 workAddressIdFlag bool 17774 ownerUserId string // Offer负责人 ID 17775 ownerUserIdFlag bool 17776 recommendedWords string // Offer 推荐语 17777 recommendedWordsFlag bool 17778 jobRequirementId string // 招聘需求 ID 17779 jobRequirementIdFlag bool 17780 jobProcessTypeId int // 招聘流程类型 ID 17781 jobProcessTypeIdFlag bool 17782 attachmentIdList []string // 附件ID列表 17783 attachmentIdListFlag bool 17784 attachmentDescription string // 附件描述 17785 attachmentDescriptionFlag bool 17786 operatorUserId string // Offer操作人 ID 17787 operatorUserIdFlag bool 17788 } 17789 17790 func NewOfferBasicInfoBuilder() *OfferBasicInfoBuilder { 17791 builder := &OfferBasicInfoBuilder{} 17792 return builder 17793 } 17794 17795 // 部门 ID 17796 // 17797 // 示例值:od-6b394871807047c7023ebfc1ff37cd3a 17798 func (builder *OfferBasicInfoBuilder) DepartmentId(departmentId string) *OfferBasicInfoBuilder { 17799 builder.departmentId = departmentId 17800 builder.departmentIdFlag = true 17801 return builder 17802 } 17803 17804 // 直属上级 ID 17805 // 17806 // 示例值:ou_ce613028fe74745421f5dc320bb9c709 17807 func (builder *OfferBasicInfoBuilder) LeaderUserId(leaderUserId string) *OfferBasicInfoBuilder { 17808 builder.leaderUserId = leaderUserId 17809 builder.leaderUserIdFlag = true 17810 return builder 17811 } 17812 17813 // 职务 ID 17814 // 17815 // 示例值:123 17816 func (builder *OfferBasicInfoBuilder) EmploymentJobId(employmentJobId string) *OfferBasicInfoBuilder { 17817 builder.employmentJobId = employmentJobId 17818 builder.employmentJobIdFlag = true 17819 return builder 17820 } 17821 17822 // 人员类型 ID 17823 // 17824 // 示例值:2 17825 func (builder *OfferBasicInfoBuilder) EmployeeTypeId(employeeTypeId string) *OfferBasicInfoBuilder { 17826 builder.employeeTypeId = employeeTypeId 17827 builder.employeeTypeIdFlag = true 17828 return builder 17829 } 17830 17831 // 职位序列 ID 17832 // 17833 // 示例值:6807407987381831949 17834 func (builder *OfferBasicInfoBuilder) JobFamilyId(jobFamilyId string) *OfferBasicInfoBuilder { 17835 builder.jobFamilyId = jobFamilyId 17836 builder.jobFamilyIdFlag = true 17837 return builder 17838 } 17839 17840 // 职位级别 ID 17841 // 17842 // 示例值:6807407987381881101 17843 func (builder *OfferBasicInfoBuilder) JobLevelId(jobLevelId string) *OfferBasicInfoBuilder { 17844 builder.jobLevelId = jobLevelId 17845 builder.jobLevelIdFlag = true 17846 return builder 17847 } 17848 17849 // 试用期 17850 // 17851 // 示例值:3 17852 func (builder *OfferBasicInfoBuilder) ProbationMonth(probationMonth int) *OfferBasicInfoBuilder { 17853 builder.probationMonth = probationMonth 17854 builder.probationMonthFlag = true 17855 return builder 17856 } 17857 17858 // 合同期 17859 // 17860 // 示例值:3 17861 func (builder *OfferBasicInfoBuilder) ContractYear(contractYear int) *OfferBasicInfoBuilder { 17862 builder.contractYear = contractYear 17863 builder.contractYearFlag = true 17864 return builder 17865 } 17866 17867 // 预计入职日期 17868 // 17869 // 示例值:{"date":"2022-04-07"} 17870 func (builder *OfferBasicInfoBuilder) ExpectedOnboardDate(expectedOnboardDate string) *OfferBasicInfoBuilder { 17871 builder.expectedOnboardDate = expectedOnboardDate 17872 builder.expectedOnboardDateFlag = true 17873 return builder 17874 } 17875 17876 // 入职地点 ID 17877 // 17878 // 示例值:6897079709306259719 17879 func (builder *OfferBasicInfoBuilder) OnboardAddressId(onboardAddressId string) *OfferBasicInfoBuilder { 17880 builder.onboardAddressId = onboardAddressId 17881 builder.onboardAddressIdFlag = true 17882 return builder 17883 } 17884 17885 // 办公地点 ID 17886 // 17887 // 示例值:6897079709306259719 17888 func (builder *OfferBasicInfoBuilder) WorkAddressId(workAddressId string) *OfferBasicInfoBuilder { 17889 builder.workAddressId = workAddressId 17890 builder.workAddressIdFlag = true 17891 return builder 17892 } 17893 17894 // Offer负责人 ID 17895 // 17896 // 示例值:ou_ce613028fe74745421f5dc320bb9c709 17897 func (builder *OfferBasicInfoBuilder) OwnerUserId(ownerUserId string) *OfferBasicInfoBuilder { 17898 builder.ownerUserId = ownerUserId 17899 builder.ownerUserIdFlag = true 17900 return builder 17901 } 17902 17903 // Offer 推荐语 17904 // 17905 // 示例值:十分优秀,推荐入职 17906 func (builder *OfferBasicInfoBuilder) RecommendedWords(recommendedWords string) *OfferBasicInfoBuilder { 17907 builder.recommendedWords = recommendedWords 17908 builder.recommendedWordsFlag = true 17909 return builder 17910 } 17911 17912 // 招聘需求 ID 17913 // 17914 // 示例值:2342352224 17915 func (builder *OfferBasicInfoBuilder) JobRequirementId(jobRequirementId string) *OfferBasicInfoBuilder { 17916 builder.jobRequirementId = jobRequirementId 17917 builder.jobRequirementIdFlag = true 17918 return builder 17919 } 17920 17921 // 招聘流程类型 ID 17922 // 17923 // 示例值:2 17924 func (builder *OfferBasicInfoBuilder) JobProcessTypeId(jobProcessTypeId int) *OfferBasicInfoBuilder { 17925 builder.jobProcessTypeId = jobProcessTypeId 17926 builder.jobProcessTypeIdFlag = true 17927 return builder 17928 } 17929 17930 // 附件ID列表 17931 // 17932 // 示例值:["7081582717280831752"] 17933 func (builder *OfferBasicInfoBuilder) AttachmentIdList(attachmentIdList []string) *OfferBasicInfoBuilder { 17934 builder.attachmentIdList = attachmentIdList 17935 builder.attachmentIdListFlag = true 17936 return builder 17937 } 17938 17939 // 附件描述 17940 // 17941 // 示例值:张三的简历 17942 func (builder *OfferBasicInfoBuilder) AttachmentDescription(attachmentDescription string) *OfferBasicInfoBuilder { 17943 builder.attachmentDescription = attachmentDescription 17944 builder.attachmentDescriptionFlag = true 17945 return builder 17946 } 17947 17948 // Offer操作人 ID 17949 // 17950 // 示例值:ou_ce613028fe74745421f5dc320bb9c709 17951 func (builder *OfferBasicInfoBuilder) OperatorUserId(operatorUserId string) *OfferBasicInfoBuilder { 17952 builder.operatorUserId = operatorUserId 17953 builder.operatorUserIdFlag = true 17954 return builder 17955 } 17956 17957 func (builder *OfferBasicInfoBuilder) Build() *OfferBasicInfo { 17958 req := &OfferBasicInfo{} 17959 if builder.departmentIdFlag { 17960 req.DepartmentId = &builder.departmentId 17961 17962 } 17963 if builder.leaderUserIdFlag { 17964 req.LeaderUserId = &builder.leaderUserId 17965 17966 } 17967 if builder.employmentJobIdFlag { 17968 req.EmploymentJobId = &builder.employmentJobId 17969 17970 } 17971 if builder.employeeTypeIdFlag { 17972 req.EmployeeTypeId = &builder.employeeTypeId 17973 17974 } 17975 if builder.jobFamilyIdFlag { 17976 req.JobFamilyId = &builder.jobFamilyId 17977 17978 } 17979 if builder.jobLevelIdFlag { 17980 req.JobLevelId = &builder.jobLevelId 17981 17982 } 17983 if builder.probationMonthFlag { 17984 req.ProbationMonth = &builder.probationMonth 17985 17986 } 17987 if builder.contractYearFlag { 17988 req.ContractYear = &builder.contractYear 17989 17990 } 17991 if builder.expectedOnboardDateFlag { 17992 req.ExpectedOnboardDate = &builder.expectedOnboardDate 17993 17994 } 17995 if builder.onboardAddressIdFlag { 17996 req.OnboardAddressId = &builder.onboardAddressId 17997 17998 } 17999 if builder.workAddressIdFlag { 18000 req.WorkAddressId = &builder.workAddressId 18001 18002 } 18003 if builder.ownerUserIdFlag { 18004 req.OwnerUserId = &builder.ownerUserId 18005 18006 } 18007 if builder.recommendedWordsFlag { 18008 req.RecommendedWords = &builder.recommendedWords 18009 18010 } 18011 if builder.jobRequirementIdFlag { 18012 req.JobRequirementId = &builder.jobRequirementId 18013 18014 } 18015 if builder.jobProcessTypeIdFlag { 18016 req.JobProcessTypeId = &builder.jobProcessTypeId 18017 18018 } 18019 if builder.attachmentIdListFlag { 18020 req.AttachmentIdList = builder.attachmentIdList 18021 } 18022 if builder.attachmentDescriptionFlag { 18023 req.AttachmentDescription = &builder.attachmentDescription 18024 18025 } 18026 if builder.operatorUserIdFlag { 18027 req.OperatorUserId = &builder.operatorUserId 18028 18029 } 18030 return req 18031 } 18032 18033 type OfferCustomField struct { 18034 Id *string `json:"id,omitempty"` // 自定义字段 ID 18035 Name *I18n `json:"name,omitempty"` // 自定义字段名称 18036 Config *OfferCustomFieldConfig `json:"config,omitempty"` // 自定义字段配置信息,仅字段类型为「单选」、「多选」时需传配置选项信息 18037 } 18038 18039 type OfferCustomFieldBuilder struct { 18040 id string // 自定义字段 ID 18041 idFlag bool 18042 name *I18n // 自定义字段名称 18043 nameFlag bool 18044 config *OfferCustomFieldConfig // 自定义字段配置信息,仅字段类型为「单选」、「多选」时需传配置选项信息 18045 configFlag bool 18046 } 18047 18048 func NewOfferCustomFieldBuilder() *OfferCustomFieldBuilder { 18049 builder := &OfferCustomFieldBuilder{} 18050 return builder 18051 } 18052 18053 // 自定义字段 ID 18054 // 18055 // 示例值:6887476510505748749 18056 func (builder *OfferCustomFieldBuilder) Id(id string) *OfferCustomFieldBuilder { 18057 builder.id = id 18058 builder.idFlag = true 18059 return builder 18060 } 18061 18062 // 自定义字段名称 18063 // 18064 // 示例值: 18065 func (builder *OfferCustomFieldBuilder) Name(name *I18n) *OfferCustomFieldBuilder { 18066 builder.name = name 18067 builder.nameFlag = true 18068 return builder 18069 } 18070 18071 // 自定义字段配置信息,仅字段类型为「单选」、「多选」时需传配置选项信息 18072 // 18073 // 示例值: 18074 func (builder *OfferCustomFieldBuilder) Config(config *OfferCustomFieldConfig) *OfferCustomFieldBuilder { 18075 builder.config = config 18076 builder.configFlag = true 18077 return builder 18078 } 18079 18080 func (builder *OfferCustomFieldBuilder) Build() *OfferCustomField { 18081 req := &OfferCustomField{} 18082 if builder.idFlag { 18083 req.Id = &builder.id 18084 18085 } 18086 if builder.nameFlag { 18087 req.Name = builder.name 18088 } 18089 if builder.configFlag { 18090 req.Config = builder.config 18091 } 18092 return req 18093 } 18094 18095 type OfferCustomFieldConfig struct { 18096 Options []*OfferCustomFieldConfigOption `json:"options,omitempty"` // 选项信息 18097 } 18098 18099 type OfferCustomFieldConfigBuilder struct { 18100 options []*OfferCustomFieldConfigOption // 选项信息 18101 optionsFlag bool 18102 } 18103 18104 func NewOfferCustomFieldConfigBuilder() *OfferCustomFieldConfigBuilder { 18105 builder := &OfferCustomFieldConfigBuilder{} 18106 return builder 18107 } 18108 18109 // 选项信息 18110 // 18111 // 示例值: 18112 func (builder *OfferCustomFieldConfigBuilder) Options(options []*OfferCustomFieldConfigOption) *OfferCustomFieldConfigBuilder { 18113 builder.options = options 18114 builder.optionsFlag = true 18115 return builder 18116 } 18117 18118 func (builder *OfferCustomFieldConfigBuilder) Build() *OfferCustomFieldConfig { 18119 req := &OfferCustomFieldConfig{} 18120 if builder.optionsFlag { 18121 req.Options = builder.options 18122 } 18123 return req 18124 } 18125 18126 type OfferCustomFieldConfigOption struct { 18127 Name *I18n `json:"name,omitempty"` // 选项名称 18128 } 18129 18130 type OfferCustomFieldConfigOptionBuilder struct { 18131 name *I18n // 选项名称 18132 nameFlag bool 18133 } 18134 18135 func NewOfferCustomFieldConfigOptionBuilder() *OfferCustomFieldConfigOptionBuilder { 18136 builder := &OfferCustomFieldConfigOptionBuilder{} 18137 return builder 18138 } 18139 18140 // 选项名称 18141 // 18142 // 示例值: 18143 func (builder *OfferCustomFieldConfigOptionBuilder) Name(name *I18n) *OfferCustomFieldConfigOptionBuilder { 18144 builder.name = name 18145 builder.nameFlag = true 18146 return builder 18147 } 18148 18149 func (builder *OfferCustomFieldConfigOptionBuilder) Build() *OfferCustomFieldConfigOption { 18150 req := &OfferCustomFieldConfigOption{} 18151 if builder.nameFlag { 18152 req.Name = builder.name 18153 } 18154 return req 18155 } 18156 18157 type OfferCustomizedInfo struct { 18158 Id *string `json:"id,omitempty"` // 自定义字段 ID 18159 Value *string `json:"value,omitempty"` // 自定义字段信息,以字符串形式传入,如:;1. 单选: "1";2. 多选:"[\"1\", \"2\"]";3. 日期:"2022-05-26";4. 年份选择:"2022";5. 月份选择:"2022-05";6. 单行文本:"xxx ";7. 多行文本:"xxx ";8. 数字:"123";9. 金额:"123.1" 18160 } 18161 18162 type OfferCustomizedInfoBuilder struct { 18163 id string // 自定义字段 ID 18164 idFlag bool 18165 value string // 自定义字段信息,以字符串形式传入,如:;1. 单选: "1";2. 多选:"[\"1\", \"2\"]";3. 日期:"2022-05-26";4. 年份选择:"2022";5. 月份选择:"2022-05";6. 单行文本:"xxx ";7. 多行文本:"xxx ";8. 数字:"123";9. 金额:"123.1" 18166 valueFlag bool 18167 } 18168 18169 func NewOfferCustomizedInfoBuilder() *OfferCustomizedInfoBuilder { 18170 builder := &OfferCustomizedInfoBuilder{} 18171 return builder 18172 } 18173 18174 // 自定义字段 ID 18175 // 18176 // 示例值:6972464088568269100 18177 func (builder *OfferCustomizedInfoBuilder) Id(id string) *OfferCustomizedInfoBuilder { 18178 builder.id = id 18179 builder.idFlag = true 18180 return builder 18181 } 18182 18183 // 自定义字段信息,以字符串形式传入,如:;1. 单选: "1";2. 多选:"[\"1\", \"2\"]";3. 日期:"2022-05-26";4. 年份选择:"2022";5. 月份选择:"2022-05";6. 单行文本:"xxx ";7. 多行文本:"xxx ";8. 数字:"123";9. 金额:"123.1" 18184 // 18185 // 示例值:1 18186 func (builder *OfferCustomizedInfoBuilder) Value(value string) *OfferCustomizedInfoBuilder { 18187 builder.value = value 18188 builder.valueFlag = true 18189 return builder 18190 } 18191 18192 func (builder *OfferCustomizedInfoBuilder) Build() *OfferCustomizedInfo { 18193 req := &OfferCustomizedInfo{} 18194 if builder.idFlag { 18195 req.Id = &builder.id 18196 18197 } 18198 if builder.valueFlag { 18199 req.Value = &builder.value 18200 18201 } 18202 return req 18203 } 18204 18205 type OfferInfo struct { 18206 OfferId *string `json:"offer_id,omitempty"` // Offer ID 18207 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 18208 SchemaId *string `json:"schema_id,omitempty"` // Offer 申请表模板 ID,用于描述申请表单结构的元数据定义,即对申请表内容的描述。用户每一次更改 Offer 申请表模板信息,都会生成新的 schema_id,创建 Offer 时应传入最新的 schema_id,可从「获取Offer申请表模板信息」接口中获取 18209 BasicInfo *OfferBasicInfo `json:"basic_info,omitempty"` // Offer 基本信息 18210 SalaryInfo *OfferSalaryInfo `json:"salary_info,omitempty"` // Offer 薪资信息 18211 CustomizedInfoList []*OfferCustomizedInfo `json:"customized_info_list,omitempty"` // 自定义信息 18212 } 18213 18214 type OfferInfoBuilder struct { 18215 offerId string // Offer ID 18216 offerIdFlag bool 18217 applicationId string // 投递 ID 18218 applicationIdFlag bool 18219 schemaId string // Offer 申请表模板 ID,用于描述申请表单结构的元数据定义,即对申请表内容的描述。用户每一次更改 Offer 申请表模板信息,都会生成新的 schema_id,创建 Offer 时应传入最新的 schema_id,可从「获取Offer申请表模板信息」接口中获取 18220 schemaIdFlag bool 18221 basicInfo *OfferBasicInfo // Offer 基本信息 18222 basicInfoFlag bool 18223 salaryInfo *OfferSalaryInfo // Offer 薪资信息 18224 salaryInfoFlag bool 18225 customizedInfoList []*OfferCustomizedInfo // 自定义信息 18226 customizedInfoListFlag bool 18227 } 18228 18229 func NewOfferInfoBuilder() *OfferInfoBuilder { 18230 builder := &OfferInfoBuilder{} 18231 return builder 18232 } 18233 18234 // Offer ID 18235 // 18236 // 示例值:7016605170635213100 18237 func (builder *OfferInfoBuilder) OfferId(offerId string) *OfferInfoBuilder { 18238 builder.offerId = offerId 18239 builder.offerIdFlag = true 18240 return builder 18241 } 18242 18243 // 投递 ID 18244 // 18245 // 示例值:7013552389293279532 18246 func (builder *OfferInfoBuilder) ApplicationId(applicationId string) *OfferInfoBuilder { 18247 builder.applicationId = applicationId 18248 builder.applicationIdFlag = true 18249 return builder 18250 } 18251 18252 // Offer 申请表模板 ID,用于描述申请表单结构的元数据定义,即对申请表内容的描述。用户每一次更改 Offer 申请表模板信息,都会生成新的 schema_id,创建 Offer 时应传入最新的 schema_id,可从「获取Offer申请表模板信息」接口中获取 18253 // 18254 // 示例值:7013318077945596204 18255 func (builder *OfferInfoBuilder) SchemaId(schemaId string) *OfferInfoBuilder { 18256 builder.schemaId = schemaId 18257 builder.schemaIdFlag = true 18258 return builder 18259 } 18260 18261 // Offer 基本信息 18262 // 18263 // 示例值: 18264 func (builder *OfferInfoBuilder) BasicInfo(basicInfo *OfferBasicInfo) *OfferInfoBuilder { 18265 builder.basicInfo = basicInfo 18266 builder.basicInfoFlag = true 18267 return builder 18268 } 18269 18270 // Offer 薪资信息 18271 // 18272 // 示例值: 18273 func (builder *OfferInfoBuilder) SalaryInfo(salaryInfo *OfferSalaryInfo) *OfferInfoBuilder { 18274 builder.salaryInfo = salaryInfo 18275 builder.salaryInfoFlag = true 18276 return builder 18277 } 18278 18279 // 自定义信息 18280 // 18281 // 示例值: 18282 func (builder *OfferInfoBuilder) CustomizedInfoList(customizedInfoList []*OfferCustomizedInfo) *OfferInfoBuilder { 18283 builder.customizedInfoList = customizedInfoList 18284 builder.customizedInfoListFlag = true 18285 return builder 18286 } 18287 18288 func (builder *OfferInfoBuilder) Build() *OfferInfo { 18289 req := &OfferInfo{} 18290 if builder.offerIdFlag { 18291 req.OfferId = &builder.offerId 18292 18293 } 18294 if builder.applicationIdFlag { 18295 req.ApplicationId = &builder.applicationId 18296 18297 } 18298 if builder.schemaIdFlag { 18299 req.SchemaId = &builder.schemaId 18300 18301 } 18302 if builder.basicInfoFlag { 18303 req.BasicInfo = builder.basicInfo 18304 } 18305 if builder.salaryInfoFlag { 18306 req.SalaryInfo = builder.salaryInfo 18307 } 18308 if builder.customizedInfoListFlag { 18309 req.CustomizedInfoList = builder.customizedInfoList 18310 } 18311 return req 18312 } 18313 18314 type OfferJobInfo struct { 18315 JobId *string `json:"job_id,omitempty"` // Offer 职位 ID 18316 JobName *string `json:"job_name,omitempty"` // Offer 职位名称 18317 } 18318 18319 type OfferJobInfoBuilder struct { 18320 jobId string // Offer 职位 ID 18321 jobIdFlag bool 18322 jobName string // Offer 职位名称 18323 jobNameFlag bool 18324 } 18325 18326 func NewOfferJobInfoBuilder() *OfferJobInfoBuilder { 18327 builder := &OfferJobInfoBuilder{} 18328 return builder 18329 } 18330 18331 // Offer 职位 ID 18332 // 18333 // 示例值:7080891505426925854 18334 func (builder *OfferJobInfoBuilder) JobId(jobId string) *OfferJobInfoBuilder { 18335 builder.jobId = jobId 18336 builder.jobIdFlag = true 18337 return builder 18338 } 18339 18340 // Offer 职位名称 18341 // 18342 // 示例值:xx 18343 func (builder *OfferJobInfoBuilder) JobName(jobName string) *OfferJobInfoBuilder { 18344 builder.jobName = jobName 18345 builder.jobNameFlag = true 18346 return builder 18347 } 18348 18349 func (builder *OfferJobInfoBuilder) Build() *OfferJobInfo { 18350 req := &OfferJobInfo{} 18351 if builder.jobIdFlag { 18352 req.JobId = &builder.jobId 18353 18354 } 18355 if builder.jobNameFlag { 18356 req.JobName = &builder.jobName 18357 18358 } 18359 return req 18360 } 18361 18362 type OfferListInfo struct { 18363 Id *string `json:"id,omitempty"` // Offer ID 18364 JobInfo *OfferJobInfo `json:"job_info,omitempty"` // Offer 职位 18365 CreateTime *string `json:"create_time,omitempty"` // 创建时间 18366 OfferStatus *int `json:"offer_status,omitempty"` // Offer 状态 18367 EmployeeType *BaseBilingualWithId `json:"employee_type,omitempty"` // Offer 人员类型 18368 ApplicationId *string `json:"application_id,omitempty"` // Offer 投递 ID 18369 } 18370 18371 type OfferListInfoBuilder struct { 18372 id string // Offer ID 18373 idFlag bool 18374 jobInfo *OfferJobInfo // Offer 职位 18375 jobInfoFlag bool 18376 createTime string // 创建时间 18377 createTimeFlag bool 18378 offerStatus int // Offer 状态 18379 offerStatusFlag bool 18380 employeeType *BaseBilingualWithId // Offer 人员类型 18381 employeeTypeFlag bool 18382 applicationId string // Offer 投递 ID 18383 applicationIdFlag bool 18384 } 18385 18386 func NewOfferListInfoBuilder() *OfferListInfoBuilder { 18387 builder := &OfferListInfoBuilder{} 18388 return builder 18389 } 18390 18391 // Offer ID 18392 // 18393 // 示例值:7096320678581242123 18394 func (builder *OfferListInfoBuilder) Id(id string) *OfferListInfoBuilder { 18395 builder.id = id 18396 builder.idFlag = true 18397 return builder 18398 } 18399 18400 // Offer 职位 18401 // 18402 // 示例值: 18403 func (builder *OfferListInfoBuilder) JobInfo(jobInfo *OfferJobInfo) *OfferListInfoBuilder { 18404 builder.jobInfo = jobInfo 18405 builder.jobInfoFlag = true 18406 return builder 18407 } 18408 18409 // 创建时间 18410 // 18411 // 示例值:1628512038000 18412 func (builder *OfferListInfoBuilder) CreateTime(createTime string) *OfferListInfoBuilder { 18413 builder.createTime = createTime 18414 builder.createTimeFlag = true 18415 return builder 18416 } 18417 18418 // Offer 状态 18419 // 18420 // 示例值:0 18421 func (builder *OfferListInfoBuilder) OfferStatus(offerStatus int) *OfferListInfoBuilder { 18422 builder.offerStatus = offerStatus 18423 builder.offerStatusFlag = true 18424 return builder 18425 } 18426 18427 // Offer 人员类型 18428 // 18429 // 示例值: 18430 func (builder *OfferListInfoBuilder) EmployeeType(employeeType *BaseBilingualWithId) *OfferListInfoBuilder { 18431 builder.employeeType = employeeType 18432 builder.employeeTypeFlag = true 18433 return builder 18434 } 18435 18436 // Offer 投递 ID 18437 // 18438 // 示例值:7096358713330272526 18439 func (builder *OfferListInfoBuilder) ApplicationId(applicationId string) *OfferListInfoBuilder { 18440 builder.applicationId = applicationId 18441 builder.applicationIdFlag = true 18442 return builder 18443 } 18444 18445 func (builder *OfferListInfoBuilder) Build() *OfferListInfo { 18446 req := &OfferListInfo{} 18447 if builder.idFlag { 18448 req.Id = &builder.id 18449 18450 } 18451 if builder.jobInfoFlag { 18452 req.JobInfo = builder.jobInfo 18453 } 18454 if builder.createTimeFlag { 18455 req.CreateTime = &builder.createTime 18456 18457 } 18458 if builder.offerStatusFlag { 18459 req.OfferStatus = &builder.offerStatus 18460 18461 } 18462 if builder.employeeTypeFlag { 18463 req.EmployeeType = builder.employeeType 18464 } 18465 if builder.applicationIdFlag { 18466 req.ApplicationId = &builder.applicationId 18467 18468 } 18469 return req 18470 } 18471 18472 type OfferSalaryInfo struct { 18473 Currency *string `json:"currency,omitempty"` // 币种 18474 BasicSalary *string `json:"basic_salary,omitempty"` // 基本工资,当启用 Offer 申请表中的「薪资信息」模块时,「基本工资」字段为必传项 18475 ProbationSalaryPercentage *string `json:"probation_salary_percentage,omitempty"` // 试用期百分比 18476 AwardSalaryMultiple *string `json:"award_salary_multiple,omitempty"` // 年终奖月数 18477 OptionShares *string `json:"option_shares,omitempty"` // 期权股数 18478 QuarterlyBonus *string `json:"quarterly_bonus,omitempty"` // 季度奖金额 18479 HalfYearBonus *string `json:"half_year_bonus,omitempty"` // 半年奖金额 18480 } 18481 18482 type OfferSalaryInfoBuilder struct { 18483 currency string // 币种 18484 currencyFlag bool 18485 basicSalary string // 基本工资,当启用 Offer 申请表中的「薪资信息」模块时,「基本工资」字段为必传项 18486 basicSalaryFlag bool 18487 probationSalaryPercentage string // 试用期百分比 18488 probationSalaryPercentageFlag bool 18489 awardSalaryMultiple string // 年终奖月数 18490 awardSalaryMultipleFlag bool 18491 optionShares string // 期权股数 18492 optionSharesFlag bool 18493 quarterlyBonus string // 季度奖金额 18494 quarterlyBonusFlag bool 18495 halfYearBonus string // 半年奖金额 18496 halfYearBonusFlag bool 18497 } 18498 18499 func NewOfferSalaryInfoBuilder() *OfferSalaryInfoBuilder { 18500 builder := &OfferSalaryInfoBuilder{} 18501 return builder 18502 } 18503 18504 // 币种 18505 // 18506 // 示例值:CNY 18507 func (builder *OfferSalaryInfoBuilder) Currency(currency string) *OfferSalaryInfoBuilder { 18508 builder.currency = currency 18509 builder.currencyFlag = true 18510 return builder 18511 } 18512 18513 // 基本工资,当启用 Offer 申请表中的「薪资信息」模块时,「基本工资」字段为必传项 18514 // 18515 // 示例值:1000000 18516 func (builder *OfferSalaryInfoBuilder) BasicSalary(basicSalary string) *OfferSalaryInfoBuilder { 18517 builder.basicSalary = basicSalary 18518 builder.basicSalaryFlag = true 18519 return builder 18520 } 18521 18522 // 试用期百分比 18523 // 18524 // 示例值:0.8 18525 func (builder *OfferSalaryInfoBuilder) ProbationSalaryPercentage(probationSalaryPercentage string) *OfferSalaryInfoBuilder { 18526 builder.probationSalaryPercentage = probationSalaryPercentage 18527 builder.probationSalaryPercentageFlag = true 18528 return builder 18529 } 18530 18531 // 年终奖月数 18532 // 18533 // 示例值:3 18534 func (builder *OfferSalaryInfoBuilder) AwardSalaryMultiple(awardSalaryMultiple string) *OfferSalaryInfoBuilder { 18535 builder.awardSalaryMultiple = awardSalaryMultiple 18536 builder.awardSalaryMultipleFlag = true 18537 return builder 18538 } 18539 18540 // 期权股数 18541 // 18542 // 示例值:30 18543 func (builder *OfferSalaryInfoBuilder) OptionShares(optionShares string) *OfferSalaryInfoBuilder { 18544 builder.optionShares = optionShares 18545 builder.optionSharesFlag = true 18546 return builder 18547 } 18548 18549 // 季度奖金额 18550 // 18551 // 示例值:3000 18552 func (builder *OfferSalaryInfoBuilder) QuarterlyBonus(quarterlyBonus string) *OfferSalaryInfoBuilder { 18553 builder.quarterlyBonus = quarterlyBonus 18554 builder.quarterlyBonusFlag = true 18555 return builder 18556 } 18557 18558 // 半年奖金额 18559 // 18560 // 示例值:10000 18561 func (builder *OfferSalaryInfoBuilder) HalfYearBonus(halfYearBonus string) *OfferSalaryInfoBuilder { 18562 builder.halfYearBonus = halfYearBonus 18563 builder.halfYearBonusFlag = true 18564 return builder 18565 } 18566 18567 func (builder *OfferSalaryInfoBuilder) Build() *OfferSalaryInfo { 18568 req := &OfferSalaryInfo{} 18569 if builder.currencyFlag { 18570 req.Currency = &builder.currency 18571 18572 } 18573 if builder.basicSalaryFlag { 18574 req.BasicSalary = &builder.basicSalary 18575 18576 } 18577 if builder.probationSalaryPercentageFlag { 18578 req.ProbationSalaryPercentage = &builder.probationSalaryPercentage 18579 18580 } 18581 if builder.awardSalaryMultipleFlag { 18582 req.AwardSalaryMultiple = &builder.awardSalaryMultiple 18583 18584 } 18585 if builder.optionSharesFlag { 18586 req.OptionShares = &builder.optionShares 18587 18588 } 18589 if builder.quarterlyBonusFlag { 18590 req.QuarterlyBonus = &builder.quarterlyBonus 18591 18592 } 18593 if builder.halfYearBonusFlag { 18594 req.HalfYearBonus = &builder.halfYearBonus 18595 18596 } 18597 return req 18598 } 18599 18600 type OfferSchema struct { 18601 Id *string `json:"id,omitempty"` // offer申请表ID 18602 Scenario *int `json:"scenario,omitempty"` // offer申请表使用场景 18603 Version *int `json:"version,omitempty"` // 申请表版本 18604 ObjectList []*OfferSchemaDetail `json:"object_list,omitempty"` // 字段对象信息 18605 } 18606 18607 type OfferSchemaBuilder struct { 18608 id string // offer申请表ID 18609 idFlag bool 18610 scenario int // offer申请表使用场景 18611 scenarioFlag bool 18612 version int // 申请表版本 18613 versionFlag bool 18614 objectList []*OfferSchemaDetail // 字段对象信息 18615 objectListFlag bool 18616 } 18617 18618 func NewOfferSchemaBuilder() *OfferSchemaBuilder { 18619 builder := &OfferSchemaBuilder{} 18620 return builder 18621 } 18622 18623 // offer申请表ID 18624 // 18625 // 示例值:1213213123123 18626 func (builder *OfferSchemaBuilder) Id(id string) *OfferSchemaBuilder { 18627 builder.id = id 18628 builder.idFlag = true 18629 return builder 18630 } 18631 18632 // offer申请表使用场景 18633 // 18634 // 示例值:1 18635 func (builder *OfferSchemaBuilder) Scenario(scenario int) *OfferSchemaBuilder { 18636 builder.scenario = scenario 18637 builder.scenarioFlag = true 18638 return builder 18639 } 18640 18641 // 申请表版本 18642 // 18643 // 示例值:121 18644 func (builder *OfferSchemaBuilder) Version(version int) *OfferSchemaBuilder { 18645 builder.version = version 18646 builder.versionFlag = true 18647 return builder 18648 } 18649 18650 // 字段对象信息 18651 // 18652 // 示例值: 18653 func (builder *OfferSchemaBuilder) ObjectList(objectList []*OfferSchemaDetail) *OfferSchemaBuilder { 18654 builder.objectList = objectList 18655 builder.objectListFlag = true 18656 return builder 18657 } 18658 18659 func (builder *OfferSchemaBuilder) Build() *OfferSchema { 18660 req := &OfferSchema{} 18661 if builder.idFlag { 18662 req.Id = &builder.id 18663 18664 } 18665 if builder.scenarioFlag { 18666 req.Scenario = &builder.scenario 18667 18668 } 18669 if builder.versionFlag { 18670 req.Version = &builder.version 18671 18672 } 18673 if builder.objectListFlag { 18674 req.ObjectList = builder.objectList 18675 } 18676 return req 18677 } 18678 18679 type OfferSchemaChild struct { 18680 Id *string `json:"id,omitempty"` // offer申请表ID 18681 Scenario *int `json:"scenario,omitempty"` // offer申请表使用场景 18682 Version *int `json:"version,omitempty"` // 申请表版本 18683 ObjectList []*OfferSchemaDetail `json:"object_list,omitempty"` // 字段对象信息 18684 } 18685 18686 type OfferSchemaChildBuilder struct { 18687 id string // offer申请表ID 18688 idFlag bool 18689 scenario int // offer申请表使用场景 18690 scenarioFlag bool 18691 version int // 申请表版本 18692 versionFlag bool 18693 objectList []*OfferSchemaDetail // 字段对象信息 18694 objectListFlag bool 18695 } 18696 18697 func NewOfferSchemaChildBuilder() *OfferSchemaChildBuilder { 18698 builder := &OfferSchemaChildBuilder{} 18699 return builder 18700 } 18701 18702 // offer申请表ID 18703 // 18704 // 示例值:1213213123123 18705 func (builder *OfferSchemaChildBuilder) Id(id string) *OfferSchemaChildBuilder { 18706 builder.id = id 18707 builder.idFlag = true 18708 return builder 18709 } 18710 18711 // offer申请表使用场景 18712 // 18713 // 示例值:1 18714 func (builder *OfferSchemaChildBuilder) Scenario(scenario int) *OfferSchemaChildBuilder { 18715 builder.scenario = scenario 18716 builder.scenarioFlag = true 18717 return builder 18718 } 18719 18720 // 申请表版本 18721 // 18722 // 示例值:121 18723 func (builder *OfferSchemaChildBuilder) Version(version int) *OfferSchemaChildBuilder { 18724 builder.version = version 18725 builder.versionFlag = true 18726 return builder 18727 } 18728 18729 // 字段对象信息 18730 // 18731 // 示例值: 18732 func (builder *OfferSchemaChildBuilder) ObjectList(objectList []*OfferSchemaDetail) *OfferSchemaChildBuilder { 18733 builder.objectList = objectList 18734 builder.objectListFlag = true 18735 return builder 18736 } 18737 18738 func (builder *OfferSchemaChildBuilder) Build() *OfferSchemaChild { 18739 req := &OfferSchemaChild{} 18740 if builder.idFlag { 18741 req.Id = &builder.id 18742 18743 } 18744 if builder.scenarioFlag { 18745 req.Scenario = &builder.scenario 18746 18747 } 18748 if builder.versionFlag { 18749 req.Version = &builder.version 18750 18751 } 18752 if builder.objectListFlag { 18753 req.ObjectList = builder.objectList 18754 } 18755 return req 18756 } 18757 18758 type OfferSchemaDetail struct { 18759 Id *string `json:"id,omitempty"` // 字段ID 18760 Name *OfferSchemaName `json:"name,omitempty"` // 字段名称 18761 Type *string `json:"type,omitempty"` // 字段类型, text=单行文本, long_text=多行文本, select=单选, multi_select=多选, date_select=日期, number=数字 18762 IsCustomized *bool `json:"is_customized,omitempty"` // 字段是否为自定义 18763 OptionList []*OfferSchemaDetailOption `json:"option_list,omitempty"` // 单选/多选可选择字段的选项值 18764 } 18765 18766 type OfferSchemaDetailBuilder struct { 18767 id string // 字段ID 18768 idFlag bool 18769 name *OfferSchemaName // 字段名称 18770 nameFlag bool 18771 type_ string // 字段类型, text=单行文本, long_text=多行文本, select=单选, multi_select=多选, date_select=日期, number=数字 18772 typeFlag bool 18773 isCustomized bool // 字段是否为自定义 18774 isCustomizedFlag bool 18775 optionList []*OfferSchemaDetailOption // 单选/多选可选择字段的选项值 18776 optionListFlag bool 18777 } 18778 18779 func NewOfferSchemaDetailBuilder() *OfferSchemaDetailBuilder { 18780 builder := &OfferSchemaDetailBuilder{} 18781 return builder 18782 } 18783 18784 // 字段ID 18785 // 18786 // 示例值:1213213123123 18787 func (builder *OfferSchemaDetailBuilder) Id(id string) *OfferSchemaDetailBuilder { 18788 builder.id = id 18789 builder.idFlag = true 18790 return builder 18791 } 18792 18793 // 字段名称 18794 // 18795 // 示例值: 18796 func (builder *OfferSchemaDetailBuilder) Name(name *OfferSchemaName) *OfferSchemaDetailBuilder { 18797 builder.name = name 18798 builder.nameFlag = true 18799 return builder 18800 } 18801 18802 // 字段类型, text=单行文本, long_text=多行文本, select=单选, multi_select=多选, date_select=日期, number=数字 18803 // 18804 // 示例值:number 18805 func (builder *OfferSchemaDetailBuilder) Type(type_ string) *OfferSchemaDetailBuilder { 18806 builder.type_ = type_ 18807 builder.typeFlag = true 18808 return builder 18809 } 18810 18811 // 字段是否为自定义 18812 // 18813 // 示例值:true 18814 func (builder *OfferSchemaDetailBuilder) IsCustomized(isCustomized bool) *OfferSchemaDetailBuilder { 18815 builder.isCustomized = isCustomized 18816 builder.isCustomizedFlag = true 18817 return builder 18818 } 18819 18820 // 单选/多选可选择字段的选项值 18821 // 18822 // 示例值: 18823 func (builder *OfferSchemaDetailBuilder) OptionList(optionList []*OfferSchemaDetailOption) *OfferSchemaDetailBuilder { 18824 builder.optionList = optionList 18825 builder.optionListFlag = true 18826 return builder 18827 } 18828 18829 func (builder *OfferSchemaDetailBuilder) Build() *OfferSchemaDetail { 18830 req := &OfferSchemaDetail{} 18831 if builder.idFlag { 18832 req.Id = &builder.id 18833 18834 } 18835 if builder.nameFlag { 18836 req.Name = builder.name 18837 } 18838 if builder.typeFlag { 18839 req.Type = &builder.type_ 18840 18841 } 18842 if builder.isCustomizedFlag { 18843 req.IsCustomized = &builder.isCustomized 18844 18845 } 18846 if builder.optionListFlag { 18847 req.OptionList = builder.optionList 18848 } 18849 return req 18850 } 18851 18852 type OfferSchemaDetailOption struct { 18853 Name *OfferSchemaName `json:"name,omitempty"` // 名字 18854 Index *int `json:"index,omitempty"` // 选项序号 18855 ActiveStatus *int `json:"active_status,omitempty"` // 选项当前是否启用 18856 } 18857 18858 type OfferSchemaDetailOptionBuilder struct { 18859 name *OfferSchemaName // 名字 18860 nameFlag bool 18861 index int // 选项序号 18862 indexFlag bool 18863 activeStatus int // 选项当前是否启用 18864 activeStatusFlag bool 18865 } 18866 18867 func NewOfferSchemaDetailOptionBuilder() *OfferSchemaDetailOptionBuilder { 18868 builder := &OfferSchemaDetailOptionBuilder{} 18869 return builder 18870 } 18871 18872 // 名字 18873 // 18874 // 示例值: 18875 func (builder *OfferSchemaDetailOptionBuilder) Name(name *OfferSchemaName) *OfferSchemaDetailOptionBuilder { 18876 builder.name = name 18877 builder.nameFlag = true 18878 return builder 18879 } 18880 18881 // 选项序号 18882 // 18883 // 示例值:121 18884 func (builder *OfferSchemaDetailOptionBuilder) Index(index int) *OfferSchemaDetailOptionBuilder { 18885 builder.index = index 18886 builder.indexFlag = true 18887 return builder 18888 } 18889 18890 // 选项当前是否启用 18891 // 18892 // 示例值:1 18893 func (builder *OfferSchemaDetailOptionBuilder) ActiveStatus(activeStatus int) *OfferSchemaDetailOptionBuilder { 18894 builder.activeStatus = activeStatus 18895 builder.activeStatusFlag = true 18896 return builder 18897 } 18898 18899 func (builder *OfferSchemaDetailOptionBuilder) Build() *OfferSchemaDetailOption { 18900 req := &OfferSchemaDetailOption{} 18901 if builder.nameFlag { 18902 req.Name = builder.name 18903 } 18904 if builder.indexFlag { 18905 req.Index = &builder.index 18906 18907 } 18908 if builder.activeStatusFlag { 18909 req.ActiveStatus = &builder.activeStatus 18910 18911 } 18912 return req 18913 } 18914 18915 type OfferSchemaListInfo struct { 18916 SchemaList []*OfferSchemaChild `json:"schema_list,omitempty"` // offer申请表列表 18917 } 18918 18919 type OfferSchemaListInfoBuilder struct { 18920 schemaList []*OfferSchemaChild // offer申请表列表 18921 schemaListFlag bool 18922 } 18923 18924 func NewOfferSchemaListInfoBuilder() *OfferSchemaListInfoBuilder { 18925 builder := &OfferSchemaListInfoBuilder{} 18926 return builder 18927 } 18928 18929 // offer申请表列表 18930 // 18931 // 示例值: 18932 func (builder *OfferSchemaListInfoBuilder) SchemaList(schemaList []*OfferSchemaChild) *OfferSchemaListInfoBuilder { 18933 builder.schemaList = schemaList 18934 builder.schemaListFlag = true 18935 return builder 18936 } 18937 18938 func (builder *OfferSchemaListInfoBuilder) Build() *OfferSchemaListInfo { 18939 req := &OfferSchemaListInfo{} 18940 if builder.schemaListFlag { 18941 req.SchemaList = builder.schemaList 18942 } 18943 return req 18944 } 18945 18946 type OfferSchemaName struct { 18947 ZhCn *string `json:"zh_cn,omitempty"` // 中文名 18948 EnUs *string `json:"en_us,omitempty"` // 英文名 18949 } 18950 18951 type OfferSchemaNameBuilder struct { 18952 zhCn string // 中文名 18953 zhCnFlag bool 18954 enUs string // 英文名 18955 enUsFlag bool 18956 } 18957 18958 func NewOfferSchemaNameBuilder() *OfferSchemaNameBuilder { 18959 builder := &OfferSchemaNameBuilder{} 18960 return builder 18961 } 18962 18963 // 中文名 18964 // 18965 // 示例值:名字 18966 func (builder *OfferSchemaNameBuilder) ZhCn(zhCn string) *OfferSchemaNameBuilder { 18967 builder.zhCn = zhCn 18968 builder.zhCnFlag = true 18969 return builder 18970 } 18971 18972 // 英文名 18973 // 18974 // 示例值:name 18975 func (builder *OfferSchemaNameBuilder) EnUs(enUs string) *OfferSchemaNameBuilder { 18976 builder.enUs = enUs 18977 builder.enUsFlag = true 18978 return builder 18979 } 18980 18981 func (builder *OfferSchemaNameBuilder) Build() *OfferSchemaName { 18982 req := &OfferSchemaName{} 18983 if builder.zhCnFlag { 18984 req.ZhCn = &builder.zhCn 18985 18986 } 18987 if builder.enUsFlag { 18988 req.EnUs = &builder.enUs 18989 18990 } 18991 return req 18992 } 18993 18994 type OfferSelectionObject struct { 18995 SchemaVersion *int `json:"schema_version,omitempty"` // 自定义字段所在的审批表版本 18996 OptionList []*OfferSchemaDetailOption `json:"option_list,omitempty"` // 选项 18997 } 18998 18999 type OfferSelectionObjectBuilder struct { 19000 schemaVersion int // 自定义字段所在的审批表版本 19001 schemaVersionFlag bool 19002 optionList []*OfferSchemaDetailOption // 选项 19003 optionListFlag bool 19004 } 19005 19006 func NewOfferSelectionObjectBuilder() *OfferSelectionObjectBuilder { 19007 builder := &OfferSelectionObjectBuilder{} 19008 return builder 19009 } 19010 19011 // 自定义字段所在的审批表版本 19012 // 19013 // 示例值: 19014 func (builder *OfferSelectionObjectBuilder) SchemaVersion(schemaVersion int) *OfferSelectionObjectBuilder { 19015 builder.schemaVersion = schemaVersion 19016 builder.schemaVersionFlag = true 19017 return builder 19018 } 19019 19020 // 选项 19021 // 19022 // 示例值: 19023 func (builder *OfferSelectionObjectBuilder) OptionList(optionList []*OfferSchemaDetailOption) *OfferSelectionObjectBuilder { 19024 builder.optionList = optionList 19025 builder.optionListFlag = true 19026 return builder 19027 } 19028 19029 func (builder *OfferSelectionObjectBuilder) Build() *OfferSelectionObject { 19030 req := &OfferSelectionObject{} 19031 if builder.schemaVersionFlag { 19032 req.SchemaVersion = &builder.schemaVersion 19033 19034 } 19035 if builder.optionListFlag { 19036 req.OptionList = builder.optionList 19037 } 19038 return req 19039 } 19040 19041 type ProjectInfo struct { 19042 Desc *string `json:"desc,omitempty"` // 描述 19043 EndTime *int `json:"end_time,omitempty"` // 结束时间 19044 Link *string `json:"link,omitempty"` // 项目链接 19045 Name *string `json:"name,omitempty"` // 项目名称 19046 Role *string `json:"role,omitempty"` // 项目角色 19047 StartTime *int `json:"start_time,omitempty"` // 开始时间 19048 } 19049 19050 type ProjectInfoBuilder struct { 19051 desc string // 描述 19052 descFlag bool 19053 endTime int // 结束时间 19054 endTimeFlag bool 19055 link string // 项目链接 19056 linkFlag bool 19057 name string // 项目名称 19058 nameFlag bool 19059 role string // 项目角色 19060 roleFlag bool 19061 startTime int // 开始时间 19062 startTimeFlag bool 19063 } 19064 19065 func NewProjectInfoBuilder() *ProjectInfoBuilder { 19066 builder := &ProjectInfoBuilder{} 19067 return builder 19068 } 19069 19070 // 描述 19071 // 19072 // 示例值: 19073 func (builder *ProjectInfoBuilder) Desc(desc string) *ProjectInfoBuilder { 19074 builder.desc = desc 19075 builder.descFlag = true 19076 return builder 19077 } 19078 19079 // 结束时间 19080 // 19081 // 示例值: 19082 func (builder *ProjectInfoBuilder) EndTime(endTime int) *ProjectInfoBuilder { 19083 builder.endTime = endTime 19084 builder.endTimeFlag = true 19085 return builder 19086 } 19087 19088 // 项目链接 19089 // 19090 // 示例值: 19091 func (builder *ProjectInfoBuilder) Link(link string) *ProjectInfoBuilder { 19092 builder.link = link 19093 builder.linkFlag = true 19094 return builder 19095 } 19096 19097 // 项目名称 19098 // 19099 // 示例值: 19100 func (builder *ProjectInfoBuilder) Name(name string) *ProjectInfoBuilder { 19101 builder.name = name 19102 builder.nameFlag = true 19103 return builder 19104 } 19105 19106 // 项目角色 19107 // 19108 // 示例值: 19109 func (builder *ProjectInfoBuilder) Role(role string) *ProjectInfoBuilder { 19110 builder.role = role 19111 builder.roleFlag = true 19112 return builder 19113 } 19114 19115 // 开始时间 19116 // 19117 // 示例值: 19118 func (builder *ProjectInfoBuilder) StartTime(startTime int) *ProjectInfoBuilder { 19119 builder.startTime = startTime 19120 builder.startTimeFlag = true 19121 return builder 19122 } 19123 19124 func (builder *ProjectInfoBuilder) Build() *ProjectInfo { 19125 req := &ProjectInfo{} 19126 if builder.descFlag { 19127 req.Desc = &builder.desc 19128 19129 } 19130 if builder.endTimeFlag { 19131 req.EndTime = &builder.endTime 19132 19133 } 19134 if builder.linkFlag { 19135 req.Link = &builder.link 19136 19137 } 19138 if builder.nameFlag { 19139 req.Name = &builder.name 19140 19141 } 19142 if builder.roleFlag { 19143 req.Role = &builder.role 19144 19145 } 19146 if builder.startTimeFlag { 19147 req.StartTime = &builder.startTime 19148 19149 } 19150 return req 19151 } 19152 19153 type PushStage struct { 19154 } 19155 19156 type Question struct { 19157 QuestionId *string `json:"question_id,omitempty"` // 题目 ID 19158 QuestionName *string `json:"question_name,omitempty"` // 题目中文名称 19159 QuestionEnName *string `json:"question_en_name,omitempty"` // 题目英文名称 19160 QuestionDesc *string `json:"question_desc,omitempty"` // 题目中文描述 19161 QuestionEnDesc *string `json:"question_en_desc,omitempty"` // 题目英文描述 19162 QuestionType *int `json:"question_type,omitempty"` // 题目类型 19163 IsRequired *bool `json:"is_required,omitempty"` // 是否必填 19164 SelectOptionResultList []*SelectOptionResult `json:"select_option_result_list,omitempty"` // 选项题回答列表(单选题及多选题) 19165 FiveStartScoringResult *FiveStartScoringResult `json:"five_start_scoring_result,omitempty"` // 评分题回答 19166 DescriptionResult *string `json:"description_result,omitempty"` // 描述题回答 19167 } 19168 19169 type QuestionBuilder struct { 19170 questionId string // 题目 ID 19171 questionIdFlag bool 19172 questionName string // 题目中文名称 19173 questionNameFlag bool 19174 questionEnName string // 题目英文名称 19175 questionEnNameFlag bool 19176 questionDesc string // 题目中文描述 19177 questionDescFlag bool 19178 questionEnDesc string // 题目英文描述 19179 questionEnDescFlag bool 19180 questionType int // 题目类型 19181 questionTypeFlag bool 19182 isRequired bool // 是否必填 19183 isRequiredFlag bool 19184 selectOptionResultList []*SelectOptionResult // 选项题回答列表(单选题及多选题) 19185 selectOptionResultListFlag bool 19186 fiveStartScoringResult *FiveStartScoringResult // 评分题回答 19187 fiveStartScoringResultFlag bool 19188 descriptionResult string // 描述题回答 19189 descriptionResultFlag bool 19190 } 19191 19192 func NewQuestionBuilder() *QuestionBuilder { 19193 builder := &QuestionBuilder{} 19194 return builder 19195 } 19196 19197 // 题目 ID 19198 // 19199 // 示例值:6950930570311829804 19200 func (builder *QuestionBuilder) QuestionId(questionId string) *QuestionBuilder { 19201 builder.questionId = questionId 19202 builder.questionIdFlag = true 19203 return builder 19204 } 19205 19206 // 题目中文名称 19207 // 19208 // 示例值:你的总体评价如何? 19209 func (builder *QuestionBuilder) QuestionName(questionName string) *QuestionBuilder { 19210 builder.questionName = questionName 19211 builder.questionNameFlag = true 19212 return builder 19213 } 19214 19215 // 题目英文名称 19216 // 19217 // 示例值:How would you describe your overall experience? 19218 func (builder *QuestionBuilder) QuestionEnName(questionEnName string) *QuestionBuilder { 19219 builder.questionEnName = questionEnName 19220 builder.questionEnNameFlag = true 19221 return builder 19222 } 19223 19224 // 题目中文描述 19225 // 19226 // 示例值:测试描述内容 19227 func (builder *QuestionBuilder) QuestionDesc(questionDesc string) *QuestionBuilder { 19228 builder.questionDesc = questionDesc 19229 builder.questionDescFlag = true 19230 return builder 19231 } 19232 19233 // 题目英文描述 19234 // 19235 // 示例值:Test Text 19236 func (builder *QuestionBuilder) QuestionEnDesc(questionEnDesc string) *QuestionBuilder { 19237 builder.questionEnDesc = questionEnDesc 19238 builder.questionEnDescFlag = true 19239 return builder 19240 } 19241 19242 // 题目类型 19243 // 19244 // 示例值:4 19245 func (builder *QuestionBuilder) QuestionType(questionType int) *QuestionBuilder { 19246 builder.questionType = questionType 19247 builder.questionTypeFlag = true 19248 return builder 19249 } 19250 19251 // 是否必填 19252 // 19253 // 示例值:true 19254 func (builder *QuestionBuilder) IsRequired(isRequired bool) *QuestionBuilder { 19255 builder.isRequired = isRequired 19256 builder.isRequiredFlag = true 19257 return builder 19258 } 19259 19260 // 选项题回答列表(单选题及多选题) 19261 // 19262 // 示例值: 19263 func (builder *QuestionBuilder) SelectOptionResultList(selectOptionResultList []*SelectOptionResult) *QuestionBuilder { 19264 builder.selectOptionResultList = selectOptionResultList 19265 builder.selectOptionResultListFlag = true 19266 return builder 19267 } 19268 19269 // 评分题回答 19270 // 19271 // 示例值: 19272 func (builder *QuestionBuilder) FiveStartScoringResult(fiveStartScoringResult *FiveStartScoringResult) *QuestionBuilder { 19273 builder.fiveStartScoringResult = fiveStartScoringResult 19274 builder.fiveStartScoringResultFlag = true 19275 return builder 19276 } 19277 19278 // 描述题回答 19279 // 19280 // 示例值:测试描述内容 19281 func (builder *QuestionBuilder) DescriptionResult(descriptionResult string) *QuestionBuilder { 19282 builder.descriptionResult = descriptionResult 19283 builder.descriptionResultFlag = true 19284 return builder 19285 } 19286 19287 func (builder *QuestionBuilder) Build() *Question { 19288 req := &Question{} 19289 if builder.questionIdFlag { 19290 req.QuestionId = &builder.questionId 19291 19292 } 19293 if builder.questionNameFlag { 19294 req.QuestionName = &builder.questionName 19295 19296 } 19297 if builder.questionEnNameFlag { 19298 req.QuestionEnName = &builder.questionEnName 19299 19300 } 19301 if builder.questionDescFlag { 19302 req.QuestionDesc = &builder.questionDesc 19303 19304 } 19305 if builder.questionEnDescFlag { 19306 req.QuestionEnDesc = &builder.questionEnDesc 19307 19308 } 19309 if builder.questionTypeFlag { 19310 req.QuestionType = &builder.questionType 19311 19312 } 19313 if builder.isRequiredFlag { 19314 req.IsRequired = &builder.isRequired 19315 19316 } 19317 if builder.selectOptionResultListFlag { 19318 req.SelectOptionResultList = builder.selectOptionResultList 19319 } 19320 if builder.fiveStartScoringResultFlag { 19321 req.FiveStartScoringResult = builder.fiveStartScoringResult 19322 } 19323 if builder.descriptionResultFlag { 19324 req.DescriptionResult = &builder.descriptionResult 19325 19326 } 19327 return req 19328 } 19329 19330 type Questionnaire struct { 19331 QuestionnaireId *string `json:"questionnaire_id,omitempty"` // 问卷 ID 19332 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID;当「面试满意度问卷发送时间」选项选择「面试流程结束后」,将返回 投递 ID 19333 InterviewId *string `json:"interview_id,omitempty"` // 面试 ID;当「面试满意度问卷发送时间」选项选择「第一次面试后」、「每次面试后」将返回 面试 ID 19334 Version *int `json:"version,omitempty"` // 问卷版本 19335 Questions []*Question `json:"questions,omitempty"` // 题目列表 19336 HasAnswers *bool `json:"has_answers,omitempty"` // 是否完成作答 19337 UpdateTime *string `json:"update_time,omitempty"` // 更新时间 19338 } 19339 19340 type QuestionnaireBuilder struct { 19341 questionnaireId string // 问卷 ID 19342 questionnaireIdFlag bool 19343 applicationId string // 投递 ID;当「面试满意度问卷发送时间」选项选择「面试流程结束后」,将返回 投递 ID 19344 applicationIdFlag bool 19345 interviewId string // 面试 ID;当「面试满意度问卷发送时间」选项选择「第一次面试后」、「每次面试后」将返回 面试 ID 19346 interviewIdFlag bool 19347 version int // 问卷版本 19348 versionFlag bool 19349 questions []*Question // 题目列表 19350 questionsFlag bool 19351 hasAnswers bool // 是否完成作答 19352 hasAnswersFlag bool 19353 updateTime string // 更新时间 19354 updateTimeFlag bool 19355 } 19356 19357 func NewQuestionnaireBuilder() *QuestionnaireBuilder { 19358 builder := &QuestionnaireBuilder{} 19359 return builder 19360 } 19361 19362 // 问卷 ID 19363 // 19364 // 示例值:7037986982531778860 19365 func (builder *QuestionnaireBuilder) QuestionnaireId(questionnaireId string) *QuestionnaireBuilder { 19366 builder.questionnaireId = questionnaireId 19367 builder.questionnaireIdFlag = true 19368 return builder 19369 } 19370 19371 // 投递 ID;当「面试满意度问卷发送时间」选项选择「面试流程结束后」,将返回 投递 ID 19372 // 19373 // 示例值:6985833807195212076 19374 func (builder *QuestionnaireBuilder) ApplicationId(applicationId string) *QuestionnaireBuilder { 19375 builder.applicationId = applicationId 19376 builder.applicationIdFlag = true 19377 return builder 19378 } 19379 19380 // 面试 ID;当「面试满意度问卷发送时间」选项选择「第一次面试后」、「每次面试后」将返回 面试 ID 19381 // 19382 // 示例值:7038435261598763308 19383 func (builder *QuestionnaireBuilder) InterviewId(interviewId string) *QuestionnaireBuilder { 19384 builder.interviewId = interviewId 19385 builder.interviewIdFlag = true 19386 return builder 19387 } 19388 19389 // 问卷版本 19390 // 19391 // 示例值:59 19392 func (builder *QuestionnaireBuilder) Version(version int) *QuestionnaireBuilder { 19393 builder.version = version 19394 builder.versionFlag = true 19395 return builder 19396 } 19397 19398 // 题目列表 19399 // 19400 // 示例值: 19401 func (builder *QuestionnaireBuilder) Questions(questions []*Question) *QuestionnaireBuilder { 19402 builder.questions = questions 19403 builder.questionsFlag = true 19404 return builder 19405 } 19406 19407 // 是否完成作答 19408 // 19409 // 示例值:true 19410 func (builder *QuestionnaireBuilder) HasAnswers(hasAnswers bool) *QuestionnaireBuilder { 19411 builder.hasAnswers = hasAnswers 19412 builder.hasAnswersFlag = true 19413 return builder 19414 } 19415 19416 // 更新时间 19417 // 19418 // 示例值:1644412504000 19419 func (builder *QuestionnaireBuilder) UpdateTime(updateTime string) *QuestionnaireBuilder { 19420 builder.updateTime = updateTime 19421 builder.updateTimeFlag = true 19422 return builder 19423 } 19424 19425 func (builder *QuestionnaireBuilder) Build() *Questionnaire { 19426 req := &Questionnaire{} 19427 if builder.questionnaireIdFlag { 19428 req.QuestionnaireId = &builder.questionnaireId 19429 19430 } 19431 if builder.applicationIdFlag { 19432 req.ApplicationId = &builder.applicationId 19433 19434 } 19435 if builder.interviewIdFlag { 19436 req.InterviewId = &builder.interviewId 19437 19438 } 19439 if builder.versionFlag { 19440 req.Version = &builder.version 19441 19442 } 19443 if builder.questionsFlag { 19444 req.Questions = builder.questions 19445 } 19446 if builder.hasAnswersFlag { 19447 req.HasAnswers = &builder.hasAnswers 19448 19449 } 19450 if builder.updateTimeFlag { 19451 req.UpdateTime = &builder.updateTime 19452 19453 } 19454 return req 19455 } 19456 19457 type RecruitmentType struct { 19458 Id *string `json:"id,omitempty"` // ID 19459 Name *string `json:"name,omitempty"` // 名字 19460 EnName *string `json:"en_name,omitempty"` // 英文名 19461 } 19462 19463 type RecruitmentTypeBuilder struct { 19464 id string // ID 19465 idFlag bool 19466 name string // 名字 19467 nameFlag bool 19468 enName string // 英文名 19469 enNameFlag bool 19470 } 19471 19472 func NewRecruitmentTypeBuilder() *RecruitmentTypeBuilder { 19473 builder := &RecruitmentTypeBuilder{} 19474 return builder 19475 } 19476 19477 // ID 19478 // 19479 // 示例值: 19480 func (builder *RecruitmentTypeBuilder) Id(id string) *RecruitmentTypeBuilder { 19481 builder.id = id 19482 builder.idFlag = true 19483 return builder 19484 } 19485 19486 // 名字 19487 // 19488 // 示例值: 19489 func (builder *RecruitmentTypeBuilder) Name(name string) *RecruitmentTypeBuilder { 19490 builder.name = name 19491 builder.nameFlag = true 19492 return builder 19493 } 19494 19495 // 英文名 19496 // 19497 // 示例值: 19498 func (builder *RecruitmentTypeBuilder) EnName(enName string) *RecruitmentTypeBuilder { 19499 builder.enName = enName 19500 builder.enNameFlag = true 19501 return builder 19502 } 19503 19504 func (builder *RecruitmentTypeBuilder) Build() *RecruitmentType { 19505 req := &RecruitmentType{} 19506 if builder.idFlag { 19507 req.Id = &builder.id 19508 19509 } 19510 if builder.nameFlag { 19511 req.Name = &builder.name 19512 19513 } 19514 if builder.enNameFlag { 19515 req.EnName = &builder.enName 19516 19517 } 19518 return req 19519 } 19520 19521 type Referral struct { 19522 Id *string `json:"id,omitempty"` // 内推的 ID 19523 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 19524 CreateTime *int `json:"create_time,omitempty"` // 创建时间(ms) 19525 ReferralUserId *string `json:"referral_user_id,omitempty"` // 内推人的 ID 19526 ReferralUser *IdNameObject `json:"referral_user,omitempty"` // 内推人信息 19527 } 19528 19529 type ReferralBuilder struct { 19530 id string // 内推的 ID 19531 idFlag bool 19532 applicationId string // 投递 ID 19533 applicationIdFlag bool 19534 createTime int // 创建时间(ms) 19535 createTimeFlag bool 19536 referralUserId string // 内推人的 ID 19537 referralUserIdFlag bool 19538 referralUser *IdNameObject // 内推人信息 19539 referralUserFlag bool 19540 } 19541 19542 func NewReferralBuilder() *ReferralBuilder { 19543 builder := &ReferralBuilder{} 19544 return builder 19545 } 19546 19547 // 内推的 ID 19548 // 19549 // 示例值:6643786345878 19550 func (builder *ReferralBuilder) Id(id string) *ReferralBuilder { 19551 builder.id = id 19552 builder.idFlag = true 19553 return builder 19554 } 19555 19556 // 投递 ID 19557 // 19558 // 示例值:643452344576878 19559 func (builder *ReferralBuilder) ApplicationId(applicationId string) *ReferralBuilder { 19560 builder.applicationId = applicationId 19561 builder.applicationIdFlag = true 19562 return builder 19563 } 19564 19565 // 创建时间(ms) 19566 // 19567 // 示例值:1618899376474 19568 func (builder *ReferralBuilder) CreateTime(createTime int) *ReferralBuilder { 19569 builder.createTime = createTime 19570 builder.createTimeFlag = true 19571 return builder 19572 } 19573 19574 // 内推人的 ID 19575 // 19576 // 示例值:ou_xxxx 19577 func (builder *ReferralBuilder) ReferralUserId(referralUserId string) *ReferralBuilder { 19578 builder.referralUserId = referralUserId 19579 builder.referralUserIdFlag = true 19580 return builder 19581 } 19582 19583 // 内推人信息 19584 // 19585 // 示例值: 19586 func (builder *ReferralBuilder) ReferralUser(referralUser *IdNameObject) *ReferralBuilder { 19587 builder.referralUser = referralUser 19588 builder.referralUserFlag = true 19589 return builder 19590 } 19591 19592 func (builder *ReferralBuilder) Build() *Referral { 19593 req := &Referral{} 19594 if builder.idFlag { 19595 req.Id = &builder.id 19596 19597 } 19598 if builder.applicationIdFlag { 19599 req.ApplicationId = &builder.applicationId 19600 19601 } 19602 if builder.createTimeFlag { 19603 req.CreateTime = &builder.createTime 19604 19605 } 19606 if builder.referralUserIdFlag { 19607 req.ReferralUserId = &builder.referralUserId 19608 19609 } 19610 if builder.referralUserFlag { 19611 req.ReferralUser = builder.referralUser 19612 } 19613 return req 19614 } 19615 19616 type ResumeSource struct { 19617 Id *string `json:"id,omitempty"` // 来源 ID 19618 ZhName *string `json:"zh_name,omitempty"` // 中文名 19619 EnName *string `json:"en_name,omitempty"` // 英文名 19620 ActiveStatus *int `json:"active_status,omitempty"` // 启用状态 19621 ResumeSourceType *int `json:"resume_source_type,omitempty"` // 来源类型 19622 } 19623 19624 type ResumeSourceBuilder struct { 19625 id string // 来源 ID 19626 idFlag bool 19627 zhName string // 中文名 19628 zhNameFlag bool 19629 enName string // 英文名 19630 enNameFlag bool 19631 activeStatus int // 启用状态 19632 activeStatusFlag bool 19633 resumeSourceType int // 来源类型 19634 resumeSourceTypeFlag bool 19635 } 19636 19637 func NewResumeSourceBuilder() *ResumeSourceBuilder { 19638 builder := &ResumeSourceBuilder{} 19639 return builder 19640 } 19641 19642 // 来源 ID 19643 // 19644 // 示例值:1111 19645 func (builder *ResumeSourceBuilder) Id(id string) *ResumeSourceBuilder { 19646 builder.id = id 19647 builder.idFlag = true 19648 return builder 19649 } 19650 19651 // 中文名 19652 // 19653 // 示例值:内推 19654 func (builder *ResumeSourceBuilder) ZhName(zhName string) *ResumeSourceBuilder { 19655 builder.zhName = zhName 19656 builder.zhNameFlag = true 19657 return builder 19658 } 19659 19660 // 英文名 19661 // 19662 // 示例值:referral 19663 func (builder *ResumeSourceBuilder) EnName(enName string) *ResumeSourceBuilder { 19664 builder.enName = enName 19665 builder.enNameFlag = true 19666 return builder 19667 } 19668 19669 // 启用状态 19670 // 19671 // 示例值:1 19672 func (builder *ResumeSourceBuilder) ActiveStatus(activeStatus int) *ResumeSourceBuilder { 19673 builder.activeStatus = activeStatus 19674 builder.activeStatusFlag = true 19675 return builder 19676 } 19677 19678 // 来源类型 19679 // 19680 // 示例值:1 19681 func (builder *ResumeSourceBuilder) ResumeSourceType(resumeSourceType int) *ResumeSourceBuilder { 19682 builder.resumeSourceType = resumeSourceType 19683 builder.resumeSourceTypeFlag = true 19684 return builder 19685 } 19686 19687 func (builder *ResumeSourceBuilder) Build() *ResumeSource { 19688 req := &ResumeSource{} 19689 if builder.idFlag { 19690 req.Id = &builder.id 19691 19692 } 19693 if builder.zhNameFlag { 19694 req.ZhName = &builder.zhName 19695 19696 } 19697 if builder.enNameFlag { 19698 req.EnName = &builder.enName 19699 19700 } 19701 if builder.activeStatusFlag { 19702 req.ActiveStatus = &builder.activeStatus 19703 19704 } 19705 if builder.resumeSourceTypeFlag { 19706 req.ResumeSourceType = &builder.resumeSourceType 19707 19708 } 19709 return req 19710 } 19711 19712 type Role struct { 19713 Id *string `json:"id,omitempty"` // 角色 ID 19714 Name *I18n `json:"name,omitempty"` // 角色名称 19715 Description *I18n `json:"description,omitempty"` // 角色描述 19716 } 19717 19718 type RoleBuilder struct { 19719 id string // 角色 ID 19720 idFlag bool 19721 name *I18n // 角色名称 19722 nameFlag bool 19723 description *I18n // 角色描述 19724 descriptionFlag bool 19725 } 19726 19727 func NewRoleBuilder() *RoleBuilder { 19728 builder := &RoleBuilder{} 19729 return builder 19730 } 19731 19732 // 角色 ID 19733 // 19734 // 示例值:101 19735 func (builder *RoleBuilder) Id(id string) *RoleBuilder { 19736 builder.id = id 19737 builder.idFlag = true 19738 return builder 19739 } 19740 19741 // 角色名称 19742 // 19743 // 示例值: 19744 func (builder *RoleBuilder) Name(name *I18n) *RoleBuilder { 19745 builder.name = name 19746 builder.nameFlag = true 19747 return builder 19748 } 19749 19750 // 角色描述 19751 // 19752 // 示例值: 19753 func (builder *RoleBuilder) Description(description *I18n) *RoleBuilder { 19754 builder.description = description 19755 builder.descriptionFlag = true 19756 return builder 19757 } 19758 19759 func (builder *RoleBuilder) Build() *Role { 19760 req := &Role{} 19761 if builder.idFlag { 19762 req.Id = &builder.id 19763 19764 } 19765 if builder.nameFlag { 19766 req.Name = builder.name 19767 } 19768 if builder.descriptionFlag { 19769 req.Description = builder.description 19770 } 19771 return req 19772 } 19773 19774 type Salary struct { 19775 OperateTime *string `json:"operate_time,omitempty"` // 操作时间 19776 SalaryStatus *int `json:"salary_status,omitempty"` // 薪酬审批状态 19777 OfferId *string `json:"offer_id,omitempty"` // Offer ID 19778 SalayId *string `json:"salay_id,omitempty"` // 薪酬 ID 19779 OperatorId *string `json:"operator_id,omitempty"` // 操作人 ID 19780 } 19781 19782 type SalaryBuilder struct { 19783 operateTime string // 操作时间 19784 operateTimeFlag bool 19785 salaryStatus int // 薪酬审批状态 19786 salaryStatusFlag bool 19787 offerId string // Offer ID 19788 offerIdFlag bool 19789 salayId string // 薪酬 ID 19790 salayIdFlag bool 19791 operatorId string // 操作人 ID 19792 operatorIdFlag bool 19793 } 19794 19795 func NewSalaryBuilder() *SalaryBuilder { 19796 builder := &SalaryBuilder{} 19797 return builder 19798 } 19799 19800 // 操作时间 19801 // 19802 // 示例值:1638260625671 19803 func (builder *SalaryBuilder) OperateTime(operateTime string) *SalaryBuilder { 19804 builder.operateTime = operateTime 19805 builder.operateTimeFlag = true 19806 return builder 19807 } 19808 19809 // 薪酬审批状态 19810 // 19811 // 示例值:2 19812 func (builder *SalaryBuilder) SalaryStatus(salaryStatus int) *SalaryBuilder { 19813 builder.salaryStatus = salaryStatus 19814 builder.salaryStatusFlag = true 19815 return builder 19816 } 19817 19818 // Offer ID 19819 // 19820 // 示例值:7981638260625671 19821 func (builder *SalaryBuilder) OfferId(offerId string) *SalaryBuilder { 19822 builder.offerId = offerId 19823 builder.offerIdFlag = true 19824 return builder 19825 } 19826 19827 // 薪酬 ID 19828 // 19829 // 示例值:salay_id 19830 func (builder *SalaryBuilder) SalayId(salayId string) *SalaryBuilder { 19831 builder.salayId = salayId 19832 builder.salayIdFlag = true 19833 return builder 19834 } 19835 19836 // 操作人 ID 19837 // 19838 // 示例值:operator_id 19839 func (builder *SalaryBuilder) OperatorId(operatorId string) *SalaryBuilder { 19840 builder.operatorId = operatorId 19841 builder.operatorIdFlag = true 19842 return builder 19843 } 19844 19845 func (builder *SalaryBuilder) Build() *Salary { 19846 req := &Salary{} 19847 if builder.operateTimeFlag { 19848 req.OperateTime = &builder.operateTime 19849 19850 } 19851 if builder.salaryStatusFlag { 19852 req.SalaryStatus = &builder.salaryStatus 19853 19854 } 19855 if builder.offerIdFlag { 19856 req.OfferId = &builder.offerId 19857 19858 } 19859 if builder.salayIdFlag { 19860 req.SalayId = &builder.salayId 19861 19862 } 19863 if builder.operatorIdFlag { 19864 req.OperatorId = &builder.operatorId 19865 19866 } 19867 return req 19868 } 19869 19870 type SelectOptionResult struct { 19871 OptionId *string `json:"option_id,omitempty"` // 选项 ID 19872 OptionName *string `json:"option_name,omitempty"` // 选项中文名称 19873 OptionEnName *string `json:"option_en_name,omitempty"` // 选项英文名称 19874 OptionDesc *string `json:"option_desc,omitempty"` // 选项中文描述 19875 OptionEnDesc *string `json:"option_en_desc,omitempty"` // 选项英文描述 19876 IsSelected *bool `json:"is_selected,omitempty"` // 是否选择 19877 } 19878 19879 type SelectOptionResultBuilder struct { 19880 optionId string // 选项 ID 19881 optionIdFlag bool 19882 optionName string // 选项中文名称 19883 optionNameFlag bool 19884 optionEnName string // 选项英文名称 19885 optionEnNameFlag bool 19886 optionDesc string // 选项中文描述 19887 optionDescFlag bool 19888 optionEnDesc string // 选项英文描述 19889 optionEnDescFlag bool 19890 isSelected bool // 是否选择 19891 isSelectedFlag bool 19892 } 19893 19894 func NewSelectOptionResultBuilder() *SelectOptionResultBuilder { 19895 builder := &SelectOptionResultBuilder{} 19896 return builder 19897 } 19898 19899 // 选项 ID 19900 // 19901 // 示例值:6950930570311993644 19902 func (builder *SelectOptionResultBuilder) OptionId(optionId string) *SelectOptionResultBuilder { 19903 builder.optionId = optionId 19904 builder.optionIdFlag = true 19905 return builder 19906 } 19907 19908 // 选项中文名称 19909 // 19910 // 示例值:选项一 19911 func (builder *SelectOptionResultBuilder) OptionName(optionName string) *SelectOptionResultBuilder { 19912 builder.optionName = optionName 19913 builder.optionNameFlag = true 19914 return builder 19915 } 19916 19917 // 选项英文名称 19918 // 19919 // 示例值:Option 1 19920 func (builder *SelectOptionResultBuilder) OptionEnName(optionEnName string) *SelectOptionResultBuilder { 19921 builder.optionEnName = optionEnName 19922 builder.optionEnNameFlag = true 19923 return builder 19924 } 19925 19926 // 选项中文描述 19927 // 19928 // 示例值:测试选项描述 19929 func (builder *SelectOptionResultBuilder) OptionDesc(optionDesc string) *SelectOptionResultBuilder { 19930 builder.optionDesc = optionDesc 19931 builder.optionDescFlag = true 19932 return builder 19933 } 19934 19935 // 选项英文描述 19936 // 19937 // 示例值:Test Option Desc 19938 func (builder *SelectOptionResultBuilder) OptionEnDesc(optionEnDesc string) *SelectOptionResultBuilder { 19939 builder.optionEnDesc = optionEnDesc 19940 builder.optionEnDescFlag = true 19941 return builder 19942 } 19943 19944 // 是否选择 19945 // 19946 // 示例值:true 19947 func (builder *SelectOptionResultBuilder) IsSelected(isSelected bool) *SelectOptionResultBuilder { 19948 builder.isSelected = isSelected 19949 builder.isSelectedFlag = true 19950 return builder 19951 } 19952 19953 func (builder *SelectOptionResultBuilder) Build() *SelectOptionResult { 19954 req := &SelectOptionResult{} 19955 if builder.optionIdFlag { 19956 req.OptionId = &builder.optionId 19957 19958 } 19959 if builder.optionNameFlag { 19960 req.OptionName = &builder.optionName 19961 19962 } 19963 if builder.optionEnNameFlag { 19964 req.OptionEnName = &builder.optionEnName 19965 19966 } 19967 if builder.optionDescFlag { 19968 req.OptionDesc = &builder.optionDesc 19969 19970 } 19971 if builder.optionEnDescFlag { 19972 req.OptionEnDesc = &builder.optionEnDesc 19973 19974 } 19975 if builder.isSelectedFlag { 19976 req.IsSelected = &builder.isSelected 19977 19978 } 19979 return req 19980 } 19981 19982 type Sequence struct { 19983 Id *string `json:"id,omitempty"` // ID 19984 Name *string `json:"name,omitempty"` // 名字 19985 EnName *string `json:"en_name,omitempty"` // 英文名 19986 } 19987 19988 type SequenceBuilder struct { 19989 id string // ID 19990 idFlag bool 19991 name string // 名字 19992 nameFlag bool 19993 enName string // 英文名 19994 enNameFlag bool 19995 } 19996 19997 func NewSequenceBuilder() *SequenceBuilder { 19998 builder := &SequenceBuilder{} 19999 return builder 20000 } 20001 20002 // ID 20003 // 20004 // 示例值: 20005 func (builder *SequenceBuilder) Id(id string) *SequenceBuilder { 20006 builder.id = id 20007 builder.idFlag = true 20008 return builder 20009 } 20010 20011 // 名字 20012 // 20013 // 示例值: 20014 func (builder *SequenceBuilder) Name(name string) *SequenceBuilder { 20015 builder.name = name 20016 builder.nameFlag = true 20017 return builder 20018 } 20019 20020 // 英文名 20021 // 20022 // 示例值: 20023 func (builder *SequenceBuilder) EnName(enName string) *SequenceBuilder { 20024 builder.enName = enName 20025 builder.enNameFlag = true 20026 return builder 20027 } 20028 20029 func (builder *SequenceBuilder) Build() *Sequence { 20030 req := &Sequence{} 20031 if builder.idFlag { 20032 req.Id = &builder.id 20033 20034 } 20035 if builder.nameFlag { 20036 req.Name = &builder.name 20037 20038 } 20039 if builder.enNameFlag { 20040 req.EnName = &builder.enName 20041 20042 } 20043 return req 20044 } 20045 20046 type Site struct { 20047 Id *string `json:"id,omitempty"` // 官网id 20048 Name *SiteName `json:"name,omitempty"` // 官网名称 20049 } 20050 20051 type SiteBuilder struct { 20052 id string // 官网id 20053 idFlag bool 20054 name *SiteName // 官网名称 20055 nameFlag bool 20056 } 20057 20058 func NewSiteBuilder() *SiteBuilder { 20059 builder := &SiteBuilder{} 20060 return builder 20061 } 20062 20063 // 官网id 20064 // 20065 // 示例值: 20066 func (builder *SiteBuilder) Id(id string) *SiteBuilder { 20067 builder.id = id 20068 builder.idFlag = true 20069 return builder 20070 } 20071 20072 // 官网名称 20073 // 20074 // 示例值: 20075 func (builder *SiteBuilder) Name(name *SiteName) *SiteBuilder { 20076 builder.name = name 20077 builder.nameFlag = true 20078 return builder 20079 } 20080 20081 func (builder *SiteBuilder) Build() *Site { 20082 req := &Site{} 20083 if builder.idFlag { 20084 req.Id = &builder.id 20085 20086 } 20087 if builder.nameFlag { 20088 req.Name = builder.name 20089 } 20090 return req 20091 } 20092 20093 type SiteApplication struct { 20094 ExternalId *string `json:"external_id,omitempty"` // 外部id,用于转换内部id 20095 JobPostId *string `json:"job_post_id,omitempty"` // 职位id 20096 Resume *SiteApplicationResume `json:"resume,omitempty"` // 简历信息 20097 Status *string `json:"status,omitempty"` // 投递状态 20098 } 20099 20100 type SiteApplicationBuilder struct { 20101 externalId string // 外部id,用于转换内部id 20102 externalIdFlag bool 20103 jobPostId string // 职位id 20104 jobPostIdFlag bool 20105 resume *SiteApplicationResume // 简历信息 20106 resumeFlag bool 20107 status string // 投递状态 20108 statusFlag bool 20109 } 20110 20111 func NewSiteApplicationBuilder() *SiteApplicationBuilder { 20112 builder := &SiteApplicationBuilder{} 20113 return builder 20114 } 20115 20116 // 外部id,用于转换内部id 20117 // 20118 // 示例值: 20119 func (builder *SiteApplicationBuilder) ExternalId(externalId string) *SiteApplicationBuilder { 20120 builder.externalId = externalId 20121 builder.externalIdFlag = true 20122 return builder 20123 } 20124 20125 // 职位id 20126 // 20127 // 示例值: 20128 func (builder *SiteApplicationBuilder) JobPostId(jobPostId string) *SiteApplicationBuilder { 20129 builder.jobPostId = jobPostId 20130 builder.jobPostIdFlag = true 20131 return builder 20132 } 20133 20134 // 简历信息 20135 // 20136 // 示例值: 20137 func (builder *SiteApplicationBuilder) Resume(resume *SiteApplicationResume) *SiteApplicationBuilder { 20138 builder.resume = resume 20139 builder.resumeFlag = true 20140 return builder 20141 } 20142 20143 // 投递状态 20144 // 20145 // 示例值: 20146 func (builder *SiteApplicationBuilder) Status(status string) *SiteApplicationBuilder { 20147 builder.status = status 20148 builder.statusFlag = true 20149 return builder 20150 } 20151 20152 func (builder *SiteApplicationBuilder) Build() *SiteApplication { 20153 req := &SiteApplication{} 20154 if builder.externalIdFlag { 20155 req.ExternalId = &builder.externalId 20156 20157 } 20158 if builder.jobPostIdFlag { 20159 req.JobPostId = &builder.jobPostId 20160 20161 } 20162 if builder.resumeFlag { 20163 req.Resume = builder.resume 20164 } 20165 if builder.statusFlag { 20166 req.Status = &builder.status 20167 20168 } 20169 return req 20170 } 20171 20172 type SiteJobCity struct { 20173 CityCode *string `json:"city_code,omitempty"` // 地址code 20174 Name *SiteName `json:"name,omitempty"` // 地址名称 20175 } 20176 20177 type SiteJobCityBuilder struct { 20178 cityCode string // 地址code 20179 cityCodeFlag bool 20180 name *SiteName // 地址名称 20181 nameFlag bool 20182 } 20183 20184 func NewSiteJobCityBuilder() *SiteJobCityBuilder { 20185 builder := &SiteJobCityBuilder{} 20186 return builder 20187 } 20188 20189 // 地址code 20190 // 20191 // 示例值: 20192 func (builder *SiteJobCityBuilder) CityCode(cityCode string) *SiteJobCityBuilder { 20193 builder.cityCode = cityCode 20194 builder.cityCodeFlag = true 20195 return builder 20196 } 20197 20198 // 地址名称 20199 // 20200 // 示例值: 20201 func (builder *SiteJobCityBuilder) Name(name *SiteName) *SiteJobCityBuilder { 20202 builder.name = name 20203 builder.nameFlag = true 20204 return builder 20205 } 20206 20207 func (builder *SiteJobCityBuilder) Build() *SiteJobCity { 20208 req := &SiteJobCity{} 20209 if builder.cityCodeFlag { 20210 req.CityCode = &builder.cityCode 20211 20212 } 20213 if builder.nameFlag { 20214 req.Name = builder.name 20215 } 20216 return req 20217 } 20218 20219 type SiteJobPost struct { 20220 Id *string `json:"id,omitempty"` // 职位id 20221 Title *string `json:"title,omitempty"` // 职位名称 20222 Description *string `json:"description,omitempty"` // 职位描述 20223 Requirement *string `json:"requirement,omitempty"` // 职位要求 20224 JobTypeInfo *SiteJobType `json:"job_type_info,omitempty"` // 职位职能 20225 CityInfo *SiteJobCity `json:"city_info,omitempty"` // 职位城市 20226 RecruitmentType *SiteJobRecruitmentType `json:"recruitment_type,omitempty"` // 雇佣类型 20227 PublishTime *int `json:"publish_time,omitempty"` // 职位发布时间 20228 } 20229 20230 type SiteJobPostBuilder struct { 20231 id string // 职位id 20232 idFlag bool 20233 title string // 职位名称 20234 titleFlag bool 20235 description string // 职位描述 20236 descriptionFlag bool 20237 requirement string // 职位要求 20238 requirementFlag bool 20239 jobTypeInfo *SiteJobType // 职位职能 20240 jobTypeInfoFlag bool 20241 cityInfo *SiteJobCity // 职位城市 20242 cityInfoFlag bool 20243 recruitmentType *SiteJobRecruitmentType // 雇佣类型 20244 recruitmentTypeFlag bool 20245 publishTime int // 职位发布时间 20246 publishTimeFlag bool 20247 } 20248 20249 func NewSiteJobPostBuilder() *SiteJobPostBuilder { 20250 builder := &SiteJobPostBuilder{} 20251 return builder 20252 } 20253 20254 // 职位id 20255 // 20256 // 示例值: 20257 func (builder *SiteJobPostBuilder) Id(id string) *SiteJobPostBuilder { 20258 builder.id = id 20259 builder.idFlag = true 20260 return builder 20261 } 20262 20263 // 职位名称 20264 // 20265 // 示例值: 20266 func (builder *SiteJobPostBuilder) Title(title string) *SiteJobPostBuilder { 20267 builder.title = title 20268 builder.titleFlag = true 20269 return builder 20270 } 20271 20272 // 职位描述 20273 // 20274 // 示例值: 20275 func (builder *SiteJobPostBuilder) Description(description string) *SiteJobPostBuilder { 20276 builder.description = description 20277 builder.descriptionFlag = true 20278 return builder 20279 } 20280 20281 // 职位要求 20282 // 20283 // 示例值: 20284 func (builder *SiteJobPostBuilder) Requirement(requirement string) *SiteJobPostBuilder { 20285 builder.requirement = requirement 20286 builder.requirementFlag = true 20287 return builder 20288 } 20289 20290 // 职位职能 20291 // 20292 // 示例值: 20293 func (builder *SiteJobPostBuilder) JobTypeInfo(jobTypeInfo *SiteJobType) *SiteJobPostBuilder { 20294 builder.jobTypeInfo = jobTypeInfo 20295 builder.jobTypeInfoFlag = true 20296 return builder 20297 } 20298 20299 // 职位城市 20300 // 20301 // 示例值: 20302 func (builder *SiteJobPostBuilder) CityInfo(cityInfo *SiteJobCity) *SiteJobPostBuilder { 20303 builder.cityInfo = cityInfo 20304 builder.cityInfoFlag = true 20305 return builder 20306 } 20307 20308 // 雇佣类型 20309 // 20310 // 示例值: 20311 func (builder *SiteJobPostBuilder) RecruitmentType(recruitmentType *SiteJobRecruitmentType) *SiteJobPostBuilder { 20312 builder.recruitmentType = recruitmentType 20313 builder.recruitmentTypeFlag = true 20314 return builder 20315 } 20316 20317 // 职位发布时间 20318 // 20319 // 示例值: 20320 func (builder *SiteJobPostBuilder) PublishTime(publishTime int) *SiteJobPostBuilder { 20321 builder.publishTime = publishTime 20322 builder.publishTimeFlag = true 20323 return builder 20324 } 20325 20326 func (builder *SiteJobPostBuilder) Build() *SiteJobPost { 20327 req := &SiteJobPost{} 20328 if builder.idFlag { 20329 req.Id = &builder.id 20330 20331 } 20332 if builder.titleFlag { 20333 req.Title = &builder.title 20334 20335 } 20336 if builder.descriptionFlag { 20337 req.Description = &builder.description 20338 20339 } 20340 if builder.requirementFlag { 20341 req.Requirement = &builder.requirement 20342 20343 } 20344 if builder.jobTypeInfoFlag { 20345 req.JobTypeInfo = builder.jobTypeInfo 20346 } 20347 if builder.cityInfoFlag { 20348 req.CityInfo = builder.cityInfo 20349 } 20350 if builder.recruitmentTypeFlag { 20351 req.RecruitmentType = builder.recruitmentType 20352 } 20353 if builder.publishTimeFlag { 20354 req.PublishTime = &builder.publishTime 20355 20356 } 20357 return req 20358 } 20359 20360 type SiteJobType struct { 20361 Id *string `json:"id,omitempty"` // 职能id 20362 Name *SiteName `json:"name,omitempty"` // 职位职能名称 20363 } 20364 20365 type SiteJobTypeBuilder struct { 20366 id string // 职能id 20367 idFlag bool 20368 name *SiteName // 职位职能名称 20369 nameFlag bool 20370 } 20371 20372 func NewSiteJobTypeBuilder() *SiteJobTypeBuilder { 20373 builder := &SiteJobTypeBuilder{} 20374 return builder 20375 } 20376 20377 // 职能id 20378 // 20379 // 示例值: 20380 func (builder *SiteJobTypeBuilder) Id(id string) *SiteJobTypeBuilder { 20381 builder.id = id 20382 builder.idFlag = true 20383 return builder 20384 } 20385 20386 // 职位职能名称 20387 // 20388 // 示例值: 20389 func (builder *SiteJobTypeBuilder) Name(name *SiteName) *SiteJobTypeBuilder { 20390 builder.name = name 20391 builder.nameFlag = true 20392 return builder 20393 } 20394 20395 func (builder *SiteJobTypeBuilder) Build() *SiteJobType { 20396 req := &SiteJobType{} 20397 if builder.idFlag { 20398 req.Id = &builder.id 20399 20400 } 20401 if builder.nameFlag { 20402 req.Name = builder.name 20403 } 20404 return req 20405 } 20406 20407 type SiteApplicationResume struct { 20408 Name *string `json:"name,omitempty"` // 姓名 20409 MobileNumber *string `json:"mobile_number,omitempty"` // 手机号 20410 MoblieCode *string `json:"moblie_code,omitempty"` // 手机区号 20411 Email *string `json:"email,omitempty"` // 邮箱 20412 SiteAttachmentId *string `json:"site_attachment_id,omitempty"` // 简历附件id 20413 SelfEvaluation *string `json:"self_evaluation,omitempty"` // 自我评价 20414 Age *string `json:"age,omitempty"` // 年龄 20415 WorkingYear *string `json:"working_year,omitempty"` // 工作年限 20416 EducationList []*SiteResumeEducation `json:"education_list,omitempty"` // 教育经历列表 20417 CareerList []*SiteResumeCareer `json:"career_list,omitempty"` // 工作经历列表 20418 ProjectList []*SiteResumeProject `json:"project_list,omitempty"` // 项目经历列表 20419 InternshipList []*SiteResumeInternship `json:"internship_list,omitempty"` // 实习经历列表 20420 WorkList []*SiteResumeWork `json:"work_list,omitempty"` // 作品集列表 20421 AwardList []*SiteResumeAward `json:"award_list,omitempty"` // 获奖经历列表 20422 LanguageSkillList []*SiteResumeLanguageSkill `json:"language_skill_list,omitempty"` // 语言技能列表 20423 SnsList []*SiteResumeSns `json:"sns_list,omitempty"` // 社交账号列表 20424 Identification *SiteResumeIdentification `json:"identification,omitempty"` // 身份信息 20425 CompetitionList []*SiteResumeCompetition `json:"competition_list,omitempty"` // 竞赛经历列表 20426 CertificateList []*SiteResumeCertificate `json:"certificate_list,omitempty"` // 证书列表 20427 } 20428 20429 type SiteApplicationResumeBuilder struct { 20430 name string // 姓名 20431 nameFlag bool 20432 mobileNumber string // 手机号 20433 mobileNumberFlag bool 20434 moblieCode string // 手机区号 20435 moblieCodeFlag bool 20436 email string // 邮箱 20437 emailFlag bool 20438 siteAttachmentId string // 简历附件id 20439 siteAttachmentIdFlag bool 20440 selfEvaluation string // 自我评价 20441 selfEvaluationFlag bool 20442 age string // 年龄 20443 ageFlag bool 20444 workingYear string // 工作年限 20445 workingYearFlag bool 20446 educationList []*SiteResumeEducation // 教育经历列表 20447 educationListFlag bool 20448 careerList []*SiteResumeCareer // 工作经历列表 20449 careerListFlag bool 20450 projectList []*SiteResumeProject // 项目经历列表 20451 projectListFlag bool 20452 internshipList []*SiteResumeInternship // 实习经历列表 20453 internshipListFlag bool 20454 workList []*SiteResumeWork // 作品集列表 20455 workListFlag bool 20456 awardList []*SiteResumeAward // 获奖经历列表 20457 awardListFlag bool 20458 languageSkillList []*SiteResumeLanguageSkill // 语言技能列表 20459 languageSkillListFlag bool 20460 snsList []*SiteResumeSns // 社交账号列表 20461 snsListFlag bool 20462 identification *SiteResumeIdentification // 身份信息 20463 identificationFlag bool 20464 competitionList []*SiteResumeCompetition // 竞赛经历列表 20465 competitionListFlag bool 20466 certificateList []*SiteResumeCertificate // 证书列表 20467 certificateListFlag bool 20468 } 20469 20470 func NewSiteApplicationResumeBuilder() *SiteApplicationResumeBuilder { 20471 builder := &SiteApplicationResumeBuilder{} 20472 return builder 20473 } 20474 20475 // 姓名 20476 // 20477 // 示例值: 20478 func (builder *SiteApplicationResumeBuilder) Name(name string) *SiteApplicationResumeBuilder { 20479 builder.name = name 20480 builder.nameFlag = true 20481 return builder 20482 } 20483 20484 // 手机号 20485 // 20486 // 示例值: 20487 func (builder *SiteApplicationResumeBuilder) MobileNumber(mobileNumber string) *SiteApplicationResumeBuilder { 20488 builder.mobileNumber = mobileNumber 20489 builder.mobileNumberFlag = true 20490 return builder 20491 } 20492 20493 // 手机区号 20494 // 20495 // 示例值: 20496 func (builder *SiteApplicationResumeBuilder) MoblieCode(moblieCode string) *SiteApplicationResumeBuilder { 20497 builder.moblieCode = moblieCode 20498 builder.moblieCodeFlag = true 20499 return builder 20500 } 20501 20502 // 邮箱 20503 // 20504 // 示例值: 20505 func (builder *SiteApplicationResumeBuilder) Email(email string) *SiteApplicationResumeBuilder { 20506 builder.email = email 20507 builder.emailFlag = true 20508 return builder 20509 } 20510 20511 // 简历附件id 20512 // 20513 // 示例值: 20514 func (builder *SiteApplicationResumeBuilder) SiteAttachmentId(siteAttachmentId string) *SiteApplicationResumeBuilder { 20515 builder.siteAttachmentId = siteAttachmentId 20516 builder.siteAttachmentIdFlag = true 20517 return builder 20518 } 20519 20520 // 自我评价 20521 // 20522 // 示例值: 20523 func (builder *SiteApplicationResumeBuilder) SelfEvaluation(selfEvaluation string) *SiteApplicationResumeBuilder { 20524 builder.selfEvaluation = selfEvaluation 20525 builder.selfEvaluationFlag = true 20526 return builder 20527 } 20528 20529 // 年龄 20530 // 20531 // 示例值: 20532 func (builder *SiteApplicationResumeBuilder) Age(age string) *SiteApplicationResumeBuilder { 20533 builder.age = age 20534 builder.ageFlag = true 20535 return builder 20536 } 20537 20538 // 工作年限 20539 // 20540 // 示例值: 20541 func (builder *SiteApplicationResumeBuilder) WorkingYear(workingYear string) *SiteApplicationResumeBuilder { 20542 builder.workingYear = workingYear 20543 builder.workingYearFlag = true 20544 return builder 20545 } 20546 20547 // 教育经历列表 20548 // 20549 // 示例值: 20550 func (builder *SiteApplicationResumeBuilder) EducationList(educationList []*SiteResumeEducation) *SiteApplicationResumeBuilder { 20551 builder.educationList = educationList 20552 builder.educationListFlag = true 20553 return builder 20554 } 20555 20556 // 工作经历列表 20557 // 20558 // 示例值: 20559 func (builder *SiteApplicationResumeBuilder) CareerList(careerList []*SiteResumeCareer) *SiteApplicationResumeBuilder { 20560 builder.careerList = careerList 20561 builder.careerListFlag = true 20562 return builder 20563 } 20564 20565 // 项目经历列表 20566 // 20567 // 示例值: 20568 func (builder *SiteApplicationResumeBuilder) ProjectList(projectList []*SiteResumeProject) *SiteApplicationResumeBuilder { 20569 builder.projectList = projectList 20570 builder.projectListFlag = true 20571 return builder 20572 } 20573 20574 // 实习经历列表 20575 // 20576 // 示例值: 20577 func (builder *SiteApplicationResumeBuilder) InternshipList(internshipList []*SiteResumeInternship) *SiteApplicationResumeBuilder { 20578 builder.internshipList = internshipList 20579 builder.internshipListFlag = true 20580 return builder 20581 } 20582 20583 // 作品集列表 20584 // 20585 // 示例值: 20586 func (builder *SiteApplicationResumeBuilder) WorkList(workList []*SiteResumeWork) *SiteApplicationResumeBuilder { 20587 builder.workList = workList 20588 builder.workListFlag = true 20589 return builder 20590 } 20591 20592 // 获奖经历列表 20593 // 20594 // 示例值: 20595 func (builder *SiteApplicationResumeBuilder) AwardList(awardList []*SiteResumeAward) *SiteApplicationResumeBuilder { 20596 builder.awardList = awardList 20597 builder.awardListFlag = true 20598 return builder 20599 } 20600 20601 // 语言技能列表 20602 // 20603 // 示例值: 20604 func (builder *SiteApplicationResumeBuilder) LanguageSkillList(languageSkillList []*SiteResumeLanguageSkill) *SiteApplicationResumeBuilder { 20605 builder.languageSkillList = languageSkillList 20606 builder.languageSkillListFlag = true 20607 return builder 20608 } 20609 20610 // 社交账号列表 20611 // 20612 // 示例值: 20613 func (builder *SiteApplicationResumeBuilder) SnsList(snsList []*SiteResumeSns) *SiteApplicationResumeBuilder { 20614 builder.snsList = snsList 20615 builder.snsListFlag = true 20616 return builder 20617 } 20618 20619 // 身份信息 20620 // 20621 // 示例值: 20622 func (builder *SiteApplicationResumeBuilder) Identification(identification *SiteResumeIdentification) *SiteApplicationResumeBuilder { 20623 builder.identification = identification 20624 builder.identificationFlag = true 20625 return builder 20626 } 20627 20628 // 竞赛经历列表 20629 // 20630 // 示例值: 20631 func (builder *SiteApplicationResumeBuilder) CompetitionList(competitionList []*SiteResumeCompetition) *SiteApplicationResumeBuilder { 20632 builder.competitionList = competitionList 20633 builder.competitionListFlag = true 20634 return builder 20635 } 20636 20637 // 证书列表 20638 // 20639 // 示例值: 20640 func (builder *SiteApplicationResumeBuilder) CertificateList(certificateList []*SiteResumeCertificate) *SiteApplicationResumeBuilder { 20641 builder.certificateList = certificateList 20642 builder.certificateListFlag = true 20643 return builder 20644 } 20645 20646 func (builder *SiteApplicationResumeBuilder) Build() *SiteApplicationResume { 20647 req := &SiteApplicationResume{} 20648 if builder.nameFlag { 20649 req.Name = &builder.name 20650 20651 } 20652 if builder.mobileNumberFlag { 20653 req.MobileNumber = &builder.mobileNumber 20654 20655 } 20656 if builder.moblieCodeFlag { 20657 req.MoblieCode = &builder.moblieCode 20658 20659 } 20660 if builder.emailFlag { 20661 req.Email = &builder.email 20662 20663 } 20664 if builder.siteAttachmentIdFlag { 20665 req.SiteAttachmentId = &builder.siteAttachmentId 20666 20667 } 20668 if builder.selfEvaluationFlag { 20669 req.SelfEvaluation = &builder.selfEvaluation 20670 20671 } 20672 if builder.ageFlag { 20673 req.Age = &builder.age 20674 20675 } 20676 if builder.workingYearFlag { 20677 req.WorkingYear = &builder.workingYear 20678 20679 } 20680 if builder.educationListFlag { 20681 req.EducationList = builder.educationList 20682 } 20683 if builder.careerListFlag { 20684 req.CareerList = builder.careerList 20685 } 20686 if builder.projectListFlag { 20687 req.ProjectList = builder.projectList 20688 } 20689 if builder.internshipListFlag { 20690 req.InternshipList = builder.internshipList 20691 } 20692 if builder.workListFlag { 20693 req.WorkList = builder.workList 20694 } 20695 if builder.awardListFlag { 20696 req.AwardList = builder.awardList 20697 } 20698 if builder.languageSkillListFlag { 20699 req.LanguageSkillList = builder.languageSkillList 20700 } 20701 if builder.snsListFlag { 20702 req.SnsList = builder.snsList 20703 } 20704 if builder.identificationFlag { 20705 req.Identification = builder.identification 20706 } 20707 if builder.competitionListFlag { 20708 req.CompetitionList = builder.competitionList 20709 } 20710 if builder.certificateListFlag { 20711 req.CertificateList = builder.certificateList 20712 } 20713 return req 20714 } 20715 20716 type SiteJobPostSearchInfo struct { 20717 JobPostInfo []*SiteJobPost `json:"job_post_info,omitempty"` // 职位列表 20718 Count *int `json:"count,omitempty"` // 职位总数 20719 } 20720 20721 type SiteJobPostSearchInfoBuilder struct { 20722 jobPostInfo []*SiteJobPost // 职位列表 20723 jobPostInfoFlag bool 20724 count int // 职位总数 20725 countFlag bool 20726 } 20727 20728 func NewSiteJobPostSearchInfoBuilder() *SiteJobPostSearchInfoBuilder { 20729 builder := &SiteJobPostSearchInfoBuilder{} 20730 return builder 20731 } 20732 20733 // 职位列表 20734 // 20735 // 示例值: 20736 func (builder *SiteJobPostSearchInfoBuilder) JobPostInfo(jobPostInfo []*SiteJobPost) *SiteJobPostSearchInfoBuilder { 20737 builder.jobPostInfo = jobPostInfo 20738 builder.jobPostInfoFlag = true 20739 return builder 20740 } 20741 20742 // 职位总数 20743 // 20744 // 示例值: 20745 func (builder *SiteJobPostSearchInfoBuilder) Count(count int) *SiteJobPostSearchInfoBuilder { 20746 builder.count = count 20747 builder.countFlag = true 20748 return builder 20749 } 20750 20751 func (builder *SiteJobPostSearchInfoBuilder) Build() *SiteJobPostSearchInfo { 20752 req := &SiteJobPostSearchInfo{} 20753 if builder.jobPostInfoFlag { 20754 req.JobPostInfo = builder.jobPostInfo 20755 } 20756 if builder.countFlag { 20757 req.Count = &builder.count 20758 20759 } 20760 return req 20761 } 20762 20763 type SiteJobPostSearchRequest struct { 20764 Keyword *string `json:"keyword,omitempty"` // 搜索关键字 20765 Offset *int `json:"offset,omitempty"` // 分页用的偏移量,默认0 20766 Limit *int `json:"limit,omitempty"` // 分页用的分页条数,最大100 20767 JobTypeIdList []string `json:"job_type_id_list,omitempty"` // 职能列表返回的id 20768 CityCodeList []string `json:"city_code_list,omitempty"` // 地址列表返回的code 20769 SiteId *string `json:"site_id,omitempty"` // 官网id,不传则查询默认官网 20770 } 20771 20772 type SiteJobPostSearchRequestBuilder struct { 20773 keyword string // 搜索关键字 20774 keywordFlag bool 20775 offset int // 分页用的偏移量,默认0 20776 offsetFlag bool 20777 limit int // 分页用的分页条数,最大100 20778 limitFlag bool 20779 jobTypeIdList []string // 职能列表返回的id 20780 jobTypeIdListFlag bool 20781 cityCodeList []string // 地址列表返回的code 20782 cityCodeListFlag bool 20783 siteId string // 官网id,不传则查询默认官网 20784 siteIdFlag bool 20785 } 20786 20787 func NewSiteJobPostSearchRequestBuilder() *SiteJobPostSearchRequestBuilder { 20788 builder := &SiteJobPostSearchRequestBuilder{} 20789 return builder 20790 } 20791 20792 // 搜索关键字 20793 // 20794 // 示例值: 20795 func (builder *SiteJobPostSearchRequestBuilder) Keyword(keyword string) *SiteJobPostSearchRequestBuilder { 20796 builder.keyword = keyword 20797 builder.keywordFlag = true 20798 return builder 20799 } 20800 20801 // 分页用的偏移量,默认0 20802 // 20803 // 示例值: 20804 func (builder *SiteJobPostSearchRequestBuilder) Offset(offset int) *SiteJobPostSearchRequestBuilder { 20805 builder.offset = offset 20806 builder.offsetFlag = true 20807 return builder 20808 } 20809 20810 // 分页用的分页条数,最大100 20811 // 20812 // 示例值: 20813 func (builder *SiteJobPostSearchRequestBuilder) Limit(limit int) *SiteJobPostSearchRequestBuilder { 20814 builder.limit = limit 20815 builder.limitFlag = true 20816 return builder 20817 } 20818 20819 // 职能列表返回的id 20820 // 20821 // 示例值: 20822 func (builder *SiteJobPostSearchRequestBuilder) JobTypeIdList(jobTypeIdList []string) *SiteJobPostSearchRequestBuilder { 20823 builder.jobTypeIdList = jobTypeIdList 20824 builder.jobTypeIdListFlag = true 20825 return builder 20826 } 20827 20828 // 地址列表返回的code 20829 // 20830 // 示例值: 20831 func (builder *SiteJobPostSearchRequestBuilder) CityCodeList(cityCodeList []string) *SiteJobPostSearchRequestBuilder { 20832 builder.cityCodeList = cityCodeList 20833 builder.cityCodeListFlag = true 20834 return builder 20835 } 20836 20837 // 官网id,不传则查询默认官网 20838 // 20839 // 示例值: 20840 func (builder *SiteJobPostSearchRequestBuilder) SiteId(siteId string) *SiteJobPostSearchRequestBuilder { 20841 builder.siteId = siteId 20842 builder.siteIdFlag = true 20843 return builder 20844 } 20845 20846 func (builder *SiteJobPostSearchRequestBuilder) Build() *SiteJobPostSearchRequest { 20847 req := &SiteJobPostSearchRequest{} 20848 if builder.keywordFlag { 20849 req.Keyword = &builder.keyword 20850 20851 } 20852 if builder.offsetFlag { 20853 req.Offset = &builder.offset 20854 20855 } 20856 if builder.limitFlag { 20857 req.Limit = &builder.limit 20858 20859 } 20860 if builder.jobTypeIdListFlag { 20861 req.JobTypeIdList = builder.jobTypeIdList 20862 } 20863 if builder.cityCodeListFlag { 20864 req.CityCodeList = builder.cityCodeList 20865 } 20866 if builder.siteIdFlag { 20867 req.SiteId = &builder.siteId 20868 20869 } 20870 return req 20871 } 20872 20873 type SiteJobRecruitmentType struct { 20874 Id *string `json:"id,omitempty"` // 雇佣类型id 20875 Name *SiteName `json:"name,omitempty"` // 雇佣类型名称 20876 } 20877 20878 type SiteJobRecruitmentTypeBuilder struct { 20879 id string // 雇佣类型id 20880 idFlag bool 20881 name *SiteName // 雇佣类型名称 20882 nameFlag bool 20883 } 20884 20885 func NewSiteJobRecruitmentTypeBuilder() *SiteJobRecruitmentTypeBuilder { 20886 builder := &SiteJobRecruitmentTypeBuilder{} 20887 return builder 20888 } 20889 20890 // 雇佣类型id 20891 // 20892 // 示例值: 20893 func (builder *SiteJobRecruitmentTypeBuilder) Id(id string) *SiteJobRecruitmentTypeBuilder { 20894 builder.id = id 20895 builder.idFlag = true 20896 return builder 20897 } 20898 20899 // 雇佣类型名称 20900 // 20901 // 示例值: 20902 func (builder *SiteJobRecruitmentTypeBuilder) Name(name *SiteName) *SiteJobRecruitmentTypeBuilder { 20903 builder.name = name 20904 builder.nameFlag = true 20905 return builder 20906 } 20907 20908 func (builder *SiteJobRecruitmentTypeBuilder) Build() *SiteJobRecruitmentType { 20909 req := &SiteJobRecruitmentType{} 20910 if builder.idFlag { 20911 req.Id = &builder.id 20912 20913 } 20914 if builder.nameFlag { 20915 req.Name = builder.name 20916 } 20917 return req 20918 } 20919 20920 type SiteName struct { 20921 ZhCn *string `json:"zh_cn,omitempty"` // 中文名称 20922 EnUs *string `json:"en_us,omitempty"` // 英文名称 20923 } 20924 20925 type SiteNameBuilder struct { 20926 zhCn string // 中文名称 20927 zhCnFlag bool 20928 enUs string // 英文名称 20929 enUsFlag bool 20930 } 20931 20932 func NewSiteNameBuilder() *SiteNameBuilder { 20933 builder := &SiteNameBuilder{} 20934 return builder 20935 } 20936 20937 // 中文名称 20938 // 20939 // 示例值: 20940 func (builder *SiteNameBuilder) ZhCn(zhCn string) *SiteNameBuilder { 20941 builder.zhCn = zhCn 20942 builder.zhCnFlag = true 20943 return builder 20944 } 20945 20946 // 英文名称 20947 // 20948 // 示例值: 20949 func (builder *SiteNameBuilder) EnUs(enUs string) *SiteNameBuilder { 20950 builder.enUs = enUs 20951 builder.enUsFlag = true 20952 return builder 20953 } 20954 20955 func (builder *SiteNameBuilder) Build() *SiteName { 20956 req := &SiteName{} 20957 if builder.zhCnFlag { 20958 req.ZhCn = &builder.zhCn 20959 20960 } 20961 if builder.enUsFlag { 20962 req.EnUs = &builder.enUs 20963 20964 } 20965 return req 20966 } 20967 20968 type SiteResumeAward struct { 20969 Title *string `json:"title,omitempty"` // 标题 20970 AwardTime *string `json:"award_time,omitempty"` // 获奖时间 20971 Description *string `json:"description,omitempty"` // 描述 20972 } 20973 20974 type SiteResumeAwardBuilder struct { 20975 title string // 标题 20976 titleFlag bool 20977 awardTime string // 获奖时间 20978 awardTimeFlag bool 20979 description string // 描述 20980 descriptionFlag bool 20981 } 20982 20983 func NewSiteResumeAwardBuilder() *SiteResumeAwardBuilder { 20984 builder := &SiteResumeAwardBuilder{} 20985 return builder 20986 } 20987 20988 // 标题 20989 // 20990 // 示例值: 20991 func (builder *SiteResumeAwardBuilder) Title(title string) *SiteResumeAwardBuilder { 20992 builder.title = title 20993 builder.titleFlag = true 20994 return builder 20995 } 20996 20997 // 获奖时间 20998 // 20999 // 示例值: 21000 func (builder *SiteResumeAwardBuilder) AwardTime(awardTime string) *SiteResumeAwardBuilder { 21001 builder.awardTime = awardTime 21002 builder.awardTimeFlag = true 21003 return builder 21004 } 21005 21006 // 描述 21007 // 21008 // 示例值: 21009 func (builder *SiteResumeAwardBuilder) Description(description string) *SiteResumeAwardBuilder { 21010 builder.description = description 21011 builder.descriptionFlag = true 21012 return builder 21013 } 21014 21015 func (builder *SiteResumeAwardBuilder) Build() *SiteResumeAward { 21016 req := &SiteResumeAward{} 21017 if builder.titleFlag { 21018 req.Title = &builder.title 21019 21020 } 21021 if builder.awardTimeFlag { 21022 req.AwardTime = &builder.awardTime 21023 21024 } 21025 if builder.descriptionFlag { 21026 req.Description = &builder.description 21027 21028 } 21029 return req 21030 } 21031 21032 type SiteResumeCareer struct { 21033 Company *string `json:"company,omitempty"` // 公司名 21034 Title *string `json:"title,omitempty"` // 职位名 21035 CareerType *string `json:"career_type,omitempty"` // 工作类型 21036 Description *string `json:"description,omitempty"` // 描述 21037 StartTime *string `json:"start_time,omitempty"` // 开始时间 21038 EndTime *string `json:"end_time,omitempty"` // 结束时间 21039 } 21040 21041 type SiteResumeCareerBuilder struct { 21042 company string // 公司名 21043 companyFlag bool 21044 title string // 职位名 21045 titleFlag bool 21046 careerType string // 工作类型 21047 careerTypeFlag bool 21048 description string // 描述 21049 descriptionFlag bool 21050 startTime string // 开始时间 21051 startTimeFlag bool 21052 endTime string // 结束时间 21053 endTimeFlag bool 21054 } 21055 21056 func NewSiteResumeCareerBuilder() *SiteResumeCareerBuilder { 21057 builder := &SiteResumeCareerBuilder{} 21058 return builder 21059 } 21060 21061 // 公司名 21062 // 21063 // 示例值: 21064 func (builder *SiteResumeCareerBuilder) Company(company string) *SiteResumeCareerBuilder { 21065 builder.company = company 21066 builder.companyFlag = true 21067 return builder 21068 } 21069 21070 // 职位名 21071 // 21072 // 示例值: 21073 func (builder *SiteResumeCareerBuilder) Title(title string) *SiteResumeCareerBuilder { 21074 builder.title = title 21075 builder.titleFlag = true 21076 return builder 21077 } 21078 21079 // 工作类型 21080 // 21081 // 示例值: 21082 func (builder *SiteResumeCareerBuilder) CareerType(careerType string) *SiteResumeCareerBuilder { 21083 builder.careerType = careerType 21084 builder.careerTypeFlag = true 21085 return builder 21086 } 21087 21088 // 描述 21089 // 21090 // 示例值: 21091 func (builder *SiteResumeCareerBuilder) Description(description string) *SiteResumeCareerBuilder { 21092 builder.description = description 21093 builder.descriptionFlag = true 21094 return builder 21095 } 21096 21097 // 开始时间 21098 // 21099 // 示例值: 21100 func (builder *SiteResumeCareerBuilder) StartTime(startTime string) *SiteResumeCareerBuilder { 21101 builder.startTime = startTime 21102 builder.startTimeFlag = true 21103 return builder 21104 } 21105 21106 // 结束时间 21107 // 21108 // 示例值: 21109 func (builder *SiteResumeCareerBuilder) EndTime(endTime string) *SiteResumeCareerBuilder { 21110 builder.endTime = endTime 21111 builder.endTimeFlag = true 21112 return builder 21113 } 21114 21115 func (builder *SiteResumeCareerBuilder) Build() *SiteResumeCareer { 21116 req := &SiteResumeCareer{} 21117 if builder.companyFlag { 21118 req.Company = &builder.company 21119 21120 } 21121 if builder.titleFlag { 21122 req.Title = &builder.title 21123 21124 } 21125 if builder.careerTypeFlag { 21126 req.CareerType = &builder.careerType 21127 21128 } 21129 if builder.descriptionFlag { 21130 req.Description = &builder.description 21131 21132 } 21133 if builder.startTimeFlag { 21134 req.StartTime = &builder.startTime 21135 21136 } 21137 if builder.endTimeFlag { 21138 req.EndTime = &builder.endTime 21139 21140 } 21141 return req 21142 } 21143 21144 type SiteResumeCertificate struct { 21145 Name *string `json:"name,omitempty"` // 名称 21146 Description *string `json:"description,omitempty"` // 描述 21147 } 21148 21149 type SiteResumeCertificateBuilder struct { 21150 name string // 名称 21151 nameFlag bool 21152 description string // 描述 21153 descriptionFlag bool 21154 } 21155 21156 func NewSiteResumeCertificateBuilder() *SiteResumeCertificateBuilder { 21157 builder := &SiteResumeCertificateBuilder{} 21158 return builder 21159 } 21160 21161 // 名称 21162 // 21163 // 示例值: 21164 func (builder *SiteResumeCertificateBuilder) Name(name string) *SiteResumeCertificateBuilder { 21165 builder.name = name 21166 builder.nameFlag = true 21167 return builder 21168 } 21169 21170 // 描述 21171 // 21172 // 示例值: 21173 func (builder *SiteResumeCertificateBuilder) Description(description string) *SiteResumeCertificateBuilder { 21174 builder.description = description 21175 builder.descriptionFlag = true 21176 return builder 21177 } 21178 21179 func (builder *SiteResumeCertificateBuilder) Build() *SiteResumeCertificate { 21180 req := &SiteResumeCertificate{} 21181 if builder.nameFlag { 21182 req.Name = &builder.name 21183 21184 } 21185 if builder.descriptionFlag { 21186 req.Description = &builder.description 21187 21188 } 21189 return req 21190 } 21191 21192 type SiteResumeCompetition struct { 21193 Name *string `json:"name,omitempty"` // 名称 21194 Description *string `json:"description,omitempty"` // 描述 21195 } 21196 21197 type SiteResumeCompetitionBuilder struct { 21198 name string // 名称 21199 nameFlag bool 21200 description string // 描述 21201 descriptionFlag bool 21202 } 21203 21204 func NewSiteResumeCompetitionBuilder() *SiteResumeCompetitionBuilder { 21205 builder := &SiteResumeCompetitionBuilder{} 21206 return builder 21207 } 21208 21209 // 名称 21210 // 21211 // 示例值: 21212 func (builder *SiteResumeCompetitionBuilder) Name(name string) *SiteResumeCompetitionBuilder { 21213 builder.name = name 21214 builder.nameFlag = true 21215 return builder 21216 } 21217 21218 // 描述 21219 // 21220 // 示例值: 21221 func (builder *SiteResumeCompetitionBuilder) Description(description string) *SiteResumeCompetitionBuilder { 21222 builder.description = description 21223 builder.descriptionFlag = true 21224 return builder 21225 } 21226 21227 func (builder *SiteResumeCompetitionBuilder) Build() *SiteResumeCompetition { 21228 req := &SiteResumeCompetition{} 21229 if builder.nameFlag { 21230 req.Name = &builder.name 21231 21232 } 21233 if builder.descriptionFlag { 21234 req.Description = &builder.description 21235 21236 } 21237 return req 21238 } 21239 21240 type SiteResumeEducation struct { 21241 Degree *string `json:"degree,omitempty"` // 学位 21242 School *string `json:"school,omitempty"` // 学校 21243 Major *string `json:"major,omitempty"` // 专业 21244 StartTime *string `json:"start_time,omitempty"` // 入学时间 21245 EndTime *string `json:"end_time,omitempty"` // 毕业时间 21246 EducationType *string `json:"education_type,omitempty"` // 学位类型 21247 AcademicRanking *string `json:"academic_ranking,omitempty"` // 排名 21248 } 21249 21250 type SiteResumeEducationBuilder struct { 21251 degree string // 学位 21252 degreeFlag bool 21253 school string // 学校 21254 schoolFlag bool 21255 major string // 专业 21256 majorFlag bool 21257 startTime string // 入学时间 21258 startTimeFlag bool 21259 endTime string // 毕业时间 21260 endTimeFlag bool 21261 educationType string // 学位类型 21262 educationTypeFlag bool 21263 academicRanking string // 排名 21264 academicRankingFlag bool 21265 } 21266 21267 func NewSiteResumeEducationBuilder() *SiteResumeEducationBuilder { 21268 builder := &SiteResumeEducationBuilder{} 21269 return builder 21270 } 21271 21272 // 学位 21273 // 21274 // 示例值: 21275 func (builder *SiteResumeEducationBuilder) Degree(degree string) *SiteResumeEducationBuilder { 21276 builder.degree = degree 21277 builder.degreeFlag = true 21278 return builder 21279 } 21280 21281 // 学校 21282 // 21283 // 示例值: 21284 func (builder *SiteResumeEducationBuilder) School(school string) *SiteResumeEducationBuilder { 21285 builder.school = school 21286 builder.schoolFlag = true 21287 return builder 21288 } 21289 21290 // 专业 21291 // 21292 // 示例值: 21293 func (builder *SiteResumeEducationBuilder) Major(major string) *SiteResumeEducationBuilder { 21294 builder.major = major 21295 builder.majorFlag = true 21296 return builder 21297 } 21298 21299 // 入学时间 21300 // 21301 // 示例值: 21302 func (builder *SiteResumeEducationBuilder) StartTime(startTime string) *SiteResumeEducationBuilder { 21303 builder.startTime = startTime 21304 builder.startTimeFlag = true 21305 return builder 21306 } 21307 21308 // 毕业时间 21309 // 21310 // 示例值: 21311 func (builder *SiteResumeEducationBuilder) EndTime(endTime string) *SiteResumeEducationBuilder { 21312 builder.endTime = endTime 21313 builder.endTimeFlag = true 21314 return builder 21315 } 21316 21317 // 学位类型 21318 // 21319 // 示例值: 21320 func (builder *SiteResumeEducationBuilder) EducationType(educationType string) *SiteResumeEducationBuilder { 21321 builder.educationType = educationType 21322 builder.educationTypeFlag = true 21323 return builder 21324 } 21325 21326 // 排名 21327 // 21328 // 示例值: 21329 func (builder *SiteResumeEducationBuilder) AcademicRanking(academicRanking string) *SiteResumeEducationBuilder { 21330 builder.academicRanking = academicRanking 21331 builder.academicRankingFlag = true 21332 return builder 21333 } 21334 21335 func (builder *SiteResumeEducationBuilder) Build() *SiteResumeEducation { 21336 req := &SiteResumeEducation{} 21337 if builder.degreeFlag { 21338 req.Degree = &builder.degree 21339 21340 } 21341 if builder.schoolFlag { 21342 req.School = &builder.school 21343 21344 } 21345 if builder.majorFlag { 21346 req.Major = &builder.major 21347 21348 } 21349 if builder.startTimeFlag { 21350 req.StartTime = &builder.startTime 21351 21352 } 21353 if builder.endTimeFlag { 21354 req.EndTime = &builder.endTime 21355 21356 } 21357 if builder.educationTypeFlag { 21358 req.EducationType = &builder.educationType 21359 21360 } 21361 if builder.academicRankingFlag { 21362 req.AcademicRanking = &builder.academicRanking 21363 21364 } 21365 return req 21366 } 21367 21368 type SiteResumeIdentification struct { 21369 IdentificationType *string `json:"identification_type,omitempty"` // 身份类型 21370 Code *string `json:"code,omitempty"` // 身份号码 21371 } 21372 21373 type SiteResumeIdentificationBuilder struct { 21374 identificationType string // 身份类型 21375 identificationTypeFlag bool 21376 code string // 身份号码 21377 codeFlag bool 21378 } 21379 21380 func NewSiteResumeIdentificationBuilder() *SiteResumeIdentificationBuilder { 21381 builder := &SiteResumeIdentificationBuilder{} 21382 return builder 21383 } 21384 21385 // 身份类型 21386 // 21387 // 示例值: 21388 func (builder *SiteResumeIdentificationBuilder) IdentificationType(identificationType string) *SiteResumeIdentificationBuilder { 21389 builder.identificationType = identificationType 21390 builder.identificationTypeFlag = true 21391 return builder 21392 } 21393 21394 // 身份号码 21395 // 21396 // 示例值: 21397 func (builder *SiteResumeIdentificationBuilder) Code(code string) *SiteResumeIdentificationBuilder { 21398 builder.code = code 21399 builder.codeFlag = true 21400 return builder 21401 } 21402 21403 func (builder *SiteResumeIdentificationBuilder) Build() *SiteResumeIdentification { 21404 req := &SiteResumeIdentification{} 21405 if builder.identificationTypeFlag { 21406 req.IdentificationType = &builder.identificationType 21407 21408 } 21409 if builder.codeFlag { 21410 req.Code = &builder.code 21411 21412 } 21413 return req 21414 } 21415 21416 type SiteResumeInternship struct { 21417 Company *string `json:"company,omitempty"` // 公司名 21418 Position *string `json:"position,omitempty"` // 职位名 21419 Description *string `json:"description,omitempty"` // 描述 21420 StartTime *string `json:"start_time,omitempty"` // 开始时间 21421 EndTime *string `json:"end_time,omitempty"` // 结束时间 21422 } 21423 21424 type SiteResumeInternshipBuilder struct { 21425 company string // 公司名 21426 companyFlag bool 21427 position string // 职位名 21428 positionFlag bool 21429 description string // 描述 21430 descriptionFlag bool 21431 startTime string // 开始时间 21432 startTimeFlag bool 21433 endTime string // 结束时间 21434 endTimeFlag bool 21435 } 21436 21437 func NewSiteResumeInternshipBuilder() *SiteResumeInternshipBuilder { 21438 builder := &SiteResumeInternshipBuilder{} 21439 return builder 21440 } 21441 21442 // 公司名 21443 // 21444 // 示例值: 21445 func (builder *SiteResumeInternshipBuilder) Company(company string) *SiteResumeInternshipBuilder { 21446 builder.company = company 21447 builder.companyFlag = true 21448 return builder 21449 } 21450 21451 // 职位名 21452 // 21453 // 示例值: 21454 func (builder *SiteResumeInternshipBuilder) Position(position string) *SiteResumeInternshipBuilder { 21455 builder.position = position 21456 builder.positionFlag = true 21457 return builder 21458 } 21459 21460 // 描述 21461 // 21462 // 示例值: 21463 func (builder *SiteResumeInternshipBuilder) Description(description string) *SiteResumeInternshipBuilder { 21464 builder.description = description 21465 builder.descriptionFlag = true 21466 return builder 21467 } 21468 21469 // 开始时间 21470 // 21471 // 示例值: 21472 func (builder *SiteResumeInternshipBuilder) StartTime(startTime string) *SiteResumeInternshipBuilder { 21473 builder.startTime = startTime 21474 builder.startTimeFlag = true 21475 return builder 21476 } 21477 21478 // 结束时间 21479 // 21480 // 示例值: 21481 func (builder *SiteResumeInternshipBuilder) EndTime(endTime string) *SiteResumeInternshipBuilder { 21482 builder.endTime = endTime 21483 builder.endTimeFlag = true 21484 return builder 21485 } 21486 21487 func (builder *SiteResumeInternshipBuilder) Build() *SiteResumeInternship { 21488 req := &SiteResumeInternship{} 21489 if builder.companyFlag { 21490 req.Company = &builder.company 21491 21492 } 21493 if builder.positionFlag { 21494 req.Position = &builder.position 21495 21496 } 21497 if builder.descriptionFlag { 21498 req.Description = &builder.description 21499 21500 } 21501 if builder.startTimeFlag { 21502 req.StartTime = &builder.startTime 21503 21504 } 21505 if builder.endTimeFlag { 21506 req.EndTime = &builder.endTime 21507 21508 } 21509 return req 21510 } 21511 21512 type SiteResumeLanguageSkill struct { 21513 Language *string `json:"language,omitempty"` // 语言名称 21514 Proficiency *string `json:"proficiency,omitempty"` // 语言等级 21515 } 21516 21517 type SiteResumeLanguageSkillBuilder struct { 21518 language string // 语言名称 21519 languageFlag bool 21520 proficiency string // 语言等级 21521 proficiencyFlag bool 21522 } 21523 21524 func NewSiteResumeLanguageSkillBuilder() *SiteResumeLanguageSkillBuilder { 21525 builder := &SiteResumeLanguageSkillBuilder{} 21526 return builder 21527 } 21528 21529 // 语言名称 21530 // 21531 // 示例值: 21532 func (builder *SiteResumeLanguageSkillBuilder) Language(language string) *SiteResumeLanguageSkillBuilder { 21533 builder.language = language 21534 builder.languageFlag = true 21535 return builder 21536 } 21537 21538 // 语言等级 21539 // 21540 // 示例值: 21541 func (builder *SiteResumeLanguageSkillBuilder) Proficiency(proficiency string) *SiteResumeLanguageSkillBuilder { 21542 builder.proficiency = proficiency 21543 builder.proficiencyFlag = true 21544 return builder 21545 } 21546 21547 func (builder *SiteResumeLanguageSkillBuilder) Build() *SiteResumeLanguageSkill { 21548 req := &SiteResumeLanguageSkill{} 21549 if builder.languageFlag { 21550 req.Language = &builder.language 21551 21552 } 21553 if builder.proficiencyFlag { 21554 req.Proficiency = &builder.proficiency 21555 21556 } 21557 return req 21558 } 21559 21560 type SiteResumeProject struct { 21561 Name *string `json:"name,omitempty"` // 项目名 21562 Role *string `json:"role,omitempty"` // 担任角色 21563 Description *string `json:"description,omitempty"` // 描述 21564 StartTime *string `json:"start_time,omitempty"` // 开始时间 21565 EndTime *string `json:"end_time,omitempty"` // 结束时间 21566 } 21567 21568 type SiteResumeProjectBuilder struct { 21569 name string // 项目名 21570 nameFlag bool 21571 role string // 担任角色 21572 roleFlag bool 21573 description string // 描述 21574 descriptionFlag bool 21575 startTime string // 开始时间 21576 startTimeFlag bool 21577 endTime string // 结束时间 21578 endTimeFlag bool 21579 } 21580 21581 func NewSiteResumeProjectBuilder() *SiteResumeProjectBuilder { 21582 builder := &SiteResumeProjectBuilder{} 21583 return builder 21584 } 21585 21586 // 项目名 21587 // 21588 // 示例值: 21589 func (builder *SiteResumeProjectBuilder) Name(name string) *SiteResumeProjectBuilder { 21590 builder.name = name 21591 builder.nameFlag = true 21592 return builder 21593 } 21594 21595 // 担任角色 21596 // 21597 // 示例值: 21598 func (builder *SiteResumeProjectBuilder) Role(role string) *SiteResumeProjectBuilder { 21599 builder.role = role 21600 builder.roleFlag = true 21601 return builder 21602 } 21603 21604 // 描述 21605 // 21606 // 示例值: 21607 func (builder *SiteResumeProjectBuilder) Description(description string) *SiteResumeProjectBuilder { 21608 builder.description = description 21609 builder.descriptionFlag = true 21610 return builder 21611 } 21612 21613 // 开始时间 21614 // 21615 // 示例值: 21616 func (builder *SiteResumeProjectBuilder) StartTime(startTime string) *SiteResumeProjectBuilder { 21617 builder.startTime = startTime 21618 builder.startTimeFlag = true 21619 return builder 21620 } 21621 21622 // 结束时间 21623 // 21624 // 示例值: 21625 func (builder *SiteResumeProjectBuilder) EndTime(endTime string) *SiteResumeProjectBuilder { 21626 builder.endTime = endTime 21627 builder.endTimeFlag = true 21628 return builder 21629 } 21630 21631 func (builder *SiteResumeProjectBuilder) Build() *SiteResumeProject { 21632 req := &SiteResumeProject{} 21633 if builder.nameFlag { 21634 req.Name = &builder.name 21635 21636 } 21637 if builder.roleFlag { 21638 req.Role = &builder.role 21639 21640 } 21641 if builder.descriptionFlag { 21642 req.Description = &builder.description 21643 21644 } 21645 if builder.startTimeFlag { 21646 req.StartTime = &builder.startTime 21647 21648 } 21649 if builder.endTimeFlag { 21650 req.EndTime = &builder.endTime 21651 21652 } 21653 return req 21654 } 21655 21656 type SiteResumeSns struct { 21657 SnsType *string `json:"sns_type,omitempty"` // 社交网站类型 21658 Link *string `json:"link,omitempty"` // 链接 21659 } 21660 21661 type SiteResumeSnsBuilder struct { 21662 snsType string // 社交网站类型 21663 snsTypeFlag bool 21664 link string // 链接 21665 linkFlag bool 21666 } 21667 21668 func NewSiteResumeSnsBuilder() *SiteResumeSnsBuilder { 21669 builder := &SiteResumeSnsBuilder{} 21670 return builder 21671 } 21672 21673 // 社交网站类型 21674 // 21675 // 示例值: 21676 func (builder *SiteResumeSnsBuilder) SnsType(snsType string) *SiteResumeSnsBuilder { 21677 builder.snsType = snsType 21678 builder.snsTypeFlag = true 21679 return builder 21680 } 21681 21682 // 链接 21683 // 21684 // 示例值: 21685 func (builder *SiteResumeSnsBuilder) Link(link string) *SiteResumeSnsBuilder { 21686 builder.link = link 21687 builder.linkFlag = true 21688 return builder 21689 } 21690 21691 func (builder *SiteResumeSnsBuilder) Build() *SiteResumeSns { 21692 req := &SiteResumeSns{} 21693 if builder.snsTypeFlag { 21694 req.SnsType = &builder.snsType 21695 21696 } 21697 if builder.linkFlag { 21698 req.Link = &builder.link 21699 21700 } 21701 return req 21702 } 21703 21704 type SiteResumeWork struct { 21705 Link *string `json:"link,omitempty"` // 作品链接 21706 Description *string `json:"description,omitempty"` // 描述 21707 SiteAttachmentId *string `json:"site_attachment_id,omitempty"` // 作品附件id 21708 } 21709 21710 type SiteResumeWorkBuilder struct { 21711 link string // 作品链接 21712 linkFlag bool 21713 description string // 描述 21714 descriptionFlag bool 21715 siteAttachmentId string // 作品附件id 21716 siteAttachmentIdFlag bool 21717 } 21718 21719 func NewSiteResumeWorkBuilder() *SiteResumeWorkBuilder { 21720 builder := &SiteResumeWorkBuilder{} 21721 return builder 21722 } 21723 21724 // 作品链接 21725 // 21726 // 示例值: 21727 func (builder *SiteResumeWorkBuilder) Link(link string) *SiteResumeWorkBuilder { 21728 builder.link = link 21729 builder.linkFlag = true 21730 return builder 21731 } 21732 21733 // 描述 21734 // 21735 // 示例值: 21736 func (builder *SiteResumeWorkBuilder) Description(description string) *SiteResumeWorkBuilder { 21737 builder.description = description 21738 builder.descriptionFlag = true 21739 return builder 21740 } 21741 21742 // 作品附件id 21743 // 21744 // 示例值: 21745 func (builder *SiteResumeWorkBuilder) SiteAttachmentId(siteAttachmentId string) *SiteResumeWorkBuilder { 21746 builder.siteAttachmentId = siteAttachmentId 21747 builder.siteAttachmentIdFlag = true 21748 return builder 21749 } 21750 21751 func (builder *SiteResumeWorkBuilder) Build() *SiteResumeWork { 21752 req := &SiteResumeWork{} 21753 if builder.linkFlag { 21754 req.Link = &builder.link 21755 21756 } 21757 if builder.descriptionFlag { 21758 req.Description = &builder.description 21759 21760 } 21761 if builder.siteAttachmentIdFlag { 21762 req.SiteAttachmentId = &builder.siteAttachmentId 21763 21764 } 21765 return req 21766 } 21767 21768 type SnsInfo struct { 21769 Link *string `json:"link,omitempty"` // SNS链接 21770 SnsType *int `json:"sns_type,omitempty"` // SNS类型 21771 } 21772 21773 type SnsInfoBuilder struct { 21774 link string // SNS链接 21775 linkFlag bool 21776 snsType int // SNS类型 21777 snsTypeFlag bool 21778 } 21779 21780 func NewSnsInfoBuilder() *SnsInfoBuilder { 21781 builder := &SnsInfoBuilder{} 21782 return builder 21783 } 21784 21785 // SNS链接 21786 // 21787 // 示例值: 21788 func (builder *SnsInfoBuilder) Link(link string) *SnsInfoBuilder { 21789 builder.link = link 21790 builder.linkFlag = true 21791 return builder 21792 } 21793 21794 // SNS类型 21795 // 21796 // 示例值: 21797 func (builder *SnsInfoBuilder) SnsType(snsType int) *SnsInfoBuilder { 21798 builder.snsType = snsType 21799 builder.snsTypeFlag = true 21800 return builder 21801 } 21802 21803 func (builder *SnsInfoBuilder) Build() *SnsInfo { 21804 req := &SnsInfo{} 21805 if builder.linkFlag { 21806 req.Link = &builder.link 21807 21808 } 21809 if builder.snsTypeFlag { 21810 req.SnsType = &builder.snsType 21811 21812 } 21813 return req 21814 } 21815 21816 type Subject struct { 21817 Id *string `json:"id,omitempty"` // ID 21818 Name *I18n `json:"name,omitempty"` // 名称 21819 CreateTime *string `json:"create_time,omitempty"` // 创建时间 21820 ActiveStatus *int `json:"active_status,omitempty"` // 状态 21821 ApplicationLimit *int `json:"application_limit,omitempty"` // 投递职位数上限 21822 Creator *IdNameObject `json:"creator,omitempty"` // 创建人 21823 } 21824 21825 type SubjectBuilder struct { 21826 id string // ID 21827 idFlag bool 21828 name *I18n // 名称 21829 nameFlag bool 21830 createTime string // 创建时间 21831 createTimeFlag bool 21832 activeStatus int // 状态 21833 activeStatusFlag bool 21834 applicationLimit int // 投递职位数上限 21835 applicationLimitFlag bool 21836 creator *IdNameObject // 创建人 21837 creatorFlag bool 21838 } 21839 21840 func NewSubjectBuilder() *SubjectBuilder { 21841 builder := &SubjectBuilder{} 21842 return builder 21843 } 21844 21845 // ID 21846 // 21847 // 示例值:1213213123123 21848 func (builder *SubjectBuilder) Id(id string) *SubjectBuilder { 21849 builder.id = id 21850 builder.idFlag = true 21851 return builder 21852 } 21853 21854 // 名称 21855 // 21856 // 示例值: 21857 func (builder *SubjectBuilder) Name(name *I18n) *SubjectBuilder { 21858 builder.name = name 21859 builder.nameFlag = true 21860 return builder 21861 } 21862 21863 // 创建时间 21864 // 21865 // 示例值:1628512038000 21866 func (builder *SubjectBuilder) CreateTime(createTime string) *SubjectBuilder { 21867 builder.createTime = createTime 21868 builder.createTimeFlag = true 21869 return builder 21870 } 21871 21872 // 状态 21873 // 21874 // 示例值:1 21875 func (builder *SubjectBuilder) ActiveStatus(activeStatus int) *SubjectBuilder { 21876 builder.activeStatus = activeStatus 21877 builder.activeStatusFlag = true 21878 return builder 21879 } 21880 21881 // 投递职位数上限 21882 // 21883 // 示例值:1 21884 func (builder *SubjectBuilder) ApplicationLimit(applicationLimit int) *SubjectBuilder { 21885 builder.applicationLimit = applicationLimit 21886 builder.applicationLimitFlag = true 21887 return builder 21888 } 21889 21890 // 创建人 21891 // 21892 // 示例值: 21893 func (builder *SubjectBuilder) Creator(creator *IdNameObject) *SubjectBuilder { 21894 builder.creator = creator 21895 builder.creatorFlag = true 21896 return builder 21897 } 21898 21899 func (builder *SubjectBuilder) Build() *Subject { 21900 req := &Subject{} 21901 if builder.idFlag { 21902 req.Id = &builder.id 21903 21904 } 21905 if builder.nameFlag { 21906 req.Name = builder.name 21907 } 21908 if builder.createTimeFlag { 21909 req.CreateTime = &builder.createTime 21910 21911 } 21912 if builder.activeStatusFlag { 21913 req.ActiveStatus = &builder.activeStatus 21914 21915 } 21916 if builder.applicationLimitFlag { 21917 req.ApplicationLimit = &builder.applicationLimit 21918 21919 } 21920 if builder.creatorFlag { 21921 req.Creator = builder.creator 21922 } 21923 return req 21924 } 21925 21926 type Talent struct { 21927 Id *string `json:"id,omitempty"` // 人才ID 21928 IsInAgencyPeriod *bool `json:"is_in_agency_period,omitempty"` // 是否在猎头保护期 21929 IsOnboarded *bool `json:"is_onboarded,omitempty"` // 是否已入职 21930 BasicInfo *TalentBasicInfo `json:"basic_info,omitempty"` // 基础信息 21931 EducationList []*TalentEducationInfo `json:"education_list,omitempty"` // 教育经历 21932 CareerList []*TalentCareerInfo `json:"career_list,omitempty"` // 工作经历 21933 ProjectList []*TalentProjectInfo `json:"project_list,omitempty"` // 项目经历 21934 WorksList []*TalentWorksInfo `json:"works_list,omitempty"` // 作品 21935 AwardList []*TalentAwardInfo `json:"award_list,omitempty"` // 获奖 21936 LanguageList []*TalentLanguageInfo `json:"language_list,omitempty"` // 语言能力 21937 SnsList []*TalentSnsInfo `json:"sns_list,omitempty"` // 社交账号 21938 ResumeSourceList []*TalentResumeSource `json:"resume_source_list,omitempty"` // 简历来源 21939 InterviewRegistrationList []*TalentInterviewRegistrationSimple `json:"interview_registration_list,omitempty"` // 面试登记表 21940 ResumeAttachmentIdList []string `json:"resume_attachment_id_list,omitempty"` // 简历附件id列表(按照简历创建时间降序) 21941 CustomizedDataList []*TalentCustomizedData `json:"customized_data_list,omitempty"` // 自定义模块 21942 TopDegree *int `json:"top_degree,omitempty"` // 最高学历 21943 } 21944 21945 type TalentBuilder struct { 21946 id string // 人才ID 21947 idFlag bool 21948 isInAgencyPeriod bool // 是否在猎头保护期 21949 isInAgencyPeriodFlag bool 21950 isOnboarded bool // 是否已入职 21951 isOnboardedFlag bool 21952 basicInfo *TalentBasicInfo // 基础信息 21953 basicInfoFlag bool 21954 educationList []*TalentEducationInfo // 教育经历 21955 educationListFlag bool 21956 careerList []*TalentCareerInfo // 工作经历 21957 careerListFlag bool 21958 projectList []*TalentProjectInfo // 项目经历 21959 projectListFlag bool 21960 worksList []*TalentWorksInfo // 作品 21961 worksListFlag bool 21962 awardList []*TalentAwardInfo // 获奖 21963 awardListFlag bool 21964 languageList []*TalentLanguageInfo // 语言能力 21965 languageListFlag bool 21966 snsList []*TalentSnsInfo // 社交账号 21967 snsListFlag bool 21968 resumeSourceList []*TalentResumeSource // 简历来源 21969 resumeSourceListFlag bool 21970 interviewRegistrationList []*TalentInterviewRegistrationSimple // 面试登记表 21971 interviewRegistrationListFlag bool 21972 resumeAttachmentIdList []string // 简历附件id列表(按照简历创建时间降序) 21973 resumeAttachmentIdListFlag bool 21974 customizedDataList []*TalentCustomizedData // 自定义模块 21975 customizedDataListFlag bool 21976 topDegree int // 最高学历 21977 topDegreeFlag bool 21978 } 21979 21980 func NewTalentBuilder() *TalentBuilder { 21981 builder := &TalentBuilder{} 21982 return builder 21983 } 21984 21985 // 人才ID 21986 // 21987 // 示例值:6891560630172518670 21988 func (builder *TalentBuilder) Id(id string) *TalentBuilder { 21989 builder.id = id 21990 builder.idFlag = true 21991 return builder 21992 } 21993 21994 // 是否在猎头保护期 21995 // 21996 // 示例值:true 21997 func (builder *TalentBuilder) IsInAgencyPeriod(isInAgencyPeriod bool) *TalentBuilder { 21998 builder.isInAgencyPeriod = isInAgencyPeriod 21999 builder.isInAgencyPeriodFlag = true 22000 return builder 22001 } 22002 22003 // 是否已入职 22004 // 22005 // 示例值:true 22006 func (builder *TalentBuilder) IsOnboarded(isOnboarded bool) *TalentBuilder { 22007 builder.isOnboarded = isOnboarded 22008 builder.isOnboardedFlag = true 22009 return builder 22010 } 22011 22012 // 基础信息 22013 // 22014 // 示例值: 22015 func (builder *TalentBuilder) BasicInfo(basicInfo *TalentBasicInfo) *TalentBuilder { 22016 builder.basicInfo = basicInfo 22017 builder.basicInfoFlag = true 22018 return builder 22019 } 22020 22021 // 教育经历 22022 // 22023 // 示例值: 22024 func (builder *TalentBuilder) EducationList(educationList []*TalentEducationInfo) *TalentBuilder { 22025 builder.educationList = educationList 22026 builder.educationListFlag = true 22027 return builder 22028 } 22029 22030 // 工作经历 22031 // 22032 // 示例值: 22033 func (builder *TalentBuilder) CareerList(careerList []*TalentCareerInfo) *TalentBuilder { 22034 builder.careerList = careerList 22035 builder.careerListFlag = true 22036 return builder 22037 } 22038 22039 // 项目经历 22040 // 22041 // 示例值: 22042 func (builder *TalentBuilder) ProjectList(projectList []*TalentProjectInfo) *TalentBuilder { 22043 builder.projectList = projectList 22044 builder.projectListFlag = true 22045 return builder 22046 } 22047 22048 // 作品 22049 // 22050 // 示例值: 22051 func (builder *TalentBuilder) WorksList(worksList []*TalentWorksInfo) *TalentBuilder { 22052 builder.worksList = worksList 22053 builder.worksListFlag = true 22054 return builder 22055 } 22056 22057 // 获奖 22058 // 22059 // 示例值: 22060 func (builder *TalentBuilder) AwardList(awardList []*TalentAwardInfo) *TalentBuilder { 22061 builder.awardList = awardList 22062 builder.awardListFlag = true 22063 return builder 22064 } 22065 22066 // 语言能力 22067 // 22068 // 示例值: 22069 func (builder *TalentBuilder) LanguageList(languageList []*TalentLanguageInfo) *TalentBuilder { 22070 builder.languageList = languageList 22071 builder.languageListFlag = true 22072 return builder 22073 } 22074 22075 // 社交账号 22076 // 22077 // 示例值: 22078 func (builder *TalentBuilder) SnsList(snsList []*TalentSnsInfo) *TalentBuilder { 22079 builder.snsList = snsList 22080 builder.snsListFlag = true 22081 return builder 22082 } 22083 22084 // 简历来源 22085 // 22086 // 示例值: 22087 func (builder *TalentBuilder) ResumeSourceList(resumeSourceList []*TalentResumeSource) *TalentBuilder { 22088 builder.resumeSourceList = resumeSourceList 22089 builder.resumeSourceListFlag = true 22090 return builder 22091 } 22092 22093 // 面试登记表 22094 // 22095 // 示例值: 22096 func (builder *TalentBuilder) InterviewRegistrationList(interviewRegistrationList []*TalentInterviewRegistrationSimple) *TalentBuilder { 22097 builder.interviewRegistrationList = interviewRegistrationList 22098 builder.interviewRegistrationListFlag = true 22099 return builder 22100 } 22101 22102 // 简历附件id列表(按照简历创建时间降序) 22103 // 22104 // 示例值: 22105 func (builder *TalentBuilder) ResumeAttachmentIdList(resumeAttachmentIdList []string) *TalentBuilder { 22106 builder.resumeAttachmentIdList = resumeAttachmentIdList 22107 builder.resumeAttachmentIdListFlag = true 22108 return builder 22109 } 22110 22111 // 自定义模块 22112 // 22113 // 示例值: 22114 func (builder *TalentBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedData) *TalentBuilder { 22115 builder.customizedDataList = customizedDataList 22116 builder.customizedDataListFlag = true 22117 return builder 22118 } 22119 22120 // 最高学历 22121 // 22122 // 示例值:1 22123 func (builder *TalentBuilder) TopDegree(topDegree int) *TalentBuilder { 22124 builder.topDegree = topDegree 22125 builder.topDegreeFlag = true 22126 return builder 22127 } 22128 22129 func (builder *TalentBuilder) Build() *Talent { 22130 req := &Talent{} 22131 if builder.idFlag { 22132 req.Id = &builder.id 22133 22134 } 22135 if builder.isInAgencyPeriodFlag { 22136 req.IsInAgencyPeriod = &builder.isInAgencyPeriod 22137 22138 } 22139 if builder.isOnboardedFlag { 22140 req.IsOnboarded = &builder.isOnboarded 22141 22142 } 22143 if builder.basicInfoFlag { 22144 req.BasicInfo = builder.basicInfo 22145 } 22146 if builder.educationListFlag { 22147 req.EducationList = builder.educationList 22148 } 22149 if builder.careerListFlag { 22150 req.CareerList = builder.careerList 22151 } 22152 if builder.projectListFlag { 22153 req.ProjectList = builder.projectList 22154 } 22155 if builder.worksListFlag { 22156 req.WorksList = builder.worksList 22157 } 22158 if builder.awardListFlag { 22159 req.AwardList = builder.awardList 22160 } 22161 if builder.languageListFlag { 22162 req.LanguageList = builder.languageList 22163 } 22164 if builder.snsListFlag { 22165 req.SnsList = builder.snsList 22166 } 22167 if builder.resumeSourceListFlag { 22168 req.ResumeSourceList = builder.resumeSourceList 22169 } 22170 if builder.interviewRegistrationListFlag { 22171 req.InterviewRegistrationList = builder.interviewRegistrationList 22172 } 22173 if builder.resumeAttachmentIdListFlag { 22174 req.ResumeAttachmentIdList = builder.resumeAttachmentIdList 22175 } 22176 if builder.customizedDataListFlag { 22177 req.CustomizedDataList = builder.customizedDataList 22178 } 22179 if builder.topDegreeFlag { 22180 req.TopDegree = &builder.topDegree 22181 22182 } 22183 return req 22184 } 22185 22186 type TalentInterviewRegistration struct { 22187 } 22188 22189 type TalentAwardInfo struct { 22190 Id *string `json:"id,omitempty"` // ID 22191 Title *string `json:"title,omitempty"` // 获奖名称 22192 AwardTime *string `json:"award_time,omitempty"` // 获奖时间 22193 Desc *string `json:"desc,omitempty"` // 描述 22194 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 22195 } 22196 22197 type TalentAwardInfoBuilder struct { 22198 id string // ID 22199 idFlag bool 22200 title string // 获奖名称 22201 titleFlag bool 22202 awardTime string // 获奖时间 22203 awardTimeFlag bool 22204 desc string // 描述 22205 descFlag bool 22206 customizedDataList []*TalentCustomizedDataChild // 自定义字段 22207 customizedDataListFlag bool 22208 } 22209 22210 func NewTalentAwardInfoBuilder() *TalentAwardInfoBuilder { 22211 builder := &TalentAwardInfoBuilder{} 22212 return builder 22213 } 22214 22215 // ID 22216 // 22217 // 示例值:6891560630172518670 22218 func (builder *TalentAwardInfoBuilder) Id(id string) *TalentAwardInfoBuilder { 22219 builder.id = id 22220 builder.idFlag = true 22221 return builder 22222 } 22223 22224 // 获奖名称 22225 // 22226 // 示例值:最佳新人奖 22227 func (builder *TalentAwardInfoBuilder) Title(title string) *TalentAwardInfoBuilder { 22228 builder.title = title 22229 builder.titleFlag = true 22230 return builder 22231 } 22232 22233 // 获奖时间 22234 // 22235 // 示例值:1991 22236 func (builder *TalentAwardInfoBuilder) AwardTime(awardTime string) *TalentAwardInfoBuilder { 22237 builder.awardTime = awardTime 22238 builder.awardTimeFlag = true 22239 return builder 22240 } 22241 22242 // 描述 22243 // 22244 // 示例值:最优秀的新人奖 22245 func (builder *TalentAwardInfoBuilder) Desc(desc string) *TalentAwardInfoBuilder { 22246 builder.desc = desc 22247 builder.descFlag = true 22248 return builder 22249 } 22250 22251 // 自定义字段 22252 // 22253 // 示例值: 22254 func (builder *TalentAwardInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentAwardInfoBuilder { 22255 builder.customizedDataList = customizedDataList 22256 builder.customizedDataListFlag = true 22257 return builder 22258 } 22259 22260 func (builder *TalentAwardInfoBuilder) Build() *TalentAwardInfo { 22261 req := &TalentAwardInfo{} 22262 if builder.idFlag { 22263 req.Id = &builder.id 22264 22265 } 22266 if builder.titleFlag { 22267 req.Title = &builder.title 22268 22269 } 22270 if builder.awardTimeFlag { 22271 req.AwardTime = &builder.awardTime 22272 22273 } 22274 if builder.descFlag { 22275 req.Desc = &builder.desc 22276 22277 } 22278 if builder.customizedDataListFlag { 22279 req.CustomizedDataList = builder.customizedDataList 22280 } 22281 return req 22282 } 22283 22284 type TalentBasicInfo struct { 22285 Name *string `json:"name,omitempty"` // 名字 22286 Mobile *string `json:"mobile,omitempty"` // 手机 22287 MobileCode *string `json:"mobile_code,omitempty"` // 手机国家区号 22288 MobileCountryCode *string `json:"mobile_country_code,omitempty"` // 手机国家代码 22289 Email *string `json:"email,omitempty"` // 邮箱 22290 ExperienceYears *int `json:"experience_years,omitempty"` // 工作年限 22291 Age *int `json:"age,omitempty"` // 年龄 22292 Nationality *TalentNationality `json:"nationality,omitempty"` // 国籍 22293 Gender *int `json:"gender,omitempty"` // 性别 22294 CurrentCity *TalentCityInfo `json:"current_city,omitempty"` // 所在地点 22295 HometownCity *TalentCityInfo `json:"hometown_city,omitempty"` // 家乡 22296 PreferredCityList []*TalentCityInfo `json:"preferred_city_list,omitempty"` // 意向地点 22297 IdentificationType *int `json:"identification_type,omitempty"` // 证件类型 22298 IdentificationNumber *string `json:"identification_number,omitempty"` // 证件号 22299 Identification *TalentIdentificationInfo `json:"identification,omitempty"` // 证件信息 22300 Birthday *int `json:"birthday,omitempty"` // 生日 22301 CreatorId *string `json:"creator_id,omitempty"` // 创建人 22302 MaritalStatus *int `json:"marital_status,omitempty"` // 婚姻状况 22303 CurrentHomeAddress *string `json:"current_home_address,omitempty"` // 家庭住址 22304 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 22305 ModifyTime *string `json:"modify_time,omitempty"` // 修改时间 22306 } 22307 22308 type TalentBasicInfoBuilder struct { 22309 name string // 名字 22310 nameFlag bool 22311 mobile string // 手机 22312 mobileFlag bool 22313 mobileCode string // 手机国家区号 22314 mobileCodeFlag bool 22315 mobileCountryCode string // 手机国家代码 22316 mobileCountryCodeFlag bool 22317 email string // 邮箱 22318 emailFlag bool 22319 experienceYears int // 工作年限 22320 experienceYearsFlag bool 22321 age int // 年龄 22322 ageFlag bool 22323 nationality *TalentNationality // 国籍 22324 nationalityFlag bool 22325 gender int // 性别 22326 genderFlag bool 22327 currentCity *TalentCityInfo // 所在地点 22328 currentCityFlag bool 22329 hometownCity *TalentCityInfo // 家乡 22330 hometownCityFlag bool 22331 preferredCityList []*TalentCityInfo // 意向地点 22332 preferredCityListFlag bool 22333 identificationType int // 证件类型 22334 identificationTypeFlag bool 22335 identificationNumber string // 证件号 22336 identificationNumberFlag bool 22337 identification *TalentIdentificationInfo // 证件信息 22338 identificationFlag bool 22339 birthday int // 生日 22340 birthdayFlag bool 22341 creatorId string // 创建人 22342 creatorIdFlag bool 22343 maritalStatus int // 婚姻状况 22344 maritalStatusFlag bool 22345 currentHomeAddress string // 家庭住址 22346 currentHomeAddressFlag bool 22347 customizedDataList []*TalentCustomizedDataChild // 自定义字段 22348 customizedDataListFlag bool 22349 modifyTime string // 修改时间 22350 modifyTimeFlag bool 22351 } 22352 22353 func NewTalentBasicInfoBuilder() *TalentBasicInfoBuilder { 22354 builder := &TalentBasicInfoBuilder{} 22355 return builder 22356 } 22357 22358 // 名字 22359 // 22360 // 示例值:测试 22361 func (builder *TalentBasicInfoBuilder) Name(name string) *TalentBasicInfoBuilder { 22362 builder.name = name 22363 builder.nameFlag = true 22364 return builder 22365 } 22366 22367 // 手机 22368 // 22369 // 示例值:182900291190 22370 func (builder *TalentBasicInfoBuilder) Mobile(mobile string) *TalentBasicInfoBuilder { 22371 builder.mobile = mobile 22372 builder.mobileFlag = true 22373 return builder 22374 } 22375 22376 // 手机国家区号 22377 // 22378 // 示例值:86 22379 func (builder *TalentBasicInfoBuilder) MobileCode(mobileCode string) *TalentBasicInfoBuilder { 22380 builder.mobileCode = mobileCode 22381 builder.mobileCodeFlag = true 22382 return builder 22383 } 22384 22385 // 手机国家代码 22386 // 22387 // 示例值:CN_1 22388 func (builder *TalentBasicInfoBuilder) MobileCountryCode(mobileCountryCode string) *TalentBasicInfoBuilder { 22389 builder.mobileCountryCode = mobileCountryCode 22390 builder.mobileCountryCodeFlag = true 22391 return builder 22392 } 22393 22394 // 邮箱 22395 // 22396 // 示例值:16xx1@126.com 22397 func (builder *TalentBasicInfoBuilder) Email(email string) *TalentBasicInfoBuilder { 22398 builder.email = email 22399 builder.emailFlag = true 22400 return builder 22401 } 22402 22403 // 工作年限 22404 // 22405 // 示例值:5 22406 func (builder *TalentBasicInfoBuilder) ExperienceYears(experienceYears int) *TalentBasicInfoBuilder { 22407 builder.experienceYears = experienceYears 22408 builder.experienceYearsFlag = true 22409 return builder 22410 } 22411 22412 // 年龄 22413 // 22414 // 示例值:22 22415 func (builder *TalentBasicInfoBuilder) Age(age int) *TalentBasicInfoBuilder { 22416 builder.age = age 22417 builder.ageFlag = true 22418 return builder 22419 } 22420 22421 // 国籍 22422 // 22423 // 示例值: 22424 func (builder *TalentBasicInfoBuilder) Nationality(nationality *TalentNationality) *TalentBasicInfoBuilder { 22425 builder.nationality = nationality 22426 builder.nationalityFlag = true 22427 return builder 22428 } 22429 22430 // 性别 22431 // 22432 // 示例值:1 22433 func (builder *TalentBasicInfoBuilder) Gender(gender int) *TalentBasicInfoBuilder { 22434 builder.gender = gender 22435 builder.genderFlag = true 22436 return builder 22437 } 22438 22439 // 所在地点 22440 // 22441 // 示例值: 22442 func (builder *TalentBasicInfoBuilder) CurrentCity(currentCity *TalentCityInfo) *TalentBasicInfoBuilder { 22443 builder.currentCity = currentCity 22444 builder.currentCityFlag = true 22445 return builder 22446 } 22447 22448 // 家乡 22449 // 22450 // 示例值: 22451 func (builder *TalentBasicInfoBuilder) HometownCity(hometownCity *TalentCityInfo) *TalentBasicInfoBuilder { 22452 builder.hometownCity = hometownCity 22453 builder.hometownCityFlag = true 22454 return builder 22455 } 22456 22457 // 意向地点 22458 // 22459 // 示例值: 22460 func (builder *TalentBasicInfoBuilder) PreferredCityList(preferredCityList []*TalentCityInfo) *TalentBasicInfoBuilder { 22461 builder.preferredCityList = preferredCityList 22462 builder.preferredCityListFlag = true 22463 return builder 22464 } 22465 22466 // 证件类型 22467 // 22468 // 示例值:1 22469 func (builder *TalentBasicInfoBuilder) IdentificationType(identificationType int) *TalentBasicInfoBuilder { 22470 builder.identificationType = identificationType 22471 builder.identificationTypeFlag = true 22472 return builder 22473 } 22474 22475 // 证件号 22476 // 22477 // 示例值:511699199x1x111234 22478 func (builder *TalentBasicInfoBuilder) IdentificationNumber(identificationNumber string) *TalentBasicInfoBuilder { 22479 builder.identificationNumber = identificationNumber 22480 builder.identificationNumberFlag = true 22481 return builder 22482 } 22483 22484 // 证件信息 22485 // 22486 // 示例值: 22487 func (builder *TalentBasicInfoBuilder) Identification(identification *TalentIdentificationInfo) *TalentBasicInfoBuilder { 22488 builder.identification = identification 22489 builder.identificationFlag = true 22490 return builder 22491 } 22492 22493 // 生日 22494 // 22495 // 示例值:293016767159 22496 func (builder *TalentBasicInfoBuilder) Birthday(birthday int) *TalentBasicInfoBuilder { 22497 builder.birthday = birthday 22498 builder.birthdayFlag = true 22499 return builder 22500 } 22501 22502 // 创建人 22503 // 22504 // 示例值:ou-xxx 22505 func (builder *TalentBasicInfoBuilder) CreatorId(creatorId string) *TalentBasicInfoBuilder { 22506 builder.creatorId = creatorId 22507 builder.creatorIdFlag = true 22508 return builder 22509 } 22510 22511 // 婚姻状况 22512 // 22513 // 示例值:1 22514 func (builder *TalentBasicInfoBuilder) MaritalStatus(maritalStatus int) *TalentBasicInfoBuilder { 22515 builder.maritalStatus = maritalStatus 22516 builder.maritalStatusFlag = true 22517 return builder 22518 } 22519 22520 // 家庭住址 22521 // 22522 // 示例值:南京路1号 22523 func (builder *TalentBasicInfoBuilder) CurrentHomeAddress(currentHomeAddress string) *TalentBasicInfoBuilder { 22524 builder.currentHomeAddress = currentHomeAddress 22525 builder.currentHomeAddressFlag = true 22526 return builder 22527 } 22528 22529 // 自定义字段 22530 // 22531 // 示例值: 22532 func (builder *TalentBasicInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentBasicInfoBuilder { 22533 builder.customizedDataList = customizedDataList 22534 builder.customizedDataListFlag = true 22535 return builder 22536 } 22537 22538 // 修改时间 22539 // 22540 // 示例值:1634801678103 22541 func (builder *TalentBasicInfoBuilder) ModifyTime(modifyTime string) *TalentBasicInfoBuilder { 22542 builder.modifyTime = modifyTime 22543 builder.modifyTimeFlag = true 22544 return builder 22545 } 22546 22547 func (builder *TalentBasicInfoBuilder) Build() *TalentBasicInfo { 22548 req := &TalentBasicInfo{} 22549 if builder.nameFlag { 22550 req.Name = &builder.name 22551 22552 } 22553 if builder.mobileFlag { 22554 req.Mobile = &builder.mobile 22555 22556 } 22557 if builder.mobileCodeFlag { 22558 req.MobileCode = &builder.mobileCode 22559 22560 } 22561 if builder.mobileCountryCodeFlag { 22562 req.MobileCountryCode = &builder.mobileCountryCode 22563 22564 } 22565 if builder.emailFlag { 22566 req.Email = &builder.email 22567 22568 } 22569 if builder.experienceYearsFlag { 22570 req.ExperienceYears = &builder.experienceYears 22571 22572 } 22573 if builder.ageFlag { 22574 req.Age = &builder.age 22575 22576 } 22577 if builder.nationalityFlag { 22578 req.Nationality = builder.nationality 22579 } 22580 if builder.genderFlag { 22581 req.Gender = &builder.gender 22582 22583 } 22584 if builder.currentCityFlag { 22585 req.CurrentCity = builder.currentCity 22586 } 22587 if builder.hometownCityFlag { 22588 req.HometownCity = builder.hometownCity 22589 } 22590 if builder.preferredCityListFlag { 22591 req.PreferredCityList = builder.preferredCityList 22592 } 22593 if builder.identificationTypeFlag { 22594 req.IdentificationType = &builder.identificationType 22595 22596 } 22597 if builder.identificationNumberFlag { 22598 req.IdentificationNumber = &builder.identificationNumber 22599 22600 } 22601 if builder.identificationFlag { 22602 req.Identification = builder.identification 22603 } 22604 if builder.birthdayFlag { 22605 req.Birthday = &builder.birthday 22606 22607 } 22608 if builder.creatorIdFlag { 22609 req.CreatorId = &builder.creatorId 22610 22611 } 22612 if builder.maritalStatusFlag { 22613 req.MaritalStatus = &builder.maritalStatus 22614 22615 } 22616 if builder.currentHomeAddressFlag { 22617 req.CurrentHomeAddress = &builder.currentHomeAddress 22618 22619 } 22620 if builder.customizedDataListFlag { 22621 req.CustomizedDataList = builder.customizedDataList 22622 } 22623 if builder.modifyTimeFlag { 22624 req.ModifyTime = &builder.modifyTime 22625 22626 } 22627 return req 22628 } 22629 22630 type TalentBatchInfo struct { 22631 TalentId *string `json:"talent_id,omitempty"` // 人才 ID 22632 MobileCode *string `json:"mobile_code,omitempty"` // 手机国家区号 22633 MobileNumber *string `json:"mobile_number,omitempty"` // 手机号 22634 Email *string `json:"email,omitempty"` // 邮箱 22635 } 22636 22637 type TalentBatchInfoBuilder struct { 22638 talentId string // 人才 ID 22639 talentIdFlag bool 22640 mobileCode string // 手机国家区号 22641 mobileCodeFlag bool 22642 mobileNumber string // 手机号 22643 mobileNumberFlag bool 22644 email string // 邮箱 22645 emailFlag bool 22646 } 22647 22648 func NewTalentBatchInfoBuilder() *TalentBatchInfoBuilder { 22649 builder := &TalentBatchInfoBuilder{} 22650 return builder 22651 } 22652 22653 // 人才 ID 22654 // 22655 // 示例值:6891560630172518670 22656 func (builder *TalentBatchInfoBuilder) TalentId(talentId string) *TalentBatchInfoBuilder { 22657 builder.talentId = talentId 22658 builder.talentIdFlag = true 22659 return builder 22660 } 22661 22662 // 手机国家区号 22663 // 22664 // 示例值:86 22665 func (builder *TalentBatchInfoBuilder) MobileCode(mobileCode string) *TalentBatchInfoBuilder { 22666 builder.mobileCode = mobileCode 22667 builder.mobileCodeFlag = true 22668 return builder 22669 } 22670 22671 // 手机号 22672 // 22673 // 示例值:182900291190 22674 func (builder *TalentBatchInfoBuilder) MobileNumber(mobileNumber string) *TalentBatchInfoBuilder { 22675 builder.mobileNumber = mobileNumber 22676 builder.mobileNumberFlag = true 22677 return builder 22678 } 22679 22680 // 邮箱 22681 // 22682 // 示例值:foo@bytedance.com 22683 func (builder *TalentBatchInfoBuilder) Email(email string) *TalentBatchInfoBuilder { 22684 builder.email = email 22685 builder.emailFlag = true 22686 return builder 22687 } 22688 22689 func (builder *TalentBatchInfoBuilder) Build() *TalentBatchInfo { 22690 req := &TalentBatchInfo{} 22691 if builder.talentIdFlag { 22692 req.TalentId = &builder.talentId 22693 22694 } 22695 if builder.mobileCodeFlag { 22696 req.MobileCode = &builder.mobileCode 22697 22698 } 22699 if builder.mobileNumberFlag { 22700 req.MobileNumber = &builder.mobileNumber 22701 22702 } 22703 if builder.emailFlag { 22704 req.Email = &builder.email 22705 22706 } 22707 return req 22708 } 22709 22710 type TalentCareerInfo struct { 22711 Id *string `json:"id,omitempty"` // ID 22712 Company *string `json:"company,omitempty"` // 公司名称 22713 Title *string `json:"title,omitempty"` // 职位名称 22714 Desc *string `json:"desc,omitempty"` // 描述 22715 StartTime *string `json:"start_time,omitempty"` // 开始时间 22716 EndTime *string `json:"end_time,omitempty"` // 结束时间 22717 CareerType *int `json:"career_type,omitempty"` // 经历类型 22718 TagList []int `json:"tag_list,omitempty"` // 工作经历标签 22719 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 22720 } 22721 22722 type TalentCareerInfoBuilder struct { 22723 id string // ID 22724 idFlag bool 22725 company string // 公司名称 22726 companyFlag bool 22727 title string // 职位名称 22728 titleFlag bool 22729 desc string // 描述 22730 descFlag bool 22731 startTime string // 开始时间 22732 startTimeFlag bool 22733 endTime string // 结束时间 22734 endTimeFlag bool 22735 careerType int // 经历类型 22736 careerTypeFlag bool 22737 tagList []int // 工作经历标签 22738 tagListFlag bool 22739 customizedDataList []*TalentCustomizedDataChild // 自定义字段 22740 customizedDataListFlag bool 22741 } 22742 22743 func NewTalentCareerInfoBuilder() *TalentCareerInfoBuilder { 22744 builder := &TalentCareerInfoBuilder{} 22745 return builder 22746 } 22747 22748 // ID 22749 // 22750 // 示例值:6891560630172518670 22751 func (builder *TalentCareerInfoBuilder) Id(id string) *TalentCareerInfoBuilder { 22752 builder.id = id 22753 builder.idFlag = true 22754 return builder 22755 } 22756 22757 // 公司名称 22758 // 22759 // 示例值:测试公司 22760 func (builder *TalentCareerInfoBuilder) Company(company string) *TalentCareerInfoBuilder { 22761 builder.company = company 22762 builder.companyFlag = true 22763 return builder 22764 } 22765 22766 // 职位名称 22767 // 22768 // 示例值:高级工程师 22769 func (builder *TalentCareerInfoBuilder) Title(title string) *TalentCareerInfoBuilder { 22770 builder.title = title 22771 builder.titleFlag = true 22772 return builder 22773 } 22774 22775 // 描述 22776 // 22777 // 示例值:测试 22778 func (builder *TalentCareerInfoBuilder) Desc(desc string) *TalentCareerInfoBuilder { 22779 builder.desc = desc 22780 builder.descFlag = true 22781 return builder 22782 } 22783 22784 // 开始时间 22785 // 22786 // 示例值:1990-01 22787 func (builder *TalentCareerInfoBuilder) StartTime(startTime string) *TalentCareerInfoBuilder { 22788 builder.startTime = startTime 22789 builder.startTimeFlag = true 22790 return builder 22791 } 22792 22793 // 结束时间 22794 // 22795 // 示例值:1994-01 22796 func (builder *TalentCareerInfoBuilder) EndTime(endTime string) *TalentCareerInfoBuilder { 22797 builder.endTime = endTime 22798 builder.endTimeFlag = true 22799 return builder 22800 } 22801 22802 // 经历类型 22803 // 22804 // 示例值:1 22805 func (builder *TalentCareerInfoBuilder) CareerType(careerType int) *TalentCareerInfoBuilder { 22806 builder.careerType = careerType 22807 builder.careerTypeFlag = true 22808 return builder 22809 } 22810 22811 // 工作经历标签 22812 // 22813 // 示例值: 22814 func (builder *TalentCareerInfoBuilder) TagList(tagList []int) *TalentCareerInfoBuilder { 22815 builder.tagList = tagList 22816 builder.tagListFlag = true 22817 return builder 22818 } 22819 22820 // 自定义字段 22821 // 22822 // 示例值: 22823 func (builder *TalentCareerInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentCareerInfoBuilder { 22824 builder.customizedDataList = customizedDataList 22825 builder.customizedDataListFlag = true 22826 return builder 22827 } 22828 22829 func (builder *TalentCareerInfoBuilder) Build() *TalentCareerInfo { 22830 req := &TalentCareerInfo{} 22831 if builder.idFlag { 22832 req.Id = &builder.id 22833 22834 } 22835 if builder.companyFlag { 22836 req.Company = &builder.company 22837 22838 } 22839 if builder.titleFlag { 22840 req.Title = &builder.title 22841 22842 } 22843 if builder.descFlag { 22844 req.Desc = &builder.desc 22845 22846 } 22847 if builder.startTimeFlag { 22848 req.StartTime = &builder.startTime 22849 22850 } 22851 if builder.endTimeFlag { 22852 req.EndTime = &builder.endTime 22853 22854 } 22855 if builder.careerTypeFlag { 22856 req.CareerType = &builder.careerType 22857 22858 } 22859 if builder.tagListFlag { 22860 req.TagList = builder.tagList 22861 } 22862 if builder.customizedDataListFlag { 22863 req.CustomizedDataList = builder.customizedDataList 22864 } 22865 return req 22866 } 22867 22868 type TalentCertificateInfo struct { 22869 Id *string `json:"id,omitempty"` // ID 22870 Name *string `json:"name,omitempty"` // 证件名称 22871 Desc *string `json:"desc,omitempty"` // 证件描述 22872 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 22873 } 22874 22875 type TalentCertificateInfoBuilder struct { 22876 id string // ID 22877 idFlag bool 22878 name string // 证件名称 22879 nameFlag bool 22880 desc string // 证件描述 22881 descFlag bool 22882 customizedDataList []*TalentCustomizedDataChild // 自定义字段 22883 customizedDataListFlag bool 22884 } 22885 22886 func NewTalentCertificateInfoBuilder() *TalentCertificateInfoBuilder { 22887 builder := &TalentCertificateInfoBuilder{} 22888 return builder 22889 } 22890 22891 // ID 22892 // 22893 // 示例值:6891560630172518670 22894 func (builder *TalentCertificateInfoBuilder) Id(id string) *TalentCertificateInfoBuilder { 22895 builder.id = id 22896 builder.idFlag = true 22897 return builder 22898 } 22899 22900 // 证件名称 22901 // 22902 // 示例值:身份证 22903 func (builder *TalentCertificateInfoBuilder) Name(name string) *TalentCertificateInfoBuilder { 22904 builder.name = name 22905 builder.nameFlag = true 22906 return builder 22907 } 22908 22909 // 证件描述 22910 // 22911 // 示例值: 22912 func (builder *TalentCertificateInfoBuilder) Desc(desc string) *TalentCertificateInfoBuilder { 22913 builder.desc = desc 22914 builder.descFlag = true 22915 return builder 22916 } 22917 22918 // 自定义字段 22919 // 22920 // 示例值: 22921 func (builder *TalentCertificateInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentCertificateInfoBuilder { 22922 builder.customizedDataList = customizedDataList 22923 builder.customizedDataListFlag = true 22924 return builder 22925 } 22926 22927 func (builder *TalentCertificateInfoBuilder) Build() *TalentCertificateInfo { 22928 req := &TalentCertificateInfo{} 22929 if builder.idFlag { 22930 req.Id = &builder.id 22931 22932 } 22933 if builder.nameFlag { 22934 req.Name = &builder.name 22935 22936 } 22937 if builder.descFlag { 22938 req.Desc = &builder.desc 22939 22940 } 22941 if builder.customizedDataListFlag { 22942 req.CustomizedDataList = builder.customizedDataList 22943 } 22944 return req 22945 } 22946 22947 type TalentCityInfo struct { 22948 CityCode *string `json:"city_code,omitempty"` // 城市码 22949 ZhName *string `json:"zh_name,omitempty"` // 中文名 22950 EnName *string `json:"en_name,omitempty"` // 英文名 22951 } 22952 22953 type TalentCityInfoBuilder struct { 22954 cityCode string // 城市码 22955 cityCodeFlag bool 22956 zhName string // 中文名 22957 zhNameFlag bool 22958 enName string // 英文名 22959 enNameFlag bool 22960 } 22961 22962 func NewTalentCityInfoBuilder() *TalentCityInfoBuilder { 22963 builder := &TalentCityInfoBuilder{} 22964 return builder 22965 } 22966 22967 // 城市码 22968 // 22969 // 示例值:CN_183 22970 func (builder *TalentCityInfoBuilder) CityCode(cityCode string) *TalentCityInfoBuilder { 22971 builder.cityCode = cityCode 22972 builder.cityCodeFlag = true 22973 return builder 22974 } 22975 22976 // 中文名 22977 // 22978 // 示例值:测试 22979 func (builder *TalentCityInfoBuilder) ZhName(zhName string) *TalentCityInfoBuilder { 22980 builder.zhName = zhName 22981 builder.zhNameFlag = true 22982 return builder 22983 } 22984 22985 // 英文名 22986 // 22987 // 示例值:test 22988 func (builder *TalentCityInfoBuilder) EnName(enName string) *TalentCityInfoBuilder { 22989 builder.enName = enName 22990 builder.enNameFlag = true 22991 return builder 22992 } 22993 22994 func (builder *TalentCityInfoBuilder) Build() *TalentCityInfo { 22995 req := &TalentCityInfo{} 22996 if builder.cityCodeFlag { 22997 req.CityCode = &builder.cityCode 22998 22999 } 23000 if builder.zhNameFlag { 23001 req.ZhName = &builder.zhName 23002 23003 } 23004 if builder.enNameFlag { 23005 req.EnName = &builder.enName 23006 23007 } 23008 return req 23009 } 23010 23011 type TalentCombinedAwardInfo struct { 23012 Id *string `json:"id,omitempty"` // ID 23013 Title *string `json:"title,omitempty"` // 获奖名称 23014 AwardTime *string `json:"award_time,omitempty"` // 获奖时间 23015 Desc *string `json:"desc,omitempty"` // 描述 23016 CustomizedData []*TalentCustomizedDataObjectValue `json:"customized_data,omitempty"` // 自定义字段 23017 } 23018 23019 type TalentCombinedAwardInfoBuilder struct { 23020 id string // ID 23021 idFlag bool 23022 title string // 获奖名称 23023 titleFlag bool 23024 awardTime string // 获奖时间 23025 awardTimeFlag bool 23026 desc string // 描述 23027 descFlag bool 23028 customizedData []*TalentCustomizedDataObjectValue // 自定义字段 23029 customizedDataFlag bool 23030 } 23031 23032 func NewTalentCombinedAwardInfoBuilder() *TalentCombinedAwardInfoBuilder { 23033 builder := &TalentCombinedAwardInfoBuilder{} 23034 return builder 23035 } 23036 23037 // ID 23038 // 23039 // 示例值:6891560630172518670 23040 func (builder *TalentCombinedAwardInfoBuilder) Id(id string) *TalentCombinedAwardInfoBuilder { 23041 builder.id = id 23042 builder.idFlag = true 23043 return builder 23044 } 23045 23046 // 获奖名称 23047 // 23048 // 示例值:最佳新人奖 23049 func (builder *TalentCombinedAwardInfoBuilder) Title(title string) *TalentCombinedAwardInfoBuilder { 23050 builder.title = title 23051 builder.titleFlag = true 23052 return builder 23053 } 23054 23055 // 获奖时间 23056 // 23057 // 示例值:293016767159 23058 func (builder *TalentCombinedAwardInfoBuilder) AwardTime(awardTime string) *TalentCombinedAwardInfoBuilder { 23059 builder.awardTime = awardTime 23060 builder.awardTimeFlag = true 23061 return builder 23062 } 23063 23064 // 描述 23065 // 23066 // 示例值:最优秀的新人奖 23067 func (builder *TalentCombinedAwardInfoBuilder) Desc(desc string) *TalentCombinedAwardInfoBuilder { 23068 builder.desc = desc 23069 builder.descFlag = true 23070 return builder 23071 } 23072 23073 // 自定义字段 23074 // 23075 // 示例值: 23076 func (builder *TalentCombinedAwardInfoBuilder) CustomizedData(customizedData []*TalentCustomizedDataObjectValue) *TalentCombinedAwardInfoBuilder { 23077 builder.customizedData = customizedData 23078 builder.customizedDataFlag = true 23079 return builder 23080 } 23081 23082 func (builder *TalentCombinedAwardInfoBuilder) Build() *TalentCombinedAwardInfo { 23083 req := &TalentCombinedAwardInfo{} 23084 if builder.idFlag { 23085 req.Id = &builder.id 23086 23087 } 23088 if builder.titleFlag { 23089 req.Title = &builder.title 23090 23091 } 23092 if builder.awardTimeFlag { 23093 req.AwardTime = &builder.awardTime 23094 23095 } 23096 if builder.descFlag { 23097 req.Desc = &builder.desc 23098 23099 } 23100 if builder.customizedDataFlag { 23101 req.CustomizedData = builder.customizedData 23102 } 23103 return req 23104 } 23105 23106 type TalentCombinedBasicInfo struct { 23107 Name *string `json:"name,omitempty"` // 名字 23108 Mobile *string `json:"mobile,omitempty"` // 手机号 23109 MobileCountryCode *string `json:"mobile_country_code,omitempty"` // 手机国家代码 23110 Email *string `json:"email,omitempty"` // 邮箱 23111 IdentificationType *int `json:"identification_type,omitempty"` // 证件类型 23112 IdentificationNumber *string `json:"identification_number,omitempty"` // 证件号 23113 Identification *TalentIdentificationInfo `json:"identification,omitempty"` // 证件信息 23114 StartWorkTime *string `json:"start_work_time,omitempty"` // 开始工作时间 23115 Birthday *string `json:"birthday,omitempty"` // 出生日期 23116 Gender *int `json:"gender,omitempty"` // 性别 23117 NationalityId *string `json:"nationality_id,omitempty"` // 国籍编码 23118 CurrentCityCode *string `json:"current_city_code,omitempty"` // 所在地点编码 23119 HometownCityCode *string `json:"hometown_city_code,omitempty"` // 家乡编码 23120 CustomizedData []*TalentCustomizedDataObjectValue `json:"customized_data,omitempty"` // 自定义字段列表 23121 } 23122 23123 type TalentCombinedBasicInfoBuilder struct { 23124 name string // 名字 23125 nameFlag bool 23126 mobile string // 手机号 23127 mobileFlag bool 23128 mobileCountryCode string // 手机国家代码 23129 mobileCountryCodeFlag bool 23130 email string // 邮箱 23131 emailFlag bool 23132 identificationType int // 证件类型 23133 identificationTypeFlag bool 23134 identificationNumber string // 证件号 23135 identificationNumberFlag bool 23136 identification *TalentIdentificationInfo // 证件信息 23137 identificationFlag bool 23138 startWorkTime string // 开始工作时间 23139 startWorkTimeFlag bool 23140 birthday string // 出生日期 23141 birthdayFlag bool 23142 gender int // 性别 23143 genderFlag bool 23144 nationalityId string // 国籍编码 23145 nationalityIdFlag bool 23146 currentCityCode string // 所在地点编码 23147 currentCityCodeFlag bool 23148 hometownCityCode string // 家乡编码 23149 hometownCityCodeFlag bool 23150 customizedData []*TalentCustomizedDataObjectValue // 自定义字段列表 23151 customizedDataFlag bool 23152 } 23153 23154 func NewTalentCombinedBasicInfoBuilder() *TalentCombinedBasicInfoBuilder { 23155 builder := &TalentCombinedBasicInfoBuilder{} 23156 return builder 23157 } 23158 23159 // 名字 23160 // 23161 // 示例值:测试 23162 func (builder *TalentCombinedBasicInfoBuilder) Name(name string) *TalentCombinedBasicInfoBuilder { 23163 builder.name = name 23164 builder.nameFlag = true 23165 return builder 23166 } 23167 23168 // 手机号 23169 // 23170 // 示例值:182900291190 23171 func (builder *TalentCombinedBasicInfoBuilder) Mobile(mobile string) *TalentCombinedBasicInfoBuilder { 23172 builder.mobile = mobile 23173 builder.mobileFlag = true 23174 return builder 23175 } 23176 23177 // 手机国家代码 23178 // 23179 // 示例值:CN_1 23180 func (builder *TalentCombinedBasicInfoBuilder) MobileCountryCode(mobileCountryCode string) *TalentCombinedBasicInfoBuilder { 23181 builder.mobileCountryCode = mobileCountryCode 23182 builder.mobileCountryCodeFlag = true 23183 return builder 23184 } 23185 23186 // 邮箱 23187 // 23188 // 示例值:16xx1@126.com 23189 func (builder *TalentCombinedBasicInfoBuilder) Email(email string) *TalentCombinedBasicInfoBuilder { 23190 builder.email = email 23191 builder.emailFlag = true 23192 return builder 23193 } 23194 23195 // 证件类型 23196 // 23197 // 示例值:1 23198 func (builder *TalentCombinedBasicInfoBuilder) IdentificationType(identificationType int) *TalentCombinedBasicInfoBuilder { 23199 builder.identificationType = identificationType 23200 builder.identificationTypeFlag = true 23201 return builder 23202 } 23203 23204 // 证件号 23205 // 23206 // 示例值:511699199x1x111234 23207 func (builder *TalentCombinedBasicInfoBuilder) IdentificationNumber(identificationNumber string) *TalentCombinedBasicInfoBuilder { 23208 builder.identificationNumber = identificationNumber 23209 builder.identificationNumberFlag = true 23210 return builder 23211 } 23212 23213 // 证件信息 23214 // 23215 // 示例值: 23216 func (builder *TalentCombinedBasicInfoBuilder) Identification(identification *TalentIdentificationInfo) *TalentCombinedBasicInfoBuilder { 23217 builder.identification = identification 23218 builder.identificationFlag = true 23219 return builder 23220 } 23221 23222 // 开始工作时间 23223 // 23224 // 示例值:293016767159 23225 func (builder *TalentCombinedBasicInfoBuilder) StartWorkTime(startWorkTime string) *TalentCombinedBasicInfoBuilder { 23226 builder.startWorkTime = startWorkTime 23227 builder.startWorkTimeFlag = true 23228 return builder 23229 } 23230 23231 // 出生日期 23232 // 23233 // 示例值:293016767159 23234 func (builder *TalentCombinedBasicInfoBuilder) Birthday(birthday string) *TalentCombinedBasicInfoBuilder { 23235 builder.birthday = birthday 23236 builder.birthdayFlag = true 23237 return builder 23238 } 23239 23240 // 性别 23241 // 23242 // 示例值:1 23243 func (builder *TalentCombinedBasicInfoBuilder) Gender(gender int) *TalentCombinedBasicInfoBuilder { 23244 builder.gender = gender 23245 builder.genderFlag = true 23246 return builder 23247 } 23248 23249 // 国籍编码 23250 // 23251 // 示例值:CN_112 23252 func (builder *TalentCombinedBasicInfoBuilder) NationalityId(nationalityId string) *TalentCombinedBasicInfoBuilder { 23253 builder.nationalityId = nationalityId 23254 builder.nationalityIdFlag = true 23255 return builder 23256 } 23257 23258 // 所在地点编码 23259 // 23260 // 示例值:CT_159 23261 func (builder *TalentCombinedBasicInfoBuilder) CurrentCityCode(currentCityCode string) *TalentCombinedBasicInfoBuilder { 23262 builder.currentCityCode = currentCityCode 23263 builder.currentCityCodeFlag = true 23264 return builder 23265 } 23266 23267 // 家乡编码 23268 // 23269 // 示例值:CT_159 23270 func (builder *TalentCombinedBasicInfoBuilder) HometownCityCode(hometownCityCode string) *TalentCombinedBasicInfoBuilder { 23271 builder.hometownCityCode = hometownCityCode 23272 builder.hometownCityCodeFlag = true 23273 return builder 23274 } 23275 23276 // 自定义字段列表 23277 // 23278 // 示例值: 23279 func (builder *TalentCombinedBasicInfoBuilder) CustomizedData(customizedData []*TalentCustomizedDataObjectValue) *TalentCombinedBasicInfoBuilder { 23280 builder.customizedData = customizedData 23281 builder.customizedDataFlag = true 23282 return builder 23283 } 23284 23285 func (builder *TalentCombinedBasicInfoBuilder) Build() *TalentCombinedBasicInfo { 23286 req := &TalentCombinedBasicInfo{} 23287 if builder.nameFlag { 23288 req.Name = &builder.name 23289 23290 } 23291 if builder.mobileFlag { 23292 req.Mobile = &builder.mobile 23293 23294 } 23295 if builder.mobileCountryCodeFlag { 23296 req.MobileCountryCode = &builder.mobileCountryCode 23297 23298 } 23299 if builder.emailFlag { 23300 req.Email = &builder.email 23301 23302 } 23303 if builder.identificationTypeFlag { 23304 req.IdentificationType = &builder.identificationType 23305 23306 } 23307 if builder.identificationNumberFlag { 23308 req.IdentificationNumber = &builder.identificationNumber 23309 23310 } 23311 if builder.identificationFlag { 23312 req.Identification = builder.identification 23313 } 23314 if builder.startWorkTimeFlag { 23315 req.StartWorkTime = &builder.startWorkTime 23316 23317 } 23318 if builder.birthdayFlag { 23319 req.Birthday = &builder.birthday 23320 23321 } 23322 if builder.genderFlag { 23323 req.Gender = &builder.gender 23324 23325 } 23326 if builder.nationalityIdFlag { 23327 req.NationalityId = &builder.nationalityId 23328 23329 } 23330 if builder.currentCityCodeFlag { 23331 req.CurrentCityCode = &builder.currentCityCode 23332 23333 } 23334 if builder.hometownCityCodeFlag { 23335 req.HometownCityCode = &builder.hometownCityCode 23336 23337 } 23338 if builder.customizedDataFlag { 23339 req.CustomizedData = builder.customizedData 23340 } 23341 return req 23342 } 23343 23344 type TalentCombinedCareerInfo struct { 23345 Id *string `json:"id,omitempty"` // ID 23346 Company *string `json:"company,omitempty"` // 公司名称 23347 Title *string `json:"title,omitempty"` // 职位名称 23348 Desc *string `json:"desc,omitempty"` // 描述 23349 StartTime *string `json:"start_time,omitempty"` // 开始时间 23350 EndTime *string `json:"end_time,omitempty"` // 结束时间 23351 CareerType *int `json:"career_type,omitempty"` // 经历类型 23352 CustomizedData []*TalentCustomizedDataObjectValue `json:"customized_data,omitempty"` // 自定义字段 23353 } 23354 23355 type TalentCombinedCareerInfoBuilder struct { 23356 id string // ID 23357 idFlag bool 23358 company string // 公司名称 23359 companyFlag bool 23360 title string // 职位名称 23361 titleFlag bool 23362 desc string // 描述 23363 descFlag bool 23364 startTime string // 开始时间 23365 startTimeFlag bool 23366 endTime string // 结束时间 23367 endTimeFlag bool 23368 careerType int // 经历类型 23369 careerTypeFlag bool 23370 customizedData []*TalentCustomizedDataObjectValue // 自定义字段 23371 customizedDataFlag bool 23372 } 23373 23374 func NewTalentCombinedCareerInfoBuilder() *TalentCombinedCareerInfoBuilder { 23375 builder := &TalentCombinedCareerInfoBuilder{} 23376 return builder 23377 } 23378 23379 // ID 23380 // 23381 // 示例值:6891560630172518670 23382 func (builder *TalentCombinedCareerInfoBuilder) Id(id string) *TalentCombinedCareerInfoBuilder { 23383 builder.id = id 23384 builder.idFlag = true 23385 return builder 23386 } 23387 23388 // 公司名称 23389 // 23390 // 示例值:测试公司 23391 func (builder *TalentCombinedCareerInfoBuilder) Company(company string) *TalentCombinedCareerInfoBuilder { 23392 builder.company = company 23393 builder.companyFlag = true 23394 return builder 23395 } 23396 23397 // 职位名称 23398 // 23399 // 示例值:高级工程师 23400 func (builder *TalentCombinedCareerInfoBuilder) Title(title string) *TalentCombinedCareerInfoBuilder { 23401 builder.title = title 23402 builder.titleFlag = true 23403 return builder 23404 } 23405 23406 // 描述 23407 // 23408 // 示例值:测试 23409 func (builder *TalentCombinedCareerInfoBuilder) Desc(desc string) *TalentCombinedCareerInfoBuilder { 23410 builder.desc = desc 23411 builder.descFlag = true 23412 return builder 23413 } 23414 23415 // 开始时间 23416 // 23417 // 示例值:293016767159 23418 func (builder *TalentCombinedCareerInfoBuilder) StartTime(startTime string) *TalentCombinedCareerInfoBuilder { 23419 builder.startTime = startTime 23420 builder.startTimeFlag = true 23421 return builder 23422 } 23423 23424 // 结束时间 23425 // 23426 // 示例值:293016767159 23427 func (builder *TalentCombinedCareerInfoBuilder) EndTime(endTime string) *TalentCombinedCareerInfoBuilder { 23428 builder.endTime = endTime 23429 builder.endTimeFlag = true 23430 return builder 23431 } 23432 23433 // 经历类型 23434 // 23435 // 示例值:1 23436 func (builder *TalentCombinedCareerInfoBuilder) CareerType(careerType int) *TalentCombinedCareerInfoBuilder { 23437 builder.careerType = careerType 23438 builder.careerTypeFlag = true 23439 return builder 23440 } 23441 23442 // 自定义字段 23443 // 23444 // 示例值: 23445 func (builder *TalentCombinedCareerInfoBuilder) CustomizedData(customizedData []*TalentCustomizedDataObjectValue) *TalentCombinedCareerInfoBuilder { 23446 builder.customizedData = customizedData 23447 builder.customizedDataFlag = true 23448 return builder 23449 } 23450 23451 func (builder *TalentCombinedCareerInfoBuilder) Build() *TalentCombinedCareerInfo { 23452 req := &TalentCombinedCareerInfo{} 23453 if builder.idFlag { 23454 req.Id = &builder.id 23455 23456 } 23457 if builder.companyFlag { 23458 req.Company = &builder.company 23459 23460 } 23461 if builder.titleFlag { 23462 req.Title = &builder.title 23463 23464 } 23465 if builder.descFlag { 23466 req.Desc = &builder.desc 23467 23468 } 23469 if builder.startTimeFlag { 23470 req.StartTime = &builder.startTime 23471 23472 } 23473 if builder.endTimeFlag { 23474 req.EndTime = &builder.endTime 23475 23476 } 23477 if builder.careerTypeFlag { 23478 req.CareerType = &builder.careerType 23479 23480 } 23481 if builder.customizedDataFlag { 23482 req.CustomizedData = builder.customizedData 23483 } 23484 return req 23485 } 23486 23487 type TalentCombinedEducationInfo struct { 23488 Id *string `json:"id,omitempty"` // ID 23489 Degree *int `json:"degree,omitempty"` // 学历 23490 School *string `json:"school,omitempty"` // 学校 23491 FieldOfStudy *string `json:"field_of_study,omitempty"` // 专业 23492 StartTime *string `json:"start_time,omitempty"` // 开始时间 23493 EndTime *string `json:"end_time,omitempty"` // 结束时间 23494 EducationType *int `json:"education_type,omitempty"` // 学历类型 23495 AcademicRanking *int `json:"academic_ranking,omitempty"` // 成绩排名 23496 CustomizedData []*TalentCustomizedDataObjectValue `json:"customized_data,omitempty"` // 自定义字段 23497 } 23498 23499 type TalentCombinedEducationInfoBuilder struct { 23500 id string // ID 23501 idFlag bool 23502 degree int // 学历 23503 degreeFlag bool 23504 school string // 学校 23505 schoolFlag bool 23506 fieldOfStudy string // 专业 23507 fieldOfStudyFlag bool 23508 startTime string // 开始时间 23509 startTimeFlag bool 23510 endTime string // 结束时间 23511 endTimeFlag bool 23512 educationType int // 学历类型 23513 educationTypeFlag bool 23514 academicRanking int // 成绩排名 23515 academicRankingFlag bool 23516 customizedData []*TalentCustomizedDataObjectValue // 自定义字段 23517 customizedDataFlag bool 23518 } 23519 23520 func NewTalentCombinedEducationInfoBuilder() *TalentCombinedEducationInfoBuilder { 23521 builder := &TalentCombinedEducationInfoBuilder{} 23522 return builder 23523 } 23524 23525 // ID 23526 // 23527 // 示例值:6891560630172518670 23528 func (builder *TalentCombinedEducationInfoBuilder) Id(id string) *TalentCombinedEducationInfoBuilder { 23529 builder.id = id 23530 builder.idFlag = true 23531 return builder 23532 } 23533 23534 // 学历 23535 // 23536 // 示例值:1 23537 func (builder *TalentCombinedEducationInfoBuilder) Degree(degree int) *TalentCombinedEducationInfoBuilder { 23538 builder.degree = degree 23539 builder.degreeFlag = true 23540 return builder 23541 } 23542 23543 // 学校 23544 // 23545 // 示例值:湘港大学 23546 func (builder *TalentCombinedEducationInfoBuilder) School(school string) *TalentCombinedEducationInfoBuilder { 23547 builder.school = school 23548 builder.schoolFlag = true 23549 return builder 23550 } 23551 23552 // 专业 23553 // 23554 // 示例值:考古 23555 func (builder *TalentCombinedEducationInfoBuilder) FieldOfStudy(fieldOfStudy string) *TalentCombinedEducationInfoBuilder { 23556 builder.fieldOfStudy = fieldOfStudy 23557 builder.fieldOfStudyFlag = true 23558 return builder 23559 } 23560 23561 // 开始时间 23562 // 23563 // 示例值:293016767159 23564 func (builder *TalentCombinedEducationInfoBuilder) StartTime(startTime string) *TalentCombinedEducationInfoBuilder { 23565 builder.startTime = startTime 23566 builder.startTimeFlag = true 23567 return builder 23568 } 23569 23570 // 结束时间 23571 // 23572 // 示例值:293016767159 23573 func (builder *TalentCombinedEducationInfoBuilder) EndTime(endTime string) *TalentCombinedEducationInfoBuilder { 23574 builder.endTime = endTime 23575 builder.endTimeFlag = true 23576 return builder 23577 } 23578 23579 // 学历类型 23580 // 23581 // 示例值:1 23582 func (builder *TalentCombinedEducationInfoBuilder) EducationType(educationType int) *TalentCombinedEducationInfoBuilder { 23583 builder.educationType = educationType 23584 builder.educationTypeFlag = true 23585 return builder 23586 } 23587 23588 // 成绩排名 23589 // 23590 // 示例值:5 23591 func (builder *TalentCombinedEducationInfoBuilder) AcademicRanking(academicRanking int) *TalentCombinedEducationInfoBuilder { 23592 builder.academicRanking = academicRanking 23593 builder.academicRankingFlag = true 23594 return builder 23595 } 23596 23597 // 自定义字段 23598 // 23599 // 示例值: 23600 func (builder *TalentCombinedEducationInfoBuilder) CustomizedData(customizedData []*TalentCustomizedDataObjectValue) *TalentCombinedEducationInfoBuilder { 23601 builder.customizedData = customizedData 23602 builder.customizedDataFlag = true 23603 return builder 23604 } 23605 23606 func (builder *TalentCombinedEducationInfoBuilder) Build() *TalentCombinedEducationInfo { 23607 req := &TalentCombinedEducationInfo{} 23608 if builder.idFlag { 23609 req.Id = &builder.id 23610 23611 } 23612 if builder.degreeFlag { 23613 req.Degree = &builder.degree 23614 23615 } 23616 if builder.schoolFlag { 23617 req.School = &builder.school 23618 23619 } 23620 if builder.fieldOfStudyFlag { 23621 req.FieldOfStudy = &builder.fieldOfStudy 23622 23623 } 23624 if builder.startTimeFlag { 23625 req.StartTime = &builder.startTime 23626 23627 } 23628 if builder.endTimeFlag { 23629 req.EndTime = &builder.endTime 23630 23631 } 23632 if builder.educationTypeFlag { 23633 req.EducationType = &builder.educationType 23634 23635 } 23636 if builder.academicRankingFlag { 23637 req.AcademicRanking = &builder.academicRanking 23638 23639 } 23640 if builder.customizedDataFlag { 23641 req.CustomizedData = builder.customizedData 23642 } 23643 return req 23644 } 23645 23646 type TalentCombinedLanguageInfo struct { 23647 Id *string `json:"id,omitempty"` // ID 23648 Language *int `json:"language,omitempty"` // 语言 23649 Proficiency *int `json:"proficiency,omitempty"` // 精通程度 23650 CustomizedData []*TalentCustomizedDataObjectValue `json:"customized_data,omitempty"` // 自定义字段 23651 } 23652 23653 type TalentCombinedLanguageInfoBuilder struct { 23654 id string // ID 23655 idFlag bool 23656 language int // 语言 23657 languageFlag bool 23658 proficiency int // 精通程度 23659 proficiencyFlag bool 23660 customizedData []*TalentCustomizedDataObjectValue // 自定义字段 23661 customizedDataFlag bool 23662 } 23663 23664 func NewTalentCombinedLanguageInfoBuilder() *TalentCombinedLanguageInfoBuilder { 23665 builder := &TalentCombinedLanguageInfoBuilder{} 23666 return builder 23667 } 23668 23669 // ID 23670 // 23671 // 示例值:6891560630172518670 23672 func (builder *TalentCombinedLanguageInfoBuilder) Id(id string) *TalentCombinedLanguageInfoBuilder { 23673 builder.id = id 23674 builder.idFlag = true 23675 return builder 23676 } 23677 23678 // 语言 23679 // 23680 // 示例值:1 23681 func (builder *TalentCombinedLanguageInfoBuilder) Language(language int) *TalentCombinedLanguageInfoBuilder { 23682 builder.language = language 23683 builder.languageFlag = true 23684 return builder 23685 } 23686 23687 // 精通程度 23688 // 23689 // 示例值:1 23690 func (builder *TalentCombinedLanguageInfoBuilder) Proficiency(proficiency int) *TalentCombinedLanguageInfoBuilder { 23691 builder.proficiency = proficiency 23692 builder.proficiencyFlag = true 23693 return builder 23694 } 23695 23696 // 自定义字段 23697 // 23698 // 示例值: 23699 func (builder *TalentCombinedLanguageInfoBuilder) CustomizedData(customizedData []*TalentCustomizedDataObjectValue) *TalentCombinedLanguageInfoBuilder { 23700 builder.customizedData = customizedData 23701 builder.customizedDataFlag = true 23702 return builder 23703 } 23704 23705 func (builder *TalentCombinedLanguageInfoBuilder) Build() *TalentCombinedLanguageInfo { 23706 req := &TalentCombinedLanguageInfo{} 23707 if builder.idFlag { 23708 req.Id = &builder.id 23709 23710 } 23711 if builder.languageFlag { 23712 req.Language = &builder.language 23713 23714 } 23715 if builder.proficiencyFlag { 23716 req.Proficiency = &builder.proficiency 23717 23718 } 23719 if builder.customizedDataFlag { 23720 req.CustomizedData = builder.customizedData 23721 } 23722 return req 23723 } 23724 23725 type TalentCombinedProjectInfo struct { 23726 Id *string `json:"id,omitempty"` // ID 23727 Name *string `json:"name,omitempty"` // 项目名称 23728 Role *string `json:"role,omitempty"` // 项目角色 23729 Link *string `json:"link,omitempty"` // 项目链接 23730 Desc *string `json:"desc,omitempty"` // 描述 23731 StartTime *string `json:"start_time,omitempty"` // 开始时间 23732 EndTime *string `json:"end_time,omitempty"` // 结束时间 23733 CustomizedData []*TalentCustomizedDataObjectValue `json:"customized_data,omitempty"` // 自定义字段 23734 } 23735 23736 type TalentCombinedProjectInfoBuilder struct { 23737 id string // ID 23738 idFlag bool 23739 name string // 项目名称 23740 nameFlag bool 23741 role string // 项目角色 23742 roleFlag bool 23743 link string // 项目链接 23744 linkFlag bool 23745 desc string // 描述 23746 descFlag bool 23747 startTime string // 开始时间 23748 startTimeFlag bool 23749 endTime string // 结束时间 23750 endTimeFlag bool 23751 customizedData []*TalentCustomizedDataObjectValue // 自定义字段 23752 customizedDataFlag bool 23753 } 23754 23755 func NewTalentCombinedProjectInfoBuilder() *TalentCombinedProjectInfoBuilder { 23756 builder := &TalentCombinedProjectInfoBuilder{} 23757 return builder 23758 } 23759 23760 // ID 23761 // 23762 // 示例值:6891560630172518670 23763 func (builder *TalentCombinedProjectInfoBuilder) Id(id string) *TalentCombinedProjectInfoBuilder { 23764 builder.id = id 23765 builder.idFlag = true 23766 return builder 23767 } 23768 23769 // 项目名称 23770 // 23771 // 示例值:测试 23772 func (builder *TalentCombinedProjectInfoBuilder) Name(name string) *TalentCombinedProjectInfoBuilder { 23773 builder.name = name 23774 builder.nameFlag = true 23775 return builder 23776 } 23777 23778 // 项目角色 23779 // 23780 // 示例值:test 23781 func (builder *TalentCombinedProjectInfoBuilder) Role(role string) *TalentCombinedProjectInfoBuilder { 23782 builder.role = role 23783 builder.roleFlag = true 23784 return builder 23785 } 23786 23787 // 项目链接 23788 // 23789 // 示例值:https://www.a.com 23790 func (builder *TalentCombinedProjectInfoBuilder) Link(link string) *TalentCombinedProjectInfoBuilder { 23791 builder.link = link 23792 builder.linkFlag = true 23793 return builder 23794 } 23795 23796 // 描述 23797 // 23798 // 示例值:xxx 23799 func (builder *TalentCombinedProjectInfoBuilder) Desc(desc string) *TalentCombinedProjectInfoBuilder { 23800 builder.desc = desc 23801 builder.descFlag = true 23802 return builder 23803 } 23804 23805 // 开始时间 23806 // 23807 // 示例值:293016767159 23808 func (builder *TalentCombinedProjectInfoBuilder) StartTime(startTime string) *TalentCombinedProjectInfoBuilder { 23809 builder.startTime = startTime 23810 builder.startTimeFlag = true 23811 return builder 23812 } 23813 23814 // 结束时间 23815 // 23816 // 示例值:293016767159 23817 func (builder *TalentCombinedProjectInfoBuilder) EndTime(endTime string) *TalentCombinedProjectInfoBuilder { 23818 builder.endTime = endTime 23819 builder.endTimeFlag = true 23820 return builder 23821 } 23822 23823 // 自定义字段 23824 // 23825 // 示例值: 23826 func (builder *TalentCombinedProjectInfoBuilder) CustomizedData(customizedData []*TalentCustomizedDataObjectValue) *TalentCombinedProjectInfoBuilder { 23827 builder.customizedData = customizedData 23828 builder.customizedDataFlag = true 23829 return builder 23830 } 23831 23832 func (builder *TalentCombinedProjectInfoBuilder) Build() *TalentCombinedProjectInfo { 23833 req := &TalentCombinedProjectInfo{} 23834 if builder.idFlag { 23835 req.Id = &builder.id 23836 23837 } 23838 if builder.nameFlag { 23839 req.Name = &builder.name 23840 23841 } 23842 if builder.roleFlag { 23843 req.Role = &builder.role 23844 23845 } 23846 if builder.linkFlag { 23847 req.Link = &builder.link 23848 23849 } 23850 if builder.descFlag { 23851 req.Desc = &builder.desc 23852 23853 } 23854 if builder.startTimeFlag { 23855 req.StartTime = &builder.startTime 23856 23857 } 23858 if builder.endTimeFlag { 23859 req.EndTime = &builder.endTime 23860 23861 } 23862 if builder.customizedDataFlag { 23863 req.CustomizedData = builder.customizedData 23864 } 23865 return req 23866 } 23867 23868 type TalentCombinedSnsInfo struct { 23869 Id *string `json:"id,omitempty"` // ID 23870 SnsType *int `json:"sns_type,omitempty"` // SNS名称 23871 Link *string `json:"link,omitempty"` // URL/ID 23872 CustomizedData []*TalentCustomizedDataObjectValue `json:"customized_data,omitempty"` // 自定义字段 23873 } 23874 23875 type TalentCombinedSnsInfoBuilder struct { 23876 id string // ID 23877 idFlag bool 23878 snsType int // SNS名称 23879 snsTypeFlag bool 23880 link string // URL/ID 23881 linkFlag bool 23882 customizedData []*TalentCustomizedDataObjectValue // 自定义字段 23883 customizedDataFlag bool 23884 } 23885 23886 func NewTalentCombinedSnsInfoBuilder() *TalentCombinedSnsInfoBuilder { 23887 builder := &TalentCombinedSnsInfoBuilder{} 23888 return builder 23889 } 23890 23891 // ID 23892 // 23893 // 示例值:6891560630172518670 23894 func (builder *TalentCombinedSnsInfoBuilder) Id(id string) *TalentCombinedSnsInfoBuilder { 23895 builder.id = id 23896 builder.idFlag = true 23897 return builder 23898 } 23899 23900 // SNS名称 23901 // 23902 // 示例值:1 23903 func (builder *TalentCombinedSnsInfoBuilder) SnsType(snsType int) *TalentCombinedSnsInfoBuilder { 23904 builder.snsType = snsType 23905 builder.snsTypeFlag = true 23906 return builder 23907 } 23908 23909 // URL/ID 23910 // 23911 // 示例值:https://www.a.com 23912 func (builder *TalentCombinedSnsInfoBuilder) Link(link string) *TalentCombinedSnsInfoBuilder { 23913 builder.link = link 23914 builder.linkFlag = true 23915 return builder 23916 } 23917 23918 // 自定义字段 23919 // 23920 // 示例值: 23921 func (builder *TalentCombinedSnsInfoBuilder) CustomizedData(customizedData []*TalentCustomizedDataObjectValue) *TalentCombinedSnsInfoBuilder { 23922 builder.customizedData = customizedData 23923 builder.customizedDataFlag = true 23924 return builder 23925 } 23926 23927 func (builder *TalentCombinedSnsInfoBuilder) Build() *TalentCombinedSnsInfo { 23928 req := &TalentCombinedSnsInfo{} 23929 if builder.idFlag { 23930 req.Id = &builder.id 23931 23932 } 23933 if builder.snsTypeFlag { 23934 req.SnsType = &builder.snsType 23935 23936 } 23937 if builder.linkFlag { 23938 req.Link = &builder.link 23939 23940 } 23941 if builder.customizedDataFlag { 23942 req.CustomizedData = builder.customizedData 23943 } 23944 return req 23945 } 23946 23947 type TalentCombinedWorkInfo struct { 23948 Id *string `json:"id,omitempty"` // ID 23949 Link *string `json:"link,omitempty"` // 作品链接 23950 Desc *string `json:"desc,omitempty"` // 描述 23951 AttachmentId *string `json:"attachment_id,omitempty"` // 附件 ID 23952 CustomizedData []*TalentCustomizedDataObjectValue `json:"customized_data,omitempty"` // 自定义字段 23953 } 23954 23955 type TalentCombinedWorkInfoBuilder struct { 23956 id string // ID 23957 idFlag bool 23958 link string // 作品链接 23959 linkFlag bool 23960 desc string // 描述 23961 descFlag bool 23962 attachmentId string // 附件 ID 23963 attachmentIdFlag bool 23964 customizedData []*TalentCustomizedDataObjectValue // 自定义字段 23965 customizedDataFlag bool 23966 } 23967 23968 func NewTalentCombinedWorkInfoBuilder() *TalentCombinedWorkInfoBuilder { 23969 builder := &TalentCombinedWorkInfoBuilder{} 23970 return builder 23971 } 23972 23973 // ID 23974 // 23975 // 示例值:6891560630172518670 23976 func (builder *TalentCombinedWorkInfoBuilder) Id(id string) *TalentCombinedWorkInfoBuilder { 23977 builder.id = id 23978 builder.idFlag = true 23979 return builder 23980 } 23981 23982 // 作品链接 23983 // 23984 // 示例值:https://www.a.com 23985 func (builder *TalentCombinedWorkInfoBuilder) Link(link string) *TalentCombinedWorkInfoBuilder { 23986 builder.link = link 23987 builder.linkFlag = true 23988 return builder 23989 } 23990 23991 // 描述 23992 // 23993 // 示例值:个人设计作品 23994 func (builder *TalentCombinedWorkInfoBuilder) Desc(desc string) *TalentCombinedWorkInfoBuilder { 23995 builder.desc = desc 23996 builder.descFlag = true 23997 return builder 23998 } 23999 24000 // 附件 ID 24001 // 24002 // 示例值:12345678 24003 func (builder *TalentCombinedWorkInfoBuilder) AttachmentId(attachmentId string) *TalentCombinedWorkInfoBuilder { 24004 builder.attachmentId = attachmentId 24005 builder.attachmentIdFlag = true 24006 return builder 24007 } 24008 24009 // 自定义字段 24010 // 24011 // 示例值: 24012 func (builder *TalentCombinedWorkInfoBuilder) CustomizedData(customizedData []*TalentCustomizedDataObjectValue) *TalentCombinedWorkInfoBuilder { 24013 builder.customizedData = customizedData 24014 builder.customizedDataFlag = true 24015 return builder 24016 } 24017 24018 func (builder *TalentCombinedWorkInfoBuilder) Build() *TalentCombinedWorkInfo { 24019 req := &TalentCombinedWorkInfo{} 24020 if builder.idFlag { 24021 req.Id = &builder.id 24022 24023 } 24024 if builder.linkFlag { 24025 req.Link = &builder.link 24026 24027 } 24028 if builder.descFlag { 24029 req.Desc = &builder.desc 24030 24031 } 24032 if builder.attachmentIdFlag { 24033 req.AttachmentId = &builder.attachmentId 24034 24035 } 24036 if builder.customizedDataFlag { 24037 req.CustomizedData = builder.customizedData 24038 } 24039 return req 24040 } 24041 24042 type TalentCompetitionInfo struct { 24043 Id *string `json:"id,omitempty"` // ID 24044 Name *string `json:"name,omitempty"` // 竞赛名称 24045 Desc *string `json:"desc,omitempty"` // 竞赛描述 24046 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 24047 } 24048 24049 type TalentCompetitionInfoBuilder struct { 24050 id string // ID 24051 idFlag bool 24052 name string // 竞赛名称 24053 nameFlag bool 24054 desc string // 竞赛描述 24055 descFlag bool 24056 customizedDataList []*TalentCustomizedDataChild // 自定义字段 24057 customizedDataListFlag bool 24058 } 24059 24060 func NewTalentCompetitionInfoBuilder() *TalentCompetitionInfoBuilder { 24061 builder := &TalentCompetitionInfoBuilder{} 24062 return builder 24063 } 24064 24065 // ID 24066 // 24067 // 示例值:6891560630172518670 24068 func (builder *TalentCompetitionInfoBuilder) Id(id string) *TalentCompetitionInfoBuilder { 24069 builder.id = id 24070 builder.idFlag = true 24071 return builder 24072 } 24073 24074 // 竞赛名称 24075 // 24076 // 示例值:计算机技能竞赛 24077 func (builder *TalentCompetitionInfoBuilder) Name(name string) *TalentCompetitionInfoBuilder { 24078 builder.name = name 24079 builder.nameFlag = true 24080 return builder 24081 } 24082 24083 // 竞赛描述 24084 // 24085 // 示例值:C++竞赛 24086 func (builder *TalentCompetitionInfoBuilder) Desc(desc string) *TalentCompetitionInfoBuilder { 24087 builder.desc = desc 24088 builder.descFlag = true 24089 return builder 24090 } 24091 24092 // 自定义字段 24093 // 24094 // 示例值: 24095 func (builder *TalentCompetitionInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentCompetitionInfoBuilder { 24096 builder.customizedDataList = customizedDataList 24097 builder.customizedDataListFlag = true 24098 return builder 24099 } 24100 24101 func (builder *TalentCompetitionInfoBuilder) Build() *TalentCompetitionInfo { 24102 req := &TalentCompetitionInfo{} 24103 if builder.idFlag { 24104 req.Id = &builder.id 24105 24106 } 24107 if builder.nameFlag { 24108 req.Name = &builder.name 24109 24110 } 24111 if builder.descFlag { 24112 req.Desc = &builder.desc 24113 24114 } 24115 if builder.customizedDataListFlag { 24116 req.CustomizedDataList = builder.customizedDataList 24117 } 24118 return req 24119 } 24120 24121 type TalentCustomizedData struct { 24122 ObjectId *string `json:"object_id,omitempty"` // 模块 ID 24123 Name *I18n `json:"name,omitempty"` // 模块名称 24124 ObjectType *int `json:"object_type,omitempty"` // 类型 24125 Children []*TalentCustomizedDataChild `json:"children,omitempty"` // 模块下的字段 24126 } 24127 24128 type TalentCustomizedDataBuilder struct { 24129 objectId string // 模块 ID 24130 objectIdFlag bool 24131 name *I18n // 模块名称 24132 nameFlag bool 24133 objectType int // 类型 24134 objectTypeFlag bool 24135 children []*TalentCustomizedDataChild // 模块下的字段 24136 childrenFlag bool 24137 } 24138 24139 func NewTalentCustomizedDataBuilder() *TalentCustomizedDataBuilder { 24140 builder := &TalentCustomizedDataBuilder{} 24141 return builder 24142 } 24143 24144 // 模块 ID 24145 // 24146 // 示例值:xxxx 24147 func (builder *TalentCustomizedDataBuilder) ObjectId(objectId string) *TalentCustomizedDataBuilder { 24148 builder.objectId = objectId 24149 builder.objectIdFlag = true 24150 return builder 24151 } 24152 24153 // 模块名称 24154 // 24155 // 示例值: 24156 func (builder *TalentCustomizedDataBuilder) Name(name *I18n) *TalentCustomizedDataBuilder { 24157 builder.name = name 24158 builder.nameFlag = true 24159 return builder 24160 } 24161 24162 // 类型 24163 // 24164 // 示例值:1 24165 func (builder *TalentCustomizedDataBuilder) ObjectType(objectType int) *TalentCustomizedDataBuilder { 24166 builder.objectType = objectType 24167 builder.objectTypeFlag = true 24168 return builder 24169 } 24170 24171 // 模块下的字段 24172 // 24173 // 示例值: 24174 func (builder *TalentCustomizedDataBuilder) Children(children []*TalentCustomizedDataChild) *TalentCustomizedDataBuilder { 24175 builder.children = children 24176 builder.childrenFlag = true 24177 return builder 24178 } 24179 24180 func (builder *TalentCustomizedDataBuilder) Build() *TalentCustomizedData { 24181 req := &TalentCustomizedData{} 24182 if builder.objectIdFlag { 24183 req.ObjectId = &builder.objectId 24184 24185 } 24186 if builder.nameFlag { 24187 req.Name = builder.name 24188 } 24189 if builder.objectTypeFlag { 24190 req.ObjectType = &builder.objectType 24191 24192 } 24193 if builder.childrenFlag { 24194 req.Children = builder.children 24195 } 24196 return req 24197 } 24198 24199 type TalentCustomizedDataChild struct { 24200 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 24201 Name *I18n `json:"name,omitempty"` // 字段名称 24202 ObjectType *int `json:"object_type,omitempty"` // 字段类型 24203 Value *TalentCustomizedValue `json:"value,omitempty"` // 自定义字段值 24204 } 24205 24206 type TalentCustomizedDataChildBuilder struct { 24207 objectId string // 自定义字段 ID 24208 objectIdFlag bool 24209 name *I18n // 字段名称 24210 nameFlag bool 24211 objectType int // 字段类型 24212 objectTypeFlag bool 24213 value *TalentCustomizedValue // 自定义字段值 24214 valueFlag bool 24215 } 24216 24217 func NewTalentCustomizedDataChildBuilder() *TalentCustomizedDataChildBuilder { 24218 builder := &TalentCustomizedDataChildBuilder{} 24219 return builder 24220 } 24221 24222 // 自定义字段 ID 24223 // 24224 // 示例值:xxxx 24225 func (builder *TalentCustomizedDataChildBuilder) ObjectId(objectId string) *TalentCustomizedDataChildBuilder { 24226 builder.objectId = objectId 24227 builder.objectIdFlag = true 24228 return builder 24229 } 24230 24231 // 字段名称 24232 // 24233 // 示例值: 24234 func (builder *TalentCustomizedDataChildBuilder) Name(name *I18n) *TalentCustomizedDataChildBuilder { 24235 builder.name = name 24236 builder.nameFlag = true 24237 return builder 24238 } 24239 24240 // 字段类型 24241 // 24242 // 示例值:1 24243 func (builder *TalentCustomizedDataChildBuilder) ObjectType(objectType int) *TalentCustomizedDataChildBuilder { 24244 builder.objectType = objectType 24245 builder.objectTypeFlag = true 24246 return builder 24247 } 24248 24249 // 自定义字段值 24250 // 24251 // 示例值: 24252 func (builder *TalentCustomizedDataChildBuilder) Value(value *TalentCustomizedValue) *TalentCustomizedDataChildBuilder { 24253 builder.value = value 24254 builder.valueFlag = true 24255 return builder 24256 } 24257 24258 func (builder *TalentCustomizedDataChildBuilder) Build() *TalentCustomizedDataChild { 24259 req := &TalentCustomizedDataChild{} 24260 if builder.objectIdFlag { 24261 req.ObjectId = &builder.objectId 24262 24263 } 24264 if builder.nameFlag { 24265 req.Name = builder.name 24266 } 24267 if builder.objectTypeFlag { 24268 req.ObjectType = &builder.objectType 24269 24270 } 24271 if builder.valueFlag { 24272 req.Value = builder.value 24273 } 24274 return req 24275 } 24276 24277 type TalentCustomizedDataObjectValue struct { 24278 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 24279 Children []*TalentCustomizedDataObjectValueChild `json:"children,omitempty"` // 子字段列表 24280 } 24281 24282 type TalentCustomizedDataObjectValueBuilder struct { 24283 objectId string // 自定义字段 ID 24284 objectIdFlag bool 24285 children []*TalentCustomizedDataObjectValueChild // 子字段列表 24286 childrenFlag bool 24287 } 24288 24289 func NewTalentCustomizedDataObjectValueBuilder() *TalentCustomizedDataObjectValueBuilder { 24290 builder := &TalentCustomizedDataObjectValueBuilder{} 24291 return builder 24292 } 24293 24294 // 自定义字段 ID 24295 // 24296 // 示例值:6934193211960330504 24297 func (builder *TalentCustomizedDataObjectValueBuilder) ObjectId(objectId string) *TalentCustomizedDataObjectValueBuilder { 24298 builder.objectId = objectId 24299 builder.objectIdFlag = true 24300 return builder 24301 } 24302 24303 // 子字段列表 24304 // 24305 // 示例值: 24306 func (builder *TalentCustomizedDataObjectValueBuilder) Children(children []*TalentCustomizedDataObjectValueChild) *TalentCustomizedDataObjectValueBuilder { 24307 builder.children = children 24308 builder.childrenFlag = true 24309 return builder 24310 } 24311 24312 func (builder *TalentCustomizedDataObjectValueBuilder) Build() *TalentCustomizedDataObjectValue { 24313 req := &TalentCustomizedDataObjectValue{} 24314 if builder.objectIdFlag { 24315 req.ObjectId = &builder.objectId 24316 24317 } 24318 if builder.childrenFlag { 24319 req.Children = builder.children 24320 } 24321 return req 24322 } 24323 24324 type TalentCustomizedDataObjectValueChild struct { 24325 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 24326 Value *string `json:"value,omitempty"` // 自定义字段值 24327 } 24328 24329 type TalentCustomizedDataObjectValueChildBuilder struct { 24330 objectId string // 自定义字段 ID 24331 objectIdFlag bool 24332 value string // 自定义字段值 24333 valueFlag bool 24334 } 24335 24336 func NewTalentCustomizedDataObjectValueChildBuilder() *TalentCustomizedDataObjectValueChildBuilder { 24337 builder := &TalentCustomizedDataObjectValueChildBuilder{} 24338 return builder 24339 } 24340 24341 // 自定义字段 ID 24342 // 24343 // 示例值:6934193211960330504 24344 func (builder *TalentCustomizedDataObjectValueChildBuilder) ObjectId(objectId string) *TalentCustomizedDataObjectValueChildBuilder { 24345 builder.objectId = objectId 24346 builder.objectIdFlag = true 24347 return builder 24348 } 24349 24350 // 自定义字段值 24351 // 24352 // 示例值:张三 24353 func (builder *TalentCustomizedDataObjectValueChildBuilder) Value(value string) *TalentCustomizedDataObjectValueChildBuilder { 24354 builder.value = value 24355 builder.valueFlag = true 24356 return builder 24357 } 24358 24359 func (builder *TalentCustomizedDataObjectValueChildBuilder) Build() *TalentCustomizedDataObjectValueChild { 24360 req := &TalentCustomizedDataObjectValueChild{} 24361 if builder.objectIdFlag { 24362 req.ObjectId = &builder.objectId 24363 24364 } 24365 if builder.valueFlag { 24366 req.Value = &builder.value 24367 24368 } 24369 return req 24370 } 24371 24372 type TalentCustomizedOption struct { 24373 Key *string `json:"key,omitempty"` // 选项 ID 24374 Name *I18n `json:"name,omitempty"` // 选项名称 24375 } 24376 24377 type TalentCustomizedOptionBuilder struct { 24378 key string // 选项 ID 24379 keyFlag bool 24380 name *I18n // 选项名称 24381 nameFlag bool 24382 } 24383 24384 func NewTalentCustomizedOptionBuilder() *TalentCustomizedOptionBuilder { 24385 builder := &TalentCustomizedOptionBuilder{} 24386 return builder 24387 } 24388 24389 // 选项 ID 24390 // 24391 // 示例值:AA 24392 func (builder *TalentCustomizedOptionBuilder) Key(key string) *TalentCustomizedOptionBuilder { 24393 builder.key = key 24394 builder.keyFlag = true 24395 return builder 24396 } 24397 24398 // 选项名称 24399 // 24400 // 示例值: 24401 func (builder *TalentCustomizedOptionBuilder) Name(name *I18n) *TalentCustomizedOptionBuilder { 24402 builder.name = name 24403 builder.nameFlag = true 24404 return builder 24405 } 24406 24407 func (builder *TalentCustomizedOptionBuilder) Build() *TalentCustomizedOption { 24408 req := &TalentCustomizedOption{} 24409 if builder.keyFlag { 24410 req.Key = &builder.key 24411 24412 } 24413 if builder.nameFlag { 24414 req.Name = builder.name 24415 } 24416 return req 24417 } 24418 24419 type TalentCustomizedTimeRange struct { 24420 StartTime *string `json:"start_time,omitempty"` // 开始时间 24421 EndTime *string `json:"end_time,omitempty"` // 结束时间,当值为至今时,返回「-」 24422 } 24423 24424 type TalentCustomizedTimeRangeBuilder struct { 24425 startTime string // 开始时间 24426 startTimeFlag bool 24427 endTime string // 结束时间,当值为至今时,返回「-」 24428 endTimeFlag bool 24429 } 24430 24431 func NewTalentCustomizedTimeRangeBuilder() *TalentCustomizedTimeRangeBuilder { 24432 builder := &TalentCustomizedTimeRangeBuilder{} 24433 return builder 24434 } 24435 24436 // 开始时间 24437 // 24438 // 示例值:1625456721 24439 func (builder *TalentCustomizedTimeRangeBuilder) StartTime(startTime string) *TalentCustomizedTimeRangeBuilder { 24440 builder.startTime = startTime 24441 builder.startTimeFlag = true 24442 return builder 24443 } 24444 24445 // 结束时间,当值为至今时,返回「-」 24446 // 24447 // 示例值:1625656721 24448 func (builder *TalentCustomizedTimeRangeBuilder) EndTime(endTime string) *TalentCustomizedTimeRangeBuilder { 24449 builder.endTime = endTime 24450 builder.endTimeFlag = true 24451 return builder 24452 } 24453 24454 func (builder *TalentCustomizedTimeRangeBuilder) Build() *TalentCustomizedTimeRange { 24455 req := &TalentCustomizedTimeRange{} 24456 if builder.startTimeFlag { 24457 req.StartTime = &builder.startTime 24458 24459 } 24460 if builder.endTimeFlag { 24461 req.EndTime = &builder.endTime 24462 24463 } 24464 return req 24465 } 24466 24467 type TalentCustomizedValue struct { 24468 Content *string `json:"content,omitempty"` // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 24469 Option *TalentCustomizedOption `json:"option,omitempty"` // 当字段类型为单选时,从此字段取值 24470 OptionList []*TalentCustomizedOption `json:"option_list,omitempty"` // 当字段类型为多选时,从此字段取值 24471 TimeRange *TalentCustomizedTimeRange `json:"time_range,omitempty"` // 当字段类型为时间段时,从此字段取值 24472 Time *string `json:"time,omitempty"` // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是秒级时间戳 24473 Number *string `json:"number,omitempty"` // 当字段类型为数字时,从此字段取值 24474 } 24475 24476 type TalentCustomizedValueBuilder struct { 24477 content string // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 24478 contentFlag bool 24479 option *TalentCustomizedOption // 当字段类型为单选时,从此字段取值 24480 optionFlag bool 24481 optionList []*TalentCustomizedOption // 当字段类型为多选时,从此字段取值 24482 optionListFlag bool 24483 timeRange *TalentCustomizedTimeRange // 当字段类型为时间段时,从此字段取值 24484 timeRangeFlag bool 24485 time string // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是秒级时间戳 24486 timeFlag bool 24487 number string // 当字段类型为数字时,从此字段取值 24488 numberFlag bool 24489 } 24490 24491 func NewTalentCustomizedValueBuilder() *TalentCustomizedValueBuilder { 24492 builder := &TalentCustomizedValueBuilder{} 24493 return builder 24494 } 24495 24496 // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 24497 // 24498 // 示例值:text 24499 func (builder *TalentCustomizedValueBuilder) Content(content string) *TalentCustomizedValueBuilder { 24500 builder.content = content 24501 builder.contentFlag = true 24502 return builder 24503 } 24504 24505 // 当字段类型为单选时,从此字段取值 24506 // 24507 // 示例值: 24508 func (builder *TalentCustomizedValueBuilder) Option(option *TalentCustomizedOption) *TalentCustomizedValueBuilder { 24509 builder.option = option 24510 builder.optionFlag = true 24511 return builder 24512 } 24513 24514 // 当字段类型为多选时,从此字段取值 24515 // 24516 // 示例值: 24517 func (builder *TalentCustomizedValueBuilder) OptionList(optionList []*TalentCustomizedOption) *TalentCustomizedValueBuilder { 24518 builder.optionList = optionList 24519 builder.optionListFlag = true 24520 return builder 24521 } 24522 24523 // 当字段类型为时间段时,从此字段取值 24524 // 24525 // 示例值: 24526 func (builder *TalentCustomizedValueBuilder) TimeRange(timeRange *TalentCustomizedTimeRange) *TalentCustomizedValueBuilder { 24527 builder.timeRange = timeRange 24528 builder.timeRangeFlag = true 24529 return builder 24530 } 24531 24532 // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是秒级时间戳 24533 // 24534 // 示例值:1625456721 24535 func (builder *TalentCustomizedValueBuilder) Time(time string) *TalentCustomizedValueBuilder { 24536 builder.time = time 24537 builder.timeFlag = true 24538 return builder 24539 } 24540 24541 // 当字段类型为数字时,从此字段取值 24542 // 24543 // 示例值:111 24544 func (builder *TalentCustomizedValueBuilder) Number(number string) *TalentCustomizedValueBuilder { 24545 builder.number = number 24546 builder.numberFlag = true 24547 return builder 24548 } 24549 24550 func (builder *TalentCustomizedValueBuilder) Build() *TalentCustomizedValue { 24551 req := &TalentCustomizedValue{} 24552 if builder.contentFlag { 24553 req.Content = &builder.content 24554 24555 } 24556 if builder.optionFlag { 24557 req.Option = builder.option 24558 } 24559 if builder.optionListFlag { 24560 req.OptionList = builder.optionList 24561 } 24562 if builder.timeRangeFlag { 24563 req.TimeRange = builder.timeRange 24564 } 24565 if builder.timeFlag { 24566 req.Time = &builder.time 24567 24568 } 24569 if builder.numberFlag { 24570 req.Number = &builder.number 24571 24572 } 24573 return req 24574 } 24575 24576 type TalentEducationInfo struct { 24577 Id *string `json:"id,omitempty"` // ID 24578 Degree *int `json:"degree,omitempty"` // 学位 24579 School *string `json:"school,omitempty"` // 学校 24580 FieldOfStudy *string `json:"field_of_study,omitempty"` // 专业 24581 StartTime *string `json:"start_time,omitempty"` // 开始时间 24582 EndTime *string `json:"end_time,omitempty"` // 结束时间 24583 EducationType *int `json:"education_type,omitempty"` // 学历类型 24584 AcademicRanking *int `json:"academic_ranking,omitempty"` // 成绩排名 24585 TagList []int `json:"tag_list,omitempty"` // 教育经历标签 24586 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 24587 } 24588 24589 type TalentEducationInfoBuilder struct { 24590 id string // ID 24591 idFlag bool 24592 degree int // 学位 24593 degreeFlag bool 24594 school string // 学校 24595 schoolFlag bool 24596 fieldOfStudy string // 专业 24597 fieldOfStudyFlag bool 24598 startTime string // 开始时间 24599 startTimeFlag bool 24600 endTime string // 结束时间 24601 endTimeFlag bool 24602 educationType int // 学历类型 24603 educationTypeFlag bool 24604 academicRanking int // 成绩排名 24605 academicRankingFlag bool 24606 tagList []int // 教育经历标签 24607 tagListFlag bool 24608 customizedDataList []*TalentCustomizedDataChild // 自定义字段 24609 customizedDataListFlag bool 24610 } 24611 24612 func NewTalentEducationInfoBuilder() *TalentEducationInfoBuilder { 24613 builder := &TalentEducationInfoBuilder{} 24614 return builder 24615 } 24616 24617 // ID 24618 // 24619 // 示例值:6891560630172518670 24620 func (builder *TalentEducationInfoBuilder) Id(id string) *TalentEducationInfoBuilder { 24621 builder.id = id 24622 builder.idFlag = true 24623 return builder 24624 } 24625 24626 // 学位 24627 // 24628 // 示例值:1 24629 func (builder *TalentEducationInfoBuilder) Degree(degree int) *TalentEducationInfoBuilder { 24630 builder.degree = degree 24631 builder.degreeFlag = true 24632 return builder 24633 } 24634 24635 // 学校 24636 // 24637 // 示例值:湘港大学 24638 func (builder *TalentEducationInfoBuilder) School(school string) *TalentEducationInfoBuilder { 24639 builder.school = school 24640 builder.schoolFlag = true 24641 return builder 24642 } 24643 24644 // 专业 24645 // 24646 // 示例值:考古 24647 func (builder *TalentEducationInfoBuilder) FieldOfStudy(fieldOfStudy string) *TalentEducationInfoBuilder { 24648 builder.fieldOfStudy = fieldOfStudy 24649 builder.fieldOfStudyFlag = true 24650 return builder 24651 } 24652 24653 // 开始时间 24654 // 24655 // 示例值:1990-01 24656 func (builder *TalentEducationInfoBuilder) StartTime(startTime string) *TalentEducationInfoBuilder { 24657 builder.startTime = startTime 24658 builder.startTimeFlag = true 24659 return builder 24660 } 24661 24662 // 结束时间 24663 // 24664 // 示例值:1994-01 24665 func (builder *TalentEducationInfoBuilder) EndTime(endTime string) *TalentEducationInfoBuilder { 24666 builder.endTime = endTime 24667 builder.endTimeFlag = true 24668 return builder 24669 } 24670 24671 // 学历类型 24672 // 24673 // 示例值:1 24674 func (builder *TalentEducationInfoBuilder) EducationType(educationType int) *TalentEducationInfoBuilder { 24675 builder.educationType = educationType 24676 builder.educationTypeFlag = true 24677 return builder 24678 } 24679 24680 // 成绩排名 24681 // 24682 // 示例值:5 24683 func (builder *TalentEducationInfoBuilder) AcademicRanking(academicRanking int) *TalentEducationInfoBuilder { 24684 builder.academicRanking = academicRanking 24685 builder.academicRankingFlag = true 24686 return builder 24687 } 24688 24689 // 教育经历标签 24690 // 24691 // 示例值: 24692 func (builder *TalentEducationInfoBuilder) TagList(tagList []int) *TalentEducationInfoBuilder { 24693 builder.tagList = tagList 24694 builder.tagListFlag = true 24695 return builder 24696 } 24697 24698 // 自定义字段 24699 // 24700 // 示例值: 24701 func (builder *TalentEducationInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentEducationInfoBuilder { 24702 builder.customizedDataList = customizedDataList 24703 builder.customizedDataListFlag = true 24704 return builder 24705 } 24706 24707 func (builder *TalentEducationInfoBuilder) Build() *TalentEducationInfo { 24708 req := &TalentEducationInfo{} 24709 if builder.idFlag { 24710 req.Id = &builder.id 24711 24712 } 24713 if builder.degreeFlag { 24714 req.Degree = &builder.degree 24715 24716 } 24717 if builder.schoolFlag { 24718 req.School = &builder.school 24719 24720 } 24721 if builder.fieldOfStudyFlag { 24722 req.FieldOfStudy = &builder.fieldOfStudy 24723 24724 } 24725 if builder.startTimeFlag { 24726 req.StartTime = &builder.startTime 24727 24728 } 24729 if builder.endTimeFlag { 24730 req.EndTime = &builder.endTime 24731 24732 } 24733 if builder.educationTypeFlag { 24734 req.EducationType = &builder.educationType 24735 24736 } 24737 if builder.academicRankingFlag { 24738 req.AcademicRanking = &builder.academicRanking 24739 24740 } 24741 if builder.tagListFlag { 24742 req.TagList = builder.tagList 24743 } 24744 if builder.customizedDataListFlag { 24745 req.CustomizedDataList = builder.customizedDataList 24746 } 24747 return req 24748 } 24749 24750 type TalentExternalInfo struct { 24751 TalentId *string `json:"talent_id,omitempty"` // 人才 ID 24752 ExternalCreateTime *string `json:"external_create_time,omitempty"` // 人才在外部系统的创建时间 24753 } 24754 24755 type TalentExternalInfoBuilder struct { 24756 talentId string // 人才 ID 24757 talentIdFlag bool 24758 externalCreateTime string // 人才在外部系统的创建时间 24759 externalCreateTimeFlag bool 24760 } 24761 24762 func NewTalentExternalInfoBuilder() *TalentExternalInfoBuilder { 24763 builder := &TalentExternalInfoBuilder{} 24764 return builder 24765 } 24766 24767 // 人才 ID 24768 // 24769 // 示例值:7043758982146345223 24770 func (builder *TalentExternalInfoBuilder) TalentId(talentId string) *TalentExternalInfoBuilder { 24771 builder.talentId = talentId 24772 builder.talentIdFlag = true 24773 return builder 24774 } 24775 24776 // 人才在外部系统的创建时间 24777 // 24778 // 示例值:1608467675393 24779 func (builder *TalentExternalInfoBuilder) ExternalCreateTime(externalCreateTime string) *TalentExternalInfoBuilder { 24780 builder.externalCreateTime = externalCreateTime 24781 builder.externalCreateTimeFlag = true 24782 return builder 24783 } 24784 24785 func (builder *TalentExternalInfoBuilder) Build() *TalentExternalInfo { 24786 req := &TalentExternalInfo{} 24787 if builder.talentIdFlag { 24788 req.TalentId = &builder.talentId 24789 24790 } 24791 if builder.externalCreateTimeFlag { 24792 req.ExternalCreateTime = &builder.externalCreateTime 24793 24794 } 24795 return req 24796 } 24797 24798 type TalentFolder struct { 24799 ExternalId *string `json:"external_id,omitempty"` // 外部ID 24800 Name *string `json:"name,omitempty"` // 名字 24801 ParentId *string `json:"parent_id,omitempty"` // 父ID 24802 CreatorId *string `json:"creator_id,omitempty"` // 创建人 ID 24803 FolderId *string `json:"folder_id,omitempty"` // 文件夹ID 24804 OwnerId *string `json:"owner_id,omitempty"` // 所有者ID 24805 } 24806 24807 type TalentFolderBuilder struct { 24808 externalId string // 外部ID 24809 externalIdFlag bool 24810 name string // 名字 24811 nameFlag bool 24812 parentId string // 父ID 24813 parentIdFlag bool 24814 creatorId string // 创建人 ID 24815 creatorIdFlag bool 24816 folderId string // 文件夹ID 24817 folderIdFlag bool 24818 ownerId string // 所有者ID 24819 ownerIdFlag bool 24820 } 24821 24822 func NewTalentFolderBuilder() *TalentFolderBuilder { 24823 builder := &TalentFolderBuilder{} 24824 return builder 24825 } 24826 24827 // 外部ID 24828 // 24829 // 示例值: 24830 func (builder *TalentFolderBuilder) ExternalId(externalId string) *TalentFolderBuilder { 24831 builder.externalId = externalId 24832 builder.externalIdFlag = true 24833 return builder 24834 } 24835 24836 // 名字 24837 // 24838 // 示例值:人才文件夹A1 24839 func (builder *TalentFolderBuilder) Name(name string) *TalentFolderBuilder { 24840 builder.name = name 24841 builder.nameFlag = true 24842 return builder 24843 } 24844 24845 // 父ID 24846 // 24847 // 示例值: 24848 func (builder *TalentFolderBuilder) ParentId(parentId string) *TalentFolderBuilder { 24849 builder.parentId = parentId 24850 builder.parentIdFlag = true 24851 return builder 24852 } 24853 24854 // 创建人 ID 24855 // 24856 // 示例值: 24857 func (builder *TalentFolderBuilder) CreatorId(creatorId string) *TalentFolderBuilder { 24858 builder.creatorId = creatorId 24859 builder.creatorIdFlag = true 24860 return builder 24861 } 24862 24863 // 文件夹ID 24864 // 24865 // 示例值:7041806543797995820 24866 func (builder *TalentFolderBuilder) FolderId(folderId string) *TalentFolderBuilder { 24867 builder.folderId = folderId 24868 builder.folderIdFlag = true 24869 return builder 24870 } 24871 24872 // 所有者ID 24873 // 24874 // 示例值:ou_85bb308c57f597471cd2bb5b4f580245 24875 func (builder *TalentFolderBuilder) OwnerId(ownerId string) *TalentFolderBuilder { 24876 builder.ownerId = ownerId 24877 builder.ownerIdFlag = true 24878 return builder 24879 } 24880 24881 func (builder *TalentFolderBuilder) Build() *TalentFolder { 24882 req := &TalentFolder{} 24883 if builder.externalIdFlag { 24884 req.ExternalId = &builder.externalId 24885 24886 } 24887 if builder.nameFlag { 24888 req.Name = &builder.name 24889 24890 } 24891 if builder.parentIdFlag { 24892 req.ParentId = &builder.parentId 24893 24894 } 24895 if builder.creatorIdFlag { 24896 req.CreatorId = &builder.creatorId 24897 24898 } 24899 if builder.folderIdFlag { 24900 req.FolderId = &builder.folderId 24901 24902 } 24903 if builder.ownerIdFlag { 24904 req.OwnerId = &builder.ownerId 24905 24906 } 24907 return req 24908 } 24909 24910 type TalentIdentificationInfo struct { 24911 IdentificationType *int `json:"identification_type,omitempty"` // 证件类型 24912 IdentificationNumber *string `json:"identification_number,omitempty"` // 证件号 24913 } 24914 24915 type TalentIdentificationInfoBuilder struct { 24916 identificationType int // 证件类型 24917 identificationTypeFlag bool 24918 identificationNumber string // 证件号 24919 identificationNumberFlag bool 24920 } 24921 24922 func NewTalentIdentificationInfoBuilder() *TalentIdentificationInfoBuilder { 24923 builder := &TalentIdentificationInfoBuilder{} 24924 return builder 24925 } 24926 24927 // 证件类型 24928 // 24929 // 示例值:1 24930 func (builder *TalentIdentificationInfoBuilder) IdentificationType(identificationType int) *TalentIdentificationInfoBuilder { 24931 builder.identificationType = identificationType 24932 builder.identificationTypeFlag = true 24933 return builder 24934 } 24935 24936 // 证件号 24937 // 24938 // 示例值:511699199x1x111234 24939 func (builder *TalentIdentificationInfoBuilder) IdentificationNumber(identificationNumber string) *TalentIdentificationInfoBuilder { 24940 builder.identificationNumber = identificationNumber 24941 builder.identificationNumberFlag = true 24942 return builder 24943 } 24944 24945 func (builder *TalentIdentificationInfoBuilder) Build() *TalentIdentificationInfo { 24946 req := &TalentIdentificationInfo{} 24947 if builder.identificationTypeFlag { 24948 req.IdentificationType = &builder.identificationType 24949 24950 } 24951 if builder.identificationNumberFlag { 24952 req.IdentificationNumber = &builder.identificationNumber 24953 24954 } 24955 return req 24956 } 24957 24958 type TalentInternshipInfo struct { 24959 Id *string `json:"id,omitempty"` // ID 24960 Company *string `json:"company,omitempty"` // 公司 24961 Desc *string `json:"desc,omitempty"` // 描述 24962 EndTime *int `json:"end_time,omitempty"` // 结束时间 24963 StartTime *int `json:"start_time,omitempty"` // 开始时间 24964 Title *string `json:"title,omitempty"` // 职称 24965 TagList []int `json:"tag_list,omitempty"` // 标记, 只会出现学校部分 24966 } 24967 24968 type TalentInternshipInfoBuilder struct { 24969 id string // ID 24970 idFlag bool 24971 company string // 公司 24972 companyFlag bool 24973 desc string // 描述 24974 descFlag bool 24975 endTime int // 结束时间 24976 endTimeFlag bool 24977 startTime int // 开始时间 24978 startTimeFlag bool 24979 title string // 职称 24980 titleFlag bool 24981 tagList []int // 标记, 只会出现学校部分 24982 tagListFlag bool 24983 } 24984 24985 func NewTalentInternshipInfoBuilder() *TalentInternshipInfoBuilder { 24986 builder := &TalentInternshipInfoBuilder{} 24987 return builder 24988 } 24989 24990 // ID 24991 // 24992 // 示例值:6986199832494934316 24993 func (builder *TalentInternshipInfoBuilder) Id(id string) *TalentInternshipInfoBuilder { 24994 builder.id = id 24995 builder.idFlag = true 24996 return builder 24997 } 24998 24999 // 公司 25000 // 25001 // 示例值:小米 25002 func (builder *TalentInternshipInfoBuilder) Company(company string) *TalentInternshipInfoBuilder { 25003 builder.company = company 25004 builder.companyFlag = true 25005 return builder 25006 } 25007 25008 // 描述 25009 // 25010 // 示例值:研发部实习 25011 func (builder *TalentInternshipInfoBuilder) Desc(desc string) *TalentInternshipInfoBuilder { 25012 builder.desc = desc 25013 builder.descFlag = true 25014 return builder 25015 } 25016 25017 // 结束时间 25018 // 25019 // 示例值:1618500278638 25020 func (builder *TalentInternshipInfoBuilder) EndTime(endTime int) *TalentInternshipInfoBuilder { 25021 builder.endTime = endTime 25022 builder.endTimeFlag = true 25023 return builder 25024 } 25025 25026 // 开始时间 25027 // 25028 // 示例值:1618500278639 25029 func (builder *TalentInternshipInfoBuilder) StartTime(startTime int) *TalentInternshipInfoBuilder { 25030 builder.startTime = startTime 25031 builder.startTimeFlag = true 25032 return builder 25033 } 25034 25035 // 职称 25036 // 25037 // 示例值:高级工程师 25038 func (builder *TalentInternshipInfoBuilder) Title(title string) *TalentInternshipInfoBuilder { 25039 builder.title = title 25040 builder.titleFlag = true 25041 return builder 25042 } 25043 25044 // 标记, 只会出现学校部分 25045 // 25046 // 示例值: 25047 func (builder *TalentInternshipInfoBuilder) TagList(tagList []int) *TalentInternshipInfoBuilder { 25048 builder.tagList = tagList 25049 builder.tagListFlag = true 25050 return builder 25051 } 25052 25053 func (builder *TalentInternshipInfoBuilder) Build() *TalentInternshipInfo { 25054 req := &TalentInternshipInfo{} 25055 if builder.idFlag { 25056 req.Id = &builder.id 25057 25058 } 25059 if builder.companyFlag { 25060 req.Company = &builder.company 25061 25062 } 25063 if builder.descFlag { 25064 req.Desc = &builder.desc 25065 25066 } 25067 if builder.endTimeFlag { 25068 req.EndTime = &builder.endTime 25069 25070 } 25071 if builder.startTimeFlag { 25072 req.StartTime = &builder.startTime 25073 25074 } 25075 if builder.titleFlag { 25076 req.Title = &builder.title 25077 25078 } 25079 if builder.tagListFlag { 25080 req.TagList = builder.tagList 25081 } 25082 return req 25083 } 25084 25085 type TalentInterview struct { 25086 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 25087 InterviewList []*InterviewExtend `json:"interview_list,omitempty"` // 面试列表 25088 } 25089 25090 type TalentInterviewBuilder struct { 25091 applicationId string // 投递 ID 25092 applicationIdFlag bool 25093 interviewList []*InterviewExtend // 面试列表 25094 interviewListFlag bool 25095 } 25096 25097 func NewTalentInterviewBuilder() *TalentInterviewBuilder { 25098 builder := &TalentInterviewBuilder{} 25099 return builder 25100 } 25101 25102 // 投递 ID 25103 // 25104 // 示例值:6949805467799537964 25105 func (builder *TalentInterviewBuilder) ApplicationId(applicationId string) *TalentInterviewBuilder { 25106 builder.applicationId = applicationId 25107 builder.applicationIdFlag = true 25108 return builder 25109 } 25110 25111 // 面试列表 25112 // 25113 // 示例值: 25114 func (builder *TalentInterviewBuilder) InterviewList(interviewList []*InterviewExtend) *TalentInterviewBuilder { 25115 builder.interviewList = interviewList 25116 builder.interviewListFlag = true 25117 return builder 25118 } 25119 25120 func (builder *TalentInterviewBuilder) Build() *TalentInterview { 25121 req := &TalentInterview{} 25122 if builder.applicationIdFlag { 25123 req.ApplicationId = &builder.applicationId 25124 25125 } 25126 if builder.interviewListFlag { 25127 req.InterviewList = builder.interviewList 25128 } 25129 return req 25130 } 25131 25132 type TalentInterviewRegistrationSimple struct { 25133 Id *string `json:"id,omitempty"` // ID 25134 RegistrationTime *int `json:"registration_time,omitempty"` // 创建时间 25135 } 25136 25137 type TalentInterviewRegistrationSimpleBuilder struct { 25138 id string // ID 25139 idFlag bool 25140 registrationTime int // 创建时间 25141 registrationTimeFlag bool 25142 } 25143 25144 func NewTalentInterviewRegistrationSimpleBuilder() *TalentInterviewRegistrationSimpleBuilder { 25145 builder := &TalentInterviewRegistrationSimpleBuilder{} 25146 return builder 25147 } 25148 25149 // ID 25150 // 25151 // 示例值:6833685612520950030 25152 func (builder *TalentInterviewRegistrationSimpleBuilder) Id(id string) *TalentInterviewRegistrationSimpleBuilder { 25153 builder.id = id 25154 builder.idFlag = true 25155 return builder 25156 } 25157 25158 // 创建时间 25159 // 25160 // 示例值:1618494330932 25161 func (builder *TalentInterviewRegistrationSimpleBuilder) RegistrationTime(registrationTime int) *TalentInterviewRegistrationSimpleBuilder { 25162 builder.registrationTime = registrationTime 25163 builder.registrationTimeFlag = true 25164 return builder 25165 } 25166 25167 func (builder *TalentInterviewRegistrationSimpleBuilder) Build() *TalentInterviewRegistrationSimple { 25168 req := &TalentInterviewRegistrationSimple{} 25169 if builder.idFlag { 25170 req.Id = &builder.id 25171 25172 } 25173 if builder.registrationTimeFlag { 25174 req.RegistrationTime = &builder.registrationTime 25175 25176 } 25177 return req 25178 } 25179 25180 type TalentLanguageInfo struct { 25181 Id *string `json:"id,omitempty"` // ID 25182 Language *int `json:"language,omitempty"` // 语言 25183 Proficiency *int `json:"proficiency,omitempty"` // 精通程度 25184 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 25185 } 25186 25187 type TalentLanguageInfoBuilder struct { 25188 id string // ID 25189 idFlag bool 25190 language int // 语言 25191 languageFlag bool 25192 proficiency int // 精通程度 25193 proficiencyFlag bool 25194 customizedDataList []*TalentCustomizedDataChild // 自定义字段 25195 customizedDataListFlag bool 25196 } 25197 25198 func NewTalentLanguageInfoBuilder() *TalentLanguageInfoBuilder { 25199 builder := &TalentLanguageInfoBuilder{} 25200 return builder 25201 } 25202 25203 // ID 25204 // 25205 // 示例值:6891560630172518670 25206 func (builder *TalentLanguageInfoBuilder) Id(id string) *TalentLanguageInfoBuilder { 25207 builder.id = id 25208 builder.idFlag = true 25209 return builder 25210 } 25211 25212 // 语言 25213 // 25214 // 示例值:1 25215 func (builder *TalentLanguageInfoBuilder) Language(language int) *TalentLanguageInfoBuilder { 25216 builder.language = language 25217 builder.languageFlag = true 25218 return builder 25219 } 25220 25221 // 精通程度 25222 // 25223 // 示例值:1 25224 func (builder *TalentLanguageInfoBuilder) Proficiency(proficiency int) *TalentLanguageInfoBuilder { 25225 builder.proficiency = proficiency 25226 builder.proficiencyFlag = true 25227 return builder 25228 } 25229 25230 // 自定义字段 25231 // 25232 // 示例值: 25233 func (builder *TalentLanguageInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentLanguageInfoBuilder { 25234 builder.customizedDataList = customizedDataList 25235 builder.customizedDataListFlag = true 25236 return builder 25237 } 25238 25239 func (builder *TalentLanguageInfoBuilder) Build() *TalentLanguageInfo { 25240 req := &TalentLanguageInfo{} 25241 if builder.idFlag { 25242 req.Id = &builder.id 25243 25244 } 25245 if builder.languageFlag { 25246 req.Language = &builder.language 25247 25248 } 25249 if builder.proficiencyFlag { 25250 req.Proficiency = &builder.proficiency 25251 25252 } 25253 if builder.customizedDataListFlag { 25254 req.CustomizedDataList = builder.customizedDataList 25255 } 25256 return req 25257 } 25258 25259 type TalentNationality struct { 25260 NationalityCode *string `json:"nationality_code,omitempty"` // 国家编码 25261 ZhName *string `json:"zh_name,omitempty"` // 中文名 25262 EnName *string `json:"en_name,omitempty"` // 英文名 25263 } 25264 25265 type TalentNationalityBuilder struct { 25266 nationalityCode string // 国家编码 25267 nationalityCodeFlag bool 25268 zhName string // 中文名 25269 zhNameFlag bool 25270 enName string // 英文名 25271 enNameFlag bool 25272 } 25273 25274 func NewTalentNationalityBuilder() *TalentNationalityBuilder { 25275 builder := &TalentNationalityBuilder{} 25276 return builder 25277 } 25278 25279 // 国家编码 25280 // 25281 // 示例值:CN_183 25282 func (builder *TalentNationalityBuilder) NationalityCode(nationalityCode string) *TalentNationalityBuilder { 25283 builder.nationalityCode = nationalityCode 25284 builder.nationalityCodeFlag = true 25285 return builder 25286 } 25287 25288 // 中文名 25289 // 25290 // 示例值:测试 25291 func (builder *TalentNationalityBuilder) ZhName(zhName string) *TalentNationalityBuilder { 25292 builder.zhName = zhName 25293 builder.zhNameFlag = true 25294 return builder 25295 } 25296 25297 // 英文名 25298 // 25299 // 示例值:test 25300 func (builder *TalentNationalityBuilder) EnName(enName string) *TalentNationalityBuilder { 25301 builder.enName = enName 25302 builder.enNameFlag = true 25303 return builder 25304 } 25305 25306 func (builder *TalentNationalityBuilder) Build() *TalentNationality { 25307 req := &TalentNationality{} 25308 if builder.nationalityCodeFlag { 25309 req.NationalityCode = &builder.nationalityCode 25310 25311 } 25312 if builder.zhNameFlag { 25313 req.ZhName = &builder.zhName 25314 25315 } 25316 if builder.enNameFlag { 25317 req.EnName = &builder.enName 25318 25319 } 25320 return req 25321 } 25322 25323 type TalentOperationLog struct { 25324 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 25325 TalentId *string `json:"talent_id,omitempty"` // 候选人 ID 25326 Operator *IdNameObject `json:"operator,omitempty"` // 操作人 25327 OperationType *int `json:"operation_type,omitempty"` // 操作类型 25328 OperationTime *string `json:"operation_time,omitempty"` // 操作时间 25329 OperatorType *int `json:"operator_type,omitempty"` // 操作人类型 25330 } 25331 25332 type TalentOperationLogBuilder struct { 25333 applicationId string // 投递 ID 25334 applicationIdFlag bool 25335 talentId string // 候选人 ID 25336 talentIdFlag bool 25337 operator *IdNameObject // 操作人 25338 operatorFlag bool 25339 operationType int // 操作类型 25340 operationTypeFlag bool 25341 operationTime string // 操作时间 25342 operationTimeFlag bool 25343 operatorType int // 操作人类型 25344 operatorTypeFlag bool 25345 } 25346 25347 func NewTalentOperationLogBuilder() *TalentOperationLogBuilder { 25348 builder := &TalentOperationLogBuilder{} 25349 return builder 25350 } 25351 25352 // 投递 ID 25353 // 25354 // 示例值:6949805467799537964 25355 func (builder *TalentOperationLogBuilder) ApplicationId(applicationId string) *TalentOperationLogBuilder { 25356 builder.applicationId = applicationId 25357 builder.applicationIdFlag = true 25358 return builder 25359 } 25360 25361 // 候选人 ID 25362 // 25363 // 示例值:6843547872837273223 25364 func (builder *TalentOperationLogBuilder) TalentId(talentId string) *TalentOperationLogBuilder { 25365 builder.talentId = talentId 25366 builder.talentIdFlag = true 25367 return builder 25368 } 25369 25370 // 操作人 25371 // 25372 // 示例值: 25373 func (builder *TalentOperationLogBuilder) Operator(operator *IdNameObject) *TalentOperationLogBuilder { 25374 builder.operator = operator 25375 builder.operatorFlag = true 25376 return builder 25377 } 25378 25379 // 操作类型 25380 // 25381 // 示例值:"3001" 25382 func (builder *TalentOperationLogBuilder) OperationType(operationType int) *TalentOperationLogBuilder { 25383 builder.operationType = operationType 25384 builder.operationTypeFlag = true 25385 return builder 25386 } 25387 25388 // 操作时间 25389 // 25390 // 示例值:1618500278663 25391 func (builder *TalentOperationLogBuilder) OperationTime(operationTime string) *TalentOperationLogBuilder { 25392 builder.operationTime = operationTime 25393 builder.operationTimeFlag = true 25394 return builder 25395 } 25396 25397 // 操作人类型 25398 // 25399 // 示例值:1 25400 func (builder *TalentOperationLogBuilder) OperatorType(operatorType int) *TalentOperationLogBuilder { 25401 builder.operatorType = operatorType 25402 builder.operatorTypeFlag = true 25403 return builder 25404 } 25405 25406 func (builder *TalentOperationLogBuilder) Build() *TalentOperationLog { 25407 req := &TalentOperationLog{} 25408 if builder.applicationIdFlag { 25409 req.ApplicationId = &builder.applicationId 25410 25411 } 25412 if builder.talentIdFlag { 25413 req.TalentId = &builder.talentId 25414 25415 } 25416 if builder.operatorFlag { 25417 req.Operator = builder.operator 25418 } 25419 if builder.operationTypeFlag { 25420 req.OperationType = &builder.operationType 25421 25422 } 25423 if builder.operationTimeFlag { 25424 req.OperationTime = &builder.operationTime 25425 25426 } 25427 if builder.operatorTypeFlag { 25428 req.OperatorType = &builder.operatorType 25429 25430 } 25431 return req 25432 } 25433 25434 type TalentProjectInfo struct { 25435 Id *string `json:"id,omitempty"` // ID 25436 Name *string `json:"name,omitempty"` // 项目名称 25437 Role *string `json:"role,omitempty"` // 项目角色 25438 Link *string `json:"link,omitempty"` // 项目链接 25439 Desc *string `json:"desc,omitempty"` // 描述 25440 StartTime *string `json:"start_time,omitempty"` // 开始时间 25441 EndTime *string `json:"end_time,omitempty"` // 结束时间 25442 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 25443 } 25444 25445 type TalentProjectInfoBuilder struct { 25446 id string // ID 25447 idFlag bool 25448 name string // 项目名称 25449 nameFlag bool 25450 role string // 项目角色 25451 roleFlag bool 25452 link string // 项目链接 25453 linkFlag bool 25454 desc string // 描述 25455 descFlag bool 25456 startTime string // 开始时间 25457 startTimeFlag bool 25458 endTime string // 结束时间 25459 endTimeFlag bool 25460 customizedDataList []*TalentCustomizedDataChild // 自定义字段 25461 customizedDataListFlag bool 25462 } 25463 25464 func NewTalentProjectInfoBuilder() *TalentProjectInfoBuilder { 25465 builder := &TalentProjectInfoBuilder{} 25466 return builder 25467 } 25468 25469 // ID 25470 // 25471 // 示例值:6891560630172518670 25472 func (builder *TalentProjectInfoBuilder) Id(id string) *TalentProjectInfoBuilder { 25473 builder.id = id 25474 builder.idFlag = true 25475 return builder 25476 } 25477 25478 // 项目名称 25479 // 25480 // 示例值:测试 25481 func (builder *TalentProjectInfoBuilder) Name(name string) *TalentProjectInfoBuilder { 25482 builder.name = name 25483 builder.nameFlag = true 25484 return builder 25485 } 25486 25487 // 项目角色 25488 // 25489 // 示例值:test 25490 func (builder *TalentProjectInfoBuilder) Role(role string) *TalentProjectInfoBuilder { 25491 builder.role = role 25492 builder.roleFlag = true 25493 return builder 25494 } 25495 25496 // 项目链接 25497 // 25498 // 示例值:www.test.com 25499 func (builder *TalentProjectInfoBuilder) Link(link string) *TalentProjectInfoBuilder { 25500 builder.link = link 25501 builder.linkFlag = true 25502 return builder 25503 } 25504 25505 // 描述 25506 // 25507 // 示例值:test 25508 func (builder *TalentProjectInfoBuilder) Desc(desc string) *TalentProjectInfoBuilder { 25509 builder.desc = desc 25510 builder.descFlag = true 25511 return builder 25512 } 25513 25514 // 开始时间 25515 // 25516 // 示例值:1990-01 25517 func (builder *TalentProjectInfoBuilder) StartTime(startTime string) *TalentProjectInfoBuilder { 25518 builder.startTime = startTime 25519 builder.startTimeFlag = true 25520 return builder 25521 } 25522 25523 // 结束时间 25524 // 25525 // 示例值:1991-01 25526 func (builder *TalentProjectInfoBuilder) EndTime(endTime string) *TalentProjectInfoBuilder { 25527 builder.endTime = endTime 25528 builder.endTimeFlag = true 25529 return builder 25530 } 25531 25532 // 自定义字段 25533 // 25534 // 示例值: 25535 func (builder *TalentProjectInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentProjectInfoBuilder { 25536 builder.customizedDataList = customizedDataList 25537 builder.customizedDataListFlag = true 25538 return builder 25539 } 25540 25541 func (builder *TalentProjectInfoBuilder) Build() *TalentProjectInfo { 25542 req := &TalentProjectInfo{} 25543 if builder.idFlag { 25544 req.Id = &builder.id 25545 25546 } 25547 if builder.nameFlag { 25548 req.Name = &builder.name 25549 25550 } 25551 if builder.roleFlag { 25552 req.Role = &builder.role 25553 25554 } 25555 if builder.linkFlag { 25556 req.Link = &builder.link 25557 25558 } 25559 if builder.descFlag { 25560 req.Desc = &builder.desc 25561 25562 } 25563 if builder.startTimeFlag { 25564 req.StartTime = &builder.startTime 25565 25566 } 25567 if builder.endTimeFlag { 25568 req.EndTime = &builder.endTime 25569 25570 } 25571 if builder.customizedDataListFlag { 25572 req.CustomizedDataList = builder.customizedDataList 25573 } 25574 return req 25575 } 25576 25577 type TalentResumeSource struct { 25578 Id *string `json:"id,omitempty"` // ID 25579 ZhName *string `json:"zh_name,omitempty"` // 中文名 25580 EnName *string `json:"en_name,omitempty"` // 英文名 25581 } 25582 25583 type TalentResumeSourceBuilder struct { 25584 id string // ID 25585 idFlag bool 25586 zhName string // 中文名 25587 zhNameFlag bool 25588 enName string // 英文名 25589 enNameFlag bool 25590 } 25591 25592 func NewTalentResumeSourceBuilder() *TalentResumeSourceBuilder { 25593 builder := &TalentResumeSourceBuilder{} 25594 return builder 25595 } 25596 25597 // ID 25598 // 25599 // 示例值:6891560630172518670 25600 func (builder *TalentResumeSourceBuilder) Id(id string) *TalentResumeSourceBuilder { 25601 builder.id = id 25602 builder.idFlag = true 25603 return builder 25604 } 25605 25606 // 中文名 25607 // 25608 // 示例值:猎头 25609 func (builder *TalentResumeSourceBuilder) ZhName(zhName string) *TalentResumeSourceBuilder { 25610 builder.zhName = zhName 25611 builder.zhNameFlag = true 25612 return builder 25613 } 25614 25615 // 英文名 25616 // 25617 // 示例值:Hunter 25618 func (builder *TalentResumeSourceBuilder) EnName(enName string) *TalentResumeSourceBuilder { 25619 builder.enName = enName 25620 builder.enNameFlag = true 25621 return builder 25622 } 25623 25624 func (builder *TalentResumeSourceBuilder) Build() *TalentResumeSource { 25625 req := &TalentResumeSource{} 25626 if builder.idFlag { 25627 req.Id = &builder.id 25628 25629 } 25630 if builder.zhNameFlag { 25631 req.ZhName = &builder.zhName 25632 25633 } 25634 if builder.enNameFlag { 25635 req.EnName = &builder.enName 25636 25637 } 25638 return req 25639 } 25640 25641 type TalentSchema struct { 25642 } 25643 25644 type TalentSchemaChildObject struct { 25645 Id *string `json:"id,omitempty"` // ID 25646 ActiveStatus *int `json:"active_status,omitempty"` // 活跃状态 25647 IsCustomized *bool `json:"is_customized,omitempty"` // 是否自定义 25648 Name *I18n `json:"name,omitempty"` // 名称 25649 OptionList []*TalentSchemaOption `json:"option_list,omitempty"` // 选项 25650 } 25651 25652 type TalentSchemaChildObjectBuilder struct { 25653 id string // ID 25654 idFlag bool 25655 activeStatus int // 活跃状态 25656 activeStatusFlag bool 25657 isCustomized bool // 是否自定义 25658 isCustomizedFlag bool 25659 name *I18n // 名称 25660 nameFlag bool 25661 optionList []*TalentSchemaOption // 选项 25662 optionListFlag bool 25663 } 25664 25665 func NewTalentSchemaChildObjectBuilder() *TalentSchemaChildObjectBuilder { 25666 builder := &TalentSchemaChildObjectBuilder{} 25667 return builder 25668 } 25669 25670 // ID 25671 // 25672 // 示例值: 25673 func (builder *TalentSchemaChildObjectBuilder) Id(id string) *TalentSchemaChildObjectBuilder { 25674 builder.id = id 25675 builder.idFlag = true 25676 return builder 25677 } 25678 25679 // 活跃状态 25680 // 25681 // 示例值: 25682 func (builder *TalentSchemaChildObjectBuilder) ActiveStatus(activeStatus int) *TalentSchemaChildObjectBuilder { 25683 builder.activeStatus = activeStatus 25684 builder.activeStatusFlag = true 25685 return builder 25686 } 25687 25688 // 是否自定义 25689 // 25690 // 示例值: 25691 func (builder *TalentSchemaChildObjectBuilder) IsCustomized(isCustomized bool) *TalentSchemaChildObjectBuilder { 25692 builder.isCustomized = isCustomized 25693 builder.isCustomizedFlag = true 25694 return builder 25695 } 25696 25697 // 名称 25698 // 25699 // 示例值: 25700 func (builder *TalentSchemaChildObjectBuilder) Name(name *I18n) *TalentSchemaChildObjectBuilder { 25701 builder.name = name 25702 builder.nameFlag = true 25703 return builder 25704 } 25705 25706 // 选项 25707 // 25708 // 示例值: 25709 func (builder *TalentSchemaChildObjectBuilder) OptionList(optionList []*TalentSchemaOption) *TalentSchemaChildObjectBuilder { 25710 builder.optionList = optionList 25711 builder.optionListFlag = true 25712 return builder 25713 } 25714 25715 func (builder *TalentSchemaChildObjectBuilder) Build() *TalentSchemaChildObject { 25716 req := &TalentSchemaChildObject{} 25717 if builder.idFlag { 25718 req.Id = &builder.id 25719 25720 } 25721 if builder.activeStatusFlag { 25722 req.ActiveStatus = &builder.activeStatus 25723 25724 } 25725 if builder.isCustomizedFlag { 25726 req.IsCustomized = &builder.isCustomized 25727 25728 } 25729 if builder.nameFlag { 25730 req.Name = builder.name 25731 } 25732 if builder.optionListFlag { 25733 req.OptionList = builder.optionList 25734 } 25735 return req 25736 } 25737 25738 type TalentSchemaObject struct { 25739 Id *string `json:"id,omitempty"` // ID 25740 ActiveStatus *int `json:"active_status,omitempty"` // 活跃状态 25741 IsCustomized *bool `json:"is_customized,omitempty"` // 是否自定义 25742 Name *I18n `json:"name,omitempty"` // 名称 25743 OptionList []*TalentSchemaOption `json:"option_list,omitempty"` // 选项 25744 Children []*TalentSchemaChildObject `json:"children,omitempty"` // 子节点 25745 } 25746 25747 type TalentSchemaObjectBuilder struct { 25748 id string // ID 25749 idFlag bool 25750 activeStatus int // 活跃状态 25751 activeStatusFlag bool 25752 isCustomized bool // 是否自定义 25753 isCustomizedFlag bool 25754 name *I18n // 名称 25755 nameFlag bool 25756 optionList []*TalentSchemaOption // 选项 25757 optionListFlag bool 25758 children []*TalentSchemaChildObject // 子节点 25759 childrenFlag bool 25760 } 25761 25762 func NewTalentSchemaObjectBuilder() *TalentSchemaObjectBuilder { 25763 builder := &TalentSchemaObjectBuilder{} 25764 return builder 25765 } 25766 25767 // ID 25768 // 25769 // 示例值: 25770 func (builder *TalentSchemaObjectBuilder) Id(id string) *TalentSchemaObjectBuilder { 25771 builder.id = id 25772 builder.idFlag = true 25773 return builder 25774 } 25775 25776 // 活跃状态 25777 // 25778 // 示例值: 25779 func (builder *TalentSchemaObjectBuilder) ActiveStatus(activeStatus int) *TalentSchemaObjectBuilder { 25780 builder.activeStatus = activeStatus 25781 builder.activeStatusFlag = true 25782 return builder 25783 } 25784 25785 // 是否自定义 25786 // 25787 // 示例值: 25788 func (builder *TalentSchemaObjectBuilder) IsCustomized(isCustomized bool) *TalentSchemaObjectBuilder { 25789 builder.isCustomized = isCustomized 25790 builder.isCustomizedFlag = true 25791 return builder 25792 } 25793 25794 // 名称 25795 // 25796 // 示例值: 25797 func (builder *TalentSchemaObjectBuilder) Name(name *I18n) *TalentSchemaObjectBuilder { 25798 builder.name = name 25799 builder.nameFlag = true 25800 return builder 25801 } 25802 25803 // 选项 25804 // 25805 // 示例值: 25806 func (builder *TalentSchemaObjectBuilder) OptionList(optionList []*TalentSchemaOption) *TalentSchemaObjectBuilder { 25807 builder.optionList = optionList 25808 builder.optionListFlag = true 25809 return builder 25810 } 25811 25812 // 子节点 25813 // 25814 // 示例值: 25815 func (builder *TalentSchemaObjectBuilder) Children(children []*TalentSchemaChildObject) *TalentSchemaObjectBuilder { 25816 builder.children = children 25817 builder.childrenFlag = true 25818 return builder 25819 } 25820 25821 func (builder *TalentSchemaObjectBuilder) Build() *TalentSchemaObject { 25822 req := &TalentSchemaObject{} 25823 if builder.idFlag { 25824 req.Id = &builder.id 25825 25826 } 25827 if builder.activeStatusFlag { 25828 req.ActiveStatus = &builder.activeStatus 25829 25830 } 25831 if builder.isCustomizedFlag { 25832 req.IsCustomized = &builder.isCustomized 25833 25834 } 25835 if builder.nameFlag { 25836 req.Name = builder.name 25837 } 25838 if builder.optionListFlag { 25839 req.OptionList = builder.optionList 25840 } 25841 if builder.childrenFlag { 25842 req.Children = builder.children 25843 } 25844 return req 25845 } 25846 25847 type TalentSchemaOption struct { 25848 ActiveStatus *int `json:"active_status,omitempty"` // 活跃状态 25849 Value *string `json:"value,omitempty"` // 值 25850 Name *I18n `json:"name,omitempty"` // 名称 25851 } 25852 25853 type TalentSchemaOptionBuilder struct { 25854 activeStatus int // 活跃状态 25855 activeStatusFlag bool 25856 value string // 值 25857 valueFlag bool 25858 name *I18n // 名称 25859 nameFlag bool 25860 } 25861 25862 func NewTalentSchemaOptionBuilder() *TalentSchemaOptionBuilder { 25863 builder := &TalentSchemaOptionBuilder{} 25864 return builder 25865 } 25866 25867 // 活跃状态 25868 // 25869 // 示例值: 25870 func (builder *TalentSchemaOptionBuilder) ActiveStatus(activeStatus int) *TalentSchemaOptionBuilder { 25871 builder.activeStatus = activeStatus 25872 builder.activeStatusFlag = true 25873 return builder 25874 } 25875 25876 // 值 25877 // 25878 // 示例值: 25879 func (builder *TalentSchemaOptionBuilder) Value(value string) *TalentSchemaOptionBuilder { 25880 builder.value = value 25881 builder.valueFlag = true 25882 return builder 25883 } 25884 25885 // 名称 25886 // 25887 // 示例值: 25888 func (builder *TalentSchemaOptionBuilder) Name(name *I18n) *TalentSchemaOptionBuilder { 25889 builder.name = name 25890 builder.nameFlag = true 25891 return builder 25892 } 25893 25894 func (builder *TalentSchemaOptionBuilder) Build() *TalentSchemaOption { 25895 req := &TalentSchemaOption{} 25896 if builder.activeStatusFlag { 25897 req.ActiveStatus = &builder.activeStatus 25898 25899 } 25900 if builder.valueFlag { 25901 req.Value = &builder.value 25902 25903 } 25904 if builder.nameFlag { 25905 req.Name = builder.name 25906 } 25907 return req 25908 } 25909 25910 type TalentSelfEvaluation struct { 25911 Id *string `json:"id,omitempty"` // ID 25912 Content *string `json:"content,omitempty"` // 内容 25913 CustomizedData []*TalentCustomizedDataObjectValue `json:"customized_data,omitempty"` // 自定义字段 25914 } 25915 25916 type TalentSelfEvaluationBuilder struct { 25917 id string // ID 25918 idFlag bool 25919 content string // 内容 25920 contentFlag bool 25921 customizedData []*TalentCustomizedDataObjectValue // 自定义字段 25922 customizedDataFlag bool 25923 } 25924 25925 func NewTalentSelfEvaluationBuilder() *TalentSelfEvaluationBuilder { 25926 builder := &TalentSelfEvaluationBuilder{} 25927 return builder 25928 } 25929 25930 // ID 25931 // 25932 // 示例值:6891560630172518670 25933 func (builder *TalentSelfEvaluationBuilder) Id(id string) *TalentSelfEvaluationBuilder { 25934 builder.id = id 25935 builder.idFlag = true 25936 return builder 25937 } 25938 25939 // 内容 25940 // 25941 // 示例值:自我评价:平常心 25942 func (builder *TalentSelfEvaluationBuilder) Content(content string) *TalentSelfEvaluationBuilder { 25943 builder.content = content 25944 builder.contentFlag = true 25945 return builder 25946 } 25947 25948 // 自定义字段 25949 // 25950 // 示例值: 25951 func (builder *TalentSelfEvaluationBuilder) CustomizedData(customizedData []*TalentCustomizedDataObjectValue) *TalentSelfEvaluationBuilder { 25952 builder.customizedData = customizedData 25953 builder.customizedDataFlag = true 25954 return builder 25955 } 25956 25957 func (builder *TalentSelfEvaluationBuilder) Build() *TalentSelfEvaluation { 25958 req := &TalentSelfEvaluation{} 25959 if builder.idFlag { 25960 req.Id = &builder.id 25961 25962 } 25963 if builder.contentFlag { 25964 req.Content = &builder.content 25965 25966 } 25967 if builder.customizedDataFlag { 25968 req.CustomizedData = builder.customizedData 25969 } 25970 return req 25971 } 25972 25973 type TalentSnsInfo struct { 25974 Id *string `json:"id,omitempty"` // ID 25975 SnsType *int `json:"sns_type,omitempty"` // SNS名称 25976 Link *string `json:"link,omitempty"` // URL/ID 25977 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 25978 } 25979 25980 type TalentSnsInfoBuilder struct { 25981 id string // ID 25982 idFlag bool 25983 snsType int // SNS名称 25984 snsTypeFlag bool 25985 link string // URL/ID 25986 linkFlag bool 25987 customizedDataList []*TalentCustomizedDataChild // 自定义字段 25988 customizedDataListFlag bool 25989 } 25990 25991 func NewTalentSnsInfoBuilder() *TalentSnsInfoBuilder { 25992 builder := &TalentSnsInfoBuilder{} 25993 return builder 25994 } 25995 25996 // ID 25997 // 25998 // 示例值:6891560630172518670 25999 func (builder *TalentSnsInfoBuilder) Id(id string) *TalentSnsInfoBuilder { 26000 builder.id = id 26001 builder.idFlag = true 26002 return builder 26003 } 26004 26005 // SNS名称 26006 // 26007 // 示例值:1 26008 func (builder *TalentSnsInfoBuilder) SnsType(snsType int) *TalentSnsInfoBuilder { 26009 builder.snsType = snsType 26010 builder.snsTypeFlag = true 26011 return builder 26012 } 26013 26014 // URL/ID 26015 // 26016 // 示例值:www.test.com 26017 func (builder *TalentSnsInfoBuilder) Link(link string) *TalentSnsInfoBuilder { 26018 builder.link = link 26019 builder.linkFlag = true 26020 return builder 26021 } 26022 26023 // 自定义字段 26024 // 26025 // 示例值: 26026 func (builder *TalentSnsInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentSnsInfoBuilder { 26027 builder.customizedDataList = customizedDataList 26028 builder.customizedDataListFlag = true 26029 return builder 26030 } 26031 26032 func (builder *TalentSnsInfoBuilder) Build() *TalentSnsInfo { 26033 req := &TalentSnsInfo{} 26034 if builder.idFlag { 26035 req.Id = &builder.id 26036 26037 } 26038 if builder.snsTypeFlag { 26039 req.SnsType = &builder.snsType 26040 26041 } 26042 if builder.linkFlag { 26043 req.Link = &builder.link 26044 26045 } 26046 if builder.customizedDataListFlag { 26047 req.CustomizedDataList = builder.customizedDataList 26048 } 26049 return req 26050 } 26051 26052 type TalentWorksInfo struct { 26053 Id *string `json:"id,omitempty"` // ID 26054 Link *string `json:"link,omitempty"` // 作品链接 26055 Desc *string `json:"desc,omitempty"` // 描述 26056 Name *string `json:"name,omitempty"` // 作品附件名称,若需获取作品附件预览信息可调用「获取附件预览信息」接口 26057 CustomizedDataList []*TalentCustomizedDataChild `json:"customized_data_list,omitempty"` // 自定义字段 26058 } 26059 26060 type TalentWorksInfoBuilder struct { 26061 id string // ID 26062 idFlag bool 26063 link string // 作品链接 26064 linkFlag bool 26065 desc string // 描述 26066 descFlag bool 26067 name string // 作品附件名称,若需获取作品附件预览信息可调用「获取附件预览信息」接口 26068 nameFlag bool 26069 customizedDataList []*TalentCustomizedDataChild // 自定义字段 26070 customizedDataListFlag bool 26071 } 26072 26073 func NewTalentWorksInfoBuilder() *TalentWorksInfoBuilder { 26074 builder := &TalentWorksInfoBuilder{} 26075 return builder 26076 } 26077 26078 // ID 26079 // 26080 // 示例值:6891560630172518670 26081 func (builder *TalentWorksInfoBuilder) Id(id string) *TalentWorksInfoBuilder { 26082 builder.id = id 26083 builder.idFlag = true 26084 return builder 26085 } 26086 26087 // 作品链接 26088 // 26089 // 示例值:www.test.com 26090 func (builder *TalentWorksInfoBuilder) Link(link string) *TalentWorksInfoBuilder { 26091 builder.link = link 26092 builder.linkFlag = true 26093 return builder 26094 } 26095 26096 // 描述 26097 // 26098 // 示例值:test 26099 func (builder *TalentWorksInfoBuilder) Desc(desc string) *TalentWorksInfoBuilder { 26100 builder.desc = desc 26101 builder.descFlag = true 26102 return builder 26103 } 26104 26105 // 作品附件名称,若需获取作品附件预览信息可调用「获取附件预览信息」接口 26106 // 26107 // 示例值:XX项目 26108 func (builder *TalentWorksInfoBuilder) Name(name string) *TalentWorksInfoBuilder { 26109 builder.name = name 26110 builder.nameFlag = true 26111 return builder 26112 } 26113 26114 // 自定义字段 26115 // 26116 // 示例值: 26117 func (builder *TalentWorksInfoBuilder) CustomizedDataList(customizedDataList []*TalentCustomizedDataChild) *TalentWorksInfoBuilder { 26118 builder.customizedDataList = customizedDataList 26119 builder.customizedDataListFlag = true 26120 return builder 26121 } 26122 26123 func (builder *TalentWorksInfoBuilder) Build() *TalentWorksInfo { 26124 req := &TalentWorksInfo{} 26125 if builder.idFlag { 26126 req.Id = &builder.id 26127 26128 } 26129 if builder.linkFlag { 26130 req.Link = &builder.link 26131 26132 } 26133 if builder.descFlag { 26134 req.Desc = &builder.desc 26135 26136 } 26137 if builder.nameFlag { 26138 req.Name = &builder.name 26139 26140 } 26141 if builder.customizedDataListFlag { 26142 req.CustomizedDataList = builder.customizedDataList 26143 } 26144 return req 26145 } 26146 26147 type TerminationReason struct { 26148 Id *string `json:"id,omitempty"` // 终止原因 ID 26149 Name *I18n `json:"name,omitempty"` // 终止原因名称 26150 ReferralName *I18n `json:"referral_name,omitempty"` // 内推渠道展示文案 26151 TerminationType *int `json:"termination_type,omitempty"` // 终止原因类型 26152 IsUsedAsEvaluation *bool `json:"is_used_as_evaluation,omitempty"` // 是否用于评估 26153 ActiveStatus *int `json:"active_status,omitempty"` // 状态 26154 } 26155 26156 type TerminationReasonBuilder struct { 26157 id string // 终止原因 ID 26158 idFlag bool 26159 name *I18n // 终止原因名称 26160 nameFlag bool 26161 referralName *I18n // 内推渠道展示文案 26162 referralNameFlag bool 26163 terminationType int // 终止原因类型 26164 terminationTypeFlag bool 26165 isUsedAsEvaluation bool // 是否用于评估 26166 isUsedAsEvaluationFlag bool 26167 activeStatus int // 状态 26168 activeStatusFlag bool 26169 } 26170 26171 func NewTerminationReasonBuilder() *TerminationReasonBuilder { 26172 builder := &TerminationReasonBuilder{} 26173 return builder 26174 } 26175 26176 // 终止原因 ID 26177 // 26178 // 示例值:10002 26179 func (builder *TerminationReasonBuilder) Id(id string) *TerminationReasonBuilder { 26180 builder.id = id 26181 builder.idFlag = true 26182 return builder 26183 } 26184 26185 // 终止原因名称 26186 // 26187 // 示例值: 26188 func (builder *TerminationReasonBuilder) Name(name *I18n) *TerminationReasonBuilder { 26189 builder.name = name 26190 builder.nameFlag = true 26191 return builder 26192 } 26193 26194 // 内推渠道展示文案 26195 // 26196 // 示例值: 26197 func (builder *TerminationReasonBuilder) ReferralName(referralName *I18n) *TerminationReasonBuilder { 26198 builder.referralName = referralName 26199 builder.referralNameFlag = true 26200 return builder 26201 } 26202 26203 // 终止原因类型 26204 // 26205 // 示例值:22 26206 func (builder *TerminationReasonBuilder) TerminationType(terminationType int) *TerminationReasonBuilder { 26207 builder.terminationType = terminationType 26208 builder.terminationTypeFlag = true 26209 return builder 26210 } 26211 26212 // 是否用于评估 26213 // 26214 // 示例值:false 26215 func (builder *TerminationReasonBuilder) IsUsedAsEvaluation(isUsedAsEvaluation bool) *TerminationReasonBuilder { 26216 builder.isUsedAsEvaluation = isUsedAsEvaluation 26217 builder.isUsedAsEvaluationFlag = true 26218 return builder 26219 } 26220 26221 // 状态 26222 // 26223 // 示例值:1 26224 func (builder *TerminationReasonBuilder) ActiveStatus(activeStatus int) *TerminationReasonBuilder { 26225 builder.activeStatus = activeStatus 26226 builder.activeStatusFlag = true 26227 return builder 26228 } 26229 26230 func (builder *TerminationReasonBuilder) Build() *TerminationReason { 26231 req := &TerminationReason{} 26232 if builder.idFlag { 26233 req.Id = &builder.id 26234 26235 } 26236 if builder.nameFlag { 26237 req.Name = builder.name 26238 } 26239 if builder.referralNameFlag { 26240 req.ReferralName = builder.referralName 26241 } 26242 if builder.terminationTypeFlag { 26243 req.TerminationType = &builder.terminationType 26244 26245 } 26246 if builder.isUsedAsEvaluationFlag { 26247 req.IsUsedAsEvaluation = &builder.isUsedAsEvaluation 26248 26249 } 26250 if builder.activeStatusFlag { 26251 req.ActiveStatus = &builder.activeStatus 26252 26253 } 26254 return req 26255 } 26256 26257 type Test struct { 26258 TestId *string `json:"test_id,omitempty"` // 笔试 ID 26259 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 26260 TestPaperId *string `json:"test_paper_id,omitempty"` // 试卷 ID 26261 TestPaperName *string `json:"test_paper_name,omitempty"` // 试卷名称 26262 TestPaperSourceId *string `json:"test_paper_source_id,omitempty"` // 试卷来源 ID 26263 TestPaperSourceName *I18n `json:"test_paper_source_name,omitempty"` // 试卷来源名称 26264 ReplyStatus *int `json:"reply_status,omitempty"` // 笔试答复状态 26265 TestStatus *int `json:"test_status,omitempty"` // 笔试状态 26266 TestSchedule *TestSchedule `json:"test_schedule,omitempty"` // 笔试时间 26267 TestCompleteTime *string `json:"test_complete_time,omitempty"` // 笔试作答完成时间 26268 ReportUrlList []string `json:"report_url_list,omitempty"` // 笔试报告链接列表 26269 ResultDetailList []*TestResultDetail `json:"result_detail_list,omitempty"` // 笔试详细成绩 26270 ResultUploadTime *string `json:"result_upload_time,omitempty"` // 笔试结果上传时间(手动录入的笔试成绩具有) 26271 Score *string `json:"score,omitempty"` // 阅卷得分 26272 ScoreSubmitTime *string `json:"score_submit_time,omitempty"` // 阅卷结果提交时间(若重复提交,则为最新提交时间) 26273 Reviewer *string `json:"reviewer,omitempty"` // 阅卷人,值类型由 user_id_type 查询参数决定 26274 CreatedAt *string `json:"created_at,omitempty"` // 笔试创建时间 26275 } 26276 26277 type TestBuilder struct { 26278 testId string // 笔试 ID 26279 testIdFlag bool 26280 applicationId string // 投递 ID 26281 applicationIdFlag bool 26282 testPaperId string // 试卷 ID 26283 testPaperIdFlag bool 26284 testPaperName string // 试卷名称 26285 testPaperNameFlag bool 26286 testPaperSourceId string // 试卷来源 ID 26287 testPaperSourceIdFlag bool 26288 testPaperSourceName *I18n // 试卷来源名称 26289 testPaperSourceNameFlag bool 26290 replyStatus int // 笔试答复状态 26291 replyStatusFlag bool 26292 testStatus int // 笔试状态 26293 testStatusFlag bool 26294 testSchedule *TestSchedule // 笔试时间 26295 testScheduleFlag bool 26296 testCompleteTime string // 笔试作答完成时间 26297 testCompleteTimeFlag bool 26298 reportUrlList []string // 笔试报告链接列表 26299 reportUrlListFlag bool 26300 resultDetailList []*TestResultDetail // 笔试详细成绩 26301 resultDetailListFlag bool 26302 resultUploadTime string // 笔试结果上传时间(手动录入的笔试成绩具有) 26303 resultUploadTimeFlag bool 26304 score string // 阅卷得分 26305 scoreFlag bool 26306 scoreSubmitTime string // 阅卷结果提交时间(若重复提交,则为最新提交时间) 26307 scoreSubmitTimeFlag bool 26308 reviewer string // 阅卷人,值类型由 user_id_type 查询参数决定 26309 reviewerFlag bool 26310 createdAt string // 笔试创建时间 26311 createdAtFlag bool 26312 } 26313 26314 func NewTestBuilder() *TestBuilder { 26315 builder := &TestBuilder{} 26316 return builder 26317 } 26318 26319 // 笔试 ID 26320 // 26321 // 示例值:6963784391454918956 26322 func (builder *TestBuilder) TestId(testId string) *TestBuilder { 26323 builder.testId = testId 26324 builder.testIdFlag = true 26325 return builder 26326 } 26327 26328 // 投递 ID 26329 // 26330 // 示例值:6920544531948800269 26331 func (builder *TestBuilder) ApplicationId(applicationId string) *TestBuilder { 26332 builder.applicationId = applicationId 26333 builder.applicationIdFlag = true 26334 return builder 26335 } 26336 26337 // 试卷 ID 26338 // 26339 // 示例值:6963549885526346028 26340 func (builder *TestBuilder) TestPaperId(testPaperId string) *TestBuilder { 26341 builder.testPaperId = testPaperId 26342 builder.testPaperIdFlag = true 26343 return builder 26344 } 26345 26346 // 试卷名称 26347 // 26348 // 示例值:数据结构测验 26349 func (builder *TestBuilder) TestPaperName(testPaperName string) *TestBuilder { 26350 builder.testPaperName = testPaperName 26351 builder.testPaperNameFlag = true 26352 return builder 26353 } 26354 26355 // 试卷来源 ID 26356 // 26357 // 示例值:5 26358 func (builder *TestBuilder) TestPaperSourceId(testPaperSourceId string) *TestBuilder { 26359 builder.testPaperSourceId = testPaperSourceId 26360 builder.testPaperSourceIdFlag = true 26361 return builder 26362 } 26363 26364 // 试卷来源名称 26365 // 26366 // 示例值: 26367 func (builder *TestBuilder) TestPaperSourceName(testPaperSourceName *I18n) *TestBuilder { 26368 builder.testPaperSourceName = testPaperSourceName 26369 builder.testPaperSourceNameFlag = true 26370 return builder 26371 } 26372 26373 // 笔试答复状态 26374 // 26375 // 示例值:1 26376 func (builder *TestBuilder) ReplyStatus(replyStatus int) *TestBuilder { 26377 builder.replyStatus = replyStatus 26378 builder.replyStatusFlag = true 26379 return builder 26380 } 26381 26382 // 笔试状态 26383 // 26384 // 示例值:1 26385 func (builder *TestBuilder) TestStatus(testStatus int) *TestBuilder { 26386 builder.testStatus = testStatus 26387 builder.testStatusFlag = true 26388 return builder 26389 } 26390 26391 // 笔试时间 26392 // 26393 // 示例值: 26394 func (builder *TestBuilder) TestSchedule(testSchedule *TestSchedule) *TestBuilder { 26395 builder.testSchedule = testSchedule 26396 builder.testScheduleFlag = true 26397 return builder 26398 } 26399 26400 // 笔试作答完成时间 26401 // 26402 // 示例值:1608725989000 26403 func (builder *TestBuilder) TestCompleteTime(testCompleteTime string) *TestBuilder { 26404 builder.testCompleteTime = testCompleteTime 26405 builder.testCompleteTimeFlag = true 26406 return builder 26407 } 26408 26409 // 笔试报告链接列表 26410 // 26411 // 示例值: 26412 func (builder *TestBuilder) ReportUrlList(reportUrlList []string) *TestBuilder { 26413 builder.reportUrlList = reportUrlList 26414 builder.reportUrlListFlag = true 26415 return builder 26416 } 26417 26418 // 笔试详细成绩 26419 // 26420 // 示例值: 26421 func (builder *TestBuilder) ResultDetailList(resultDetailList []*TestResultDetail) *TestBuilder { 26422 builder.resultDetailList = resultDetailList 26423 builder.resultDetailListFlag = true 26424 return builder 26425 } 26426 26427 // 笔试结果上传时间(手动录入的笔试成绩具有) 26428 // 26429 // 示例值:1608725989000 26430 func (builder *TestBuilder) ResultUploadTime(resultUploadTime string) *TestBuilder { 26431 builder.resultUploadTime = resultUploadTime 26432 builder.resultUploadTimeFlag = true 26433 return builder 26434 } 26435 26436 // 阅卷得分 26437 // 26438 // 示例值:60 26439 func (builder *TestBuilder) Score(score string) *TestBuilder { 26440 builder.score = score 26441 builder.scoreFlag = true 26442 return builder 26443 } 26444 26445 // 阅卷结果提交时间(若重复提交,则为最新提交时间) 26446 // 26447 // 示例值:1608725989000 26448 func (builder *TestBuilder) ScoreSubmitTime(scoreSubmitTime string) *TestBuilder { 26449 builder.scoreSubmitTime = scoreSubmitTime 26450 builder.scoreSubmitTimeFlag = true 26451 return builder 26452 } 26453 26454 // 阅卷人,值类型由 user_id_type 查询参数决定 26455 // 26456 // 示例值:ou_266ed047ed37f24554e5a0afdbb15556 26457 func (builder *TestBuilder) Reviewer(reviewer string) *TestBuilder { 26458 builder.reviewer = reviewer 26459 builder.reviewerFlag = true 26460 return builder 26461 } 26462 26463 // 笔试创建时间 26464 // 26465 // 示例值:1608725989000 26466 func (builder *TestBuilder) CreatedAt(createdAt string) *TestBuilder { 26467 builder.createdAt = createdAt 26468 builder.createdAtFlag = true 26469 return builder 26470 } 26471 26472 func (builder *TestBuilder) Build() *Test { 26473 req := &Test{} 26474 if builder.testIdFlag { 26475 req.TestId = &builder.testId 26476 26477 } 26478 if builder.applicationIdFlag { 26479 req.ApplicationId = &builder.applicationId 26480 26481 } 26482 if builder.testPaperIdFlag { 26483 req.TestPaperId = &builder.testPaperId 26484 26485 } 26486 if builder.testPaperNameFlag { 26487 req.TestPaperName = &builder.testPaperName 26488 26489 } 26490 if builder.testPaperSourceIdFlag { 26491 req.TestPaperSourceId = &builder.testPaperSourceId 26492 26493 } 26494 if builder.testPaperSourceNameFlag { 26495 req.TestPaperSourceName = builder.testPaperSourceName 26496 } 26497 if builder.replyStatusFlag { 26498 req.ReplyStatus = &builder.replyStatus 26499 26500 } 26501 if builder.testStatusFlag { 26502 req.TestStatus = &builder.testStatus 26503 26504 } 26505 if builder.testScheduleFlag { 26506 req.TestSchedule = builder.testSchedule 26507 } 26508 if builder.testCompleteTimeFlag { 26509 req.TestCompleteTime = &builder.testCompleteTime 26510 26511 } 26512 if builder.reportUrlListFlag { 26513 req.ReportUrlList = builder.reportUrlList 26514 } 26515 if builder.resultDetailListFlag { 26516 req.ResultDetailList = builder.resultDetailList 26517 } 26518 if builder.resultUploadTimeFlag { 26519 req.ResultUploadTime = &builder.resultUploadTime 26520 26521 } 26522 if builder.scoreFlag { 26523 req.Score = &builder.score 26524 26525 } 26526 if builder.scoreSubmitTimeFlag { 26527 req.ScoreSubmitTime = &builder.scoreSubmitTime 26528 26529 } 26530 if builder.reviewerFlag { 26531 req.Reviewer = &builder.reviewer 26532 26533 } 26534 if builder.createdAtFlag { 26535 req.CreatedAt = &builder.createdAt 26536 26537 } 26538 return req 26539 } 26540 26541 type TestResultDetail struct { 26542 Subject *string `json:"subject,omitempty"` // 笔试科目 26543 Result *string `json:"result,omitempty"` // 笔试科目结论 26544 } 26545 26546 type TestResultDetailBuilder struct { 26547 subject string // 笔试科目 26548 subjectFlag bool 26549 result string // 笔试科目结论 26550 resultFlag bool 26551 } 26552 26553 func NewTestResultDetailBuilder() *TestResultDetailBuilder { 26554 builder := &TestResultDetailBuilder{} 26555 return builder 26556 } 26557 26558 // 笔试科目 26559 // 26560 // 示例值:定制化报告测验 26561 func (builder *TestResultDetailBuilder) Subject(subject string) *TestResultDetailBuilder { 26562 builder.subject = subject 26563 builder.subjectFlag = true 26564 return builder 26565 } 26566 26567 // 笔试科目结论 26568 // 26569 // 示例值:合格 26570 func (builder *TestResultDetailBuilder) Result(result string) *TestResultDetailBuilder { 26571 builder.result = result 26572 builder.resultFlag = true 26573 return builder 26574 } 26575 26576 func (builder *TestResultDetailBuilder) Build() *TestResultDetail { 26577 req := &TestResultDetail{} 26578 if builder.subjectFlag { 26579 req.Subject = &builder.subject 26580 26581 } 26582 if builder.resultFlag { 26583 req.Result = &builder.result 26584 26585 } 26586 return req 26587 } 26588 26589 type TestSchedule struct { 26590 StartTime *string `json:"start_time,omitempty"` // 开始时间 26591 EndTime *string `json:"end_time,omitempty"` // 结束时间 26592 } 26593 26594 type TestScheduleBuilder struct { 26595 startTime string // 开始时间 26596 startTimeFlag bool 26597 endTime string // 结束时间 26598 endTimeFlag bool 26599 } 26600 26601 func NewTestScheduleBuilder() *TestScheduleBuilder { 26602 builder := &TestScheduleBuilder{} 26603 return builder 26604 } 26605 26606 // 开始时间 26607 // 26608 // 示例值:1621390695000 26609 func (builder *TestScheduleBuilder) StartTime(startTime string) *TestScheduleBuilder { 26610 builder.startTime = startTime 26611 builder.startTimeFlag = true 26612 return builder 26613 } 26614 26615 // 结束时间 26616 // 26617 // 示例值:1632839400000 26618 func (builder *TestScheduleBuilder) EndTime(endTime string) *TestScheduleBuilder { 26619 builder.endTime = endTime 26620 builder.endTimeFlag = true 26621 return builder 26622 } 26623 26624 func (builder *TestScheduleBuilder) Build() *TestSchedule { 26625 req := &TestSchedule{} 26626 if builder.startTimeFlag { 26627 req.StartTime = &builder.startTime 26628 26629 } 26630 if builder.endTimeFlag { 26631 req.EndTime = &builder.endTime 26632 26633 } 26634 return req 26635 } 26636 26637 type Todo struct { 26638 Evaluation *TodoCommon `json:"evaluation,omitempty"` // 简历评估待办信息,仅当 type=evaluation 时返回 26639 Offer *TodoCommon `json:"offer,omitempty"` // Offer 待办信息,仅当 type=offer 时返回 26640 Exam *TodoCommon `json:"exam,omitempty"` // 笔试待办信息,仅当 type=exam 时返回 26641 Interview *TodoCommon `json:"interview,omitempty"` // 面试待办信息,仅当 type=interview 时返回 26642 } 26643 26644 type TodoBuilder struct { 26645 evaluation *TodoCommon // 简历评估待办信息,仅当 type=evaluation 时返回 26646 evaluationFlag bool 26647 offer *TodoCommon // Offer 待办信息,仅当 type=offer 时返回 26648 offerFlag bool 26649 exam *TodoCommon // 笔试待办信息,仅当 type=exam 时返回 26650 examFlag bool 26651 interview *TodoCommon // 面试待办信息,仅当 type=interview 时返回 26652 interviewFlag bool 26653 } 26654 26655 func NewTodoBuilder() *TodoBuilder { 26656 builder := &TodoBuilder{} 26657 return builder 26658 } 26659 26660 // 简历评估待办信息,仅当 type=evaluation 时返回 26661 // 26662 // 示例值: 26663 func (builder *TodoBuilder) Evaluation(evaluation *TodoCommon) *TodoBuilder { 26664 builder.evaluation = evaluation 26665 builder.evaluationFlag = true 26666 return builder 26667 } 26668 26669 // Offer 待办信息,仅当 type=offer 时返回 26670 // 26671 // 示例值: 26672 func (builder *TodoBuilder) Offer(offer *TodoCommon) *TodoBuilder { 26673 builder.offer = offer 26674 builder.offerFlag = true 26675 return builder 26676 } 26677 26678 // 笔试待办信息,仅当 type=exam 时返回 26679 // 26680 // 示例值: 26681 func (builder *TodoBuilder) Exam(exam *TodoCommon) *TodoBuilder { 26682 builder.exam = exam 26683 builder.examFlag = true 26684 return builder 26685 } 26686 26687 // 面试待办信息,仅当 type=interview 时返回 26688 // 26689 // 示例值: 26690 func (builder *TodoBuilder) Interview(interview *TodoCommon) *TodoBuilder { 26691 builder.interview = interview 26692 builder.interviewFlag = true 26693 return builder 26694 } 26695 26696 func (builder *TodoBuilder) Build() *Todo { 26697 req := &Todo{} 26698 if builder.evaluationFlag { 26699 req.Evaluation = builder.evaluation 26700 } 26701 if builder.offerFlag { 26702 req.Offer = builder.offer 26703 } 26704 if builder.examFlag { 26705 req.Exam = builder.exam 26706 } 26707 if builder.interviewFlag { 26708 req.Interview = builder.interview 26709 } 26710 return req 26711 } 26712 26713 type TodoCommon struct { 26714 TalentId *string `json:"talent_id,omitempty"` // 候选人 ID 26715 JobId *string `json:"job_id,omitempty"` // 职位 ID 26716 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 26717 Id *string `json:"id,omitempty"` // ID 26718 } 26719 26720 type TodoCommonBuilder struct { 26721 talentId string // 候选人 ID 26722 talentIdFlag bool 26723 jobId string // 职位 ID 26724 jobIdFlag bool 26725 applicationId string // 投递 ID 26726 applicationIdFlag bool 26727 id string // ID 26728 idFlag bool 26729 } 26730 26731 func NewTodoCommonBuilder() *TodoCommonBuilder { 26732 builder := &TodoCommonBuilder{} 26733 return builder 26734 } 26735 26736 // 候选人 ID 26737 // 26738 // 示例值:6891524011667228941 26739 func (builder *TodoCommonBuilder) TalentId(talentId string) *TodoCommonBuilder { 26740 builder.talentId = talentId 26741 builder.talentIdFlag = true 26742 return builder 26743 } 26744 26745 // 职位 ID 26746 // 26747 // 示例值:6891113155221522701 26748 func (builder *TodoCommonBuilder) JobId(jobId string) *TodoCommonBuilder { 26749 builder.jobId = jobId 26750 builder.jobIdFlag = true 26751 return builder 26752 } 26753 26754 // 投递 ID 26755 // 26756 // 示例值:6945436033023625516 26757 func (builder *TodoCommonBuilder) ApplicationId(applicationId string) *TodoCommonBuilder { 26758 builder.applicationId = applicationId 26759 builder.applicationIdFlag = true 26760 return builder 26761 } 26762 26763 // ID 26764 // 26765 // 示例值:6914542162822695181 26766 func (builder *TodoCommonBuilder) Id(id string) *TodoCommonBuilder { 26767 builder.id = id 26768 builder.idFlag = true 26769 return builder 26770 } 26771 26772 func (builder *TodoCommonBuilder) Build() *TodoCommon { 26773 req := &TodoCommon{} 26774 if builder.talentIdFlag { 26775 req.TalentId = &builder.talentId 26776 26777 } 26778 if builder.jobIdFlag { 26779 req.JobId = &builder.jobId 26780 26781 } 26782 if builder.applicationIdFlag { 26783 req.ApplicationId = &builder.applicationId 26784 26785 } 26786 if builder.idFlag { 26787 req.Id = &builder.id 26788 26789 } 26790 return req 26791 } 26792 26793 type UserRole struct { 26794 UserId *string `json:"user_id,omitempty"` // 用户 ID 26795 RoleId *string `json:"role_id,omitempty"` // 角色 ID 26796 ModifyTime *string `json:"modify_time,omitempty"` // 修改时间 26797 } 26798 26799 type UserRoleBuilder struct { 26800 userId string // 用户 ID 26801 userIdFlag bool 26802 roleId string // 角色 ID 26803 roleIdFlag bool 26804 modifyTime string // 修改时间 26805 modifyTimeFlag bool 26806 } 26807 26808 func NewUserRoleBuilder() *UserRoleBuilder { 26809 builder := &UserRoleBuilder{} 26810 return builder 26811 } 26812 26813 // 用户 ID 26814 // 26815 // 示例值:ou_49772cf5d2d19ebb5059de777a4dd487 26816 func (builder *UserRoleBuilder) UserId(userId string) *UserRoleBuilder { 26817 builder.userId = userId 26818 builder.userIdFlag = true 26819 return builder 26820 } 26821 26822 // 角色 ID 26823 // 26824 // 示例值:101 26825 func (builder *UserRoleBuilder) RoleId(roleId string) *UserRoleBuilder { 26826 builder.roleId = roleId 26827 builder.roleIdFlag = true 26828 return builder 26829 } 26830 26831 // 修改时间 26832 // 26833 // 示例值:1618500278663 26834 func (builder *UserRoleBuilder) ModifyTime(modifyTime string) *UserRoleBuilder { 26835 builder.modifyTime = modifyTime 26836 builder.modifyTimeFlag = true 26837 return builder 26838 } 26839 26840 func (builder *UserRoleBuilder) Build() *UserRole { 26841 req := &UserRole{} 26842 if builder.userIdFlag { 26843 req.UserId = &builder.userId 26844 26845 } 26846 if builder.roleIdFlag { 26847 req.RoleId = &builder.roleId 26848 26849 } 26850 if builder.modifyTimeFlag { 26851 req.ModifyTime = &builder.modifyTime 26852 26853 } 26854 return req 26855 } 26856 26857 type Website struct { 26858 Id *string `json:"id,omitempty"` // ID 26859 Name *I18n `json:"name,omitempty"` // 名称 26860 ProcessTypeList []string `json:"process_type_list,omitempty"` // 流程类型,1-社招,2-校招 26861 JobChannelId *string `json:"job_channel_id,omitempty"` // 职位渠道ID 26862 } 26863 26864 type WebsiteBuilder struct { 26865 id string // ID 26866 idFlag bool 26867 name *I18n // 名称 26868 nameFlag bool 26869 processTypeList []string // 流程类型,1-社招,2-校招 26870 processTypeListFlag bool 26871 jobChannelId string // 职位渠道ID 26872 jobChannelIdFlag bool 26873 } 26874 26875 func NewWebsiteBuilder() *WebsiteBuilder { 26876 builder := &WebsiteBuilder{} 26877 return builder 26878 } 26879 26880 // ID 26881 // 26882 // 示例值:1213213123123 26883 func (builder *WebsiteBuilder) Id(id string) *WebsiteBuilder { 26884 builder.id = id 26885 builder.idFlag = true 26886 return builder 26887 } 26888 26889 // 名称 26890 // 26891 // 示例值: 26892 func (builder *WebsiteBuilder) Name(name *I18n) *WebsiteBuilder { 26893 builder.name = name 26894 builder.nameFlag = true 26895 return builder 26896 } 26897 26898 // 流程类型,1-社招,2-校招 26899 // 26900 // 示例值: 26901 func (builder *WebsiteBuilder) ProcessTypeList(processTypeList []string) *WebsiteBuilder { 26902 builder.processTypeList = processTypeList 26903 builder.processTypeListFlag = true 26904 return builder 26905 } 26906 26907 // 职位渠道ID 26908 // 26909 // 示例值:1213213123123 26910 func (builder *WebsiteBuilder) JobChannelId(jobChannelId string) *WebsiteBuilder { 26911 builder.jobChannelId = jobChannelId 26912 builder.jobChannelIdFlag = true 26913 return builder 26914 } 26915 26916 func (builder *WebsiteBuilder) Build() *Website { 26917 req := &Website{} 26918 if builder.idFlag { 26919 req.Id = &builder.id 26920 26921 } 26922 if builder.nameFlag { 26923 req.Name = builder.name 26924 } 26925 if builder.processTypeListFlag { 26926 req.ProcessTypeList = builder.processTypeList 26927 } 26928 if builder.jobChannelIdFlag { 26929 req.JobChannelId = &builder.jobChannelId 26930 26931 } 26932 return req 26933 } 26934 26935 type WebsiteChannelInfo struct { 26936 Id *string `json:"id,omitempty"` // 推广渠道 ID 26937 Name *string `json:"name,omitempty"` // 推广渠道名称 26938 Link *string `json:"link,omitempty"` // 推广渠道链接 26939 Code *string `json:"code,omitempty"` // 推广渠道推广码 26940 } 26941 26942 type WebsiteChannelInfoBuilder struct { 26943 id string // 推广渠道 ID 26944 idFlag bool 26945 name string // 推广渠道名称 26946 nameFlag bool 26947 link string // 推广渠道链接 26948 linkFlag bool 26949 code string // 推广渠道推广码 26950 codeFlag bool 26951 } 26952 26953 func NewWebsiteChannelInfoBuilder() *WebsiteChannelInfoBuilder { 26954 builder := &WebsiteChannelInfoBuilder{} 26955 return builder 26956 } 26957 26958 // 推广渠道 ID 26959 // 26960 // 示例值:7085989097067563300 26961 func (builder *WebsiteChannelInfoBuilder) Id(id string) *WebsiteChannelInfoBuilder { 26962 builder.id = id 26963 builder.idFlag = true 26964 return builder 26965 } 26966 26967 // 推广渠道名称 26968 // 26969 // 示例值:官网 26970 func (builder *WebsiteChannelInfoBuilder) Name(name string) *WebsiteChannelInfoBuilder { 26971 builder.name = name 26972 builder.nameFlag = true 26973 return builder 26974 } 26975 26976 // 推广渠道链接 26977 // 26978 // 示例值:http://recrui-demo.jobs.xxx.cn/485083/?spread=A1KM6A5 26979 func (builder *WebsiteChannelInfoBuilder) Link(link string) *WebsiteChannelInfoBuilder { 26980 builder.link = link 26981 builder.linkFlag = true 26982 return builder 26983 } 26984 26985 // 推广渠道推广码 26986 // 26987 // 示例值:A1KM6A5 26988 func (builder *WebsiteChannelInfoBuilder) Code(code string) *WebsiteChannelInfoBuilder { 26989 builder.code = code 26990 builder.codeFlag = true 26991 return builder 26992 } 26993 26994 func (builder *WebsiteChannelInfoBuilder) Build() *WebsiteChannelInfo { 26995 req := &WebsiteChannelInfo{} 26996 if builder.idFlag { 26997 req.Id = &builder.id 26998 26999 } 27000 if builder.nameFlag { 27001 req.Name = &builder.name 27002 27003 } 27004 if builder.linkFlag { 27005 req.Link = &builder.link 27006 27007 } 27008 if builder.codeFlag { 27009 req.Code = &builder.code 27010 27011 } 27012 return req 27013 } 27014 27015 type WebsiteDelivery struct { 27016 JobPostId *string `json:"job_post_id,omitempty"` // 职位广告 ID 27017 Resume *WebsiteDeliveryResume `json:"resume,omitempty"` // 人才信息 27018 UserId *string `json:"user_id,omitempty"` // 官网用户 ID 27019 ApplicationPreferredCityCodeList []string `json:"application_preferred_city_code_list,omitempty"` // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 27020 ChannelId *string `json:"channel_id,omitempty"` // 官网推广渠道 ID 27021 } 27022 27023 type WebsiteDeliveryBuilder struct { 27024 jobPostId string // 职位广告 ID 27025 jobPostIdFlag bool 27026 resume *WebsiteDeliveryResume // 人才信息 27027 resumeFlag bool 27028 userId string // 官网用户 ID 27029 userIdFlag bool 27030 applicationPreferredCityCodeList []string // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 27031 applicationPreferredCityCodeListFlag bool 27032 channelId string // 官网推广渠道 ID 27033 channelIdFlag bool 27034 } 27035 27036 func NewWebsiteDeliveryBuilder() *WebsiteDeliveryBuilder { 27037 builder := &WebsiteDeliveryBuilder{} 27038 return builder 27039 } 27040 27041 // 职位广告 ID 27042 // 27043 // 示例值:6960663240925956636 27044 func (builder *WebsiteDeliveryBuilder) JobPostId(jobPostId string) *WebsiteDeliveryBuilder { 27045 builder.jobPostId = jobPostId 27046 builder.jobPostIdFlag = true 27047 return builder 27048 } 27049 27050 // 人才信息 27051 // 27052 // 示例值: 27053 func (builder *WebsiteDeliveryBuilder) Resume(resume *WebsiteDeliveryResume) *WebsiteDeliveryBuilder { 27054 builder.resume = resume 27055 builder.resumeFlag = true 27056 return builder 27057 } 27058 27059 // 官网用户 ID 27060 // 27061 // 示例值:6960663240925956634 27062 func (builder *WebsiteDeliveryBuilder) UserId(userId string) *WebsiteDeliveryBuilder { 27063 builder.userId = userId 27064 builder.userIdFlag = true 27065 return builder 27066 } 27067 27068 // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 27069 // 27070 // 示例值:CT_11 27071 func (builder *WebsiteDeliveryBuilder) ApplicationPreferredCityCodeList(applicationPreferredCityCodeList []string) *WebsiteDeliveryBuilder { 27072 builder.applicationPreferredCityCodeList = applicationPreferredCityCodeList 27073 builder.applicationPreferredCityCodeListFlag = true 27074 return builder 27075 } 27076 27077 // 官网推广渠道 ID 27078 // 27079 // 示例值:6891560630172518670 27080 func (builder *WebsiteDeliveryBuilder) ChannelId(channelId string) *WebsiteDeliveryBuilder { 27081 builder.channelId = channelId 27082 builder.channelIdFlag = true 27083 return builder 27084 } 27085 27086 func (builder *WebsiteDeliveryBuilder) Build() *WebsiteDelivery { 27087 req := &WebsiteDelivery{} 27088 if builder.jobPostIdFlag { 27089 req.JobPostId = &builder.jobPostId 27090 27091 } 27092 if builder.resumeFlag { 27093 req.Resume = builder.resume 27094 } 27095 if builder.userIdFlag { 27096 req.UserId = &builder.userId 27097 27098 } 27099 if builder.applicationPreferredCityCodeListFlag { 27100 req.ApplicationPreferredCityCodeList = builder.applicationPreferredCityCodeList 27101 } 27102 if builder.channelIdFlag { 27103 req.ChannelId = &builder.channelId 27104 27105 } 27106 return req 27107 } 27108 27109 type WebsiteDeliveryAttachment struct { 27110 JobPostId *string `json:"job_post_id,omitempty"` // 职位广告 ID 27111 UserId *string `json:"user_id,omitempty"` // 官网用户 ID 27112 ResumeFileId *string `json:"resume_file_id,omitempty"` // 简历文件 ID,使用「创建附件」生成 27113 ChannelId *string `json:"channel_id,omitempty"` // 官网推广渠道 ID 27114 ApplicationPreferredCityCodeList []string `json:"application_preferred_city_code_list,omitempty"` // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 27115 MobileCountryCode *string `json:"mobile_country_code,omitempty"` // 电话国际区号,可从「获取地址码」查询(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27116 Mobile *string `json:"mobile,omitempty"` // 电话号码(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27117 Email *string `json:"email,omitempty"` // 邮箱(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27118 Identification *WebsiteDeliveryAttachmentIndentification `json:"identification,omitempty"` // 身份证件号码(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27119 } 27120 27121 type WebsiteDeliveryAttachmentBuilder struct { 27122 jobPostId string // 职位广告 ID 27123 jobPostIdFlag bool 27124 userId string // 官网用户 ID 27125 userIdFlag bool 27126 resumeFileId string // 简历文件 ID,使用「创建附件」生成 27127 resumeFileIdFlag bool 27128 channelId string // 官网推广渠道 ID 27129 channelIdFlag bool 27130 applicationPreferredCityCodeList []string // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 27131 applicationPreferredCityCodeListFlag bool 27132 mobileCountryCode string // 电话国际区号,可从「获取地址码」查询(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27133 mobileCountryCodeFlag bool 27134 mobile string // 电话号码(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27135 mobileFlag bool 27136 email string // 邮箱(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27137 emailFlag bool 27138 identification *WebsiteDeliveryAttachmentIndentification // 身份证件号码(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27139 identificationFlag bool 27140 } 27141 27142 func NewWebsiteDeliveryAttachmentBuilder() *WebsiteDeliveryAttachmentBuilder { 27143 builder := &WebsiteDeliveryAttachmentBuilder{} 27144 return builder 27145 } 27146 27147 // 职位广告 ID 27148 // 27149 // 示例值:6960663240925956636 27150 func (builder *WebsiteDeliveryAttachmentBuilder) JobPostId(jobPostId string) *WebsiteDeliveryAttachmentBuilder { 27151 builder.jobPostId = jobPostId 27152 builder.jobPostIdFlag = true 27153 return builder 27154 } 27155 27156 // 官网用户 ID 27157 // 27158 // 示例值:6960663240925956634 27159 func (builder *WebsiteDeliveryAttachmentBuilder) UserId(userId string) *WebsiteDeliveryAttachmentBuilder { 27160 builder.userId = userId 27161 builder.userIdFlag = true 27162 return builder 27163 } 27164 27165 // 简历文件 ID,使用「创建附件」生成 27166 // 27167 // 示例值:7095614894070434092 27168 func (builder *WebsiteDeliveryAttachmentBuilder) ResumeFileId(resumeFileId string) *WebsiteDeliveryAttachmentBuilder { 27169 builder.resumeFileId = resumeFileId 27170 builder.resumeFileIdFlag = true 27171 return builder 27172 } 27173 27174 // 官网推广渠道 ID 27175 // 27176 // 示例值:6891560630172518670 27177 func (builder *WebsiteDeliveryAttachmentBuilder) ChannelId(channelId string) *WebsiteDeliveryAttachmentBuilder { 27178 builder.channelId = channelId 27179 builder.channelIdFlag = true 27180 return builder 27181 } 27182 27183 // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 27184 // 27185 // 示例值:CT_1 27186 func (builder *WebsiteDeliveryAttachmentBuilder) ApplicationPreferredCityCodeList(applicationPreferredCityCodeList []string) *WebsiteDeliveryAttachmentBuilder { 27187 builder.applicationPreferredCityCodeList = applicationPreferredCityCodeList 27188 builder.applicationPreferredCityCodeListFlag = true 27189 return builder 27190 } 27191 27192 // 电话国际区号,可从「获取地址码」查询(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27193 // 27194 // 示例值:CN_1 27195 func (builder *WebsiteDeliveryAttachmentBuilder) MobileCountryCode(mobileCountryCode string) *WebsiteDeliveryAttachmentBuilder { 27196 builder.mobileCountryCode = mobileCountryCode 27197 builder.mobileCountryCodeFlag = true 27198 return builder 27199 } 27200 27201 // 电话号码(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27202 // 27203 // 示例值:182900291190 27204 func (builder *WebsiteDeliveryAttachmentBuilder) Mobile(mobile string) *WebsiteDeliveryAttachmentBuilder { 27205 builder.mobile = mobile 27206 builder.mobileFlag = true 27207 return builder 27208 } 27209 27210 // 邮箱(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27211 // 27212 // 示例值:foo@bytedance.com 27213 func (builder *WebsiteDeliveryAttachmentBuilder) Email(email string) *WebsiteDeliveryAttachmentBuilder { 27214 builder.email = email 27215 builder.emailFlag = true 27216 return builder 27217 } 27218 27219 // 身份证件号码(当该参数值与简历附件中的相关值不一致时,将以该参数值为准) 27220 // 27221 // 示例值: 27222 func (builder *WebsiteDeliveryAttachmentBuilder) Identification(identification *WebsiteDeliveryAttachmentIndentification) *WebsiteDeliveryAttachmentBuilder { 27223 builder.identification = identification 27224 builder.identificationFlag = true 27225 return builder 27226 } 27227 27228 func (builder *WebsiteDeliveryAttachmentBuilder) Build() *WebsiteDeliveryAttachment { 27229 req := &WebsiteDeliveryAttachment{} 27230 if builder.jobPostIdFlag { 27231 req.JobPostId = &builder.jobPostId 27232 27233 } 27234 if builder.userIdFlag { 27235 req.UserId = &builder.userId 27236 27237 } 27238 if builder.resumeFileIdFlag { 27239 req.ResumeFileId = &builder.resumeFileId 27240 27241 } 27242 if builder.channelIdFlag { 27243 req.ChannelId = &builder.channelId 27244 27245 } 27246 if builder.applicationPreferredCityCodeListFlag { 27247 req.ApplicationPreferredCityCodeList = builder.applicationPreferredCityCodeList 27248 } 27249 if builder.mobileCountryCodeFlag { 27250 req.MobileCountryCode = &builder.mobileCountryCode 27251 27252 } 27253 if builder.mobileFlag { 27254 req.Mobile = &builder.mobile 27255 27256 } 27257 if builder.emailFlag { 27258 req.Email = &builder.email 27259 27260 } 27261 if builder.identificationFlag { 27262 req.Identification = builder.identification 27263 } 27264 return req 27265 } 27266 27267 type WebsiteDeliveryAttachmentIndentification struct { 27268 IdentificationType *int `json:"identification_type,omitempty"` // 身份证件类型 27269 IdentificationNumber *string `json:"identification_number,omitempty"` // 身份证件号 27270 } 27271 27272 type WebsiteDeliveryAttachmentIndentificationBuilder struct { 27273 identificationType int // 身份证件类型 27274 identificationTypeFlag bool 27275 identificationNumber string // 身份证件号 27276 identificationNumberFlag bool 27277 } 27278 27279 func NewWebsiteDeliveryAttachmentIndentificationBuilder() *WebsiteDeliveryAttachmentIndentificationBuilder { 27280 builder := &WebsiteDeliveryAttachmentIndentificationBuilder{} 27281 return builder 27282 } 27283 27284 // 身份证件类型 27285 // 27286 // 示例值:1 27287 func (builder *WebsiteDeliveryAttachmentIndentificationBuilder) IdentificationType(identificationType int) *WebsiteDeliveryAttachmentIndentificationBuilder { 27288 builder.identificationType = identificationType 27289 builder.identificationTypeFlag = true 27290 return builder 27291 } 27292 27293 // 身份证件号 27294 // 27295 // 示例值:11002030131312312 27296 func (builder *WebsiteDeliveryAttachmentIndentificationBuilder) IdentificationNumber(identificationNumber string) *WebsiteDeliveryAttachmentIndentificationBuilder { 27297 builder.identificationNumber = identificationNumber 27298 builder.identificationNumberFlag = true 27299 return builder 27300 } 27301 27302 func (builder *WebsiteDeliveryAttachmentIndentificationBuilder) Build() *WebsiteDeliveryAttachmentIndentification { 27303 req := &WebsiteDeliveryAttachmentIndentification{} 27304 if builder.identificationTypeFlag { 27305 req.IdentificationType = &builder.identificationType 27306 27307 } 27308 if builder.identificationNumberFlag { 27309 req.IdentificationNumber = &builder.identificationNumber 27310 27311 } 27312 return req 27313 } 27314 27315 type WebsiteDeliveryAward struct { 27316 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 27317 Desc *string `json:"desc,omitempty"` // 描述 27318 Title *string `json:"title,omitempty"` // 奖项名称 27319 AwardTime *int `json:"award_time,omitempty"` // 获奖时间 27320 } 27321 27322 type WebsiteDeliveryAwardBuilder struct { 27323 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 27324 customizedDataFlag bool 27325 desc string // 描述 27326 descFlag bool 27327 title string // 奖项名称 27328 titleFlag bool 27329 awardTime int // 获奖时间 27330 awardTimeFlag bool 27331 } 27332 27333 func NewWebsiteDeliveryAwardBuilder() *WebsiteDeliveryAwardBuilder { 27334 builder := &WebsiteDeliveryAwardBuilder{} 27335 return builder 27336 } 27337 27338 // 自定义字段 27339 // 27340 // 示例值: 27341 func (builder *WebsiteDeliveryAwardBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryAwardBuilder { 27342 builder.customizedData = customizedData 27343 builder.customizedDataFlag = true 27344 return builder 27345 } 27346 27347 // 描述 27348 // 27349 // 示例值:ACM国际大学生程序设计竞赛 27350 func (builder *WebsiteDeliveryAwardBuilder) Desc(desc string) *WebsiteDeliveryAwardBuilder { 27351 builder.desc = desc 27352 builder.descFlag = true 27353 return builder 27354 } 27355 27356 // 奖项名称 27357 // 27358 // 示例值:ACM 亚洲区金牌 27359 func (builder *WebsiteDeliveryAwardBuilder) Title(title string) *WebsiteDeliveryAwardBuilder { 27360 builder.title = title 27361 builder.titleFlag = true 27362 return builder 27363 } 27364 27365 // 获奖时间 27366 // 27367 // 示例值:1609430400 27368 func (builder *WebsiteDeliveryAwardBuilder) AwardTime(awardTime int) *WebsiteDeliveryAwardBuilder { 27369 builder.awardTime = awardTime 27370 builder.awardTimeFlag = true 27371 return builder 27372 } 27373 27374 func (builder *WebsiteDeliveryAwardBuilder) Build() *WebsiteDeliveryAward { 27375 req := &WebsiteDeliveryAward{} 27376 if builder.customizedDataFlag { 27377 req.CustomizedData = builder.customizedData 27378 } 27379 if builder.descFlag { 27380 req.Desc = &builder.desc 27381 27382 } 27383 if builder.titleFlag { 27384 req.Title = &builder.title 27385 27386 } 27387 if builder.awardTimeFlag { 27388 req.AwardTime = &builder.awardTime 27389 27390 } 27391 return req 27392 } 27393 27394 type WebsiteDeliveryBasicInfo struct { 27395 NationalityId *string `json:"nationality_id,omitempty"` // 国籍,可从「获取地址码」查询 27396 StartWorkTime *int `json:"start_work_time,omitempty"` // 起始工作时间 27397 CurrentHomeAddress *string `json:"current_home_address,omitempty"` // 家庭住址 27398 HometownCityCode *string `json:"hometown_city_code,omitempty"` // 家乡,可从「获取地址码」查询 27399 MobileCountryCode *string `json:"mobile_country_code,omitempty"` // 电话国际区号,可从「获取地址码」查询 27400 Identification *WebsiteDeliveryIdentification `json:"identification,omitempty"` // 身份证件 27401 MaritalStatus *int `json:"marital_status,omitempty"` // 婚姻状况 27402 Mobile *string `json:"mobile,omitempty"` // 电话 27403 CurrentCityCode *string `json:"current_city_code,omitempty"` // 所在城市,可从「获取地址码」查询 27404 ExperienceYears *int `json:"experience_years,omitempty"` // 工作年限 27405 Gender *int `json:"gender,omitempty"` // 性别 27406 Birthday *int `json:"birthday,omitempty"` // 出生日期 27407 Name *string `json:"name,omitempty"` // 姓名 27408 PreferredCityCodeList []string `json:"preferred_city_code_list,omitempty"` // 意向城市,可从「获取地址码」查询 27409 ResumeSourceId *string `json:"resume_source_id,omitempty"` // 简历来源,可从「获取简历来源列表」查询 27410 Age *int `json:"age,omitempty"` // 年龄 27411 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 27412 Email *string `json:"email,omitempty"` // 邮箱 27413 } 27414 27415 type WebsiteDeliveryBasicInfoBuilder struct { 27416 nationalityId string // 国籍,可从「获取地址码」查询 27417 nationalityIdFlag bool 27418 startWorkTime int // 起始工作时间 27419 startWorkTimeFlag bool 27420 currentHomeAddress string // 家庭住址 27421 currentHomeAddressFlag bool 27422 hometownCityCode string // 家乡,可从「获取地址码」查询 27423 hometownCityCodeFlag bool 27424 mobileCountryCode string // 电话国际区号,可从「获取地址码」查询 27425 mobileCountryCodeFlag bool 27426 identification *WebsiteDeliveryIdentification // 身份证件 27427 identificationFlag bool 27428 maritalStatus int // 婚姻状况 27429 maritalStatusFlag bool 27430 mobile string // 电话 27431 mobileFlag bool 27432 currentCityCode string // 所在城市,可从「获取地址码」查询 27433 currentCityCodeFlag bool 27434 experienceYears int // 工作年限 27435 experienceYearsFlag bool 27436 gender int // 性别 27437 genderFlag bool 27438 birthday int // 出生日期 27439 birthdayFlag bool 27440 name string // 姓名 27441 nameFlag bool 27442 preferredCityCodeList []string // 意向城市,可从「获取地址码」查询 27443 preferredCityCodeListFlag bool 27444 resumeSourceId string // 简历来源,可从「获取简历来源列表」查询 27445 resumeSourceIdFlag bool 27446 age int // 年龄 27447 ageFlag bool 27448 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 27449 customizedDataFlag bool 27450 email string // 邮箱 27451 emailFlag bool 27452 } 27453 27454 func NewWebsiteDeliveryBasicInfoBuilder() *WebsiteDeliveryBasicInfoBuilder { 27455 builder := &WebsiteDeliveryBasicInfoBuilder{} 27456 return builder 27457 } 27458 27459 // 国籍,可从「获取地址码」查询 27460 // 27461 // 示例值:CN_112 27462 func (builder *WebsiteDeliveryBasicInfoBuilder) NationalityId(nationalityId string) *WebsiteDeliveryBasicInfoBuilder { 27463 builder.nationalityId = nationalityId 27464 builder.nationalityIdFlag = true 27465 return builder 27466 } 27467 27468 // 起始工作时间 27469 // 27470 // 示例值:1625648596 27471 func (builder *WebsiteDeliveryBasicInfoBuilder) StartWorkTime(startWorkTime int) *WebsiteDeliveryBasicInfoBuilder { 27472 builder.startWorkTime = startWorkTime 27473 builder.startWorkTimeFlag = true 27474 return builder 27475 } 27476 27477 // 家庭住址 27478 // 27479 // 示例值:成都 27480 func (builder *WebsiteDeliveryBasicInfoBuilder) CurrentHomeAddress(currentHomeAddress string) *WebsiteDeliveryBasicInfoBuilder { 27481 builder.currentHomeAddress = currentHomeAddress 27482 builder.currentHomeAddressFlag = true 27483 return builder 27484 } 27485 27486 // 家乡,可从「获取地址码」查询 27487 // 27488 // 示例值:CT_159 27489 func (builder *WebsiteDeliveryBasicInfoBuilder) HometownCityCode(hometownCityCode string) *WebsiteDeliveryBasicInfoBuilder { 27490 builder.hometownCityCode = hometownCityCode 27491 builder.hometownCityCodeFlag = true 27492 return builder 27493 } 27494 27495 // 电话国际区号,可从「获取地址码」查询 27496 // 27497 // 示例值:CN_1 27498 func (builder *WebsiteDeliveryBasicInfoBuilder) MobileCountryCode(mobileCountryCode string) *WebsiteDeliveryBasicInfoBuilder { 27499 builder.mobileCountryCode = mobileCountryCode 27500 builder.mobileCountryCodeFlag = true 27501 return builder 27502 } 27503 27504 // 身份证件 27505 // 27506 // 示例值: 27507 func (builder *WebsiteDeliveryBasicInfoBuilder) Identification(identification *WebsiteDeliveryIdentification) *WebsiteDeliveryBasicInfoBuilder { 27508 builder.identification = identification 27509 builder.identificationFlag = true 27510 return builder 27511 } 27512 27513 // 婚姻状况 27514 // 27515 // 示例值:1 27516 func (builder *WebsiteDeliveryBasicInfoBuilder) MaritalStatus(maritalStatus int) *WebsiteDeliveryBasicInfoBuilder { 27517 builder.maritalStatus = maritalStatus 27518 builder.maritalStatusFlag = true 27519 return builder 27520 } 27521 27522 // 电话 27523 // 27524 // 示例值:182900291190 27525 func (builder *WebsiteDeliveryBasicInfoBuilder) Mobile(mobile string) *WebsiteDeliveryBasicInfoBuilder { 27526 builder.mobile = mobile 27527 builder.mobileFlag = true 27528 return builder 27529 } 27530 27531 // 所在城市,可从「获取地址码」查询 27532 // 27533 // 示例值:CT_11 27534 func (builder *WebsiteDeliveryBasicInfoBuilder) CurrentCityCode(currentCityCode string) *WebsiteDeliveryBasicInfoBuilder { 27535 builder.currentCityCode = currentCityCode 27536 builder.currentCityCodeFlag = true 27537 return builder 27538 } 27539 27540 // 工作年限 27541 // 27542 // 示例值:3 27543 func (builder *WebsiteDeliveryBasicInfoBuilder) ExperienceYears(experienceYears int) *WebsiteDeliveryBasicInfoBuilder { 27544 builder.experienceYears = experienceYears 27545 builder.experienceYearsFlag = true 27546 return builder 27547 } 27548 27549 // 性别 27550 // 27551 // 示例值:1 27552 func (builder *WebsiteDeliveryBasicInfoBuilder) Gender(gender int) *WebsiteDeliveryBasicInfoBuilder { 27553 builder.gender = gender 27554 builder.genderFlag = true 27555 return builder 27556 } 27557 27558 // 出生日期 27559 // 27560 // 示例值:1609430400 27561 func (builder *WebsiteDeliveryBasicInfoBuilder) Birthday(birthday int) *WebsiteDeliveryBasicInfoBuilder { 27562 builder.birthday = birthday 27563 builder.birthdayFlag = true 27564 return builder 27565 } 27566 27567 // 姓名 27568 // 27569 // 示例值:张三 27570 func (builder *WebsiteDeliveryBasicInfoBuilder) Name(name string) *WebsiteDeliveryBasicInfoBuilder { 27571 builder.name = name 27572 builder.nameFlag = true 27573 return builder 27574 } 27575 27576 // 意向城市,可从「获取地址码」查询 27577 // 27578 // 示例值:意向城市 27579 func (builder *WebsiteDeliveryBasicInfoBuilder) PreferredCityCodeList(preferredCityCodeList []string) *WebsiteDeliveryBasicInfoBuilder { 27580 builder.preferredCityCodeList = preferredCityCodeList 27581 builder.preferredCityCodeListFlag = true 27582 return builder 27583 } 27584 27585 // 简历来源,可从「获取简历来源列表」查询 27586 // 27587 // 示例值:6982104077248219436 27588 func (builder *WebsiteDeliveryBasicInfoBuilder) ResumeSourceId(resumeSourceId string) *WebsiteDeliveryBasicInfoBuilder { 27589 builder.resumeSourceId = resumeSourceId 27590 builder.resumeSourceIdFlag = true 27591 return builder 27592 } 27593 27594 // 年龄 27595 // 27596 // 示例值:25 27597 func (builder *WebsiteDeliveryBasicInfoBuilder) Age(age int) *WebsiteDeliveryBasicInfoBuilder { 27598 builder.age = age 27599 builder.ageFlag = true 27600 return builder 27601 } 27602 27603 // 自定义字段 27604 // 27605 // 示例值: 27606 func (builder *WebsiteDeliveryBasicInfoBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryBasicInfoBuilder { 27607 builder.customizedData = customizedData 27608 builder.customizedDataFlag = true 27609 return builder 27610 } 27611 27612 // 邮箱 27613 // 27614 // 示例值:foo@bytedance.com 27615 func (builder *WebsiteDeliveryBasicInfoBuilder) Email(email string) *WebsiteDeliveryBasicInfoBuilder { 27616 builder.email = email 27617 builder.emailFlag = true 27618 return builder 27619 } 27620 27621 func (builder *WebsiteDeliveryBasicInfoBuilder) Build() *WebsiteDeliveryBasicInfo { 27622 req := &WebsiteDeliveryBasicInfo{} 27623 if builder.nationalityIdFlag { 27624 req.NationalityId = &builder.nationalityId 27625 27626 } 27627 if builder.startWorkTimeFlag { 27628 req.StartWorkTime = &builder.startWorkTime 27629 27630 } 27631 if builder.currentHomeAddressFlag { 27632 req.CurrentHomeAddress = &builder.currentHomeAddress 27633 27634 } 27635 if builder.hometownCityCodeFlag { 27636 req.HometownCityCode = &builder.hometownCityCode 27637 27638 } 27639 if builder.mobileCountryCodeFlag { 27640 req.MobileCountryCode = &builder.mobileCountryCode 27641 27642 } 27643 if builder.identificationFlag { 27644 req.Identification = builder.identification 27645 } 27646 if builder.maritalStatusFlag { 27647 req.MaritalStatus = &builder.maritalStatus 27648 27649 } 27650 if builder.mobileFlag { 27651 req.Mobile = &builder.mobile 27652 27653 } 27654 if builder.currentCityCodeFlag { 27655 req.CurrentCityCode = &builder.currentCityCode 27656 27657 } 27658 if builder.experienceYearsFlag { 27659 req.ExperienceYears = &builder.experienceYears 27660 27661 } 27662 if builder.genderFlag { 27663 req.Gender = &builder.gender 27664 27665 } 27666 if builder.birthdayFlag { 27667 req.Birthday = &builder.birthday 27668 27669 } 27670 if builder.nameFlag { 27671 req.Name = &builder.name 27672 27673 } 27674 if builder.preferredCityCodeListFlag { 27675 req.PreferredCityCodeList = builder.preferredCityCodeList 27676 } 27677 if builder.resumeSourceIdFlag { 27678 req.ResumeSourceId = &builder.resumeSourceId 27679 27680 } 27681 if builder.ageFlag { 27682 req.Age = &builder.age 27683 27684 } 27685 if builder.customizedDataFlag { 27686 req.CustomizedData = builder.customizedData 27687 } 27688 if builder.emailFlag { 27689 req.Email = &builder.email 27690 27691 } 27692 return req 27693 } 27694 27695 type WebsiteDeliveryCareer struct { 27696 Desc *string `json:"desc,omitempty"` // 描述 27697 EndTime *int `json:"end_time,omitempty"` // 结束时间, 如果是至今传值 -1 27698 StartTime *int `json:"start_time,omitempty"` // 开始时间 27699 Title *string `json:"title,omitempty"` // 职位名称 27700 Company *string `json:"company,omitempty"` // 公司 27701 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 27702 } 27703 27704 type WebsiteDeliveryCareerBuilder struct { 27705 desc string // 描述 27706 descFlag bool 27707 endTime int // 结束时间, 如果是至今传值 -1 27708 endTimeFlag bool 27709 startTime int // 开始时间 27710 startTimeFlag bool 27711 title string // 职位名称 27712 titleFlag bool 27713 company string // 公司 27714 companyFlag bool 27715 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 27716 customizedDataFlag bool 27717 } 27718 27719 func NewWebsiteDeliveryCareerBuilder() *WebsiteDeliveryCareerBuilder { 27720 builder := &WebsiteDeliveryCareerBuilder{} 27721 return builder 27722 } 27723 27724 // 描述 27725 // 27726 // 示例值:这是一家创业公司,非常不错 27727 func (builder *WebsiteDeliveryCareerBuilder) Desc(desc string) *WebsiteDeliveryCareerBuilder { 27728 builder.desc = desc 27729 builder.descFlag = true 27730 return builder 27731 } 27732 27733 // 结束时间, 如果是至今传值 -1 27734 // 27735 // 示例值:1618500278667 27736 func (builder *WebsiteDeliveryCareerBuilder) EndTime(endTime int) *WebsiteDeliveryCareerBuilder { 27737 builder.endTime = endTime 27738 builder.endTimeFlag = true 27739 return builder 27740 } 27741 27742 // 开始时间 27743 // 27744 // 示例值:1609430400 27745 func (builder *WebsiteDeliveryCareerBuilder) StartTime(startTime int) *WebsiteDeliveryCareerBuilder { 27746 builder.startTime = startTime 27747 builder.startTimeFlag = true 27748 return builder 27749 } 27750 27751 // 职位名称 27752 // 27753 // 示例值:后端研发实习生 27754 func (builder *WebsiteDeliveryCareerBuilder) Title(title string) *WebsiteDeliveryCareerBuilder { 27755 builder.title = title 27756 builder.titleFlag = true 27757 return builder 27758 } 27759 27760 // 公司 27761 // 27762 // 示例值:字节跳动 27763 func (builder *WebsiteDeliveryCareerBuilder) Company(company string) *WebsiteDeliveryCareerBuilder { 27764 builder.company = company 27765 builder.companyFlag = true 27766 return builder 27767 } 27768 27769 // 自定义字段 27770 // 27771 // 示例值: 27772 func (builder *WebsiteDeliveryCareerBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryCareerBuilder { 27773 builder.customizedData = customizedData 27774 builder.customizedDataFlag = true 27775 return builder 27776 } 27777 27778 func (builder *WebsiteDeliveryCareerBuilder) Build() *WebsiteDeliveryCareer { 27779 req := &WebsiteDeliveryCareer{} 27780 if builder.descFlag { 27781 req.Desc = &builder.desc 27782 27783 } 27784 if builder.endTimeFlag { 27785 req.EndTime = &builder.endTime 27786 27787 } 27788 if builder.startTimeFlag { 27789 req.StartTime = &builder.startTime 27790 27791 } 27792 if builder.titleFlag { 27793 req.Title = &builder.title 27794 27795 } 27796 if builder.companyFlag { 27797 req.Company = &builder.company 27798 27799 } 27800 if builder.customizedDataFlag { 27801 req.CustomizedData = builder.customizedData 27802 } 27803 return req 27804 } 27805 27806 type WebsiteDeliveryCertificate struct { 27807 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 27808 Desc *string `json:"desc,omitempty"` // 描述 27809 Name *string `json:"name,omitempty"` // 证书名称 27810 } 27811 27812 type WebsiteDeliveryCertificateBuilder struct { 27813 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 27814 customizedDataFlag bool 27815 desc string // 描述 27816 descFlag bool 27817 name string // 证书名称 27818 nameFlag bool 27819 } 27820 27821 func NewWebsiteDeliveryCertificateBuilder() *WebsiteDeliveryCertificateBuilder { 27822 builder := &WebsiteDeliveryCertificateBuilder{} 27823 return builder 27824 } 27825 27826 // 自定义字段 27827 // 27828 // 示例值: 27829 func (builder *WebsiteDeliveryCertificateBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryCertificateBuilder { 27830 builder.customizedData = customizedData 27831 builder.customizedDataFlag = true 27832 return builder 27833 } 27834 27835 // 描述 27836 // 27837 // 示例值:全国普通话级别认证 27838 func (builder *WebsiteDeliveryCertificateBuilder) Desc(desc string) *WebsiteDeliveryCertificateBuilder { 27839 builder.desc = desc 27840 builder.descFlag = true 27841 return builder 27842 } 27843 27844 // 证书名称 27845 // 27846 // 示例值:普通话证书 27847 func (builder *WebsiteDeliveryCertificateBuilder) Name(name string) *WebsiteDeliveryCertificateBuilder { 27848 builder.name = name 27849 builder.nameFlag = true 27850 return builder 27851 } 27852 27853 func (builder *WebsiteDeliveryCertificateBuilder) Build() *WebsiteDeliveryCertificate { 27854 req := &WebsiteDeliveryCertificate{} 27855 if builder.customizedDataFlag { 27856 req.CustomizedData = builder.customizedData 27857 } 27858 if builder.descFlag { 27859 req.Desc = &builder.desc 27860 27861 } 27862 if builder.nameFlag { 27863 req.Name = &builder.name 27864 27865 } 27866 return req 27867 } 27868 27869 type WebsiteDeliveryCompetition struct { 27870 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 27871 Desc *string `json:"desc,omitempty"` // 竞赛描述 27872 Name *string `json:"name,omitempty"` // 竞赛名称 27873 } 27874 27875 type WebsiteDeliveryCompetitionBuilder struct { 27876 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 27877 customizedDataFlag bool 27878 desc string // 竞赛描述 27879 descFlag bool 27880 name string // 竞赛名称 27881 nameFlag bool 27882 } 27883 27884 func NewWebsiteDeliveryCompetitionBuilder() *WebsiteDeliveryCompetitionBuilder { 27885 builder := &WebsiteDeliveryCompetitionBuilder{} 27886 return builder 27887 } 27888 27889 // 自定义字段 27890 // 27891 // 示例值: 27892 func (builder *WebsiteDeliveryCompetitionBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryCompetitionBuilder { 27893 builder.customizedData = customizedData 27894 builder.customizedDataFlag = true 27895 return builder 27896 } 27897 27898 // 竞赛描述 27899 // 27900 // 示例值:唱歌比赛 27901 func (builder *WebsiteDeliveryCompetitionBuilder) Desc(desc string) *WebsiteDeliveryCompetitionBuilder { 27902 builder.desc = desc 27903 builder.descFlag = true 27904 return builder 27905 } 27906 27907 // 竞赛名称 27908 // 27909 // 示例值:青年歌手大赛 27910 func (builder *WebsiteDeliveryCompetitionBuilder) Name(name string) *WebsiteDeliveryCompetitionBuilder { 27911 builder.name = name 27912 builder.nameFlag = true 27913 return builder 27914 } 27915 27916 func (builder *WebsiteDeliveryCompetitionBuilder) Build() *WebsiteDeliveryCompetition { 27917 req := &WebsiteDeliveryCompetition{} 27918 if builder.customizedDataFlag { 27919 req.CustomizedData = builder.customizedData 27920 } 27921 if builder.descFlag { 27922 req.Desc = &builder.desc 27923 27924 } 27925 if builder.nameFlag { 27926 req.Name = &builder.name 27927 27928 } 27929 return req 27930 } 27931 27932 type WebsiteDeliveryCustomizedData struct { 27933 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 27934 Value *string `json:"value,omitempty"` // 自定义字段 value,格式见接口说明 27935 } 27936 27937 type WebsiteDeliveryCustomizedDataBuilder struct { 27938 objectId string // 自定义字段 ID 27939 objectIdFlag bool 27940 value string // 自定义字段 value,格式见接口说明 27941 valueFlag bool 27942 } 27943 27944 func NewWebsiteDeliveryCustomizedDataBuilder() *WebsiteDeliveryCustomizedDataBuilder { 27945 builder := &WebsiteDeliveryCustomizedDataBuilder{} 27946 return builder 27947 } 27948 27949 // 自定义字段 ID 27950 // 27951 // 示例值:6960663240925956649 27952 func (builder *WebsiteDeliveryCustomizedDataBuilder) ObjectId(objectId string) *WebsiteDeliveryCustomizedDataBuilder { 27953 builder.objectId = objectId 27954 builder.objectIdFlag = true 27955 return builder 27956 } 27957 27958 // 自定义字段 value,格式见接口说明 27959 // 27960 // 示例值:AA 27961 func (builder *WebsiteDeliveryCustomizedDataBuilder) Value(value string) *WebsiteDeliveryCustomizedDataBuilder { 27962 builder.value = value 27963 builder.valueFlag = true 27964 return builder 27965 } 27966 27967 func (builder *WebsiteDeliveryCustomizedDataBuilder) Build() *WebsiteDeliveryCustomizedData { 27968 req := &WebsiteDeliveryCustomizedData{} 27969 if builder.objectIdFlag { 27970 req.ObjectId = &builder.objectId 27971 27972 } 27973 if builder.valueFlag { 27974 req.Value = &builder.value 27975 27976 } 27977 return req 27978 } 27979 27980 type WebsiteDeliveryCustomizedDataParent struct { 27981 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 27982 Children []*WebsiteDeliveryCustomizedData `json:"children,omitempty"` // 模块下的字段 27983 } 27984 27985 type WebsiteDeliveryCustomizedDataParentBuilder struct { 27986 objectId string // 自定义字段 ID 27987 objectIdFlag bool 27988 children []*WebsiteDeliveryCustomizedData // 模块下的字段 27989 childrenFlag bool 27990 } 27991 27992 func NewWebsiteDeliveryCustomizedDataParentBuilder() *WebsiteDeliveryCustomizedDataParentBuilder { 27993 builder := &WebsiteDeliveryCustomizedDataParentBuilder{} 27994 return builder 27995 } 27996 27997 // 自定义字段 ID 27998 // 27999 // 示例值:6960663240925956651 28000 func (builder *WebsiteDeliveryCustomizedDataParentBuilder) ObjectId(objectId string) *WebsiteDeliveryCustomizedDataParentBuilder { 28001 builder.objectId = objectId 28002 builder.objectIdFlag = true 28003 return builder 28004 } 28005 28006 // 模块下的字段 28007 // 28008 // 示例值: 28009 func (builder *WebsiteDeliveryCustomizedDataParentBuilder) Children(children []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryCustomizedDataParentBuilder { 28010 builder.children = children 28011 builder.childrenFlag = true 28012 return builder 28013 } 28014 28015 func (builder *WebsiteDeliveryCustomizedDataParentBuilder) Build() *WebsiteDeliveryCustomizedDataParent { 28016 req := &WebsiteDeliveryCustomizedDataParent{} 28017 if builder.objectIdFlag { 28018 req.ObjectId = &builder.objectId 28019 28020 } 28021 if builder.childrenFlag { 28022 req.Children = builder.children 28023 } 28024 return req 28025 } 28026 28027 type WebsiteDeliveryDto struct { 28028 ApplicationId *string `json:"application_id,omitempty"` // 投递 ID 28029 Id *string `json:"id,omitempty"` // ID 28030 JobId *string `json:"job_id,omitempty"` // 职位 ID 28031 JobPostId *string `json:"job_post_id,omitempty"` // 职位广告 ID 28032 PortalResumeId *string `json:"portal_resume_id,omitempty"` // 官网简历 ID 28033 UserId *string `json:"user_id,omitempty"` // 官网用户 ID 28034 TalentId *string `json:"talent_id,omitempty"` // 人才 ID 28035 } 28036 28037 type WebsiteDeliveryDtoBuilder struct { 28038 applicationId string // 投递 ID 28039 applicationIdFlag bool 28040 id string // ID 28041 idFlag bool 28042 jobId string // 职位 ID 28043 jobIdFlag bool 28044 jobPostId string // 职位广告 ID 28045 jobPostIdFlag bool 28046 portalResumeId string // 官网简历 ID 28047 portalResumeIdFlag bool 28048 userId string // 官网用户 ID 28049 userIdFlag bool 28050 talentId string // 人才 ID 28051 talentIdFlag bool 28052 } 28053 28054 func NewWebsiteDeliveryDtoBuilder() *WebsiteDeliveryDtoBuilder { 28055 builder := &WebsiteDeliveryDtoBuilder{} 28056 return builder 28057 } 28058 28059 // 投递 ID 28060 // 28061 // 示例值:6960663240925956657 28062 func (builder *WebsiteDeliveryDtoBuilder) ApplicationId(applicationId string) *WebsiteDeliveryDtoBuilder { 28063 builder.applicationId = applicationId 28064 builder.applicationIdFlag = true 28065 return builder 28066 } 28067 28068 // ID 28069 // 28070 // 示例值:6960663240925956655 28071 func (builder *WebsiteDeliveryDtoBuilder) Id(id string) *WebsiteDeliveryDtoBuilder { 28072 builder.id = id 28073 builder.idFlag = true 28074 return builder 28075 } 28076 28077 // 职位 ID 28078 // 28079 // 示例值:6960663240925956659 28080 func (builder *WebsiteDeliveryDtoBuilder) JobId(jobId string) *WebsiteDeliveryDtoBuilder { 28081 builder.jobId = jobId 28082 builder.jobIdFlag = true 28083 return builder 28084 } 28085 28086 // 职位广告 ID 28087 // 28088 // 示例值:6960663240925956658 28089 func (builder *WebsiteDeliveryDtoBuilder) JobPostId(jobPostId string) *WebsiteDeliveryDtoBuilder { 28090 builder.jobPostId = jobPostId 28091 builder.jobPostIdFlag = true 28092 return builder 28093 } 28094 28095 // 官网简历 ID 28096 // 28097 // 示例值:6960663240925956660 28098 func (builder *WebsiteDeliveryDtoBuilder) PortalResumeId(portalResumeId string) *WebsiteDeliveryDtoBuilder { 28099 builder.portalResumeId = portalResumeId 28100 builder.portalResumeIdFlag = true 28101 return builder 28102 } 28103 28104 // 官网用户 ID 28105 // 28106 // 示例值:6960663240925956656 28107 func (builder *WebsiteDeliveryDtoBuilder) UserId(userId string) *WebsiteDeliveryDtoBuilder { 28108 builder.userId = userId 28109 builder.userIdFlag = true 28110 return builder 28111 } 28112 28113 // 人才 ID 28114 // 28115 // 示例值:7095600054216542508 28116 func (builder *WebsiteDeliveryDtoBuilder) TalentId(talentId string) *WebsiteDeliveryDtoBuilder { 28117 builder.talentId = talentId 28118 builder.talentIdFlag = true 28119 return builder 28120 } 28121 28122 func (builder *WebsiteDeliveryDtoBuilder) Build() *WebsiteDeliveryDto { 28123 req := &WebsiteDeliveryDto{} 28124 if builder.applicationIdFlag { 28125 req.ApplicationId = &builder.applicationId 28126 28127 } 28128 if builder.idFlag { 28129 req.Id = &builder.id 28130 28131 } 28132 if builder.jobIdFlag { 28133 req.JobId = &builder.jobId 28134 28135 } 28136 if builder.jobPostIdFlag { 28137 req.JobPostId = &builder.jobPostId 28138 28139 } 28140 if builder.portalResumeIdFlag { 28141 req.PortalResumeId = &builder.portalResumeId 28142 28143 } 28144 if builder.userIdFlag { 28145 req.UserId = &builder.userId 28146 28147 } 28148 if builder.talentIdFlag { 28149 req.TalentId = &builder.talentId 28150 28151 } 28152 return req 28153 } 28154 28155 type WebsiteDeliveryEducation struct { 28156 EducationType *int `json:"education_type,omitempty"` // 学历类型 28157 EndTime *int `json:"end_time,omitempty"` // 结束时间 ,如果是至今传值 -1 28158 FieldOfStudy *string `json:"field_of_study,omitempty"` // 专业 28159 School *string `json:"school,omitempty"` // 学校 28160 StartTime *int `json:"start_time,omitempty"` // 开始时间 28161 AcademicRanking *int `json:"academic_ranking,omitempty"` // 专业排名 28162 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 28163 Degree *int `json:"degree,omitempty"` // 学位 28164 } 28165 28166 type WebsiteDeliveryEducationBuilder struct { 28167 educationType int // 学历类型 28168 educationTypeFlag bool 28169 endTime int // 结束时间 ,如果是至今传值 -1 28170 endTimeFlag bool 28171 fieldOfStudy string // 专业 28172 fieldOfStudyFlag bool 28173 school string // 学校 28174 schoolFlag bool 28175 startTime int // 开始时间 28176 startTimeFlag bool 28177 academicRanking int // 专业排名 28178 academicRankingFlag bool 28179 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 28180 customizedDataFlag bool 28181 degree int // 学位 28182 degreeFlag bool 28183 } 28184 28185 func NewWebsiteDeliveryEducationBuilder() *WebsiteDeliveryEducationBuilder { 28186 builder := &WebsiteDeliveryEducationBuilder{} 28187 return builder 28188 } 28189 28190 // 学历类型 28191 // 28192 // 示例值:1 28193 func (builder *WebsiteDeliveryEducationBuilder) EducationType(educationType int) *WebsiteDeliveryEducationBuilder { 28194 builder.educationType = educationType 28195 builder.educationTypeFlag = true 28196 return builder 28197 } 28198 28199 // 结束时间 ,如果是至今传值 -1 28200 // 28201 // 示例值:1618500278663 28202 func (builder *WebsiteDeliveryEducationBuilder) EndTime(endTime int) *WebsiteDeliveryEducationBuilder { 28203 builder.endTime = endTime 28204 builder.endTimeFlag = true 28205 return builder 28206 } 28207 28208 // 专业 28209 // 28210 // 示例值:汉语言文学 28211 func (builder *WebsiteDeliveryEducationBuilder) FieldOfStudy(fieldOfStudy string) *WebsiteDeliveryEducationBuilder { 28212 builder.fieldOfStudy = fieldOfStudy 28213 builder.fieldOfStudyFlag = true 28214 return builder 28215 } 28216 28217 // 学校 28218 // 28219 // 示例值:香港中文大学 28220 func (builder *WebsiteDeliveryEducationBuilder) School(school string) *WebsiteDeliveryEducationBuilder { 28221 builder.school = school 28222 builder.schoolFlag = true 28223 return builder 28224 } 28225 28226 // 开始时间 28227 // 28228 // 示例值:1609430400 28229 func (builder *WebsiteDeliveryEducationBuilder) StartTime(startTime int) *WebsiteDeliveryEducationBuilder { 28230 builder.startTime = startTime 28231 builder.startTimeFlag = true 28232 return builder 28233 } 28234 28235 // 专业排名 28236 // 28237 // 示例值:5 28238 func (builder *WebsiteDeliveryEducationBuilder) AcademicRanking(academicRanking int) *WebsiteDeliveryEducationBuilder { 28239 builder.academicRanking = academicRanking 28240 builder.academicRankingFlag = true 28241 return builder 28242 } 28243 28244 // 自定义字段 28245 // 28246 // 示例值: 28247 func (builder *WebsiteDeliveryEducationBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryEducationBuilder { 28248 builder.customizedData = customizedData 28249 builder.customizedDataFlag = true 28250 return builder 28251 } 28252 28253 // 学位 28254 // 28255 // 示例值:1 28256 func (builder *WebsiteDeliveryEducationBuilder) Degree(degree int) *WebsiteDeliveryEducationBuilder { 28257 builder.degree = degree 28258 builder.degreeFlag = true 28259 return builder 28260 } 28261 28262 func (builder *WebsiteDeliveryEducationBuilder) Build() *WebsiteDeliveryEducation { 28263 req := &WebsiteDeliveryEducation{} 28264 if builder.educationTypeFlag { 28265 req.EducationType = &builder.educationType 28266 28267 } 28268 if builder.endTimeFlag { 28269 req.EndTime = &builder.endTime 28270 28271 } 28272 if builder.fieldOfStudyFlag { 28273 req.FieldOfStudy = &builder.fieldOfStudy 28274 28275 } 28276 if builder.schoolFlag { 28277 req.School = &builder.school 28278 28279 } 28280 if builder.startTimeFlag { 28281 req.StartTime = &builder.startTime 28282 28283 } 28284 if builder.academicRankingFlag { 28285 req.AcademicRanking = &builder.academicRanking 28286 28287 } 28288 if builder.customizedDataFlag { 28289 req.CustomizedData = builder.customizedData 28290 } 28291 if builder.degreeFlag { 28292 req.Degree = &builder.degree 28293 28294 } 28295 return req 28296 } 28297 28298 type WebsiteDeliveryIdentification struct { 28299 IdentificationNumber *string `json:"identification_number,omitempty"` // 身份证件号码 28300 IdentificationType *int `json:"identification_type,omitempty"` // 身份证件类型 28301 } 28302 28303 type WebsiteDeliveryIdentificationBuilder struct { 28304 identificationNumber string // 身份证件号码 28305 identificationNumberFlag bool 28306 identificationType int // 身份证件类型 28307 identificationTypeFlag bool 28308 } 28309 28310 func NewWebsiteDeliveryIdentificationBuilder() *WebsiteDeliveryIdentificationBuilder { 28311 builder := &WebsiteDeliveryIdentificationBuilder{} 28312 return builder 28313 } 28314 28315 // 身份证件号码 28316 // 28317 // 示例值:11002030131312312 28318 func (builder *WebsiteDeliveryIdentificationBuilder) IdentificationNumber(identificationNumber string) *WebsiteDeliveryIdentificationBuilder { 28319 builder.identificationNumber = identificationNumber 28320 builder.identificationNumberFlag = true 28321 return builder 28322 } 28323 28324 // 身份证件类型 28325 // 28326 // 示例值:1 28327 func (builder *WebsiteDeliveryIdentificationBuilder) IdentificationType(identificationType int) *WebsiteDeliveryIdentificationBuilder { 28328 builder.identificationType = identificationType 28329 builder.identificationTypeFlag = true 28330 return builder 28331 } 28332 28333 func (builder *WebsiteDeliveryIdentificationBuilder) Build() *WebsiteDeliveryIdentification { 28334 req := &WebsiteDeliveryIdentification{} 28335 if builder.identificationNumberFlag { 28336 req.IdentificationNumber = &builder.identificationNumber 28337 28338 } 28339 if builder.identificationTypeFlag { 28340 req.IdentificationType = &builder.identificationType 28341 28342 } 28343 return req 28344 } 28345 28346 type WebsiteDeliveryInternship struct { 28347 Desc *string `json:"desc,omitempty"` // 描述 28348 EndTime *int `json:"end_time,omitempty"` // 结束时间, 如果是至今传值 -1 28349 StartTime *int `json:"start_time,omitempty"` // 开始时间 28350 Title *string `json:"title,omitempty"` // 职位名称 28351 Company *string `json:"company,omitempty"` // 公司 28352 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 28353 } 28354 28355 type WebsiteDeliveryInternshipBuilder struct { 28356 desc string // 描述 28357 descFlag bool 28358 endTime int // 结束时间, 如果是至今传值 -1 28359 endTimeFlag bool 28360 startTime int // 开始时间 28361 startTimeFlag bool 28362 title string // 职位名称 28363 titleFlag bool 28364 company string // 公司 28365 companyFlag bool 28366 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 28367 customizedDataFlag bool 28368 } 28369 28370 func NewWebsiteDeliveryInternshipBuilder() *WebsiteDeliveryInternshipBuilder { 28371 builder := &WebsiteDeliveryInternshipBuilder{} 28372 return builder 28373 } 28374 28375 // 描述 28376 // 28377 // 示例值:这是一家创业公司,非常不错 28378 func (builder *WebsiteDeliveryInternshipBuilder) Desc(desc string) *WebsiteDeliveryInternshipBuilder { 28379 builder.desc = desc 28380 builder.descFlag = true 28381 return builder 28382 } 28383 28384 // 结束时间, 如果是至今传值 -1 28385 // 28386 // 示例值:1618500278667 28387 func (builder *WebsiteDeliveryInternshipBuilder) EndTime(endTime int) *WebsiteDeliveryInternshipBuilder { 28388 builder.endTime = endTime 28389 builder.endTimeFlag = true 28390 return builder 28391 } 28392 28393 // 开始时间 28394 // 28395 // 示例值:1609430400 28396 func (builder *WebsiteDeliveryInternshipBuilder) StartTime(startTime int) *WebsiteDeliveryInternshipBuilder { 28397 builder.startTime = startTime 28398 builder.startTimeFlag = true 28399 return builder 28400 } 28401 28402 // 职位名称 28403 // 28404 // 示例值:后端研发实习生 28405 func (builder *WebsiteDeliveryInternshipBuilder) Title(title string) *WebsiteDeliveryInternshipBuilder { 28406 builder.title = title 28407 builder.titleFlag = true 28408 return builder 28409 } 28410 28411 // 公司 28412 // 28413 // 示例值:字节跳动 28414 func (builder *WebsiteDeliveryInternshipBuilder) Company(company string) *WebsiteDeliveryInternshipBuilder { 28415 builder.company = company 28416 builder.companyFlag = true 28417 return builder 28418 } 28419 28420 // 自定义字段 28421 // 28422 // 示例值: 28423 func (builder *WebsiteDeliveryInternshipBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryInternshipBuilder { 28424 builder.customizedData = customizedData 28425 builder.customizedDataFlag = true 28426 return builder 28427 } 28428 28429 func (builder *WebsiteDeliveryInternshipBuilder) Build() *WebsiteDeliveryInternship { 28430 req := &WebsiteDeliveryInternship{} 28431 if builder.descFlag { 28432 req.Desc = &builder.desc 28433 28434 } 28435 if builder.endTimeFlag { 28436 req.EndTime = &builder.endTime 28437 28438 } 28439 if builder.startTimeFlag { 28440 req.StartTime = &builder.startTime 28441 28442 } 28443 if builder.titleFlag { 28444 req.Title = &builder.title 28445 28446 } 28447 if builder.companyFlag { 28448 req.Company = &builder.company 28449 28450 } 28451 if builder.customizedDataFlag { 28452 req.CustomizedData = builder.customizedData 28453 } 28454 return req 28455 } 28456 28457 type WebsiteDeliveryLanguage struct { 28458 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 28459 Language *int `json:"language,omitempty"` // 语言 28460 Proficiency *int `json:"proficiency,omitempty"` // 熟悉程度 28461 } 28462 28463 type WebsiteDeliveryLanguageBuilder struct { 28464 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 28465 customizedDataFlag bool 28466 language int // 语言 28467 languageFlag bool 28468 proficiency int // 熟悉程度 28469 proficiencyFlag bool 28470 } 28471 28472 func NewWebsiteDeliveryLanguageBuilder() *WebsiteDeliveryLanguageBuilder { 28473 builder := &WebsiteDeliveryLanguageBuilder{} 28474 return builder 28475 } 28476 28477 // 自定义字段 28478 // 28479 // 示例值: 28480 func (builder *WebsiteDeliveryLanguageBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryLanguageBuilder { 28481 builder.customizedData = customizedData 28482 builder.customizedDataFlag = true 28483 return builder 28484 } 28485 28486 // 语言 28487 // 28488 // 示例值:1 28489 func (builder *WebsiteDeliveryLanguageBuilder) Language(language int) *WebsiteDeliveryLanguageBuilder { 28490 builder.language = language 28491 builder.languageFlag = true 28492 return builder 28493 } 28494 28495 // 熟悉程度 28496 // 28497 // 示例值:1 28498 func (builder *WebsiteDeliveryLanguageBuilder) Proficiency(proficiency int) *WebsiteDeliveryLanguageBuilder { 28499 builder.proficiency = proficiency 28500 builder.proficiencyFlag = true 28501 return builder 28502 } 28503 28504 func (builder *WebsiteDeliveryLanguageBuilder) Build() *WebsiteDeliveryLanguage { 28505 req := &WebsiteDeliveryLanguage{} 28506 if builder.customizedDataFlag { 28507 req.CustomizedData = builder.customizedData 28508 } 28509 if builder.languageFlag { 28510 req.Language = &builder.language 28511 28512 } 28513 if builder.proficiencyFlag { 28514 req.Proficiency = &builder.proficiency 28515 28516 } 28517 return req 28518 } 28519 28520 type WebsiteDeliveryProject struct { 28521 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 28522 Desc *string `json:"desc,omitempty"` // 描述 28523 EndTime *int `json:"end_time,omitempty"` // 结束时间, 如果是至今传值-1 28524 Link *string `json:"link,omitempty"` // 项目链接 28525 Name *string `json:"name,omitempty"` // 项目名称 28526 Role *string `json:"role,omitempty"` // 角色 28527 StartTime *int `json:"start_time,omitempty"` // 开始时间 28528 } 28529 28530 type WebsiteDeliveryProjectBuilder struct { 28531 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 28532 customizedDataFlag bool 28533 desc string // 描述 28534 descFlag bool 28535 endTime int // 结束时间, 如果是至今传值-1 28536 endTimeFlag bool 28537 link string // 项目链接 28538 linkFlag bool 28539 name string // 项目名称 28540 nameFlag bool 28541 role string // 角色 28542 roleFlag bool 28543 startTime int // 开始时间 28544 startTimeFlag bool 28545 } 28546 28547 func NewWebsiteDeliveryProjectBuilder() *WebsiteDeliveryProjectBuilder { 28548 builder := &WebsiteDeliveryProjectBuilder{} 28549 return builder 28550 } 28551 28552 // 自定义字段 28553 // 28554 // 示例值: 28555 func (builder *WebsiteDeliveryProjectBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryProjectBuilder { 28556 builder.customizedData = customizedData 28557 builder.customizedDataFlag = true 28558 return builder 28559 } 28560 28561 // 描述 28562 // 28563 // 示例值:项目描述:xxxx 28564 func (builder *WebsiteDeliveryProjectBuilder) Desc(desc string) *WebsiteDeliveryProjectBuilder { 28565 builder.desc = desc 28566 builder.descFlag = true 28567 return builder 28568 } 28569 28570 // 结束时间, 如果是至今传值-1 28571 // 28572 // 示例值:1618500278669 28573 func (builder *WebsiteDeliveryProjectBuilder) EndTime(endTime int) *WebsiteDeliveryProjectBuilder { 28574 builder.endTime = endTime 28575 builder.endTimeFlag = true 28576 return builder 28577 } 28578 28579 // 项目链接 28580 // 28581 // 示例值:www.toutiao.com 28582 func (builder *WebsiteDeliveryProjectBuilder) Link(link string) *WebsiteDeliveryProjectBuilder { 28583 builder.link = link 28584 builder.linkFlag = true 28585 return builder 28586 } 28587 28588 // 项目名称 28589 // 28590 // 示例值:XXX项目重构 28591 func (builder *WebsiteDeliveryProjectBuilder) Name(name string) *WebsiteDeliveryProjectBuilder { 28592 builder.name = name 28593 builder.nameFlag = true 28594 return builder 28595 } 28596 28597 // 角色 28598 // 28599 // 示例值:项目经理 28600 func (builder *WebsiteDeliveryProjectBuilder) Role(role string) *WebsiteDeliveryProjectBuilder { 28601 builder.role = role 28602 builder.roleFlag = true 28603 return builder 28604 } 28605 28606 // 开始时间 28607 // 28608 // 示例值:1609430400 28609 func (builder *WebsiteDeliveryProjectBuilder) StartTime(startTime int) *WebsiteDeliveryProjectBuilder { 28610 builder.startTime = startTime 28611 builder.startTimeFlag = true 28612 return builder 28613 } 28614 28615 func (builder *WebsiteDeliveryProjectBuilder) Build() *WebsiteDeliveryProject { 28616 req := &WebsiteDeliveryProject{} 28617 if builder.customizedDataFlag { 28618 req.CustomizedData = builder.customizedData 28619 } 28620 if builder.descFlag { 28621 req.Desc = &builder.desc 28622 28623 } 28624 if builder.endTimeFlag { 28625 req.EndTime = &builder.endTime 28626 28627 } 28628 if builder.linkFlag { 28629 req.Link = &builder.link 28630 28631 } 28632 if builder.nameFlag { 28633 req.Name = &builder.name 28634 28635 } 28636 if builder.roleFlag { 28637 req.Role = &builder.role 28638 28639 } 28640 if builder.startTimeFlag { 28641 req.StartTime = &builder.startTime 28642 28643 } 28644 return req 28645 } 28646 28647 type WebsiteDeliveryResume struct { 28648 InternshipList []*WebsiteDeliveryInternship `json:"internship_list,omitempty"` // 实习经历 28649 BasicInfo *WebsiteDeliveryBasicInfo `json:"basic_info,omitempty"` // 基本信息 28650 EducationList []*WebsiteDeliveryEducation `json:"education_list,omitempty"` // 教育经历 28651 SelfEvaluation *WebsiteDeliverySelfEvaluation `json:"self_evaluation,omitempty"` // 自我评价 28652 CareerList []*WebsiteDeliveryCareer `json:"career_list,omitempty"` // 工作经历 28653 CustomizedData []*WebsiteDeliveryCustomizedDataParent `json:"customized_data,omitempty"` // 自定义模块 28654 ResumeAttachmentId *string `json:"resume_attachment_id,omitempty"` // 简历附件ID,使用「创建附件」生成 28655 SnsList []*WebsiteDeliverySns `json:"sns_list,omitempty"` // 社交账号 28656 WorksList []*WebsiteDeliveryWorks `json:"works_list,omitempty"` // 作品 28657 AwardList []*WebsiteDeliveryAward `json:"award_list,omitempty"` // 获奖记录 28658 ProjectList []*WebsiteDeliveryProject `json:"project_list,omitempty"` // 项目经历 28659 LanguageList []*WebsiteDeliveryLanguage `json:"language_list,omitempty"` // 语言能力 28660 } 28661 28662 type WebsiteDeliveryResumeBuilder struct { 28663 internshipList []*WebsiteDeliveryInternship // 实习经历 28664 internshipListFlag bool 28665 basicInfo *WebsiteDeliveryBasicInfo // 基本信息 28666 basicInfoFlag bool 28667 educationList []*WebsiteDeliveryEducation // 教育经历 28668 educationListFlag bool 28669 selfEvaluation *WebsiteDeliverySelfEvaluation // 自我评价 28670 selfEvaluationFlag bool 28671 careerList []*WebsiteDeliveryCareer // 工作经历 28672 careerListFlag bool 28673 customizedData []*WebsiteDeliveryCustomizedDataParent // 自定义模块 28674 customizedDataFlag bool 28675 resumeAttachmentId string // 简历附件ID,使用「创建附件」生成 28676 resumeAttachmentIdFlag bool 28677 snsList []*WebsiteDeliverySns // 社交账号 28678 snsListFlag bool 28679 worksList []*WebsiteDeliveryWorks // 作品 28680 worksListFlag bool 28681 awardList []*WebsiteDeliveryAward // 获奖记录 28682 awardListFlag bool 28683 projectList []*WebsiteDeliveryProject // 项目经历 28684 projectListFlag bool 28685 languageList []*WebsiteDeliveryLanguage // 语言能力 28686 languageListFlag bool 28687 } 28688 28689 func NewWebsiteDeliveryResumeBuilder() *WebsiteDeliveryResumeBuilder { 28690 builder := &WebsiteDeliveryResumeBuilder{} 28691 return builder 28692 } 28693 28694 // 实习经历 28695 // 28696 // 示例值: 28697 func (builder *WebsiteDeliveryResumeBuilder) InternshipList(internshipList []*WebsiteDeliveryInternship) *WebsiteDeliveryResumeBuilder { 28698 builder.internshipList = internshipList 28699 builder.internshipListFlag = true 28700 return builder 28701 } 28702 28703 // 基本信息 28704 // 28705 // 示例值: 28706 func (builder *WebsiteDeliveryResumeBuilder) BasicInfo(basicInfo *WebsiteDeliveryBasicInfo) *WebsiteDeliveryResumeBuilder { 28707 builder.basicInfo = basicInfo 28708 builder.basicInfoFlag = true 28709 return builder 28710 } 28711 28712 // 教育经历 28713 // 28714 // 示例值: 28715 func (builder *WebsiteDeliveryResumeBuilder) EducationList(educationList []*WebsiteDeliveryEducation) *WebsiteDeliveryResumeBuilder { 28716 builder.educationList = educationList 28717 builder.educationListFlag = true 28718 return builder 28719 } 28720 28721 // 自我评价 28722 // 28723 // 示例值: 28724 func (builder *WebsiteDeliveryResumeBuilder) SelfEvaluation(selfEvaluation *WebsiteDeliverySelfEvaluation) *WebsiteDeliveryResumeBuilder { 28725 builder.selfEvaluation = selfEvaluation 28726 builder.selfEvaluationFlag = true 28727 return builder 28728 } 28729 28730 // 工作经历 28731 // 28732 // 示例值: 28733 func (builder *WebsiteDeliveryResumeBuilder) CareerList(careerList []*WebsiteDeliveryCareer) *WebsiteDeliveryResumeBuilder { 28734 builder.careerList = careerList 28735 builder.careerListFlag = true 28736 return builder 28737 } 28738 28739 // 自定义模块 28740 // 28741 // 示例值: 28742 func (builder *WebsiteDeliveryResumeBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedDataParent) *WebsiteDeliveryResumeBuilder { 28743 builder.customizedData = customizedData 28744 builder.customizedDataFlag = true 28745 return builder 28746 } 28747 28748 // 简历附件ID,使用「创建附件」生成 28749 // 28750 // 示例值:6960663240925956654 28751 func (builder *WebsiteDeliveryResumeBuilder) ResumeAttachmentId(resumeAttachmentId string) *WebsiteDeliveryResumeBuilder { 28752 builder.resumeAttachmentId = resumeAttachmentId 28753 builder.resumeAttachmentIdFlag = true 28754 return builder 28755 } 28756 28757 // 社交账号 28758 // 28759 // 示例值: 28760 func (builder *WebsiteDeliveryResumeBuilder) SnsList(snsList []*WebsiteDeliverySns) *WebsiteDeliveryResumeBuilder { 28761 builder.snsList = snsList 28762 builder.snsListFlag = true 28763 return builder 28764 } 28765 28766 // 作品 28767 // 28768 // 示例值: 28769 func (builder *WebsiteDeliveryResumeBuilder) WorksList(worksList []*WebsiteDeliveryWorks) *WebsiteDeliveryResumeBuilder { 28770 builder.worksList = worksList 28771 builder.worksListFlag = true 28772 return builder 28773 } 28774 28775 // 获奖记录 28776 // 28777 // 示例值: 28778 func (builder *WebsiteDeliveryResumeBuilder) AwardList(awardList []*WebsiteDeliveryAward) *WebsiteDeliveryResumeBuilder { 28779 builder.awardList = awardList 28780 builder.awardListFlag = true 28781 return builder 28782 } 28783 28784 // 项目经历 28785 // 28786 // 示例值: 28787 func (builder *WebsiteDeliveryResumeBuilder) ProjectList(projectList []*WebsiteDeliveryProject) *WebsiteDeliveryResumeBuilder { 28788 builder.projectList = projectList 28789 builder.projectListFlag = true 28790 return builder 28791 } 28792 28793 // 语言能力 28794 // 28795 // 示例值: 28796 func (builder *WebsiteDeliveryResumeBuilder) LanguageList(languageList []*WebsiteDeliveryLanguage) *WebsiteDeliveryResumeBuilder { 28797 builder.languageList = languageList 28798 builder.languageListFlag = true 28799 return builder 28800 } 28801 28802 func (builder *WebsiteDeliveryResumeBuilder) Build() *WebsiteDeliveryResume { 28803 req := &WebsiteDeliveryResume{} 28804 if builder.internshipListFlag { 28805 req.InternshipList = builder.internshipList 28806 } 28807 if builder.basicInfoFlag { 28808 req.BasicInfo = builder.basicInfo 28809 } 28810 if builder.educationListFlag { 28811 req.EducationList = builder.educationList 28812 } 28813 if builder.selfEvaluationFlag { 28814 req.SelfEvaluation = builder.selfEvaluation 28815 } 28816 if builder.careerListFlag { 28817 req.CareerList = builder.careerList 28818 } 28819 if builder.customizedDataFlag { 28820 req.CustomizedData = builder.customizedData 28821 } 28822 if builder.resumeAttachmentIdFlag { 28823 req.ResumeAttachmentId = &builder.resumeAttachmentId 28824 28825 } 28826 if builder.snsListFlag { 28827 req.SnsList = builder.snsList 28828 } 28829 if builder.worksListFlag { 28830 req.WorksList = builder.worksList 28831 } 28832 if builder.awardListFlag { 28833 req.AwardList = builder.awardList 28834 } 28835 if builder.projectListFlag { 28836 req.ProjectList = builder.projectList 28837 } 28838 if builder.languageListFlag { 28839 req.LanguageList = builder.languageList 28840 } 28841 return req 28842 } 28843 28844 type WebsiteDeliverySelfEvaluation struct { 28845 Content *string `json:"content,omitempty"` // 内容 28846 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 28847 } 28848 28849 type WebsiteDeliverySelfEvaluationBuilder struct { 28850 content string // 内容 28851 contentFlag bool 28852 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 28853 customizedDataFlag bool 28854 } 28855 28856 func NewWebsiteDeliverySelfEvaluationBuilder() *WebsiteDeliverySelfEvaluationBuilder { 28857 builder := &WebsiteDeliverySelfEvaluationBuilder{} 28858 return builder 28859 } 28860 28861 // 内容 28862 // 28863 // 示例值:自我评价:平常心 28864 func (builder *WebsiteDeliverySelfEvaluationBuilder) Content(content string) *WebsiteDeliverySelfEvaluationBuilder { 28865 builder.content = content 28866 builder.contentFlag = true 28867 return builder 28868 } 28869 28870 // 自定义字段 28871 // 28872 // 示例值: 28873 func (builder *WebsiteDeliverySelfEvaluationBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliverySelfEvaluationBuilder { 28874 builder.customizedData = customizedData 28875 builder.customizedDataFlag = true 28876 return builder 28877 } 28878 28879 func (builder *WebsiteDeliverySelfEvaluationBuilder) Build() *WebsiteDeliverySelfEvaluation { 28880 req := &WebsiteDeliverySelfEvaluation{} 28881 if builder.contentFlag { 28882 req.Content = &builder.content 28883 28884 } 28885 if builder.customizedDataFlag { 28886 req.CustomizedData = builder.customizedData 28887 } 28888 return req 28889 } 28890 28891 type WebsiteDeliverySns struct { 28892 SnsType *int `json:"sns_type,omitempty"` // 社交账号类型 28893 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 28894 Link *string `json:"link,omitempty"` // 链接 28895 } 28896 28897 type WebsiteDeliverySnsBuilder struct { 28898 snsType int // 社交账号类型 28899 snsTypeFlag bool 28900 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 28901 customizedDataFlag bool 28902 link string // 链接 28903 linkFlag bool 28904 } 28905 28906 func NewWebsiteDeliverySnsBuilder() *WebsiteDeliverySnsBuilder { 28907 builder := &WebsiteDeliverySnsBuilder{} 28908 return builder 28909 } 28910 28911 // 社交账号类型 28912 // 28913 // 示例值:1 28914 func (builder *WebsiteDeliverySnsBuilder) SnsType(snsType int) *WebsiteDeliverySnsBuilder { 28915 builder.snsType = snsType 28916 builder.snsTypeFlag = true 28917 return builder 28918 } 28919 28920 // 自定义字段 28921 // 28922 // 示例值: 28923 func (builder *WebsiteDeliverySnsBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliverySnsBuilder { 28924 builder.customizedData = customizedData 28925 builder.customizedDataFlag = true 28926 return builder 28927 } 28928 28929 // 链接 28930 // 28931 // 示例值:toutiao.com 28932 func (builder *WebsiteDeliverySnsBuilder) Link(link string) *WebsiteDeliverySnsBuilder { 28933 builder.link = link 28934 builder.linkFlag = true 28935 return builder 28936 } 28937 28938 func (builder *WebsiteDeliverySnsBuilder) Build() *WebsiteDeliverySns { 28939 req := &WebsiteDeliverySns{} 28940 if builder.snsTypeFlag { 28941 req.SnsType = &builder.snsType 28942 28943 } 28944 if builder.customizedDataFlag { 28945 req.CustomizedData = builder.customizedData 28946 } 28947 if builder.linkFlag { 28948 req.Link = &builder.link 28949 28950 } 28951 return req 28952 } 28953 28954 type WebsiteDeliveryWorks struct { 28955 Desc *string `json:"desc,omitempty"` // 作品描述 28956 Link *string `json:"link,omitempty"` // 作品链接 28957 Attachment *WebsiteDeliveryWorksAttachment `json:"attachment,omitempty"` // 附件 28958 CustomizedData []*WebsiteDeliveryCustomizedData `json:"customized_data,omitempty"` // 自定义字段 28959 } 28960 28961 type WebsiteDeliveryWorksBuilder struct { 28962 desc string // 作品描述 28963 descFlag bool 28964 link string // 作品链接 28965 linkFlag bool 28966 attachment *WebsiteDeliveryWorksAttachment // 附件 28967 attachmentFlag bool 28968 customizedData []*WebsiteDeliveryCustomizedData // 自定义字段 28969 customizedDataFlag bool 28970 } 28971 28972 func NewWebsiteDeliveryWorksBuilder() *WebsiteDeliveryWorksBuilder { 28973 builder := &WebsiteDeliveryWorksBuilder{} 28974 return builder 28975 } 28976 28977 // 作品描述 28978 // 28979 // 示例值:作品描述:xxxx 28980 func (builder *WebsiteDeliveryWorksBuilder) Desc(desc string) *WebsiteDeliveryWorksBuilder { 28981 builder.desc = desc 28982 builder.descFlag = true 28983 return builder 28984 } 28985 28986 // 作品链接 28987 // 28988 // 示例值:www.toutiao.com 28989 func (builder *WebsiteDeliveryWorksBuilder) Link(link string) *WebsiteDeliveryWorksBuilder { 28990 builder.link = link 28991 builder.linkFlag = true 28992 return builder 28993 } 28994 28995 // 附件 28996 // 28997 // 示例值: 28998 func (builder *WebsiteDeliveryWorksBuilder) Attachment(attachment *WebsiteDeliveryWorksAttachment) *WebsiteDeliveryWorksBuilder { 28999 builder.attachment = attachment 29000 builder.attachmentFlag = true 29001 return builder 29002 } 29003 29004 // 自定义字段 29005 // 29006 // 示例值: 29007 func (builder *WebsiteDeliveryWorksBuilder) CustomizedData(customizedData []*WebsiteDeliveryCustomizedData) *WebsiteDeliveryWorksBuilder { 29008 builder.customizedData = customizedData 29009 builder.customizedDataFlag = true 29010 return builder 29011 } 29012 29013 func (builder *WebsiteDeliveryWorksBuilder) Build() *WebsiteDeliveryWorks { 29014 req := &WebsiteDeliveryWorks{} 29015 if builder.descFlag { 29016 req.Desc = &builder.desc 29017 29018 } 29019 if builder.linkFlag { 29020 req.Link = &builder.link 29021 29022 } 29023 if builder.attachmentFlag { 29024 req.Attachment = builder.attachment 29025 } 29026 if builder.customizedDataFlag { 29027 req.CustomizedData = builder.customizedData 29028 } 29029 return req 29030 } 29031 29032 type WebsiteDeliveryWorksAttachment struct { 29033 FileId *string `json:"file_id,omitempty"` // 文件ID,使用「创建附件」生成 29034 } 29035 29036 type WebsiteDeliveryWorksAttachmentBuilder struct { 29037 fileId string // 文件ID,使用「创建附件」生成 29038 fileIdFlag bool 29039 } 29040 29041 func NewWebsiteDeliveryWorksAttachmentBuilder() *WebsiteDeliveryWorksAttachmentBuilder { 29042 builder := &WebsiteDeliveryWorksAttachmentBuilder{} 29043 return builder 29044 } 29045 29046 // 文件ID,使用「创建附件」生成 29047 // 29048 // 示例值:6982104077248219436 29049 func (builder *WebsiteDeliveryWorksAttachmentBuilder) FileId(fileId string) *WebsiteDeliveryWorksAttachmentBuilder { 29050 builder.fileId = fileId 29051 builder.fileIdFlag = true 29052 return builder 29053 } 29054 29055 func (builder *WebsiteDeliveryWorksAttachmentBuilder) Build() *WebsiteDeliveryWorksAttachment { 29056 req := &WebsiteDeliveryWorksAttachment{} 29057 if builder.fileIdFlag { 29058 req.FileId = &builder.fileId 29059 29060 } 29061 return req 29062 } 29063 29064 type WebsiteJobPost struct { 29065 Id *string `json:"id,omitempty"` // 职位广告 ID 29066 Title *string `json:"title,omitempty"` // 标题 29067 JobId *string `json:"job_id,omitempty"` // 职位 ID 29068 JobCode *string `json:"job_code,omitempty"` // 职位编码 29069 JobExpireTime *string `json:"job_expire_time,omitempty"` // 职位过期时间,「null」代表「长期有效」 29070 JobActiveStatus *int `json:"job_active_status,omitempty"` // 职位状态 29071 JobProcessType *int `json:"job_process_type,omitempty"` // 职位流程类型 29072 JobRecruitmentType *IdNameObject `json:"job_recruitment_type,omitempty"` // 职位雇佣类型 29073 JobDepartment *IdNameObject `json:"job_department,omitempty"` // 职位部门 29074 JobType *IdNameObject `json:"job_type,omitempty"` // 职位类型 29075 Address *CommonAddress `json:"address,omitempty"` // 职位地址 29076 MinSalary *string `json:"min_salary,omitempty"` // 月薪范围-最低薪资 29077 MaxSalary *string `json:"max_salary,omitempty"` // 月薪范围-最高薪资 29078 RequiredDegree *int `json:"required_degree,omitempty"` // 学历要求 29079 Experience *int `json:"experience,omitempty"` // 经验 29080 Headcount *int `json:"headcount,omitempty"` // 数量 29081 HighLightList []*IdNameObject `json:"high_light_list,omitempty"` // 职位亮点 29082 Description *string `json:"description,omitempty"` // 职位描述 29083 Requirement *string `json:"requirement,omitempty"` // 职位要求 29084 Creator *IdNameObject `json:"creator,omitempty"` // 创建人 29085 CreateTime *string `json:"create_time,omitempty"` // 创建时间 29086 ModifyTime *string `json:"modify_time,omitempty"` // 修改时间 29087 PublishTime *string `json:"publish_time,omitempty"` // 发布时间 29088 CustomizedDataList []*WebsiteJobPostCustomizedData `json:"customized_data_list,omitempty"` // 自定义字段 29089 JobFunction *IdNameObject `json:"job_function,omitempty"` // 职能分类 29090 Subject *IdNameObject `json:"subject,omitempty"` // 职位项目 29091 AddressList []*CommonAddress `json:"address_list,omitempty"` // 职位广告地址列表 29092 } 29093 29094 type WebsiteJobPostBuilder struct { 29095 id string // 职位广告 ID 29096 idFlag bool 29097 title string // 标题 29098 titleFlag bool 29099 jobId string // 职位 ID 29100 jobIdFlag bool 29101 jobCode string // 职位编码 29102 jobCodeFlag bool 29103 jobExpireTime string // 职位过期时间,「null」代表「长期有效」 29104 jobExpireTimeFlag bool 29105 jobActiveStatus int // 职位状态 29106 jobActiveStatusFlag bool 29107 jobProcessType int // 职位流程类型 29108 jobProcessTypeFlag bool 29109 jobRecruitmentType *IdNameObject // 职位雇佣类型 29110 jobRecruitmentTypeFlag bool 29111 jobDepartment *IdNameObject // 职位部门 29112 jobDepartmentFlag bool 29113 jobType *IdNameObject // 职位类型 29114 jobTypeFlag bool 29115 address *CommonAddress // 职位地址 29116 addressFlag bool 29117 minSalary string // 月薪范围-最低薪资 29118 minSalaryFlag bool 29119 maxSalary string // 月薪范围-最高薪资 29120 maxSalaryFlag bool 29121 requiredDegree int // 学历要求 29122 requiredDegreeFlag bool 29123 experience int // 经验 29124 experienceFlag bool 29125 headcount int // 数量 29126 headcountFlag bool 29127 highLightList []*IdNameObject // 职位亮点 29128 highLightListFlag bool 29129 description string // 职位描述 29130 descriptionFlag bool 29131 requirement string // 职位要求 29132 requirementFlag bool 29133 creator *IdNameObject // 创建人 29134 creatorFlag bool 29135 createTime string // 创建时间 29136 createTimeFlag bool 29137 modifyTime string // 修改时间 29138 modifyTimeFlag bool 29139 publishTime string // 发布时间 29140 publishTimeFlag bool 29141 customizedDataList []*WebsiteJobPostCustomizedData // 自定义字段 29142 customizedDataListFlag bool 29143 jobFunction *IdNameObject // 职能分类 29144 jobFunctionFlag bool 29145 subject *IdNameObject // 职位项目 29146 subjectFlag bool 29147 addressList []*CommonAddress // 职位广告地址列表 29148 addressListFlag bool 29149 } 29150 29151 func NewWebsiteJobPostBuilder() *WebsiteJobPostBuilder { 29152 builder := &WebsiteJobPostBuilder{} 29153 return builder 29154 } 29155 29156 // 职位广告 ID 29157 // 29158 // 示例值:1213213123123 29159 func (builder *WebsiteJobPostBuilder) Id(id string) *WebsiteJobPostBuilder { 29160 builder.id = id 29161 builder.idFlag = true 29162 return builder 29163 } 29164 29165 // 标题 29166 // 29167 // 示例值:测试 29168 func (builder *WebsiteJobPostBuilder) Title(title string) *WebsiteJobPostBuilder { 29169 builder.title = title 29170 builder.titleFlag = true 29171 return builder 29172 } 29173 29174 // 职位 ID 29175 // 29176 // 示例值:xxx 29177 func (builder *WebsiteJobPostBuilder) JobId(jobId string) *WebsiteJobPostBuilder { 29178 builder.jobId = jobId 29179 builder.jobIdFlag = true 29180 return builder 29181 } 29182 29183 // 职位编码 29184 // 29185 // 示例值:007 29186 func (builder *WebsiteJobPostBuilder) JobCode(jobCode string) *WebsiteJobPostBuilder { 29187 builder.jobCode = jobCode 29188 builder.jobCodeFlag = true 29189 return builder 29190 } 29191 29192 // 职位过期时间,「null」代表「长期有效」 29193 // 29194 // 示例值:1111 29195 func (builder *WebsiteJobPostBuilder) JobExpireTime(jobExpireTime string) *WebsiteJobPostBuilder { 29196 builder.jobExpireTime = jobExpireTime 29197 builder.jobExpireTimeFlag = true 29198 return builder 29199 } 29200 29201 // 职位状态 29202 // 29203 // 示例值:1 29204 func (builder *WebsiteJobPostBuilder) JobActiveStatus(jobActiveStatus int) *WebsiteJobPostBuilder { 29205 builder.jobActiveStatus = jobActiveStatus 29206 builder.jobActiveStatusFlag = true 29207 return builder 29208 } 29209 29210 // 职位流程类型 29211 // 29212 // 示例值:1 29213 func (builder *WebsiteJobPostBuilder) JobProcessType(jobProcessType int) *WebsiteJobPostBuilder { 29214 builder.jobProcessType = jobProcessType 29215 builder.jobProcessTypeFlag = true 29216 return builder 29217 } 29218 29219 // 职位雇佣类型 29220 // 29221 // 示例值: 29222 func (builder *WebsiteJobPostBuilder) JobRecruitmentType(jobRecruitmentType *IdNameObject) *WebsiteJobPostBuilder { 29223 builder.jobRecruitmentType = jobRecruitmentType 29224 builder.jobRecruitmentTypeFlag = true 29225 return builder 29226 } 29227 29228 // 职位部门 29229 // 29230 // 示例值: 29231 func (builder *WebsiteJobPostBuilder) JobDepartment(jobDepartment *IdNameObject) *WebsiteJobPostBuilder { 29232 builder.jobDepartment = jobDepartment 29233 builder.jobDepartmentFlag = true 29234 return builder 29235 } 29236 29237 // 职位类型 29238 // 29239 // 示例值: 29240 func (builder *WebsiteJobPostBuilder) JobType(jobType *IdNameObject) *WebsiteJobPostBuilder { 29241 builder.jobType = jobType 29242 builder.jobTypeFlag = true 29243 return builder 29244 } 29245 29246 // 职位地址 29247 // 29248 // 示例值: 29249 func (builder *WebsiteJobPostBuilder) Address(address *CommonAddress) *WebsiteJobPostBuilder { 29250 builder.address = address 29251 builder.addressFlag = true 29252 return builder 29253 } 29254 29255 // 月薪范围-最低薪资 29256 // 29257 // 示例值:5000 29258 func (builder *WebsiteJobPostBuilder) MinSalary(minSalary string) *WebsiteJobPostBuilder { 29259 builder.minSalary = minSalary 29260 builder.minSalaryFlag = true 29261 return builder 29262 } 29263 29264 // 月薪范围-最高薪资 29265 // 29266 // 示例值:10000 29267 func (builder *WebsiteJobPostBuilder) MaxSalary(maxSalary string) *WebsiteJobPostBuilder { 29268 builder.maxSalary = maxSalary 29269 builder.maxSalaryFlag = true 29270 return builder 29271 } 29272 29273 // 学历要求 29274 // 29275 // 示例值:1 29276 func (builder *WebsiteJobPostBuilder) RequiredDegree(requiredDegree int) *WebsiteJobPostBuilder { 29277 builder.requiredDegree = requiredDegree 29278 builder.requiredDegreeFlag = true 29279 return builder 29280 } 29281 29282 // 经验 29283 // 29284 // 示例值:1 29285 func (builder *WebsiteJobPostBuilder) Experience(experience int) *WebsiteJobPostBuilder { 29286 builder.experience = experience 29287 builder.experienceFlag = true 29288 return builder 29289 } 29290 29291 // 数量 29292 // 29293 // 示例值:12 29294 func (builder *WebsiteJobPostBuilder) Headcount(headcount int) *WebsiteJobPostBuilder { 29295 builder.headcount = headcount 29296 builder.headcountFlag = true 29297 return builder 29298 } 29299 29300 // 职位亮点 29301 // 29302 // 示例值: 29303 func (builder *WebsiteJobPostBuilder) HighLightList(highLightList []*IdNameObject) *WebsiteJobPostBuilder { 29304 builder.highLightList = highLightList 29305 builder.highLightListFlag = true 29306 return builder 29307 } 29308 29309 // 职位描述 29310 // 29311 // 示例值:负责软件开发 29312 func (builder *WebsiteJobPostBuilder) Description(description string) *WebsiteJobPostBuilder { 29313 builder.description = description 29314 builder.descriptionFlag = true 29315 return builder 29316 } 29317 29318 // 职位要求 29319 // 29320 // 示例值:大专 29321 func (builder *WebsiteJobPostBuilder) Requirement(requirement string) *WebsiteJobPostBuilder { 29322 builder.requirement = requirement 29323 builder.requirementFlag = true 29324 return builder 29325 } 29326 29327 // 创建人 29328 // 29329 // 示例值: 29330 func (builder *WebsiteJobPostBuilder) Creator(creator *IdNameObject) *WebsiteJobPostBuilder { 29331 builder.creator = creator 29332 builder.creatorFlag = true 29333 return builder 29334 } 29335 29336 // 创建时间 29337 // 29338 // 示例值:1111 29339 func (builder *WebsiteJobPostBuilder) CreateTime(createTime string) *WebsiteJobPostBuilder { 29340 builder.createTime = createTime 29341 builder.createTimeFlag = true 29342 return builder 29343 } 29344 29345 // 修改时间 29346 // 29347 // 示例值:222 29348 func (builder *WebsiteJobPostBuilder) ModifyTime(modifyTime string) *WebsiteJobPostBuilder { 29349 builder.modifyTime = modifyTime 29350 builder.modifyTimeFlag = true 29351 return builder 29352 } 29353 29354 // 发布时间 29355 // 29356 // 示例值:333 29357 func (builder *WebsiteJobPostBuilder) PublishTime(publishTime string) *WebsiteJobPostBuilder { 29358 builder.publishTime = publishTime 29359 builder.publishTimeFlag = true 29360 return builder 29361 } 29362 29363 // 自定义字段 29364 // 29365 // 示例值: 29366 func (builder *WebsiteJobPostBuilder) CustomizedDataList(customizedDataList []*WebsiteJobPostCustomizedData) *WebsiteJobPostBuilder { 29367 builder.customizedDataList = customizedDataList 29368 builder.customizedDataListFlag = true 29369 return builder 29370 } 29371 29372 // 职能分类 29373 // 29374 // 示例值: 29375 func (builder *WebsiteJobPostBuilder) JobFunction(jobFunction *IdNameObject) *WebsiteJobPostBuilder { 29376 builder.jobFunction = jobFunction 29377 builder.jobFunctionFlag = true 29378 return builder 29379 } 29380 29381 // 职位项目 29382 // 29383 // 示例值: 29384 func (builder *WebsiteJobPostBuilder) Subject(subject *IdNameObject) *WebsiteJobPostBuilder { 29385 builder.subject = subject 29386 builder.subjectFlag = true 29387 return builder 29388 } 29389 29390 // 职位广告地址列表 29391 // 29392 // 示例值: 29393 func (builder *WebsiteJobPostBuilder) AddressList(addressList []*CommonAddress) *WebsiteJobPostBuilder { 29394 builder.addressList = addressList 29395 builder.addressListFlag = true 29396 return builder 29397 } 29398 29399 func (builder *WebsiteJobPostBuilder) Build() *WebsiteJobPost { 29400 req := &WebsiteJobPost{} 29401 if builder.idFlag { 29402 req.Id = &builder.id 29403 29404 } 29405 if builder.titleFlag { 29406 req.Title = &builder.title 29407 29408 } 29409 if builder.jobIdFlag { 29410 req.JobId = &builder.jobId 29411 29412 } 29413 if builder.jobCodeFlag { 29414 req.JobCode = &builder.jobCode 29415 29416 } 29417 if builder.jobExpireTimeFlag { 29418 req.JobExpireTime = &builder.jobExpireTime 29419 29420 } 29421 if builder.jobActiveStatusFlag { 29422 req.JobActiveStatus = &builder.jobActiveStatus 29423 29424 } 29425 if builder.jobProcessTypeFlag { 29426 req.JobProcessType = &builder.jobProcessType 29427 29428 } 29429 if builder.jobRecruitmentTypeFlag { 29430 req.JobRecruitmentType = builder.jobRecruitmentType 29431 } 29432 if builder.jobDepartmentFlag { 29433 req.JobDepartment = builder.jobDepartment 29434 } 29435 if builder.jobTypeFlag { 29436 req.JobType = builder.jobType 29437 } 29438 if builder.addressFlag { 29439 req.Address = builder.address 29440 } 29441 if builder.minSalaryFlag { 29442 req.MinSalary = &builder.minSalary 29443 29444 } 29445 if builder.maxSalaryFlag { 29446 req.MaxSalary = &builder.maxSalary 29447 29448 } 29449 if builder.requiredDegreeFlag { 29450 req.RequiredDegree = &builder.requiredDegree 29451 29452 } 29453 if builder.experienceFlag { 29454 req.Experience = &builder.experience 29455 29456 } 29457 if builder.headcountFlag { 29458 req.Headcount = &builder.headcount 29459 29460 } 29461 if builder.highLightListFlag { 29462 req.HighLightList = builder.highLightList 29463 } 29464 if builder.descriptionFlag { 29465 req.Description = &builder.description 29466 29467 } 29468 if builder.requirementFlag { 29469 req.Requirement = &builder.requirement 29470 29471 } 29472 if builder.creatorFlag { 29473 req.Creator = builder.creator 29474 } 29475 if builder.createTimeFlag { 29476 req.CreateTime = &builder.createTime 29477 29478 } 29479 if builder.modifyTimeFlag { 29480 req.ModifyTime = &builder.modifyTime 29481 29482 } 29483 if builder.publishTimeFlag { 29484 req.PublishTime = &builder.publishTime 29485 29486 } 29487 if builder.customizedDataListFlag { 29488 req.CustomizedDataList = builder.customizedDataList 29489 } 29490 if builder.jobFunctionFlag { 29491 req.JobFunction = builder.jobFunction 29492 } 29493 if builder.subjectFlag { 29494 req.Subject = builder.subject 29495 } 29496 if builder.addressListFlag { 29497 req.AddressList = builder.addressList 29498 } 29499 return req 29500 } 29501 29502 type WebsiteJobPostCustomizedData struct { 29503 ObjectId *string `json:"object_id,omitempty"` // 自定义字段 ID 29504 Name *I18n `json:"name,omitempty"` // 字段名称 29505 ObjectType *int `json:"object_type,omitempty"` // 字段类型 29506 Value *WebsiteJobPostCustomizedValue `json:"value,omitempty"` // 自定义字段值 29507 } 29508 29509 type WebsiteJobPostCustomizedDataBuilder struct { 29510 objectId string // 自定义字段 ID 29511 objectIdFlag bool 29512 name *I18n // 字段名称 29513 nameFlag bool 29514 objectType int // 字段类型 29515 objectTypeFlag bool 29516 value *WebsiteJobPostCustomizedValue // 自定义字段值 29517 valueFlag bool 29518 } 29519 29520 func NewWebsiteJobPostCustomizedDataBuilder() *WebsiteJobPostCustomizedDataBuilder { 29521 builder := &WebsiteJobPostCustomizedDataBuilder{} 29522 return builder 29523 } 29524 29525 // 自定义字段 ID 29526 // 29527 // 示例值:xxxx 29528 func (builder *WebsiteJobPostCustomizedDataBuilder) ObjectId(objectId string) *WebsiteJobPostCustomizedDataBuilder { 29529 builder.objectId = objectId 29530 builder.objectIdFlag = true 29531 return builder 29532 } 29533 29534 // 字段名称 29535 // 29536 // 示例值: 29537 func (builder *WebsiteJobPostCustomizedDataBuilder) Name(name *I18n) *WebsiteJobPostCustomizedDataBuilder { 29538 builder.name = name 29539 builder.nameFlag = true 29540 return builder 29541 } 29542 29543 // 字段类型 29544 // 29545 // 示例值:1 29546 func (builder *WebsiteJobPostCustomizedDataBuilder) ObjectType(objectType int) *WebsiteJobPostCustomizedDataBuilder { 29547 builder.objectType = objectType 29548 builder.objectTypeFlag = true 29549 return builder 29550 } 29551 29552 // 自定义字段值 29553 // 29554 // 示例值: 29555 func (builder *WebsiteJobPostCustomizedDataBuilder) Value(value *WebsiteJobPostCustomizedValue) *WebsiteJobPostCustomizedDataBuilder { 29556 builder.value = value 29557 builder.valueFlag = true 29558 return builder 29559 } 29560 29561 func (builder *WebsiteJobPostCustomizedDataBuilder) Build() *WebsiteJobPostCustomizedData { 29562 req := &WebsiteJobPostCustomizedData{} 29563 if builder.objectIdFlag { 29564 req.ObjectId = &builder.objectId 29565 29566 } 29567 if builder.nameFlag { 29568 req.Name = builder.name 29569 } 29570 if builder.objectTypeFlag { 29571 req.ObjectType = &builder.objectType 29572 29573 } 29574 if builder.valueFlag { 29575 req.Value = builder.value 29576 } 29577 return req 29578 } 29579 29580 type WebsiteJobPostCustomizedOption struct { 29581 Key *string `json:"key,omitempty"` // 选项 ID 29582 Name *I18n `json:"name,omitempty"` // 选项名称 29583 } 29584 29585 type WebsiteJobPostCustomizedOptionBuilder struct { 29586 key string // 选项 ID 29587 keyFlag bool 29588 name *I18n // 选项名称 29589 nameFlag bool 29590 } 29591 29592 func NewWebsiteJobPostCustomizedOptionBuilder() *WebsiteJobPostCustomizedOptionBuilder { 29593 builder := &WebsiteJobPostCustomizedOptionBuilder{} 29594 return builder 29595 } 29596 29597 // 选项 ID 29598 // 29599 // 示例值:AA 29600 func (builder *WebsiteJobPostCustomizedOptionBuilder) Key(key string) *WebsiteJobPostCustomizedOptionBuilder { 29601 builder.key = key 29602 builder.keyFlag = true 29603 return builder 29604 } 29605 29606 // 选项名称 29607 // 29608 // 示例值: 29609 func (builder *WebsiteJobPostCustomizedOptionBuilder) Name(name *I18n) *WebsiteJobPostCustomizedOptionBuilder { 29610 builder.name = name 29611 builder.nameFlag = true 29612 return builder 29613 } 29614 29615 func (builder *WebsiteJobPostCustomizedOptionBuilder) Build() *WebsiteJobPostCustomizedOption { 29616 req := &WebsiteJobPostCustomizedOption{} 29617 if builder.keyFlag { 29618 req.Key = &builder.key 29619 29620 } 29621 if builder.nameFlag { 29622 req.Name = builder.name 29623 } 29624 return req 29625 } 29626 29627 type WebsiteJobPostCustomizedTimeRange struct { 29628 StartTime *string `json:"start_time,omitempty"` // 开始时间 29629 EndTime *string `json:"end_time,omitempty"` // 结束时间 29630 } 29631 29632 type WebsiteJobPostCustomizedTimeRangeBuilder struct { 29633 startTime string // 开始时间 29634 startTimeFlag bool 29635 endTime string // 结束时间 29636 endTimeFlag bool 29637 } 29638 29639 func NewWebsiteJobPostCustomizedTimeRangeBuilder() *WebsiteJobPostCustomizedTimeRangeBuilder { 29640 builder := &WebsiteJobPostCustomizedTimeRangeBuilder{} 29641 return builder 29642 } 29643 29644 // 开始时间 29645 // 29646 // 示例值:AA 29647 func (builder *WebsiteJobPostCustomizedTimeRangeBuilder) StartTime(startTime string) *WebsiteJobPostCustomizedTimeRangeBuilder { 29648 builder.startTime = startTime 29649 builder.startTimeFlag = true 29650 return builder 29651 } 29652 29653 // 结束时间 29654 // 29655 // 示例值:AA 29656 func (builder *WebsiteJobPostCustomizedTimeRangeBuilder) EndTime(endTime string) *WebsiteJobPostCustomizedTimeRangeBuilder { 29657 builder.endTime = endTime 29658 builder.endTimeFlag = true 29659 return builder 29660 } 29661 29662 func (builder *WebsiteJobPostCustomizedTimeRangeBuilder) Build() *WebsiteJobPostCustomizedTimeRange { 29663 req := &WebsiteJobPostCustomizedTimeRange{} 29664 if builder.startTimeFlag { 29665 req.StartTime = &builder.startTime 29666 29667 } 29668 if builder.endTimeFlag { 29669 req.EndTime = &builder.endTime 29670 29671 } 29672 return req 29673 } 29674 29675 type WebsiteJobPostCustomizedValue struct { 29676 Content *string `json:"content,omitempty"` // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 29677 Option *WebsiteJobPostCustomizedOption `json:"option,omitempty"` // 当字段类型为单选时,从此字段取值 29678 OptionList []*WebsiteJobPostCustomizedOption `json:"option_list,omitempty"` // 当字段类型为多选时,从此字段取值 29679 TimeRange *WebsiteJobPostCustomizedTimeRange `json:"time_range,omitempty"` // 当字段类型为时间段时,从此字段取值 29680 Time *string `json:"time,omitempty"` // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是毫秒级时间戳 29681 Number *string `json:"number,omitempty"` // 当字段类型为数字时,从此字段取值 29682 } 29683 29684 type WebsiteJobPostCustomizedValueBuilder struct { 29685 content string // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 29686 contentFlag bool 29687 option *WebsiteJobPostCustomizedOption // 当字段类型为单选时,从此字段取值 29688 optionFlag bool 29689 optionList []*WebsiteJobPostCustomizedOption // 当字段类型为多选时,从此字段取值 29690 optionListFlag bool 29691 timeRange *WebsiteJobPostCustomizedTimeRange // 当字段类型为时间段时,从此字段取值 29692 timeRangeFlag bool 29693 time string // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是毫秒级时间戳 29694 timeFlag bool 29695 number string // 当字段类型为数字时,从此字段取值 29696 numberFlag bool 29697 } 29698 29699 func NewWebsiteJobPostCustomizedValueBuilder() *WebsiteJobPostCustomizedValueBuilder { 29700 builder := &WebsiteJobPostCustomizedValueBuilder{} 29701 return builder 29702 } 29703 29704 // 当字段类型为单行文本、多行文本、模块、默认字段时,从此字段取值 29705 // 29706 // 示例值:text 29707 func (builder *WebsiteJobPostCustomizedValueBuilder) Content(content string) *WebsiteJobPostCustomizedValueBuilder { 29708 builder.content = content 29709 builder.contentFlag = true 29710 return builder 29711 } 29712 29713 // 当字段类型为单选时,从此字段取值 29714 // 29715 // 示例值: 29716 func (builder *WebsiteJobPostCustomizedValueBuilder) Option(option *WebsiteJobPostCustomizedOption) *WebsiteJobPostCustomizedValueBuilder { 29717 builder.option = option 29718 builder.optionFlag = true 29719 return builder 29720 } 29721 29722 // 当字段类型为多选时,从此字段取值 29723 // 29724 // 示例值: 29725 func (builder *WebsiteJobPostCustomizedValueBuilder) OptionList(optionList []*WebsiteJobPostCustomizedOption) *WebsiteJobPostCustomizedValueBuilder { 29726 builder.optionList = optionList 29727 builder.optionListFlag = true 29728 return builder 29729 } 29730 29731 // 当字段类型为时间段时,从此字段取值 29732 // 29733 // 示例值: 29734 func (builder *WebsiteJobPostCustomizedValueBuilder) TimeRange(timeRange *WebsiteJobPostCustomizedTimeRange) *WebsiteJobPostCustomizedValueBuilder { 29735 builder.timeRange = timeRange 29736 builder.timeRangeFlag = true 29737 return builder 29738 } 29739 29740 // 当字段类型为日期选择、月份选择、年份选择时,从此字段取值,该字段是毫秒级时间戳 29741 // 29742 // 示例值:1625456721000 29743 func (builder *WebsiteJobPostCustomizedValueBuilder) Time(time string) *WebsiteJobPostCustomizedValueBuilder { 29744 builder.time = time 29745 builder.timeFlag = true 29746 return builder 29747 } 29748 29749 // 当字段类型为数字时,从此字段取值 29750 // 29751 // 示例值:111 29752 func (builder *WebsiteJobPostCustomizedValueBuilder) Number(number string) *WebsiteJobPostCustomizedValueBuilder { 29753 builder.number = number 29754 builder.numberFlag = true 29755 return builder 29756 } 29757 29758 func (builder *WebsiteJobPostCustomizedValueBuilder) Build() *WebsiteJobPostCustomizedValue { 29759 req := &WebsiteJobPostCustomizedValue{} 29760 if builder.contentFlag { 29761 req.Content = &builder.content 29762 29763 } 29764 if builder.optionFlag { 29765 req.Option = builder.option 29766 } 29767 if builder.optionListFlag { 29768 req.OptionList = builder.optionList 29769 } 29770 if builder.timeRangeFlag { 29771 req.TimeRange = builder.timeRange 29772 } 29773 if builder.timeFlag { 29774 req.Time = &builder.time 29775 29776 } 29777 if builder.numberFlag { 29778 req.Number = &builder.number 29779 29780 } 29781 return req 29782 } 29783 29784 type WebsiteUser struct { 29785 Id *string `json:"id,omitempty"` // 用户 ID 29786 Name *string `json:"name,omitempty"` // 姓名 29787 Email *string `json:"email,omitempty"` // 邮箱 29788 ExternalId *string `json:"external_id,omitempty"` // 外部用户 ID 29789 Mobile *string `json:"mobile,omitempty"` // 电话,请和区号对应的国家码一并提供 29790 MobileCountryCode *string `json:"mobile_country_code,omitempty"` // 国家码,请和电话一并提供,可从「获取地址码」查询 29791 } 29792 29793 type WebsiteUserBuilder struct { 29794 id string // 用户 ID 29795 idFlag bool 29796 name string // 姓名 29797 nameFlag bool 29798 email string // 邮箱 29799 emailFlag bool 29800 externalId string // 外部用户 ID 29801 externalIdFlag bool 29802 mobile string // 电话,请和区号对应的国家码一并提供 29803 mobileFlag bool 29804 mobileCountryCode string // 国家码,请和电话一并提供,可从「获取地址码」查询 29805 mobileCountryCodeFlag bool 29806 } 29807 29808 func NewWebsiteUserBuilder() *WebsiteUserBuilder { 29809 builder := &WebsiteUserBuilder{} 29810 return builder 29811 } 29812 29813 // 用户 ID 29814 // 29815 // 示例值:6960663240925956620 29816 func (builder *WebsiteUserBuilder) Id(id string) *WebsiteUserBuilder { 29817 builder.id = id 29818 builder.idFlag = true 29819 return builder 29820 } 29821 29822 // 姓名 29823 // 29824 // 示例值:dan27 29825 func (builder *WebsiteUserBuilder) Name(name string) *WebsiteUserBuilder { 29826 builder.name = name 29827 builder.nameFlag = true 29828 return builder 29829 } 29830 29831 // 邮箱 29832 // 29833 // 示例值:dan27@163.com 29834 func (builder *WebsiteUserBuilder) Email(email string) *WebsiteUserBuilder { 29835 builder.email = email 29836 builder.emailFlag = true 29837 return builder 29838 } 29839 29840 // 外部用户 ID 29841 // 29842 // 示例值:6960663240925956621 29843 func (builder *WebsiteUserBuilder) ExternalId(externalId string) *WebsiteUserBuilder { 29844 builder.externalId = externalId 29845 builder.externalIdFlag = true 29846 return builder 29847 } 29848 29849 // 电话,请和区号对应的国家码一并提供 29850 // 29851 // 示例值:182900291190 29852 func (builder *WebsiteUserBuilder) Mobile(mobile string) *WebsiteUserBuilder { 29853 builder.mobile = mobile 29854 builder.mobileFlag = true 29855 return builder 29856 } 29857 29858 // 国家码,请和电话一并提供,可从「获取地址码」查询 29859 // 29860 // 示例值:CN_1 29861 func (builder *WebsiteUserBuilder) MobileCountryCode(mobileCountryCode string) *WebsiteUserBuilder { 29862 builder.mobileCountryCode = mobileCountryCode 29863 builder.mobileCountryCodeFlag = true 29864 return builder 29865 } 29866 29867 func (builder *WebsiteUserBuilder) Build() *WebsiteUser { 29868 req := &WebsiteUser{} 29869 if builder.idFlag { 29870 req.Id = &builder.id 29871 29872 } 29873 if builder.nameFlag { 29874 req.Name = &builder.name 29875 29876 } 29877 if builder.emailFlag { 29878 req.Email = &builder.email 29879 29880 } 29881 if builder.externalIdFlag { 29882 req.ExternalId = &builder.externalId 29883 29884 } 29885 if builder.mobileFlag { 29886 req.Mobile = &builder.mobile 29887 29888 } 29889 if builder.mobileCountryCodeFlag { 29890 req.MobileCountryCode = &builder.mobileCountryCode 29891 29892 } 29893 return req 29894 } 29895 29896 type WorksInfo struct { 29897 AttachmentId *string `json:"attachment_id,omitempty"` // 作品集附件ID 29898 Desc *string `json:"desc,omitempty"` // 作品描述 29899 Link *string `json:"link,omitempty"` // 作品链接 29900 } 29901 29902 type WorksInfoBuilder struct { 29903 attachmentId string // 作品集附件ID 29904 attachmentIdFlag bool 29905 desc string // 作品描述 29906 descFlag bool 29907 link string // 作品链接 29908 linkFlag bool 29909 } 29910 29911 func NewWorksInfoBuilder() *WorksInfoBuilder { 29912 builder := &WorksInfoBuilder{} 29913 return builder 29914 } 29915 29916 // 作品集附件ID 29917 // 29918 // 示例值: 29919 func (builder *WorksInfoBuilder) AttachmentId(attachmentId string) *WorksInfoBuilder { 29920 builder.attachmentId = attachmentId 29921 builder.attachmentIdFlag = true 29922 return builder 29923 } 29924 29925 // 作品描述 29926 // 29927 // 示例值: 29928 func (builder *WorksInfoBuilder) Desc(desc string) *WorksInfoBuilder { 29929 builder.desc = desc 29930 builder.descFlag = true 29931 return builder 29932 } 29933 29934 // 作品链接 29935 // 29936 // 示例值: 29937 func (builder *WorksInfoBuilder) Link(link string) *WorksInfoBuilder { 29938 builder.link = link 29939 builder.linkFlag = true 29940 return builder 29941 } 29942 29943 func (builder *WorksInfoBuilder) Build() *WorksInfo { 29944 req := &WorksInfo{} 29945 if builder.attachmentIdFlag { 29946 req.AttachmentId = &builder.attachmentId 29947 29948 } 29949 if builder.descFlag { 29950 req.Desc = &builder.desc 29951 29952 } 29953 if builder.linkFlag { 29954 req.Link = &builder.link 29955 29956 } 29957 return req 29958 } 29959 29960 type CreateApplicationReqBodyBuilder struct { 29961 talentId string // 人才ID 29962 talentIdFlag bool 29963 jobId string // 职位ID 29964 jobIdFlag bool 29965 resumeSourceId string // 简历来源 ID,可通过「获取简历来源」接口查询。若简历来源类型属于「员工转岗」或「实习生转正」,人才需处于已入职状态。 29966 resumeSourceIdFlag bool 29967 applicationPreferredCityCodeList []string // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 29968 applicationPreferredCityCodeListFlag bool 29969 } 29970 29971 func NewCreateApplicationReqBodyBuilder() *CreateApplicationReqBodyBuilder { 29972 builder := &CreateApplicationReqBodyBuilder{} 29973 return builder 29974 } 29975 29976 // 人才ID 29977 // 29978 //示例值:12312312312 29979 func (builder *CreateApplicationReqBodyBuilder) TalentId(talentId string) *CreateApplicationReqBodyBuilder { 29980 builder.talentId = talentId 29981 builder.talentIdFlag = true 29982 return builder 29983 } 29984 29985 // 职位ID 29986 // 29987 //示例值:12312312312 29988 func (builder *CreateApplicationReqBodyBuilder) JobId(jobId string) *CreateApplicationReqBodyBuilder { 29989 builder.jobId = jobId 29990 builder.jobIdFlag = true 29991 return builder 29992 } 29993 29994 // 简历来源 ID,可通过「获取简历来源」接口查询。若简历来源类型属于「员工转岗」或「实习生转正」,人才需处于已入职状态。 29995 // 29996 //示例值:7115289562569591070 29997 func (builder *CreateApplicationReqBodyBuilder) ResumeSourceId(resumeSourceId string) *CreateApplicationReqBodyBuilder { 29998 builder.resumeSourceId = resumeSourceId 29999 builder.resumeSourceIdFlag = true 30000 return builder 30001 } 30002 30003 // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 30004 // 30005 //示例值:["CT_1"] 30006 func (builder *CreateApplicationReqBodyBuilder) ApplicationPreferredCityCodeList(applicationPreferredCityCodeList []string) *CreateApplicationReqBodyBuilder { 30007 builder.applicationPreferredCityCodeList = applicationPreferredCityCodeList 30008 builder.applicationPreferredCityCodeListFlag = true 30009 return builder 30010 } 30011 30012 func (builder *CreateApplicationReqBodyBuilder) Build() *CreateApplicationReqBody { 30013 req := &CreateApplicationReqBody{} 30014 if builder.talentIdFlag { 30015 req.TalentId = &builder.talentId 30016 } 30017 if builder.jobIdFlag { 30018 req.JobId = &builder.jobId 30019 } 30020 if builder.resumeSourceIdFlag { 30021 req.ResumeSourceId = &builder.resumeSourceId 30022 } 30023 if builder.applicationPreferredCityCodeListFlag { 30024 req.ApplicationPreferredCityCodeList = builder.applicationPreferredCityCodeList 30025 } 30026 return req 30027 } 30028 30029 type CreateApplicationPathReqBodyBuilder struct { 30030 talentId string // 人才ID 30031 talentIdFlag bool 30032 jobId string // 职位ID 30033 jobIdFlag bool 30034 resumeSourceId string // 简历来源 ID,可通过「获取简历来源」接口查询。若简历来源类型属于「员工转岗」或「实习生转正」,人才需处于已入职状态。 30035 resumeSourceIdFlag bool 30036 applicationPreferredCityCodeList []string // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 30037 applicationPreferredCityCodeListFlag bool 30038 } 30039 30040 func NewCreateApplicationPathReqBodyBuilder() *CreateApplicationPathReqBodyBuilder { 30041 builder := &CreateApplicationPathReqBodyBuilder{} 30042 return builder 30043 } 30044 30045 // 人才ID 30046 // 30047 // 示例值:12312312312 30048 func (builder *CreateApplicationPathReqBodyBuilder) TalentId(talentId string) *CreateApplicationPathReqBodyBuilder { 30049 builder.talentId = talentId 30050 builder.talentIdFlag = true 30051 return builder 30052 } 30053 30054 // 职位ID 30055 // 30056 // 示例值:12312312312 30057 func (builder *CreateApplicationPathReqBodyBuilder) JobId(jobId string) *CreateApplicationPathReqBodyBuilder { 30058 builder.jobId = jobId 30059 builder.jobIdFlag = true 30060 return builder 30061 } 30062 30063 // 简历来源 ID,可通过「获取简历来源」接口查询。若简历来源类型属于「员工转岗」或「实习生转正」,人才需处于已入职状态。 30064 // 30065 // 示例值:7115289562569591070 30066 func (builder *CreateApplicationPathReqBodyBuilder) ResumeSourceId(resumeSourceId string) *CreateApplicationPathReqBodyBuilder { 30067 builder.resumeSourceId = resumeSourceId 30068 builder.resumeSourceIdFlag = true 30069 return builder 30070 } 30071 30072 // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 30073 // 30074 // 示例值:["CT_1"] 30075 func (builder *CreateApplicationPathReqBodyBuilder) ApplicationPreferredCityCodeList(applicationPreferredCityCodeList []string) *CreateApplicationPathReqBodyBuilder { 30076 builder.applicationPreferredCityCodeList = applicationPreferredCityCodeList 30077 builder.applicationPreferredCityCodeListFlag = true 30078 return builder 30079 } 30080 30081 func (builder *CreateApplicationPathReqBodyBuilder) Build() (*CreateApplicationReqBody, error) { 30082 req := &CreateApplicationReqBody{} 30083 if builder.talentIdFlag { 30084 req.TalentId = &builder.talentId 30085 } 30086 if builder.jobIdFlag { 30087 req.JobId = &builder.jobId 30088 } 30089 if builder.resumeSourceIdFlag { 30090 req.ResumeSourceId = &builder.resumeSourceId 30091 } 30092 if builder.applicationPreferredCityCodeListFlag { 30093 req.ApplicationPreferredCityCodeList = builder.applicationPreferredCityCodeList 30094 } 30095 return req, nil 30096 } 30097 30098 type CreateApplicationReqBuilder struct { 30099 apiReq *larkcore.ApiReq 30100 body *CreateApplicationReqBody 30101 } 30102 30103 func NewCreateApplicationReqBuilder() *CreateApplicationReqBuilder { 30104 builder := &CreateApplicationReqBuilder{} 30105 builder.apiReq = &larkcore.ApiReq{ 30106 PathParams: larkcore.PathParams{}, 30107 QueryParams: larkcore.QueryParams{}, 30108 } 30109 return builder 30110 } 30111 30112 // 根据人才 ID 和职位 ID 创建投递 30113 func (builder *CreateApplicationReqBuilder) Body(body *CreateApplicationReqBody) *CreateApplicationReqBuilder { 30114 builder.body = body 30115 return builder 30116 } 30117 30118 func (builder *CreateApplicationReqBuilder) Build() *CreateApplicationReq { 30119 req := &CreateApplicationReq{} 30120 req.apiReq = &larkcore.ApiReq{} 30121 req.apiReq.Body = builder.body 30122 return req 30123 } 30124 30125 type CreateApplicationReqBody struct { 30126 TalentId *string `json:"talent_id,omitempty"` // 人才ID 30127 JobId *string `json:"job_id,omitempty"` // 职位ID 30128 ResumeSourceId *string `json:"resume_source_id,omitempty"` // 简历来源 ID,可通过「获取简历来源」接口查询。若简历来源类型属于「员工转岗」或「实习生转正」,人才需处于已入职状态。 30129 ApplicationPreferredCityCodeList []string `json:"application_preferred_city_code_list,omitempty"` // 意向投递城市列表,可从「获取职位信息」返回的工作地点列表获取 30130 } 30131 30132 type CreateApplicationReq struct { 30133 apiReq *larkcore.ApiReq 30134 Body *CreateApplicationReqBody `body:""` 30135 } 30136 30137 type CreateApplicationRespData struct { 30138 Id *string `json:"id,omitempty"` // 投递ID 30139 } 30140 30141 type CreateApplicationResp struct { 30142 *larkcore.ApiResp `json:"-"` 30143 larkcore.CodeError 30144 Data *CreateApplicationRespData `json:"data"` // 业务数据 30145 } 30146 30147 func (resp *CreateApplicationResp) Success() bool { 30148 return resp.Code == 0 30149 } 30150 30151 type GetApplicationReqBuilder struct { 30152 apiReq *larkcore.ApiReq 30153 } 30154 30155 func NewGetApplicationReqBuilder() *GetApplicationReqBuilder { 30156 builder := &GetApplicationReqBuilder{} 30157 builder.apiReq = &larkcore.ApiReq{ 30158 PathParams: larkcore.PathParams{}, 30159 QueryParams: larkcore.QueryParams{}, 30160 } 30161 return builder 30162 } 30163 30164 // 投递 ID 30165 // 30166 // 示例值:6949805467799537964 30167 func (builder *GetApplicationReqBuilder) ApplicationId(applicationId string) *GetApplicationReqBuilder { 30168 builder.apiReq.PathParams.Set("application_id", fmt.Sprint(applicationId)) 30169 return builder 30170 } 30171 30172 func (builder *GetApplicationReqBuilder) Build() *GetApplicationReq { 30173 req := &GetApplicationReq{} 30174 req.apiReq = &larkcore.ApiReq{} 30175 req.apiReq.PathParams = builder.apiReq.PathParams 30176 return req 30177 } 30178 30179 type GetApplicationReq struct { 30180 apiReq *larkcore.ApiReq 30181 } 30182 30183 type GetApplicationRespData struct { 30184 Application *Application `json:"application,omitempty"` // 投递数据 30185 } 30186 30187 type GetApplicationResp struct { 30188 *larkcore.ApiResp `json:"-"` 30189 larkcore.CodeError 30190 Data *GetApplicationRespData `json:"data"` // 业务数据 30191 } 30192 30193 func (resp *GetApplicationResp) Success() bool { 30194 return resp.Code == 0 30195 } 30196 30197 type ListApplicationReqBuilder struct { 30198 apiReq *larkcore.ApiReq 30199 } 30200 30201 func NewListApplicationReqBuilder() *ListApplicationReqBuilder { 30202 builder := &ListApplicationReqBuilder{} 30203 builder.apiReq = &larkcore.ApiReq{ 30204 PathParams: larkcore.PathParams{}, 30205 QueryParams: larkcore.QueryParams{}, 30206 } 30207 return builder 30208 } 30209 30210 // 按流程过滤,招聘流程 ID,枚举值通过接口「获取招聘流程信息」接口获取 30211 // 30212 // 示例值:6960663240925956554 30213 func (builder *ListApplicationReqBuilder) ProcessId(processId string) *ListApplicationReqBuilder { 30214 builder.apiReq.QueryParams.Set("process_id", fmt.Sprint(processId)) 30215 return builder 30216 } 30217 30218 // 按招聘阶段过滤,招聘阶段 ID,枚举值通过「获取招聘流程信息」接口获取 30219 // 30220 // 示例值:614218419274131 30221 func (builder *ListApplicationReqBuilder) StageId(stageId string) *ListApplicationReqBuilder { 30222 builder.apiReq.QueryParams.Set("stage_id", fmt.Sprint(stageId)) 30223 return builder 30224 } 30225 30226 // 按人才过滤 30227 // 30228 // 示例值:6891560630172518670 30229 func (builder *ListApplicationReqBuilder) TalentId(talentId string) *ListApplicationReqBuilder { 30230 builder.apiReq.QueryParams.Set("talent_id", fmt.Sprint(talentId)) 30231 return builder 30232 } 30233 30234 // 按活跃状态筛选 1=活跃投递, 2=非活跃投递, 3=全部 30235 // 30236 // 示例值:1 30237 func (builder *ListApplicationReqBuilder) ActiveStatus(activeStatus string) *ListApplicationReqBuilder { 30238 builder.apiReq.QueryParams.Set("active_status", fmt.Sprint(activeStatus)) 30239 return builder 30240 } 30241 30242 // 职位 ID 30243 // 30244 // 示例值:7334134355464633 30245 func (builder *ListApplicationReqBuilder) JobId(jobId string) *ListApplicationReqBuilder { 30246 builder.apiReq.QueryParams.Set("job_id", fmt.Sprint(jobId)) 30247 return builder 30248 } 30249 30250 // 查询游标, 由上一页结果返回, 第一页不传 30251 // 30252 // 示例值:1 30253 func (builder *ListApplicationReqBuilder) PageToken(pageToken string) *ListApplicationReqBuilder { 30254 builder.apiReq.QueryParams.Set("page_token", fmt.Sprint(pageToken)) 30255 return builder 30256 } 30257 30258 // 每页限制, 每页最大不超过100 30259 // 30260 // 示例值:100 30261 func (builder *ListApplicationReqBuilder) PageSize(pageSize int) *ListApplicationReqBuilder { 30262 builder.apiReq.QueryParams.Set("page_size", fmt.Sprint(pageSize)) 30263 return builder 30264 } 30265 30266 // 最早更新时间,毫秒级时间戳 30267 // 30268 // 示例值:1618500278663 30269 func (builder *ListApplicationReqBuilder) UpdateStartTime(updateStartTime string) *ListApplicationReqBuilder { 30270 builder.apiReq.QueryParams.Set("update_start_time", fmt.Sprint(updateStartTime)) 30271 return builder 30272 } 30273 30274 // 最晚更新时间,毫秒级时间戳 30275 // 30276 // 示例值:1618500278663 30277 func (builder *ListApplicationReqBuilder) UpdateEndTime(updateEndTime string) *ListApplicationReqBuilder { 30278 builder.apiReq.QueryParams.Set("update_end_time", fmt.Sprint(updateEndTime)) 30279 return builder 30280 } 30281 30282 func (builder *ListApplicationReqBuilder) Build() *ListApplicationReq { 30283 req := &ListApplicationReq{} 30284 req.apiReq = &larkcore.ApiReq{} 30285 req.apiReq.QueryParams = builder.apiReq.QueryParams 30286 return req 30287 } 30288 30289 type ListApplicationReq struct { 30290 apiReq *larkcore.ApiReq 30291 } 30292 30293 type ListApplicationRespData struct { 30294 Items []string `json:"items,omitempty"` // 投递数据列表 30295 PageToken *string `json:"page_token,omitempty"` // 游标, 翻下一页数据时使用 30296 HasMore *bool `json:"has_more,omitempty"` // 是否还有下一页数据 30297 } 30298 30299 type ListApplicationResp struct { 30300 *larkcore.ApiResp `json:"-"` 30301 larkcore.CodeError 30302 Data *ListApplicationRespData `json:"data"` // 业务数据 30303 } 30304 30305 func (resp *ListApplicationResp) Success() bool { 30306 return resp.Code == 0 30307 } 30308 30309 type OfferApplicationReqBuilder struct { 30310 apiReq *larkcore.ApiReq 30311 } 30312 30313 func NewOfferApplicationReqBuilder() *OfferApplicationReqBuilder { 30314 builder := &OfferApplicationReqBuilder{} 30315 builder.apiReq = &larkcore.ApiReq{ 30316 PathParams: larkcore.PathParams{}, 30317 QueryParams: larkcore.QueryParams{}, 30318 } 30319 return builder 30320 } 30321 30322 // 投递ID 30323 // 30324 // 示例值:6949805467799537964 30325 func (builder *OfferApplicationReqBuilder) ApplicationId(applicationId string) *OfferApplicationReqBuilder { 30326 builder.apiReq.PathParams.Set("application_id", fmt.Sprint(applicationId)) 30327 return builder 30328 } 30329 30330 // 此次调用中使用的用户ID的类型 30331 // 30332 // 示例值: 30333 func (builder *OfferApplicationReqBuilder) UserIdType(userIdType string) *OfferApplicationReqBuilder { 30334 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 30335 return builder 30336 } 30337 30338 func (builder *OfferApplicationReqBuilder) Build() *OfferApplicationReq { 30339 req := &OfferApplicationReq{} 30340 req.apiReq = &larkcore.ApiReq{} 30341 req.apiReq.PathParams = builder.apiReq.PathParams 30342 req.apiReq.QueryParams = builder.apiReq.QueryParams 30343 return req 30344 } 30345 30346 type OfferApplicationReq struct { 30347 apiReq *larkcore.ApiReq 30348 } 30349 30350 type OfferApplicationRespData struct { 30351 Offer *ApplicationOffer `json:"offer,omitempty"` // Offer数据 30352 } 30353 30354 type OfferApplicationResp struct { 30355 *larkcore.ApiResp `json:"-"` 30356 larkcore.CodeError 30357 Data *OfferApplicationRespData `json:"data"` // 业务数据 30358 } 30359 30360 func (resp *OfferApplicationResp) Success() bool { 30361 return resp.Code == 0 30362 } 30363 30364 type TerminateApplicationReqBodyBuilder struct { 30365 terminationType int // 终止原因的类型 30366 terminationTypeFlag bool 30367 terminationReasonList []string // 终止的具体原因的id列表 30368 terminationReasonListFlag bool 30369 terminationReasonNote string // 终止备注 30370 terminationReasonNoteFlag bool 30371 } 30372 30373 func NewTerminateApplicationReqBodyBuilder() *TerminateApplicationReqBodyBuilder { 30374 builder := &TerminateApplicationReqBodyBuilder{} 30375 return builder 30376 } 30377 30378 // 终止原因的类型 30379 // 30380 //示例值:1 30381 func (builder *TerminateApplicationReqBodyBuilder) TerminationType(terminationType int) *TerminateApplicationReqBodyBuilder { 30382 builder.terminationType = terminationType 30383 builder.terminationTypeFlag = true 30384 return builder 30385 } 30386 30387 // 终止的具体原因的id列表 30388 // 30389 //示例值:["6891560630172518670"] 30390 func (builder *TerminateApplicationReqBodyBuilder) TerminationReasonList(terminationReasonList []string) *TerminateApplicationReqBodyBuilder { 30391 builder.terminationReasonList = terminationReasonList 30392 builder.terminationReasonListFlag = true 30393 return builder 30394 } 30395 30396 // 终止备注 30397 // 30398 //示例值:不符合期望 30399 func (builder *TerminateApplicationReqBodyBuilder) TerminationReasonNote(terminationReasonNote string) *TerminateApplicationReqBodyBuilder { 30400 builder.terminationReasonNote = terminationReasonNote 30401 builder.terminationReasonNoteFlag = true 30402 return builder 30403 } 30404 30405 func (builder *TerminateApplicationReqBodyBuilder) Build() *TerminateApplicationReqBody { 30406 req := &TerminateApplicationReqBody{} 30407 if builder.terminationTypeFlag { 30408 req.TerminationType = &builder.terminationType 30409 } 30410 if builder.terminationReasonListFlag { 30411 req.TerminationReasonList = builder.terminationReasonList 30412 } 30413 if builder.terminationReasonNoteFlag { 30414 req.TerminationReasonNote = &builder.terminationReasonNote 30415 } 30416 return req 30417 } 30418 30419 type TerminateApplicationPathReqBodyBuilder struct { 30420 terminationType int // 终止原因的类型 30421 terminationTypeFlag bool 30422 terminationReasonList []string // 终止的具体原因的id列表 30423 terminationReasonListFlag bool 30424 terminationReasonNote string // 终止备注 30425 terminationReasonNoteFlag bool 30426 } 30427 30428 func NewTerminateApplicationPathReqBodyBuilder() *TerminateApplicationPathReqBodyBuilder { 30429 builder := &TerminateApplicationPathReqBodyBuilder{} 30430 return builder 30431 } 30432 30433 // 终止原因的类型 30434 // 30435 // 示例值:1 30436 func (builder *TerminateApplicationPathReqBodyBuilder) TerminationType(terminationType int) *TerminateApplicationPathReqBodyBuilder { 30437 builder.terminationType = terminationType 30438 builder.terminationTypeFlag = true 30439 return builder 30440 } 30441 30442 // 终止的具体原因的id列表 30443 // 30444 // 示例值:["6891560630172518670"] 30445 func (builder *TerminateApplicationPathReqBodyBuilder) TerminationReasonList(terminationReasonList []string) *TerminateApplicationPathReqBodyBuilder { 30446 builder.terminationReasonList = terminationReasonList 30447 builder.terminationReasonListFlag = true 30448 return builder 30449 } 30450 30451 // 终止备注 30452 // 30453 // 示例值:不符合期望 30454 func (builder *TerminateApplicationPathReqBodyBuilder) TerminationReasonNote(terminationReasonNote string) *TerminateApplicationPathReqBodyBuilder { 30455 builder.terminationReasonNote = terminationReasonNote 30456 builder.terminationReasonNoteFlag = true 30457 return builder 30458 } 30459 30460 func (builder *TerminateApplicationPathReqBodyBuilder) Build() (*TerminateApplicationReqBody, error) { 30461 req := &TerminateApplicationReqBody{} 30462 if builder.terminationTypeFlag { 30463 req.TerminationType = &builder.terminationType 30464 } 30465 if builder.terminationReasonListFlag { 30466 req.TerminationReasonList = builder.terminationReasonList 30467 } 30468 if builder.terminationReasonNoteFlag { 30469 req.TerminationReasonNote = &builder.terminationReasonNote 30470 } 30471 return req, nil 30472 } 30473 30474 type TerminateApplicationReqBuilder struct { 30475 apiReq *larkcore.ApiReq 30476 body *TerminateApplicationReqBody 30477 } 30478 30479 func NewTerminateApplicationReqBuilder() *TerminateApplicationReqBuilder { 30480 builder := &TerminateApplicationReqBuilder{} 30481 builder.apiReq = &larkcore.ApiReq{ 30482 PathParams: larkcore.PathParams{}, 30483 QueryParams: larkcore.QueryParams{}, 30484 } 30485 return builder 30486 } 30487 30488 // 投递ID 30489 // 30490 // 示例值:12312312312 30491 func (builder *TerminateApplicationReqBuilder) ApplicationId(applicationId string) *TerminateApplicationReqBuilder { 30492 builder.apiReq.PathParams.Set("application_id", fmt.Sprint(applicationId)) 30493 return builder 30494 } 30495 30496 // 根据投递 ID 修改投递状态为「已终止」 30497 func (builder *TerminateApplicationReqBuilder) Body(body *TerminateApplicationReqBody) *TerminateApplicationReqBuilder { 30498 builder.body = body 30499 return builder 30500 } 30501 30502 func (builder *TerminateApplicationReqBuilder) Build() *TerminateApplicationReq { 30503 req := &TerminateApplicationReq{} 30504 req.apiReq = &larkcore.ApiReq{} 30505 req.apiReq.PathParams = builder.apiReq.PathParams 30506 req.apiReq.Body = builder.body 30507 return req 30508 } 30509 30510 type TerminateApplicationReqBody struct { 30511 TerminationType *int `json:"termination_type,omitempty"` // 终止原因的类型 30512 TerminationReasonList []string `json:"termination_reason_list,omitempty"` // 终止的具体原因的id列表 30513 TerminationReasonNote *string `json:"termination_reason_note,omitempty"` // 终止备注 30514 } 30515 30516 type TerminateApplicationReq struct { 30517 apiReq *larkcore.ApiReq 30518 Body *TerminateApplicationReqBody `body:""` 30519 } 30520 30521 type TerminateApplicationResp struct { 30522 *larkcore.ApiResp `json:"-"` 30523 larkcore.CodeError 30524 } 30525 30526 func (resp *TerminateApplicationResp) Success() bool { 30527 return resp.Code == 0 30528 } 30529 30530 type TransferOnboardApplicationReqBodyBuilder struct { 30531 actualOnboardTime int // 实际入职时间 30532 actualOnboardTimeFlag bool 30533 expectedConversionTime int // 预期转正时间 30534 expectedConversionTimeFlag bool 30535 jobRequirementId string // 招聘需求 ID 30536 jobRequirementIdFlag bool 30537 operatorId string // 操作人 UserID 30538 operatorIdFlag bool 30539 onboardCityCode string // 候选人办公地点 ID ,枚举可通过接口「获取地址列表」获取,将用于候选人内推奖规则判断 30540 onboardCityCodeFlag bool 30541 department string // 候选人入职部门 ID ,枚举可通过接口「获取部门信息列表」获取,将用于候选人内推奖规则判断 30542 departmentFlag bool 30543 leader string // 候选人直属上级 UserID ,将用于候选人内推奖规则判断 30544 leaderFlag bool 30545 sequence string // 候选人序列 ID ,枚举可通过接口「获取职务分类列表」获取,将用于候选人内推奖规则判断 30546 sequenceFlag bool 30547 level string // 候选人职级 ID ,枚举可通过接口「获取职级列表」获取,将用于候选人内推奖规则判断 30548 levelFlag bool 30549 employeeType string // 候选人入职人员类型 ID,可通过接口人力资源管理平台「获取员工类型列表」获取,将用于候选人内推奖规则判断 30550 employeeTypeFlag bool 30551 } 30552 30553 func NewTransferOnboardApplicationReqBodyBuilder() *TransferOnboardApplicationReqBodyBuilder { 30554 builder := &TransferOnboardApplicationReqBodyBuilder{} 30555 return builder 30556 } 30557 30558 // 实际入职时间 30559 // 30560 //示例值:1616428800000 30561 func (builder *TransferOnboardApplicationReqBodyBuilder) ActualOnboardTime(actualOnboardTime int) *TransferOnboardApplicationReqBodyBuilder { 30562 builder.actualOnboardTime = actualOnboardTime 30563 builder.actualOnboardTimeFlag = true 30564 return builder 30565 } 30566 30567 // 预期转正时间 30568 // 30569 //示例值:1616428800000 30570 func (builder *TransferOnboardApplicationReqBodyBuilder) ExpectedConversionTime(expectedConversionTime int) *TransferOnboardApplicationReqBodyBuilder { 30571 builder.expectedConversionTime = expectedConversionTime 30572 builder.expectedConversionTimeFlag = true 30573 return builder 30574 } 30575 30576 // 招聘需求 ID 30577 // 30578 //示例值:6960663240925956402 30579 func (builder *TransferOnboardApplicationReqBodyBuilder) JobRequirementId(jobRequirementId string) *TransferOnboardApplicationReqBodyBuilder { 30580 builder.jobRequirementId = jobRequirementId 30581 builder.jobRequirementIdFlag = true 30582 return builder 30583 } 30584 30585 // 操作人 UserID 30586 // 30587 //示例值:ou-xxx 30588 func (builder *TransferOnboardApplicationReqBodyBuilder) OperatorId(operatorId string) *TransferOnboardApplicationReqBodyBuilder { 30589 builder.operatorId = operatorId 30590 builder.operatorIdFlag = true 30591 return builder 30592 } 30593 30594 // 候选人办公地点 ID ,枚举可通过接口「获取地址列表」获取,将用于候选人内推奖规则判断 30595 // 30596 //示例值:CT_2 30597 func (builder *TransferOnboardApplicationReqBodyBuilder) OnboardCityCode(onboardCityCode string) *TransferOnboardApplicationReqBodyBuilder { 30598 builder.onboardCityCode = onboardCityCode 30599 builder.onboardCityCodeFlag = true 30600 return builder 30601 } 30602 30603 // 候选人入职部门 ID ,枚举可通过接口「获取部门信息列表」获取,将用于候选人内推奖规则判断 30604 // 30605 //示例值:6966123381141866028 30606 func (builder *TransferOnboardApplicationReqBodyBuilder) Department(department string) *TransferOnboardApplicationReqBodyBuilder { 30607 builder.department = department 30608 builder.departmentFlag = true 30609 return builder 30610 } 30611 30612 // 候选人直属上级 UserID ,将用于候选人内推奖规则判断 30613 // 30614 //示例值:ou-xxx 30615 func (builder *TransferOnboardApplicationReqBodyBuilder) Leader(leader string) *TransferOnboardApplicationReqBodyBuilder { 30616 builder.leader = leader 30617 builder.leaderFlag = true 30618 return builder 30619 } 30620 30621 // 候选人序列 ID ,枚举可通过接口「获取职务分类列表」获取,将用于候选人内推奖规则判断 30622 // 30623 //示例值:7006234385490345986 30624 func (builder *TransferOnboardApplicationReqBodyBuilder) Sequence(sequence string) *TransferOnboardApplicationReqBodyBuilder { 30625 builder.sequence = sequence 30626 builder.sequenceFlag = true 30627 return builder 30628 } 30629 30630 // 候选人职级 ID ,枚举可通过接口「获取职级列表」获取,将用于候选人内推奖规则判断 30631 // 30632 //示例值:6937934036379650311 30633 func (builder *TransferOnboardApplicationReqBodyBuilder) Level(level string) *TransferOnboardApplicationReqBodyBuilder { 30634 builder.level = level 30635 builder.levelFlag = true 30636 return builder 30637 } 30638 30639 // 候选人入职人员类型 ID,可通过接口人力资源管理平台「获取员工类型列表」获取,将用于候选人内推奖规则判断 30640 // 30641 //示例值:1 30642 func (builder *TransferOnboardApplicationReqBodyBuilder) EmployeeType(employeeType string) *TransferOnboardApplicationReqBodyBuilder { 30643 builder.employeeType = employeeType 30644 builder.employeeTypeFlag = true 30645 return builder 30646 } 30647 30648 func (builder *TransferOnboardApplicationReqBodyBuilder) Build() *TransferOnboardApplicationReqBody { 30649 req := &TransferOnboardApplicationReqBody{} 30650 if builder.actualOnboardTimeFlag { 30651 req.ActualOnboardTime = &builder.actualOnboardTime 30652 } 30653 if builder.expectedConversionTimeFlag { 30654 req.ExpectedConversionTime = &builder.expectedConversionTime 30655 } 30656 if builder.jobRequirementIdFlag { 30657 req.JobRequirementId = &builder.jobRequirementId 30658 } 30659 if builder.operatorIdFlag { 30660 req.OperatorId = &builder.operatorId 30661 } 30662 if builder.onboardCityCodeFlag { 30663 req.OnboardCityCode = &builder.onboardCityCode 30664 } 30665 if builder.departmentFlag { 30666 req.Department = &builder.department 30667 } 30668 if builder.leaderFlag { 30669 req.Leader = &builder.leader 30670 } 30671 if builder.sequenceFlag { 30672 req.Sequence = &builder.sequence 30673 } 30674 if builder.levelFlag { 30675 req.Level = &builder.level 30676 } 30677 if builder.employeeTypeFlag { 30678 req.EmployeeType = &builder.employeeType 30679 } 30680 return req 30681 } 30682 30683 type TransferOnboardApplicationPathReqBodyBuilder struct { 30684 actualOnboardTime int // 实际入职时间 30685 actualOnboardTimeFlag bool 30686 expectedConversionTime int // 预期转正时间 30687 expectedConversionTimeFlag bool 30688 jobRequirementId string // 招聘需求 ID 30689 jobRequirementIdFlag bool 30690 operatorId string // 操作人 UserID 30691 operatorIdFlag bool 30692 onboardCityCode string // 候选人办公地点 ID ,枚举可通过接口「获取地址列表」获取,将用于候选人内推奖规则判断 30693 onboardCityCodeFlag bool 30694 department string // 候选人入职部门 ID ,枚举可通过接口「获取部门信息列表」获取,将用于候选人内推奖规则判断 30695 departmentFlag bool 30696 leader string // 候选人直属上级 UserID ,将用于候选人内推奖规则判断 30697 leaderFlag bool 30698 sequence string // 候选人序列 ID ,枚举可通过接口「获取职务分类列表」获取,将用于候选人内推奖规则判断 30699 sequenceFlag bool 30700 level string // 候选人职级 ID ,枚举可通过接口「获取职级列表」获取,将用于候选人内推奖规则判断 30701 levelFlag bool 30702 employeeType string // 候选人入职人员类型 ID,可通过接口人力资源管理平台「获取员工类型列表」获取,将用于候选人内推奖规则判断 30703 employeeTypeFlag bool 30704 } 30705 30706 func NewTransferOnboardApplicationPathReqBodyBuilder() *TransferOnboardApplicationPathReqBodyBuilder { 30707 builder := &TransferOnboardApplicationPathReqBodyBuilder{} 30708 return builder 30709 } 30710 30711 // 实际入职时间 30712 // 30713 // 示例值:1616428800000 30714 func (builder *TransferOnboardApplicationPathReqBodyBuilder) ActualOnboardTime(actualOnboardTime int) *TransferOnboardApplicationPathReqBodyBuilder { 30715 builder.actualOnboardTime = actualOnboardTime 30716 builder.actualOnboardTimeFlag = true 30717 return builder 30718 } 30719 30720 // 预期转正时间 30721 // 30722 // 示例值:1616428800000 30723 func (builder *TransferOnboardApplicationPathReqBodyBuilder) ExpectedConversionTime(expectedConversionTime int) *TransferOnboardApplicationPathReqBodyBuilder { 30724 builder.expectedConversionTime = expectedConversionTime 30725 builder.expectedConversionTimeFlag = true 30726 return builder 30727 } 30728 30729 // 招聘需求 ID 30730 // 30731 // 示例值:6960663240925956402 30732 func (builder *TransferOnboardApplicationPathReqBodyBuilder) JobRequirementId(jobRequirementId string) *TransferOnboardApplicationPathReqBodyBuilder { 30733 builder.jobRequirementId = jobRequirementId 30734 builder.jobRequirementIdFlag = true 30735 return builder 30736 } 30737 30738 // 操作人 UserID 30739 // 30740 // 示例值:ou-xxx 30741 func (builder *TransferOnboardApplicationPathReqBodyBuilder) OperatorId(operatorId string) *TransferOnboardApplicationPathReqBodyBuilder { 30742 builder.operatorId = operatorId 30743 builder.operatorIdFlag = true 30744 return builder 30745 } 30746 30747 // 候选人办公地点 ID ,枚举可通过接口「获取地址列表」获取,将用于候选人内推奖规则判断 30748 // 30749 // 示例值:CT_2 30750 func (builder *TransferOnboardApplicationPathReqBodyBuilder) OnboardCityCode(onboardCityCode string) *TransferOnboardApplicationPathReqBodyBuilder { 30751 builder.onboardCityCode = onboardCityCode 30752 builder.onboardCityCodeFlag = true 30753 return builder 30754 } 30755 30756 // 候选人入职部门 ID ,枚举可通过接口「获取部门信息列表」获取,将用于候选人内推奖规则判断 30757 // 30758 // 示例值:6966123381141866028 30759 func (builder *TransferOnboardApplicationPathReqBodyBuilder) Department(department string) *TransferOnboardApplicationPathReqBodyBuilder { 30760 builder.department = department 30761 builder.departmentFlag = true 30762 return builder 30763 } 30764 30765 // 候选人直属上级 UserID ,将用于候选人内推奖规则判断 30766 // 30767 // 示例值:ou-xxx 30768 func (builder *TransferOnboardApplicationPathReqBodyBuilder) Leader(leader string) *TransferOnboardApplicationPathReqBodyBuilder { 30769 builder.leader = leader 30770 builder.leaderFlag = true 30771 return builder 30772 } 30773 30774 // 候选人序列 ID ,枚举可通过接口「获取职务分类列表」获取,将用于候选人内推奖规则判断 30775 // 30776 // 示例值:7006234385490345986 30777 func (builder *TransferOnboardApplicationPathReqBodyBuilder) Sequence(sequence string) *TransferOnboardApplicationPathReqBodyBuilder { 30778 builder.sequence = sequence 30779 builder.sequenceFlag = true 30780 return builder 30781 } 30782 30783 // 候选人职级 ID ,枚举可通过接口「获取职级列表」获取,将用于候选人内推奖规则判断 30784 // 30785 // 示例值:6937934036379650311 30786 func (builder *TransferOnboardApplicationPathReqBodyBuilder) Level(level string) *TransferOnboardApplicationPathReqBodyBuilder { 30787 builder.level = level 30788 builder.levelFlag = true 30789 return builder 30790 } 30791 30792 // 候选人入职人员类型 ID,可通过接口人力资源管理平台「获取员工类型列表」获取,将用于候选人内推奖规则判断 30793 // 30794 // 示例值:1 30795 func (builder *TransferOnboardApplicationPathReqBodyBuilder) EmployeeType(employeeType string) *TransferOnboardApplicationPathReqBodyBuilder { 30796 builder.employeeType = employeeType 30797 builder.employeeTypeFlag = true 30798 return builder 30799 } 30800 30801 func (builder *TransferOnboardApplicationPathReqBodyBuilder) Build() (*TransferOnboardApplicationReqBody, error) { 30802 req := &TransferOnboardApplicationReqBody{} 30803 if builder.actualOnboardTimeFlag { 30804 req.ActualOnboardTime = &builder.actualOnboardTime 30805 } 30806 if builder.expectedConversionTimeFlag { 30807 req.ExpectedConversionTime = &builder.expectedConversionTime 30808 } 30809 if builder.jobRequirementIdFlag { 30810 req.JobRequirementId = &builder.jobRequirementId 30811 } 30812 if builder.operatorIdFlag { 30813 req.OperatorId = &builder.operatorId 30814 } 30815 if builder.onboardCityCodeFlag { 30816 req.OnboardCityCode = &builder.onboardCityCode 30817 } 30818 if builder.departmentFlag { 30819 req.Department = &builder.department 30820 } 30821 if builder.leaderFlag { 30822 req.Leader = &builder.leader 30823 } 30824 if builder.sequenceFlag { 30825 req.Sequence = &builder.sequence 30826 } 30827 if builder.levelFlag { 30828 req.Level = &builder.level 30829 } 30830 if builder.employeeTypeFlag { 30831 req.EmployeeType = &builder.employeeType 30832 } 30833 return req, nil 30834 } 30835 30836 type TransferOnboardApplicationReqBuilder struct { 30837 apiReq *larkcore.ApiReq 30838 body *TransferOnboardApplicationReqBody 30839 } 30840 30841 func NewTransferOnboardApplicationReqBuilder() *TransferOnboardApplicationReqBuilder { 30842 builder := &TransferOnboardApplicationReqBuilder{} 30843 builder.apiReq = &larkcore.ApiReq{ 30844 PathParams: larkcore.PathParams{}, 30845 QueryParams: larkcore.QueryParams{}, 30846 } 30847 return builder 30848 } 30849 30850 // 投递ID 30851 // 30852 // 示例值:7073372582620416300 30853 func (builder *TransferOnboardApplicationReqBuilder) ApplicationId(applicationId string) *TransferOnboardApplicationReqBuilder { 30854 builder.apiReq.PathParams.Set("application_id", fmt.Sprint(applicationId)) 30855 return builder 30856 } 30857 30858 // 此次调用中使用的用户ID的类型 30859 // 30860 // 示例值: 30861 func (builder *TransferOnboardApplicationReqBuilder) UserIdType(userIdType string) *TransferOnboardApplicationReqBuilder { 30862 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 30863 return builder 30864 } 30865 30866 // 根据投递 ID 操作候选人入职并创建员工。投递须处于「待入职」阶段,可通过「转移阶段」接口变更投递状态 30867 func (builder *TransferOnboardApplicationReqBuilder) Body(body *TransferOnboardApplicationReqBody) *TransferOnboardApplicationReqBuilder { 30868 builder.body = body 30869 return builder 30870 } 30871 30872 func (builder *TransferOnboardApplicationReqBuilder) Build() *TransferOnboardApplicationReq { 30873 req := &TransferOnboardApplicationReq{} 30874 req.apiReq = &larkcore.ApiReq{} 30875 req.apiReq.PathParams = builder.apiReq.PathParams 30876 req.apiReq.QueryParams = builder.apiReq.QueryParams 30877 req.apiReq.Body = builder.body 30878 return req 30879 } 30880 30881 type TransferOnboardApplicationReqBody struct { 30882 ActualOnboardTime *int `json:"actual_onboard_time,omitempty"` // 实际入职时间 30883 ExpectedConversionTime *int `json:"expected_conversion_time,omitempty"` // 预期转正时间 30884 JobRequirementId *string `json:"job_requirement_id,omitempty"` // 招聘需求 ID 30885 OperatorId *string `json:"operator_id,omitempty"` // 操作人 UserID 30886 OnboardCityCode *string `json:"onboard_city_code,omitempty"` // 候选人办公地点 ID ,枚举可通过接口「获取地址列表」获取,将用于候选人内推奖规则判断 30887 Department *string `json:"department,omitempty"` // 候选人入职部门 ID ,枚举可通过接口「获取部门信息列表」获取,将用于候选人内推奖规则判断 30888 Leader *string `json:"leader,omitempty"` // 候选人直属上级 UserID ,将用于候选人内推奖规则判断 30889 Sequence *string `json:"sequence,omitempty"` // 候选人序列 ID ,枚举可通过接口「获取职务分类列表」获取,将用于候选人内推奖规则判断 30890 Level *string `json:"level,omitempty"` // 候选人职级 ID ,枚举可通过接口「获取职级列表」获取,将用于候选人内推奖规则判断 30891 EmployeeType *string `json:"employee_type,omitempty"` // 候选人入职人员类型 ID,可通过接口人力资源管理平台「获取员工类型列表」获取,将用于候选人内推奖规则判断 30892 } 30893 30894 type TransferOnboardApplicationReq struct { 30895 apiReq *larkcore.ApiReq 30896 Body *TransferOnboardApplicationReqBody `body:""` 30897 } 30898 30899 type TransferOnboardApplicationRespData struct { 30900 Employee *Employee `json:"employee,omitempty"` // employee 30901 } 30902 30903 type TransferOnboardApplicationResp struct { 30904 *larkcore.ApiResp `json:"-"` 30905 larkcore.CodeError 30906 Data *TransferOnboardApplicationRespData `json:"data"` // 业务数据 30907 } 30908 30909 func (resp *TransferOnboardApplicationResp) Success() bool { 30910 return resp.Code == 0 30911 } 30912 30913 type ListApplicationInterviewReqBuilder struct { 30914 apiReq *larkcore.ApiReq 30915 } 30916 30917 func NewListApplicationInterviewReqBuilder() *ListApplicationInterviewReqBuilder { 30918 builder := &ListApplicationInterviewReqBuilder{} 30919 builder.apiReq = &larkcore.ApiReq{ 30920 PathParams: larkcore.PathParams{}, 30921 QueryParams: larkcore.QueryParams{}, 30922 } 30923 return builder 30924 } 30925 30926 // 投递ID 30927 // 30928 // 示例值:6949805467799537964 30929 func (builder *ListApplicationInterviewReqBuilder) ApplicationId(applicationId string) *ListApplicationInterviewReqBuilder { 30930 builder.apiReq.PathParams.Set("application_id", fmt.Sprint(applicationId)) 30931 return builder 30932 } 30933 30934 // 分页大小,不能超过 50 30935 // 30936 // 示例值:10 30937 func (builder *ListApplicationInterviewReqBuilder) PageSize(pageSize int) *ListApplicationInterviewReqBuilder { 30938 builder.apiReq.QueryParams.Set("page_size", fmt.Sprint(pageSize)) 30939 return builder 30940 } 30941 30942 // 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果 30943 // 30944 // 示例值:xx 30945 func (builder *ListApplicationInterviewReqBuilder) PageToken(pageToken string) *ListApplicationInterviewReqBuilder { 30946 builder.apiReq.QueryParams.Set("page_token", fmt.Sprint(pageToken)) 30947 return builder 30948 } 30949 30950 // 此次调用中使用的用户ID的类型 30951 // 30952 // 示例值:open_id 30953 func (builder *ListApplicationInterviewReqBuilder) UserIdType(userIdType string) *ListApplicationInterviewReqBuilder { 30954 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 30955 return builder 30956 } 30957 30958 func (builder *ListApplicationInterviewReqBuilder) Build() *ListApplicationInterviewReq { 30959 req := &ListApplicationInterviewReq{} 30960 req.apiReq = &larkcore.ApiReq{} 30961 req.apiReq.PathParams = builder.apiReq.PathParams 30962 req.apiReq.QueryParams = builder.apiReq.QueryParams 30963 return req 30964 } 30965 30966 type ListApplicationInterviewReq struct { 30967 apiReq *larkcore.ApiReq 30968 } 30969 30970 type ListApplicationInterviewRespData struct { 30971 PageToken *string `json:"page_token,omitempty"` // 分页标志 30972 HasMore *bool `json:"has_more,omitempty"` // 是否有更多 30973 Items []*Interview `json:"items,omitempty"` // 面试列表 30974 } 30975 30976 type ListApplicationInterviewResp struct { 30977 *larkcore.ApiResp `json:"-"` 30978 larkcore.CodeError 30979 Data *ListApplicationInterviewRespData `json:"data"` // 业务数据 30980 } 30981 30982 func (resp *ListApplicationInterviewResp) Success() bool { 30983 return resp.Code == 0 30984 } 30985 30986 type GetAttachmentReqBuilder struct { 30987 apiReq *larkcore.ApiReq 30988 } 30989 30990 func NewGetAttachmentReqBuilder() *GetAttachmentReqBuilder { 30991 builder := &GetAttachmentReqBuilder{} 30992 builder.apiReq = &larkcore.ApiReq{ 30993 PathParams: larkcore.PathParams{}, 30994 QueryParams: larkcore.QueryParams{}, 30995 } 30996 return builder 30997 } 30998 30999 // 附件id 31000 // 31001 // 示例值:6435242341238 31002 func (builder *GetAttachmentReqBuilder) AttachmentId(attachmentId string) *GetAttachmentReqBuilder { 31003 builder.apiReq.PathParams.Set("attachment_id", fmt.Sprint(attachmentId)) 31004 return builder 31005 } 31006 31007 func (builder *GetAttachmentReqBuilder) Build() *GetAttachmentReq { 31008 req := &GetAttachmentReq{} 31009 req.apiReq = &larkcore.ApiReq{} 31010 req.apiReq.PathParams = builder.apiReq.PathParams 31011 return req 31012 } 31013 31014 type GetAttachmentReq struct { 31015 apiReq *larkcore.ApiReq 31016 } 31017 31018 type GetAttachmentRespData struct { 31019 Attachment *Attachment `json:"attachment,omitempty"` // 附件信息 31020 } 31021 31022 type GetAttachmentResp struct { 31023 *larkcore.ApiResp `json:"-"` 31024 larkcore.CodeError 31025 Data *GetAttachmentRespData `json:"data"` // 业务数据 31026 } 31027 31028 func (resp *GetAttachmentResp) Success() bool { 31029 return resp.Code == 0 31030 } 31031 31032 type PreviewAttachmentReqBuilder struct { 31033 apiReq *larkcore.ApiReq 31034 } 31035 31036 func NewPreviewAttachmentReqBuilder() *PreviewAttachmentReqBuilder { 31037 builder := &PreviewAttachmentReqBuilder{} 31038 builder.apiReq = &larkcore.ApiReq{ 31039 PathParams: larkcore.PathParams{}, 31040 QueryParams: larkcore.QueryParams{}, 31041 } 31042 return builder 31043 } 31044 31045 // 附件id 31046 // 31047 // 示例值:11111 31048 func (builder *PreviewAttachmentReqBuilder) AttachmentId(attachmentId string) *PreviewAttachmentReqBuilder { 31049 builder.apiReq.PathParams.Set("attachment_id", fmt.Sprint(attachmentId)) 31050 return builder 31051 } 31052 31053 func (builder *PreviewAttachmentReqBuilder) Build() *PreviewAttachmentReq { 31054 req := &PreviewAttachmentReq{} 31055 req.apiReq = &larkcore.ApiReq{} 31056 req.apiReq.PathParams = builder.apiReq.PathParams 31057 return req 31058 } 31059 31060 type PreviewAttachmentReq struct { 31061 apiReq *larkcore.ApiReq 31062 } 31063 31064 type PreviewAttachmentRespData struct { 31065 Url *string `json:"url,omitempty"` // 预览链接 31066 } 31067 31068 type PreviewAttachmentResp struct { 31069 *larkcore.ApiResp `json:"-"` 31070 larkcore.CodeError 31071 Data *PreviewAttachmentRespData `json:"data"` // 业务数据 31072 } 31073 31074 func (resp *PreviewAttachmentResp) Success() bool { 31075 return resp.Code == 0 31076 } 31077 31078 type GetEmployeeReqBuilder struct { 31079 apiReq *larkcore.ApiReq 31080 } 31081 31082 func NewGetEmployeeReqBuilder() *GetEmployeeReqBuilder { 31083 builder := &GetEmployeeReqBuilder{} 31084 builder.apiReq = &larkcore.ApiReq{ 31085 PathParams: larkcore.PathParams{}, 31086 QueryParams: larkcore.QueryParams{}, 31087 } 31088 return builder 31089 } 31090 31091 // 员工ID 31092 // 31093 // 示例值:123 31094 func (builder *GetEmployeeReqBuilder) EmployeeId(employeeId string) *GetEmployeeReqBuilder { 31095 builder.apiReq.PathParams.Set("employee_id", fmt.Sprint(employeeId)) 31096 return builder 31097 } 31098 31099 // 此次调用中使用的用户ID的类型 31100 // 31101 // 示例值: 31102 func (builder *GetEmployeeReqBuilder) UserIdType(userIdType string) *GetEmployeeReqBuilder { 31103 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31104 return builder 31105 } 31106 31107 func (builder *GetEmployeeReqBuilder) Build() *GetEmployeeReq { 31108 req := &GetEmployeeReq{} 31109 req.apiReq = &larkcore.ApiReq{} 31110 req.apiReq.PathParams = builder.apiReq.PathParams 31111 req.apiReq.QueryParams = builder.apiReq.QueryParams 31112 return req 31113 } 31114 31115 type GetEmployeeReq struct { 31116 apiReq *larkcore.ApiReq 31117 } 31118 31119 type GetEmployeeRespData struct { 31120 Employee *Employee `json:"employee,omitempty"` // 员工信息 31121 } 31122 31123 type GetEmployeeResp struct { 31124 *larkcore.ApiResp `json:"-"` 31125 larkcore.CodeError 31126 Data *GetEmployeeRespData `json:"data"` // 业务数据 31127 } 31128 31129 func (resp *GetEmployeeResp) Success() bool { 31130 return resp.Code == 0 31131 } 31132 31133 type GetByApplicationEmployeeReqBuilder struct { 31134 apiReq *larkcore.ApiReq 31135 } 31136 31137 func NewGetByApplicationEmployeeReqBuilder() *GetByApplicationEmployeeReqBuilder { 31138 builder := &GetByApplicationEmployeeReqBuilder{} 31139 builder.apiReq = &larkcore.ApiReq{ 31140 PathParams: larkcore.PathParams{}, 31141 QueryParams: larkcore.QueryParams{}, 31142 } 31143 return builder 31144 } 31145 31146 // 投递ID 31147 // 31148 // 示例值:123 31149 func (builder *GetByApplicationEmployeeReqBuilder) ApplicationId(applicationId string) *GetByApplicationEmployeeReqBuilder { 31150 builder.apiReq.QueryParams.Set("application_id", fmt.Sprint(applicationId)) 31151 return builder 31152 } 31153 31154 // 此次调用中使用的用户ID的类型 31155 // 31156 // 示例值: 31157 func (builder *GetByApplicationEmployeeReqBuilder) UserIdType(userIdType string) *GetByApplicationEmployeeReqBuilder { 31158 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31159 return builder 31160 } 31161 31162 func (builder *GetByApplicationEmployeeReqBuilder) Build() *GetByApplicationEmployeeReq { 31163 req := &GetByApplicationEmployeeReq{} 31164 req.apiReq = &larkcore.ApiReq{} 31165 req.apiReq.QueryParams = builder.apiReq.QueryParams 31166 return req 31167 } 31168 31169 type GetByApplicationEmployeeReq struct { 31170 apiReq *larkcore.ApiReq 31171 } 31172 31173 type GetByApplicationEmployeeRespData struct { 31174 Employee *Employee `json:"employee,omitempty"` // 员工信息 31175 } 31176 31177 type GetByApplicationEmployeeResp struct { 31178 *larkcore.ApiResp `json:"-"` 31179 larkcore.CodeError 31180 Data *GetByApplicationEmployeeRespData `json:"data"` // 业务数据 31181 } 31182 31183 func (resp *GetByApplicationEmployeeResp) Success() bool { 31184 return resp.Code == 0 31185 } 31186 31187 type PatchEmployeeReqBuilder struct { 31188 apiReq *larkcore.ApiReq 31189 changeEmployeeStage *ChangeEmployeeStage 31190 } 31191 31192 func NewPatchEmployeeReqBuilder() *PatchEmployeeReqBuilder { 31193 builder := &PatchEmployeeReqBuilder{} 31194 builder.apiReq = &larkcore.ApiReq{ 31195 PathParams: larkcore.PathParams{}, 31196 QueryParams: larkcore.QueryParams{}, 31197 } 31198 return builder 31199 } 31200 31201 // 员工ID 31202 // 31203 // 示例值:123 31204 func (builder *PatchEmployeeReqBuilder) EmployeeId(employeeId string) *PatchEmployeeReqBuilder { 31205 builder.apiReq.PathParams.Set("employee_id", fmt.Sprint(employeeId)) 31206 return builder 31207 } 31208 31209 // 此次调用中使用的用户ID的类型 31210 // 31211 // 示例值: 31212 func (builder *PatchEmployeeReqBuilder) UserIdType(userIdType string) *PatchEmployeeReqBuilder { 31213 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31214 return builder 31215 } 31216 31217 // 根据员工 ID 更新员工转正、离职状态 31218 func (builder *PatchEmployeeReqBuilder) ChangeEmployeeStage(changeEmployeeStage *ChangeEmployeeStage) *PatchEmployeeReqBuilder { 31219 builder.changeEmployeeStage = changeEmployeeStage 31220 return builder 31221 } 31222 31223 func (builder *PatchEmployeeReqBuilder) Build() *PatchEmployeeReq { 31224 req := &PatchEmployeeReq{} 31225 req.apiReq = &larkcore.ApiReq{} 31226 req.apiReq.PathParams = builder.apiReq.PathParams 31227 req.apiReq.QueryParams = builder.apiReq.QueryParams 31228 req.apiReq.Body = builder.changeEmployeeStage 31229 return req 31230 } 31231 31232 type PatchEmployeeReq struct { 31233 apiReq *larkcore.ApiReq 31234 ChangeEmployeeStage *ChangeEmployeeStage `body:""` 31235 } 31236 31237 type PatchEmployeeRespData struct { 31238 Employee *Employee `json:"employee,omitempty"` // 员工信息 31239 } 31240 31241 type PatchEmployeeResp struct { 31242 *larkcore.ApiResp `json:"-"` 31243 larkcore.CodeError 31244 Data *PatchEmployeeRespData `json:"data"` // 业务数据 31245 } 31246 31247 func (resp *PatchEmployeeResp) Success() bool { 31248 return resp.Code == 0 31249 } 31250 31251 type GetJobReqBuilder struct { 31252 apiReq *larkcore.ApiReq 31253 } 31254 31255 func NewGetJobReqBuilder() *GetJobReqBuilder { 31256 builder := &GetJobReqBuilder{} 31257 builder.apiReq = &larkcore.ApiReq{ 31258 PathParams: larkcore.PathParams{}, 31259 QueryParams: larkcore.QueryParams{}, 31260 } 31261 return builder 31262 } 31263 31264 // 职位 ID,请求Path中 31265 // 31266 // 示例值:6001 31267 func (builder *GetJobReqBuilder) JobId(jobId int) *GetJobReqBuilder { 31268 builder.apiReq.PathParams.Set("job_id", fmt.Sprint(jobId)) 31269 return builder 31270 } 31271 31272 // 此次调用中使用的用户ID的类型 31273 // 31274 // 示例值: 31275 func (builder *GetJobReqBuilder) UserIdType(userIdType string) *GetJobReqBuilder { 31276 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31277 return builder 31278 } 31279 31280 func (builder *GetJobReqBuilder) Build() *GetJobReq { 31281 req := &GetJobReq{} 31282 req.apiReq = &larkcore.ApiReq{} 31283 req.apiReq.PathParams = builder.apiReq.PathParams 31284 req.apiReq.QueryParams = builder.apiReq.QueryParams 31285 return req 31286 } 31287 31288 type GetJobReq struct { 31289 apiReq *larkcore.ApiReq 31290 } 31291 31292 type GetJobRespData struct { 31293 Job *Job `json:"job,omitempty"` // 职位数据 31294 } 31295 31296 type GetJobResp struct { 31297 *larkcore.ApiResp `json:"-"` 31298 larkcore.CodeError 31299 Data *GetJobRespData `json:"data"` // 业务数据 31300 } 31301 31302 func (resp *GetJobResp) Success() bool { 31303 return resp.Code == 0 31304 } 31305 31306 type GetJobManagerReqBuilder struct { 31307 apiReq *larkcore.ApiReq 31308 } 31309 31310 func NewGetJobManagerReqBuilder() *GetJobManagerReqBuilder { 31311 builder := &GetJobManagerReqBuilder{} 31312 builder.apiReq = &larkcore.ApiReq{ 31313 PathParams: larkcore.PathParams{}, 31314 QueryParams: larkcore.QueryParams{}, 31315 } 31316 return builder 31317 } 31318 31319 // 职位 ID 31320 // 31321 // 示例值:1618209327096 31322 func (builder *GetJobManagerReqBuilder) JobId(jobId string) *GetJobManagerReqBuilder { 31323 builder.apiReq.PathParams.Set("job_id", fmt.Sprint(jobId)) 31324 return builder 31325 } 31326 31327 // 此处传入职位 ID 31328 // 31329 // 示例值:1618209327096 31330 func (builder *GetJobManagerReqBuilder) ManagerId(managerId string) *GetJobManagerReqBuilder { 31331 builder.apiReq.PathParams.Set("manager_id", fmt.Sprint(managerId)) 31332 return builder 31333 } 31334 31335 // 此次调用中使用的用户ID的类型 31336 // 31337 // 示例值: 31338 func (builder *GetJobManagerReqBuilder) UserIdType(userIdType string) *GetJobManagerReqBuilder { 31339 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31340 return builder 31341 } 31342 31343 func (builder *GetJobManagerReqBuilder) Build() *GetJobManagerReq { 31344 req := &GetJobManagerReq{} 31345 req.apiReq = &larkcore.ApiReq{} 31346 req.apiReq.PathParams = builder.apiReq.PathParams 31347 req.apiReq.QueryParams = builder.apiReq.QueryParams 31348 return req 31349 } 31350 31351 type GetJobManagerReq struct { 31352 apiReq *larkcore.ApiReq 31353 } 31354 31355 type GetJobManagerRespData struct { 31356 Info *JobManager `json:"info,omitempty"` // 职位负责人 31357 } 31358 31359 type GetJobManagerResp struct { 31360 *larkcore.ApiResp `json:"-"` 31361 larkcore.CodeError 31362 Data *GetJobManagerRespData `json:"data"` // 业务数据 31363 } 31364 31365 func (resp *GetJobManagerResp) Success() bool { 31366 return resp.Code == 0 31367 } 31368 31369 type ListJobProcessReqBuilder struct { 31370 apiReq *larkcore.ApiReq 31371 } 31372 31373 func NewListJobProcessReqBuilder() *ListJobProcessReqBuilder { 31374 builder := &ListJobProcessReqBuilder{} 31375 builder.apiReq = &larkcore.ApiReq{ 31376 PathParams: larkcore.PathParams{}, 31377 QueryParams: larkcore.QueryParams{}, 31378 } 31379 return builder 31380 } 31381 31382 // 分页大小, 不能超过 100 31383 // 31384 // 示例值:10 31385 func (builder *ListJobProcessReqBuilder) PageSize(pageSize int) *ListJobProcessReqBuilder { 31386 builder.apiReq.QueryParams.Set("page_size", fmt.Sprint(pageSize)) 31387 return builder 31388 } 31389 31390 // 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果 31391 // 31392 // 示例值:1 31393 func (builder *ListJobProcessReqBuilder) PageToken(pageToken string) *ListJobProcessReqBuilder { 31394 builder.apiReq.QueryParams.Set("page_token", fmt.Sprint(pageToken)) 31395 return builder 31396 } 31397 31398 func (builder *ListJobProcessReqBuilder) Build() *ListJobProcessReq { 31399 req := &ListJobProcessReq{} 31400 req.apiReq = &larkcore.ApiReq{} 31401 req.apiReq.QueryParams = builder.apiReq.QueryParams 31402 return req 31403 } 31404 31405 type ListJobProcessReq struct { 31406 apiReq *larkcore.ApiReq 31407 } 31408 31409 type ListJobProcessRespData struct { 31410 HasMore *bool `json:"has_more,omitempty"` // 是否还有更多项 31411 PageToken *string `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token 31412 Items []*JobProcesses `json:"items,omitempty"` // 列表 31413 } 31414 31415 type ListJobProcessResp struct { 31416 *larkcore.ApiResp `json:"-"` 31417 larkcore.CodeError 31418 Data *ListJobProcessRespData `json:"data"` // 业务数据 31419 } 31420 31421 func (resp *ListJobProcessResp) Success() bool { 31422 return resp.Code == 0 31423 } 31424 31425 type CreateNoteReqBuilder struct { 31426 apiReq *larkcore.ApiReq 31427 note *Note 31428 } 31429 31430 func NewCreateNoteReqBuilder() *CreateNoteReqBuilder { 31431 builder := &CreateNoteReqBuilder{} 31432 builder.apiReq = &larkcore.ApiReq{ 31433 PathParams: larkcore.PathParams{}, 31434 QueryParams: larkcore.QueryParams{}, 31435 } 31436 return builder 31437 } 31438 31439 // 此次调用中使用的用户ID的类型 31440 // 31441 // 示例值: 31442 func (builder *CreateNoteReqBuilder) UserIdType(userIdType string) *CreateNoteReqBuilder { 31443 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31444 return builder 31445 } 31446 31447 // 创建备注信息 31448 func (builder *CreateNoteReqBuilder) Note(note *Note) *CreateNoteReqBuilder { 31449 builder.note = note 31450 return builder 31451 } 31452 31453 func (builder *CreateNoteReqBuilder) Build() *CreateNoteReq { 31454 req := &CreateNoteReq{} 31455 req.apiReq = &larkcore.ApiReq{} 31456 req.apiReq.QueryParams = builder.apiReq.QueryParams 31457 req.apiReq.Body = builder.note 31458 return req 31459 } 31460 31461 type CreateNoteReq struct { 31462 apiReq *larkcore.ApiReq 31463 Note *Note `body:""` 31464 } 31465 31466 type CreateNoteRespData struct { 31467 Note *Note `json:"note,omitempty"` // 备注信息 31468 } 31469 31470 type CreateNoteResp struct { 31471 *larkcore.ApiResp `json:"-"` 31472 larkcore.CodeError 31473 Data *CreateNoteRespData `json:"data"` // 业务数据 31474 } 31475 31476 func (resp *CreateNoteResp) Success() bool { 31477 return resp.Code == 0 31478 } 31479 31480 type GetNoteReqBuilder struct { 31481 apiReq *larkcore.ApiReq 31482 } 31483 31484 func NewGetNoteReqBuilder() *GetNoteReqBuilder { 31485 builder := &GetNoteReqBuilder{} 31486 builder.apiReq = &larkcore.ApiReq{ 31487 PathParams: larkcore.PathParams{}, 31488 QueryParams: larkcore.QueryParams{}, 31489 } 31490 return builder 31491 } 31492 31493 // 备注ID 31494 // 31495 // 示例值:6949805467799537964 31496 func (builder *GetNoteReqBuilder) NoteId(noteId string) *GetNoteReqBuilder { 31497 builder.apiReq.PathParams.Set("note_id", fmt.Sprint(noteId)) 31498 return builder 31499 } 31500 31501 // 此次调用中使用的用户ID的类型 31502 // 31503 // 示例值: 31504 func (builder *GetNoteReqBuilder) UserIdType(userIdType string) *GetNoteReqBuilder { 31505 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31506 return builder 31507 } 31508 31509 func (builder *GetNoteReqBuilder) Build() *GetNoteReq { 31510 req := &GetNoteReq{} 31511 req.apiReq = &larkcore.ApiReq{} 31512 req.apiReq.PathParams = builder.apiReq.PathParams 31513 req.apiReq.QueryParams = builder.apiReq.QueryParams 31514 return req 31515 } 31516 31517 type GetNoteReq struct { 31518 apiReq *larkcore.ApiReq 31519 } 31520 31521 type GetNoteRespData struct { 31522 Note *Note `json:"note,omitempty"` // 备注数据 31523 } 31524 31525 type GetNoteResp struct { 31526 *larkcore.ApiResp `json:"-"` 31527 larkcore.CodeError 31528 Data *GetNoteRespData `json:"data"` // 业务数据 31529 } 31530 31531 func (resp *GetNoteResp) Success() bool { 31532 return resp.Code == 0 31533 } 31534 31535 type ListNoteReqBuilder struct { 31536 apiReq *larkcore.ApiReq 31537 } 31538 31539 func NewListNoteReqBuilder() *ListNoteReqBuilder { 31540 builder := &ListNoteReqBuilder{} 31541 builder.apiReq = &larkcore.ApiReq{ 31542 PathParams: larkcore.PathParams{}, 31543 QueryParams: larkcore.QueryParams{}, 31544 } 31545 return builder 31546 } 31547 31548 // 每页限制, 每页最大不超过100 31549 // 31550 // 示例值:10 31551 func (builder *ListNoteReqBuilder) PageSize(pageSize int) *ListNoteReqBuilder { 31552 builder.apiReq.QueryParams.Set("page_size", fmt.Sprint(pageSize)) 31553 return builder 31554 } 31555 31556 // 查询游标, 由上一页结果返回, 第一页不传 31557 // 31558 // 示例值:1 31559 func (builder *ListNoteReqBuilder) PageToken(pageToken string) *ListNoteReqBuilder { 31560 builder.apiReq.QueryParams.Set("page_token", fmt.Sprint(pageToken)) 31561 return builder 31562 } 31563 31564 // 人才ID 31565 // 31566 // 示例值:6916472453069883661 31567 func (builder *ListNoteReqBuilder) TalentId(talentId string) *ListNoteReqBuilder { 31568 builder.apiReq.QueryParams.Set("talent_id", fmt.Sprint(talentId)) 31569 return builder 31570 } 31571 31572 // 此次调用中使用的用户ID的类型 31573 // 31574 // 示例值: 31575 func (builder *ListNoteReqBuilder) UserIdType(userIdType string) *ListNoteReqBuilder { 31576 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31577 return builder 31578 } 31579 31580 func (builder *ListNoteReqBuilder) Build() *ListNoteReq { 31581 req := &ListNoteReq{} 31582 req.apiReq = &larkcore.ApiReq{} 31583 req.apiReq.QueryParams = builder.apiReq.QueryParams 31584 return req 31585 } 31586 31587 type ListNoteReq struct { 31588 apiReq *larkcore.ApiReq 31589 } 31590 31591 type ListNoteRespData struct { 31592 Items []*Note `json:"items,omitempty"` // 备注数据列表 31593 HasMore *bool `json:"has_more,omitempty"` // 是否还有下一页数据 31594 PageToken *string `json:"page_token,omitempty"` // 游标, 翻下一页数据时使用 31595 } 31596 31597 type ListNoteResp struct { 31598 *larkcore.ApiResp `json:"-"` 31599 larkcore.CodeError 31600 Data *ListNoteRespData `json:"data"` // 业务数据 31601 } 31602 31603 func (resp *ListNoteResp) Success() bool { 31604 return resp.Code == 0 31605 } 31606 31607 type PatchNoteReqBodyBuilder struct { 31608 content string // 备注内容 31609 contentFlag bool 31610 } 31611 31612 func NewPatchNoteReqBodyBuilder() *PatchNoteReqBodyBuilder { 31613 builder := &PatchNoteReqBodyBuilder{} 31614 return builder 31615 } 31616 31617 // 备注内容 31618 // 31619 //示例值:111 31620 func (builder *PatchNoteReqBodyBuilder) Content(content string) *PatchNoteReqBodyBuilder { 31621 builder.content = content 31622 builder.contentFlag = true 31623 return builder 31624 } 31625 31626 func (builder *PatchNoteReqBodyBuilder) Build() *PatchNoteReqBody { 31627 req := &PatchNoteReqBody{} 31628 if builder.contentFlag { 31629 req.Content = &builder.content 31630 } 31631 return req 31632 } 31633 31634 type PatchNotePathReqBodyBuilder struct { 31635 content string // 备注内容 31636 contentFlag bool 31637 } 31638 31639 func NewPatchNotePathReqBodyBuilder() *PatchNotePathReqBodyBuilder { 31640 builder := &PatchNotePathReqBodyBuilder{} 31641 return builder 31642 } 31643 31644 // 备注内容 31645 // 31646 // 示例值:111 31647 func (builder *PatchNotePathReqBodyBuilder) Content(content string) *PatchNotePathReqBodyBuilder { 31648 builder.content = content 31649 builder.contentFlag = true 31650 return builder 31651 } 31652 31653 func (builder *PatchNotePathReqBodyBuilder) Build() (*PatchNoteReqBody, error) { 31654 req := &PatchNoteReqBody{} 31655 if builder.contentFlag { 31656 req.Content = &builder.content 31657 } 31658 return req, nil 31659 } 31660 31661 type PatchNoteReqBuilder struct { 31662 apiReq *larkcore.ApiReq 31663 body *PatchNoteReqBody 31664 } 31665 31666 func NewPatchNoteReqBuilder() *PatchNoteReqBuilder { 31667 builder := &PatchNoteReqBuilder{} 31668 builder.apiReq = &larkcore.ApiReq{ 31669 PathParams: larkcore.PathParams{}, 31670 QueryParams: larkcore.QueryParams{}, 31671 } 31672 return builder 31673 } 31674 31675 // 备注 ID 31676 // 31677 // 示例值:6960663240925956401 31678 func (builder *PatchNoteReqBuilder) NoteId(noteId string) *PatchNoteReqBuilder { 31679 builder.apiReq.PathParams.Set("note_id", fmt.Sprint(noteId)) 31680 return builder 31681 } 31682 31683 // 此次调用中使用的用户ID的类型 31684 // 31685 // 示例值: 31686 func (builder *PatchNoteReqBuilder) UserIdType(userIdType string) *PatchNoteReqBuilder { 31687 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31688 return builder 31689 } 31690 31691 // 根据备注 ID 更新备注信息 31692 func (builder *PatchNoteReqBuilder) Body(body *PatchNoteReqBody) *PatchNoteReqBuilder { 31693 builder.body = body 31694 return builder 31695 } 31696 31697 func (builder *PatchNoteReqBuilder) Build() *PatchNoteReq { 31698 req := &PatchNoteReq{} 31699 req.apiReq = &larkcore.ApiReq{} 31700 req.apiReq.PathParams = builder.apiReq.PathParams 31701 req.apiReq.QueryParams = builder.apiReq.QueryParams 31702 req.apiReq.Body = builder.body 31703 return req 31704 } 31705 31706 type PatchNoteReqBody struct { 31707 Content *string `json:"content,omitempty"` // 备注内容 31708 } 31709 31710 type PatchNoteReq struct { 31711 apiReq *larkcore.ApiReq 31712 Body *PatchNoteReqBody `body:""` 31713 } 31714 31715 type PatchNoteRespData struct { 31716 Note *Note `json:"note,omitempty"` // 备注数据 31717 } 31718 31719 type PatchNoteResp struct { 31720 *larkcore.ApiResp `json:"-"` 31721 larkcore.CodeError 31722 Data *PatchNoteRespData `json:"data"` // 业务数据 31723 } 31724 31725 func (resp *PatchNoteResp) Success() bool { 31726 return resp.Code == 0 31727 } 31728 31729 type GetOfferSchemaReqBuilder struct { 31730 apiReq *larkcore.ApiReq 31731 } 31732 31733 func NewGetOfferSchemaReqBuilder() *GetOfferSchemaReqBuilder { 31734 builder := &GetOfferSchemaReqBuilder{} 31735 builder.apiReq = &larkcore.ApiReq{ 31736 PathParams: larkcore.PathParams{}, 31737 QueryParams: larkcore.QueryParams{}, 31738 } 31739 return builder 31740 } 31741 31742 // offer申请表的ID *必需属性 31743 // 31744 // 示例值:1231231231231 31745 func (builder *GetOfferSchemaReqBuilder) OfferSchemaId(offerSchemaId string) *GetOfferSchemaReqBuilder { 31746 builder.apiReq.PathParams.Set("offer_schema_id", fmt.Sprint(offerSchemaId)) 31747 return builder 31748 } 31749 31750 func (builder *GetOfferSchemaReqBuilder) Build() *GetOfferSchemaReq { 31751 req := &GetOfferSchemaReq{} 31752 req.apiReq = &larkcore.ApiReq{} 31753 req.apiReq.PathParams = builder.apiReq.PathParams 31754 return req 31755 } 31756 31757 type GetOfferSchemaReq struct { 31758 apiReq *larkcore.ApiReq 31759 } 31760 31761 type GetOfferSchemaRespData struct { 31762 Id *string `json:"id,omitempty"` // offer申请表ID 31763 Scenario *int `json:"scenario,omitempty"` // offer申请表使用场景 31764 Version *int `json:"version,omitempty"` // 申请表版本 31765 ObjectList []*OfferSchemaDetail `json:"object_list,omitempty"` // 字段对象信息 31766 } 31767 31768 type GetOfferSchemaResp struct { 31769 *larkcore.ApiResp `json:"-"` 31770 larkcore.CodeError 31771 Data *GetOfferSchemaRespData `json:"data"` // 业务数据 31772 } 31773 31774 func (resp *GetOfferSchemaResp) Success() bool { 31775 return resp.Code == 0 31776 } 31777 31778 type GetByApplicationReferralReqBuilder struct { 31779 apiReq *larkcore.ApiReq 31780 } 31781 31782 func NewGetByApplicationReferralReqBuilder() *GetByApplicationReferralReqBuilder { 31783 builder := &GetByApplicationReferralReqBuilder{} 31784 builder.apiReq = &larkcore.ApiReq{ 31785 PathParams: larkcore.PathParams{}, 31786 QueryParams: larkcore.QueryParams{}, 31787 } 31788 return builder 31789 } 31790 31791 // 投递的 ID 31792 // 31793 // 示例值:6134134355464633 31794 func (builder *GetByApplicationReferralReqBuilder) ApplicationId(applicationId string) *GetByApplicationReferralReqBuilder { 31795 builder.apiReq.QueryParams.Set("application_id", fmt.Sprint(applicationId)) 31796 return builder 31797 } 31798 31799 // 此次调用中使用的用户ID的类型 31800 // 31801 // 示例值:open_id 31802 func (builder *GetByApplicationReferralReqBuilder) UserIdType(userIdType string) *GetByApplicationReferralReqBuilder { 31803 builder.apiReq.QueryParams.Set("user_id_type", fmt.Sprint(userIdType)) 31804 return builder 31805 } 31806 31807 func (builder *GetByApplicationReferralReqBuilder) Build() *GetByApplicationReferralReq { 31808 req := &GetByApplicationReferralReq{} 31809 req.apiReq = &larkcore.ApiReq{} 31810 req.apiReq.QueryParams = builder.apiReq.QueryParams 31811 return req 31812 } 31813 31814 type GetByApplicationReferralReq struct { 31815 apiReq *larkcore.ApiReq 31816 } 31817 31818 type GetByApplicationReferralRespData struct { 31819 Referral *Referral `json:"referral,omitempty"` // 内推信息 31820 } 31821 31822 type GetByApplicationReferralResp struct { 31823 *larkcore.ApiResp `json:"-"` 31824 larkcore.CodeError 31825 Data *GetByApplicationReferralRespData `json:"data"` // 业务数据 31826 } 31827 31828 func (resp *GetByApplicationReferralResp) Success() bool { 31829 return resp.Code == 0 31830 } 31831 31832 type ListResumeSourceReqBuilder struct { 31833 apiReq *larkcore.ApiReq 31834 limit int // 最大返回多少记录,当使用迭代器访问时才有效 31835 } 31836 31837 func NewListResumeSourceReqBuilder() *ListResumeSourceReqBuilder { 31838 builder := &ListResumeSourceReqBuilder{} 31839 builder.apiReq = &larkcore.ApiReq{ 31840 PathParams: larkcore.PathParams{}, 31841 QueryParams: larkcore.QueryParams{}, 31842 } 31843 return builder 31844 } 31845 31846 // 最大返回多少记录,当使用迭代器访问时才有效 31847 func (builder *ListResumeSourceReqBuilder) Limit(limit int) *ListResumeSourceReqBuilder { 31848 builder.limit = limit 31849 return builder 31850 } 31851 31852 // 分页大小 31853 // 31854 // 示例值:10 31855 func (builder *ListResumeSourceReqBuilder) PageSize(pageSize int) *ListResumeSourceReqBuilder { 31856 builder.apiReq.QueryParams.Set("page_size", fmt.Sprint(pageSize)) 31857 return builder 31858 } 31859 31860 // 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果 31861 // 31862 // 示例值:1 31863 func (builder *ListResumeSourceReqBuilder) PageToken(pageToken string) *ListResumeSourceReqBuilder { 31864 builder.apiReq.QueryParams.Set("page_token", fmt.Sprint(pageToken)) 31865 return builder 31866 } 31867 31868 func (builder *ListResumeSourceReqBuilder) Build() *ListResumeSourceReq { 31869 req := &ListResumeSourceReq{} 31870 req.apiReq = &larkcore.ApiReq{} 31871 req.Limit = builder.limit 31872 req.apiReq.QueryParams = builder.apiReq.QueryParams 31873 return req 31874 } 31875 31876 type ListResumeSourceReq struct { 31877 apiReq *larkcore.ApiReq 31878 Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效 31879 31880 } 31881 31882 type ListResumeSourceRespData struct { 31883 Items []*ResumeSource `json:"items,omitempty"` // 数据 31884 PageToken *string `json:"page_token,omitempty"` // 31885 HasMore *bool `json:"has_more,omitempty"` // 31886 } 31887 31888 type ListResumeSourceResp struct { 31889 *larkcore.ApiResp `json:"-"` 31890 larkcore.CodeError 31891 Data *ListResumeSourceRespData `json:"data"` // 业务数据 31892 } 31893 31894 func (resp *ListResumeSourceResp) Success() bool { 31895 return resp.Code == 0 31896 } 31897 31898 type GetTalentReqBuilder struct { 31899 apiReq *larkcore.ApiReq 31900 } 31901 31902 func NewGetTalentReqBuilder() *GetTalentReqBuilder { 31903 builder := &GetTalentReqBuilder{} 31904 builder.apiReq = &larkcore.ApiReq{ 31905 PathParams: larkcore.PathParams{}, 31906 QueryParams: larkcore.QueryParams{}, 31907 } 31908 return builder 31909 } 31910 31911 // 人才ID 31912 // 31913 // 示例值:6891560630172518670 31914 func (builder *GetTalentReqBuilder) TalentId(talentId string) *GetTalentReqBuilder { 31915 builder.apiReq.PathParams.Set("talent_id", fmt.Sprint(talentId)) 31916 return builder 31917 } 31918 31919 func (builder *GetTalentReqBuilder) Build() *GetTalentReq { 31920 req := &GetTalentReq{} 31921 req.apiReq = &larkcore.ApiReq{} 31922 req.apiReq.PathParams = builder.apiReq.PathParams 31923 return req 31924 } 31925 31926 type GetTalentReq struct { 31927 apiReq *larkcore.ApiReq 31928 } 31929 31930 type GetTalentRespData struct { 31931 Talent *Talent `json:"talent,omitempty"` // 人才信息 31932 } 31933 31934 type GetTalentResp struct { 31935 *larkcore.ApiResp `json:"-"` 31936 larkcore.CodeError 31937 Data *GetTalentRespData `json:"data"` // 业务数据 31938 } 31939 31940 func (resp *GetTalentResp) Success() bool { 31941 return resp.Code == 0 31942 } 31943 31944 type ListResumeSourceIterator struct { 31945 nextPageToken *string 31946 items []*ResumeSource 31947 index int 31948 limit int 31949 ctx context.Context 31950 req *ListResumeSourceReq 31951 listFunc func(ctx context.Context, req *ListResumeSourceReq, options ...larkcore.RequestOptionFunc) (*ListResumeSourceResp, error) 31952 options []larkcore.RequestOptionFunc 31953 curlNum int 31954 } 31955 31956 func (iterator *ListResumeSourceIterator) Next() (bool, *ResumeSource, error) { 31957 // 达到最大量,则返回 31958 if iterator.limit > 0 && iterator.curlNum >= iterator.limit { 31959 return false, nil, nil 31960 } 31961 31962 // 为0则拉取数据 31963 if iterator.index == 0 || iterator.index >= len(iterator.items) { 31964 if iterator.index != 0 && iterator.nextPageToken == nil { 31965 return false, nil, nil 31966 } 31967 if iterator.nextPageToken != nil { 31968 iterator.req.apiReq.QueryParams.Set("page_token", *iterator.nextPageToken) 31969 } 31970 resp, err := iterator.listFunc(iterator.ctx, iterator.req, iterator.options...) 31971 if err != nil { 31972 return false, nil, err 31973 } 31974 31975 if resp.Code != 0 { 31976 return false, nil, errors.New(fmt.Sprintf("Code:%d,Msg:%s", resp.Code, resp.Msg)) 31977 } 31978 31979 if len(resp.Data.Items) == 0 { 31980 return false, nil, nil 31981 } 31982 31983 iterator.nextPageToken = resp.Data.PageToken 31984 iterator.items = resp.Data.Items 31985 iterator.index = 0 31986 } 31987 31988 block := iterator.items[iterator.index] 31989 iterator.index++ 31990 iterator.curlNum++ 31991 return true, block, nil 31992 } 31993 31994 func (iterator *ListResumeSourceIterator) NextPageToken() *string { 31995 return iterator.nextPageToken 31996 }