feat(attendant): 入驻免身份证材料、城市单选、材料后补与订单池同城过滤
入驻申请只收基本信息(身份证选填、材料全可空),服务城市改为单选白名单(北京/上海/天津/西安,默认北京);新增 POST /attendant-application/mine/materials 材料后补与 PATCH /employee/me/service-area 改城市接口;订单池按陪诊师服务城市过滤(本人已接/被共享不限城市),接单与详情二次校验;appId wxapp-escort-admin 更名为 wxapp_companion。
This commit is contained in:
@@ -148,6 +148,8 @@ function registerRoutes(app) {
|
||||
router.get("/employee/me", requireAuth, handlerEmployee.getMyEmployee.bind(handlerEmployee));
|
||||
// 首页接单开关落库:仅在职正式陪诊师可切换
|
||||
router.patch("/employee/me/online", requireAuth, updateLimit, handlerEmployee.updateMyOnlineStatus.bind(handlerEmployee));
|
||||
// 陪诊师本人修改服务城市:仅在职陪诊师,城市取值受服务目录白名单限制
|
||||
router.patch("/employee/me/service-area", requireAuth, updateLimit, handlerEmployee.updateMyServiceArea.bind(handlerEmployee));
|
||||
|
||||
// 员工(陪诊师)管理:管理端 CRUD,必须管理员。
|
||||
// 与下方公开的 /attendant 公示接口分离:这里返回真实姓名等内部字段
|
||||
@@ -162,6 +164,8 @@ function registerRoutes(app) {
|
||||
// /mine 必须注册在 /:id 之前,否则会被当成 id
|
||||
router.post("/attendant-application", requireAuth, createLimit, handlerAttendantApplication.createApplication.bind(handlerAttendantApplication));
|
||||
router.get("/attendant-application/mine", requireAuth, handlerAttendantApplication.getMyApplication.bind(handlerAttendantApplication));
|
||||
// 证件材料后补:审核通过后仍可补传,必须注册在 /:id 路由之前
|
||||
router.post("/attendant-application/mine/materials", requireAuth, updateLimit, handlerAttendantApplication.updateMyMaterials.bind(handlerAttendantApplication));
|
||||
router.get("/attendant-application", requireAuth, requireAdmin, handlerAttendantApplication.getApplications.bind(handlerAttendantApplication));
|
||||
router.get("/attendant-application/:id/materials", requireAuth, requireAdmin, handlerAttendantApplication.getApplicationMaterials.bind(handlerAttendantApplication));
|
||||
router.post("/attendant-application/:id/review", requireAuth, requireAdmin, updateLimit, handlerAttendantApplication.reviewApplication.bind(handlerAttendantApplication));
|
||||
|
||||
Reference in New Issue
Block a user