# Các Event CV Management

# Giới thiệu

  • Là các hành động tương tác với Cv trong Quản lý CV.
  • Bao gồm:
    • Được gửi từ frontend: CvManagementClickedCopyShareLink
    • Được gửi từ backend:CvManagementSearch, CvManagementChangedCvStatus, CvManagementUpdatedNote, CvManagementReportedCv.

# Trigger

  • User vào trang app/cvs-management hoặc trang app/recruitment-campaigns/{recuimentCampainId}/search-cv (với các Cv đã được trả tiền)
  • CvManagementClickedCopyShareLink: Trigger user mở Cv, sau đó click vào nút Sao chép link trên modal Đổi trạng thái Cv.
  • CvManagementSearch: Trigger khi user search cv trong trang quản lí CV.
  • CvManagementChangedCvStatus: Trigger khi user đổi trạng thái CV trong trang quản lí CV.
  • CvManagementUpdatedNote: Trigger khi user lưu note vào 1 CV.
  • CvManagementReportedCv: Trigger khi user tố cáo 1 CV.

# Schema

# Host

POST /collect

# Request body

Key Desc
u_id Logged In user
type CvManagementClickedCopyShareLink, CvManagementSearch, CvManagementChangedCvStatus, CvManagementUpdatedNote, CvManagementReportedCv
q query khi search CV
status trạng thái khi update trạng thái CV (int)
re Lí do khi report CV (string)
cv_i id của cv (string)
Required Info Schema Xem thông tin bắt buộc

# Sample

{
  type: 'CvManagementClickedCopyShareLink',
  referer: 'http://localhost:8888/cvs-management',
  c_id: 'FazELntgKT.1632455814787',
  w: 1920,
  h: 1080,
  p_f: 'Linux x86_64',
  a_v: '5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36',
  host: 'localhost:8888',
  o: 'http://localhost:8888',
  p_n: '/app/recruitment-campaigns/409260/search-cv',
  q: null,
  id: 'tuyendung.topcv.vn',
  u_id: '218870',
  src: null,
  tab_id: 'c3huBTPBl3',
  ts: 1631181544,
  ip: '172.19.0.1',
  hrf: 'http%3A%2F%2Flocalhost%3A8888%2Fapp%2Frecruitment-campaigns%2F409260%2Fsearch-cv',
  t_i: null,
  cv_i: null,
  p: null,
  b: null,
  jb_ids: null,
  v_t: null,
  imprs: null,
  device_id: null,
  user_agent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36',
  u_s: null,
  u_m: null,
  u_c: null,
  ta_source: null,
  cv_i: '04294c58c460ee8a23ff403058210aa9',
  t_i: 30
}

# CvManagementSearch

{
    "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/cv-management/cvs",
    "q": {
        "get_newest_cv": "true",
        "filter_by": "all"
    },
    "u_id": "139912",
    "id": null,
    "src": null,
    "tab_id": null,
    "ts": 1632653503,
    "ip": "172.25.0.1",
    "type": "CvManagementSearch",
    "hrf": "http%3A%2F%2Fapi-tuyendung.topcv.local%2Fapi%2Fv1%2Fcv-management%2Fcvs%3Ffilter_by%3Dall%26get_newest_cv%3Dtrue",
    "t_i": null,
    "cv_i": null,
    "p": null,
    "b": null,
    "jb_ids": null,
    "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
}

# CvManagementChangedCvStatus

{
    "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/cv-management/cvs/1915042/status",
    "q": null,
    "u_id": "139912",
    "id": null,
    "src": null,
    "tab_id": null,
    "ts": 1632654148,
    "ip": "172.25.0.1",
    "type": "CvManagementChangedCvStatus",
    "hrf": "http%3A%2F%2Fapi-tuyendung.topcv.local%2Fapi%2Fv1%2Fcv-management%2Fcvs%2F1915042%2Fstatus",
    "t_i": null,
    "cv_i": "1915042",
    "p": null,
    "b": null,
    "jb_ids": null,
    "p_j_i": null,
    "v_t": null,
    "s": 20,
    "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
}

# CvManagementUpdatedNote

{
    "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/cv-management/cvs/1915042/share",
    "q": null,
    "u_id": "139912",
    "id": null,
    "src": null,
    "tab_id": null,
    "ts": 1632654148,
    "ip": "172.25.0.1",
    "type": "CvManagementUpdatedNote",
    "hrf": "http%3A%2F%2Fapi-tuyendung.topcv.local%2Fapi%2Fv1%2Fcv-management%2Fcvs%2F1915042%2Fstatus",
    "t_i": null,
    "cv_i": "1915042",
    "p": null,
    "b": null,
    "jb_ids": null,
    "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
}

# CvManagementReportedCv

{
    "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/search-cv/reported-cvs",
    "q": null,
    "u_id": "139912",
    "id": null,
    "src": null,
    "tab_id": null,
    "ts": 1632654388,
    "ip": "172.25.0.1",
    "type": "CvManagementReportedCv",
    "hrf": "http%3A%2F%2Fapi-tuyendung.topcv.local%2Fapi%2Fv1%2Fsearch-cv%2Freported-cvs",
    "t_i": null,
    "cv_i": "3213633",
    "p": null,
    "b": null,
    "jb_ids": null,
    "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
}