# Các Service Requested

# Giới thiệu

  • Là các hành động gửi yêu cầu dịch vu hoặc hủy yêu cầu dịch vụ của nhà tuyển dụng.
  • Được gửi từ backend và front-end

# Trigger

User vào trang app/services để thực hiện các hành động.

# Gửi từ back-end

  • ServiceRequested: Trigger khi user gửi yêu cầu sử dụng dịch vụ.
  • ServiceCancelled: Trigger khi user hủy yêu cầu sử dụng dịch vụ.

# Gửi từ front-end

  • ClickToActivate: Trigger khi user click vào nút kích hoạt.
  • ClickToAgreeActivate: Trigger khi user click vào button Đồng ý trong popup Kích hoạt.
  • RequestActivateSuccessfully: Trigger khi user gửi yêu cầu kích hoạt thành công.

# Schema

# Host

POST /collect

# Request body

Key Desc
type ServiceRequested
user_id Logged In user
s_i Id của dịch vụ (int)
r_c_id Id của chiến dịch tuyển dụng (int)
qty Số lượng của dịch vụ sử dụng (int)
jb_id Id của tin tuyển dụng (int)
s_d thời gian bắt đầu dịch vụ (string)
Required Info Schema Xem thông tin bắt buộc
Key Desc
type ServiceCancelled
user_id Logged In user
o_s_id ID của yêu cầu sử dụng dịch vụ (int)
r_c_id Id của chiến dịch tuyển dụng (int)
s_i Id của dịch vụ (int)
Required Info Schema Xem thông tin bắt buộc

# Sample

# ServiceRequested

{
    "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",
    "q": null,
    "u_id": "139912",
    "id": null,
    "src": null,
    "tab_id": null,
    "ts": 1632477082,
    "ip": "172.25.0.1",
    "type": "ServiceRequested",
    "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,
    "s_i": 231113,
    "qty": 1,
    "r_c_id": 259325,
    "s_d": "2021-09-24"
}

# ServiceCancelled

{
    "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/cancel",
    "q": null,
    "u_id": "139912",
    "id": null,
    "src": null,
    "tab_id": null,
    "ts": 1632477082,
    "ip": "172.25.0.1",
    "type": "ServiceCancelled",
    "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,
    "o_s_id": 121343,
    "s_i": 231113,
    "r_c_id": 259325,
}

# ClickToActivate

{
  "referer": "http://localhost:45675/services",
  "c_id": "sh6N2Zlw7L.1677465238526",
  "w": 1920,
  "h": 1080,
  "p_f": "Linux x86_64",
  "a_v": "5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
  "host": "localhost:45675",
  "hrf": "http%3A%2F%2Flocalhost%3A45675%2Fapp%2Fservices%3Factive_tab%3Dunused",
  "o": "http://localhost:45675",
  "p_n": "/app/services",
  "q": {
    "active_tab": "unused"
  },
  "f_p": "873e59d76e8f7fc53beccfd668d0c4a1",
  "type": "ClickToActivate",
  "u_id": "218868",
  "id": "tuyendung_topcv_vn",
  "tab_id": "BEYrPnwawC",
  "sc_v": "1.0.0",
  "u_e": "NGOCNT1303@GMAIL.COM",
  "u_p": "0962636803",
  "s_id": 126
}

# ClickToAgreeActivate

{
  "referer": "http://localhost:45675/services",
  "c_id": "sh6N2Zlw7L.1677465238526",
  "w": 1920,
  "h": 1080,
  "p_f": "Linux x86_64",
  "a_v": "5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
  "host": "localhost:45675",
  "hrf": "http%3A%2F%2Flocalhost%3A45675%2Fapp%2Fservices%3Factive_tab%3Dunused",
  "o": "http://localhost:45675",
  "p_n": "/app/services",
  "q": {
    "active_tab": "unused"
  },
  "f_p": "873e59d76e8f7fc53beccfd668d0c4a1",
  "type": "ClickToAgreeActivate",
  "u_id": "218868",
  "id": "tuyendung_topcv_vn",
  "tab_id": "BEYrPnwawC",
  "sc_v": "1.0.0",
  "u_e": "NGOCNT1303@GMAIL.COM",
  "u_p": "0962636803",
  "jb_id": 416376,
  "s_id": 126
}

# RequestActivateSuccessfully

{
  "referer": "http://localhost:45675/services",
  "c_id": "sh6N2Zlw7L.1677465238526",
  "w": 1920,
  "h": 1080,
  "p_f": "Linux x86_64",
  "a_v": "5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
  "host": "localhost:45675",
  "hrf": "http%3A%2F%2Flocalhost%3A45675%2Fapp%2Fservices%3Factive_tab%3Dunused",
  "o": "http://localhost:45675",
  "p_n": "/app/services",
  "q": {
    "active_tab": "unused"
  },
  "f_p": "873e59d76e8f7fc53beccfd668d0c4a1",
  "type": "RequestActivateSuccessfully",
  "u_id": "218868",
  "id": "tuyendung_topcv_vn",
  "tab_id": "BEYrPnwawC",
  "sc_v": "1.0.0",
  "u_e": "NGOCNT1303@GMAIL.COM",
  "u_p": "0962636803",
  "jb_id": 416376,
  "s_id": 126
}