# Các Event Job
# Giới thiệu
- Là các hành động đăng tin tuyển dụng mới, sửa tin tuyển dụng, yêu cầu hiển thị tin tuyển dụng, dừng tin tuyển dụng, yêu cầu kích hoạt dịch vụ trả phí cho tin tuyển dụng.
- Được gửi từ backend.
# Trigger
JobCreated: Trigger khi user tạo một job mới.JobUpdated: Trigger khi user sửa và lưu một job.JobDisplayRequested: Trigger khi user gửi yêu cầu hiển thị job.JobDisplayStopped: Trigger khi user hủy yêu cầu hiển thị job.JobPremiumServiceRequested: Trigger khi user gửi yêu cầu sử dụng các dịch vụ cho job.
# Schema
# Host
POST /collect
# Request body
| Key | Desc |
|---|---|
| u_id | Logged In user |
| jb_id | Id của tin tuyển dụng (int) |
| type | JobCreated, JobUpdated, JobDisplayRequested, JobDisplayStopped, JobPremiumServiceRequested |
| tc_id | ID của bài test trong tin tuyển dụng. Chỉ có ở JobCreated, JobUpdated. (int) |
| d | d hiển thị tin tuyển dụng. Chỉ có ở JobDisplayRequested. (string) |
| s_is | ID của các dịch vụ. Chỉ có ở JobPremiumServiceRequested. (int[]) |
| r_c_id | ID của chiến dịch. Chỉ có ở JobPremiumServiceRequested và là optional. (int) |
| Required Info Schema | Xem thông tin bắt buộc |
# Sample
# JobCreated, JobUpdated
{
"referer": "http://localhost:31896/",
"c_id": null,
"w": null,
"h": null,
"p_f": null,
"a_v": null,
"host": "api-tuyendung.topcv.local",
"o": "http://localhost:31896",
"p_n": "api/v1/jobs/267422",
"q": null,
"u_id": "139912",
"id": null,
"src": null,
"tab_id": null,
"ts": 1632477082,
"ip": "172.25.0.1",
"type": "JobUpdated",
"hrf": "http%3A%2F%2Fapi-tuyendung.topcv.local%2Fapi%2Fv1%2Fjobs%2F267422",
"t_i": null,
"cv_i": null,
"p": null,
"b": null,
"jb_ids": null,
"jb_id": 267422
"p_j_i": null,
"v_t": null,
"s": null,
"mb_l_i": null,
"r": null,
"package": null,
"mi_l_i": null,
"g_s": null,
"h_s": null,
"b_ns": null,
"u_s": null,
"u_m": null,
"u_c": null,
"ta_source": null,
"p_id": null,
"imprs": null,
"tc_id": 214354
}
# JobDisplayRequested
{
"referer": "http://localhost:31896/",
"c_id": null,
"w": null,
"h": null,
"p_f": null,
"a_v": null,
"host": "api-tuyendung.topcv.local",
"o": "http://localhost:31896",
"p_n": "api/v1/jobs/267422/publish",
"q": null,
"u_id": "139912",
"id": null,
"src": null,
"tab_id": null,
"ts": 1632477386,
"ip": "172.25.0.1",
"type": "JobDisplayRequested",
"hrf": "http%3A%2F%2Fapi-tuyendung.topcv.local%2Fapi%2Fv1%2Fjobs%2F267422%2Fpublish",
"t_i": null,
"cv_i": null,
"p": null,
"b": null,
"jb_ids": null,
"jb_id": 267422,
"p_j_i": null,
"v_t": null,
"s": null,
"mb_l_i": null,
"r": null,
"package": null,
"mi_l_i": null,
"g_s": null,
"h_s": null,
"b_ns": null,
"u_s": null,
"u_m": null,
"u_c": null,
"ta_source": null,
"p_id": null,
"imprs": null,
"d": '2021-10-31'
}
# JobDisplayStopped
{
"referer": "http://localhost:31896/",
"c_id": null,
"w": null,
"h": null,
"p_f": null,
"a_v": null,
"host": "api-tuyendung.topcv.local",
"o": "http://localhost:31896",
"p_n": "api/v1/jobs/267422/stop",
"q": null,
"u_id": "139912",
"id": null,
"src": null,
"tab_id": null,
"ts": 1632477386,
"ip": "172.25.0.1",
"type": "JobDisplayStopped",
"hrf": "http%3A%2F%2Fapi-tuyendung.topcv.local%2Fapi%2Fv1%2Fjobs%2F267422%2Fpublish",
"t_i": null,
"cv_i": null,
"p": null,
"b": null,
"jb_ids": null,
"jb_id": 267422,
"p_j_i": null,
"v_t": null,
"s": null,
"mb_l_i": null,
"r": null,
"package": null,
"mi_l_i": null,
"g_s": null,
"h_s": null,
"b_ns": null,
"u_s": null,
"u_m": null,
"u_c": null,
"ta_source": null,
"p_id": null,
"imprs": null
}
# JobPremiumServiceRequested
{
"referer": "http://localhost:31896/",
"c_id": null,
"w": null,
"h": null,
"p_f": null,
"a_v": null,
"host": "api-tuyendung.topcv.local",
"o": "http://localhost:31896",
"p_n": "api/v1/my-services/ordered-services/batch",
"q": null,
"u_id": "139912",
"id": null,
"src": null,
"tab_id": null,
"ts": 1632477386,
"ip": "172.25.0.1",
"type": "JobPremiumServiceRequested",
"hrf": "http%3A%2F%2Fapi-tuyendung.topcv.local%2Fapi%2Fv1%2Fjobs%2F267422%2Fpublish",
"t_i": null,
"cv_i": null,
"p": null,
"b": null,
"jb_ids": null,
"jb_id": 267422,
"p_j_i": null,
"v_t": null,
"s": null,
"mb_l_i": null,
"r": null,
"package": null,
"mi_l_i": null,
"g_s": null,
"h_s": null,
"b_ns": null,
"u_s": null,
"u_m": null,
"u_c": null,
"ta_source": null,
"p_id": null,
"imprs": null,
"s_is": [374231, 374230]
}