@lina
2020-10-15T09:21:54.000000Z
字数 3625
阅读 686
新闪签云
请求URL
get
api/weixin/login
请求参数
code
: [string] 小程序登录code
响应
{
"error_code": 0,
"data": {
"em_id": 111, // 员工id
"real_name": false, // 是否实名
"session_token": "6a4085cf4ce2f61b66db21eca51b3821"
},
"error_message": ""
}
请求URL
get
api/sign_apply
响应
{
"error_code": 0,
"error_message": "",
"data": [
{
"id": 85,
"em_id": 92,
"admin_user_id": 16,
"contract_id": 6,
"contract_info_id": 9,
"company_id": 13,
"company_group_id": 13,
"department_id": 11,
"sign_flow_id": 83,
"contract_serial": "",
"start_time": "0000-00-00 00:00:00",//合同开始时间
"end_time": "0000-00-00 00:00:00",//合同结束时间
"apply_time": "2020-10-05 12:02:23",
"close_tips_time": "2020-11-10 18:51:16",//在此之前 关闭提醒
"cancel_time": null,//合同取消时间
"sort": 0,
"status": 3,//1 待签约 2审核中 3签约成功 4 驳回-重新签约 5签约失败
"reject_time": null,//审核拒绝时间
"send_time": null,//甲方发送合同时间
"sign_time": null,//乙方签约时间
"success_time" : null //签署成功时间
"reason": null,//驳回原因
"company_text": "{\"work_pos\":\"\\u4e0a\\u6d77\"}",//公司文字域内容 json
"employee_text": "",//员工文字域内容 json
"ext": "...",//快照配置
"created_at": "2020-10-05 12:03:09",
"updated_at": "2020-10-09 23:02:37",
"department": {
"id": 11,
"company_group_id": 13,
"name": "测试部门123112",// 部门名
"invite_code": 62959,
"status": 1,
"created_at": "2020-09-22 18:02:11",
"updated_at": "2020-09-24 19:16:55"
},
"contract": {
"id": 6,
"company_group_id": 13,
"company_id": null,
"type": 2,
"sub_type": 1,
"name": "测试附属协议20201002",// 合同名
"status": 1,
"contract_info_id": 9,
"created_at": "2020-10-02 19:42:12",
"updated_at": "2020-10-05 12:00:07"
},
"company_group": {
"id": 13,
"name": "guangying1",// 公司名
"logo_url": "",
"status": 1,
"created_at": "2020-09-22 12:41:00",
"updated_at": "2020-09-23 15:36:42"
}
}
]
}
请求URL
get
api/sign_apply/{id}注: id 是sign_apply的id
响应
{
"error_code": 0,
"error_message": "",
"data": {
"id": 85,
"em_id": 122,
"admin_user_id": 16,
"contract_id": 6,
"contract_info_id": 9,
"company_id": 13,
"company_group_id": 13,
"department_id": 11,
"flow_id": 83,
"es_sign_id": 34,
"contract_serial": "",
"start_time": "0000-00-00",
"end_time": "0000-00-00",
"send_time": "2020-10-05 12:02:23",
"sign_time": null,
"reject_time": null,
"cancel_time": null,
"success_time": null,
"close_tips_time": null,
"sort": 0,
"status": 3,
"reason": null,
"company_text": "{\"work_pos\":\"\\u4e0a\\u6d77\"}",
"employee_text": "[{\"party_b_id_photo_front\":\"http:\\/\\/www.baid1u.com\"},{\"party_b_id_photo_back\":\"\"},{\"party_b_domicile_addr\":\"http:\\/\\/www.bai3du.com\"}]",
"ext": '',//快照
"created_at": "2020-10-05 12:03:09",
"updated_at": "2020-10-13 09:07:57",
"employee_edu": [// 学历
{
"id": 131,
"em_id": 122,
"school": "1",
"edu": "2",
"start_date": "2012-10-20",
"end_date": "2016-11-12",
"record_sts": 1,
"created_at": "2020-10-13 09:07:57",
"updated_at": "2020-10-13 09:07:57"
}
],
"work_exp": [// 工作经历
{
"id": 82,
"em_id": 122,
"company": "1",
"work_pos": "2",
"salary": "3",
"departure_reason": "4",
"start_date": "2012-10-20",
"end_date": "2016-11-12",
"record_sts": 1,
"created_at": "2020-10-13 09:07:57",
"updated_at": "2020-10-13 09:07:57"
}
],
"employee_text_format": [// 文字域
{
"id": 5,
"category": 2,
"label": "民族",
"vname": "party_b_nation",
"type": 40,
"rule": "",
"options": "",
"sort": 0,
"listen_id": 0,
"status": 1,
"created_at": "2020-09-28 19:33:50",
"updated_at": "2020-10-12 15:24:56",
"val": null,
"default": 0
},
{
"id": 3,
"category": 2,
"label": "身份证正面",
"vname": "party_b_id_photo_front",
"type": 30,
"rule": "",
"options": "",
"sort": 0,
"listen_id": 0,
"status": 1,
"created_at": "2020-09-28 19:33:27",
"updated_at": "2020-10-10 16:52:44",
"value": null,
"require": 0
}
]
}
}
请求URL
post
api/employee
请求参数
text_field
: [array] 格式:
{
vname1 : value1,
vname2 : value1,
vname3 : value1,
...
}sign_apply_id
: [int] 签约申请idwork_exp
: [array]
[{
work_pos :1,//岗位
salary :1,//薪资
departure_reason :1,//离职原因
start_date :1,//开始时间
end_date :1,//结束时间
company :1,//单位名称
}]edu_exp
: [array]
[{
school :1,//学校
edu :1,//学历
start_date :1,//开始时间
end_date :1,//结束时间
}]
响应
{
"error_code": 0,
"error_message": "完善信息成功",
"data": null
}