-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathapi_hire_application_interview_list.go
114 lines (101 loc) · 7.06 KB
/
api_hire_application_interview_list.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// Code generated by lark_sdk_gen. DO NOT EDIT.
/**
* Copyright 2022 chyroc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package lark
import (
"context"
)
// GetHireApplicationInterviewList 根据投递 ID 获取面试记录列表
//
// doc: https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application-interview/list
// new doc: https://open.feishu.cn/document/server-docs/historic-version/hire_internal/application-interview/list
//
// Deprecated
func (r *HireService) GetHireApplicationInterviewList(ctx context.Context, request *GetHireApplicationInterviewListReq, options ...MethodOptionFunc) (*GetHireApplicationInterviewListResp, *Response, error) {
if r.cli.mock.mockHireGetHireApplicationInterviewList != nil {
r.cli.Log(ctx, LogLevelDebug, "[lark] Hire#GetHireApplicationInterviewList mock enable")
return r.cli.mock.mockHireGetHireApplicationInterviewList(ctx, request, options...)
}
req := &RawRequestReq{
Scope: "Hire",
API: "GetHireApplicationInterviewList",
Method: "GET",
URL: r.cli.openBaseURL + "/open-apis/hire/v1/applications/:application_id/interviews",
Body: request,
MethodOption: newMethodOption(options),
NeedTenantAccessToken: true,
}
resp := new(getHireApplicationInterviewListResp)
response, err := r.cli.RawRequest(ctx, req, resp)
return resp.Data, response, err
}
// MockHireGetHireApplicationInterviewList mock HireGetHireApplicationInterviewList method
func (r *Mock) MockHireGetHireApplicationInterviewList(f func(ctx context.Context, request *GetHireApplicationInterviewListReq, options ...MethodOptionFunc) (*GetHireApplicationInterviewListResp, *Response, error)) {
r.mockHireGetHireApplicationInterviewList = f
}
// UnMockHireGetHireApplicationInterviewList un-mock HireGetHireApplicationInterviewList method
func (r *Mock) UnMockHireGetHireApplicationInterviewList() {
r.mockHireGetHireApplicationInterviewList = nil
}
// GetHireApplicationInterviewListReq ...
type GetHireApplicationInterviewListReq struct {
ApplicationID string `path:"application_id" json:"-"` // 投递ID, 示例值: "6949805467799537964"
PageSize int64 `query:"page_size" json:"-"` // 分页大小, 不能超过 50, 示例值: 10
PageToken *string `query:"page_token" json:"-"` // 分页标记, 第一次请求不填, 表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token, 下次遍历可采用该 page_token 获取查询结果, 示例值: "xx"
UserIDType *IDType `query:"user_id_type" json:"-"` // 用户 ID 类型, 示例值: "open_id", 可选值有: `open_id`: 用户的 open id, `union_id`: 用户的 union id, `user_id`: 用户的 user id, 默认值: `open_id`, 当值为 `user_id`, 字段权限要求: 获取用户 user ID
}
// GetHireApplicationInterviewListResp ...
type GetHireApplicationInterviewListResp struct {
PageToken string `json:"page_token,omitempty"` // 分页标志
HasMore bool `json:"has_more,omitempty"` // 是否有更多
Items []*GetHireApplicationInterviewListRespItem `json:"items,omitempty"` // 面试列表
}
// GetHireApplicationInterviewListRespItem ...
type GetHireApplicationInterviewListRespItem struct {
ID string `json:"id,omitempty"` // 面试id
BeginTime int64 `json:"begin_time,omitempty"` // 面试开始时间(ms)
EndTime int64 `json:"end_time,omitempty"` // 面试结束时间(ms)
Round int64 `json:"round,omitempty"` // 面试轮次(从0开始计数)
StageID string `json:"stage_id,omitempty"` // 面试关联的投递阶段
InterviewRecordList []*GetHireApplicationInterviewListRespItemInterviewRecord `json:"interview_record_list,omitempty"` // 面试官记录列表
}
// GetHireApplicationInterviewListRespItemInterviewRecord ...
type GetHireApplicationInterviewListRespItemInterviewRecord struct {
ID string `json:"id,omitempty"` // 面试记录 ID
UserID string `json:"user_id,omitempty"` // 面试官用户 ID
Content string `json:"content,omitempty"` // 系统预设「记录」题目内容
MinJobLevelID string `json:"min_job_level_id,omitempty"` // 建议定级下限的职级 ID
MaxJobLevelID string `json:"max_job_level_id,omitempty"` // 建议定级上限的职级 ID
CommitStatus int64 `json:"commit_status,omitempty"` // 提交状态, 可选值有: `1`: 已提交, `2`: 未提交
Conclusion int64 `json:"conclusion,omitempty"` // 面试结论, 可选值有: `1`: 通过, `2`: 未通过, `3`: 未开始, `4`: 未提交, `5`: 未到场
InterviewScore *GetHireApplicationInterviewListRespItemInterviewRecordInterviewScore `json:"interview_score,omitempty"` // 面试评分
}
// GetHireApplicationInterviewListRespItemInterviewRecordInterviewScore ...
type GetHireApplicationInterviewListRespItemInterviewRecordInterviewScore struct {
ID string `json:"id,omitempty"` // 面试评分 ID
Level int64 `json:"level,omitempty"` // 分数级别
ZhName string `json:"zh_name,omitempty"` // 中文名称
ZhDescription string `json:"zh_description,omitempty"` // 中文描述
EnName string `json:"en_name,omitempty"` // 英文名称
EnDescription string `json:"en_description,omitempty"` // 英文描述
}
// getHireApplicationInterviewListResp ...
type getHireApplicationInterviewListResp struct {
Code int64 `json:"code,omitempty"` // 错误码, 非 0 表示失败
Msg string `json:"msg,omitempty"` // 错误描述
Data *GetHireApplicationInterviewListResp `json:"data,omitempty"`
Error *ErrorDetail `json:"error,omitempty"`
}