package cn.axzo.msg.center.domain.enums;

import cn.axzo.msg.center.domain.constant.CommonConstanst;
import lombok.Getter;

/**
 * 消息路由枚举
 *
 * @author jerry
 * @date 2020/12/1
 */
@Getter
public enum MessageRouterEnum {

  //考勤记录界面
  ATTENDANCE_RECORD(
      CommonConstanst.ROUTER_TYPE_UNIAPP,
      CommonConstanst.UNI_ATTENDANCE,
      null,
      null,
      CommonConstanst.UNI_ATTENDANCE + "#pages/worker/record"),

  //无考勤记录工人列表界面
  NO_ATTENDANCE_RECORD(
      CommonConstanst.ROUTER_TYPE_NATIVE,
      null,
      "cn.axzo.app.ui.module.main.leader.NoAttendanceRecordActivity",
      "AXBatchLeaveController",
      null),
  //班组施工任务详情界面
  TEAM_CONST_DETAIL(

          CommonConstanst.ROUTER_TYPE_UNIAPP,
      CommonConstanst.UNI_CONST_TEAM,
      null,
      null,
      CommonConstanst.UNI_CONST_TEAM + "#pages/construction/detail"),
  //班组长施工任务
  TEAM_CONST_LEADER(
      CommonConstanst.ROUTER_TYPE_UNIAPP,
      CommonConstanst.UNI_CONST_TEAM,
      null,
      null,
      CommonConstanst.UNI_CONST_TEAM + "#/pages/construction/leaderIndex"),


  //工人施工任务详情界面
  WORKER_CONST_DETAIL(
      CommonConstanst.ROUTER_TYPE_UNIAPP,
      CommonConstanst.UNI_CONST_WORKER,
      null,
      null,
      CommonConstanst.UNI_CONST_WORKER + "#pages/construction/worker/detail"),

  //工人施工任务新任务界面
  WORKER_CONST_NEW(
      CommonConstanst.ROUTER_TYPE_UNIAPP,
      CommonConstanst.UNI_CONST_WORKER,
      null,
      null,
      CommonConstanst.UNI_CONST_WORKER + "#pages/construction/missonList"),


  //班组长薪资申请界面
  TEAM_SALARY_APPLY_INDEX(
      CommonConstanst.ROUTER_TYPE_UNIAPP,
      CommonConstanst.UNI_TEAM_XZGL,
      null,
      null,
      CommonConstanst.UNI_TEAM_XZGL + "#pages/apply/index"),

  //工人工资条界面
  WORKER_SALARY_SLIP_INDEX(
      CommonConstanst.ROUTER_TYPE_UNIAPP,
      CommonConstanst.UNI_WORKER_WDSR,
      null,
      null,
      CommonConstanst.UNI_WORKER_WDSR + "#pages/index"),

  //光荣榜首页
  HONOURS_BOARD(
      CommonConstanst.ROUTER_TYPE_UNIAPP,
      CommonConstanst.UNI_HONOURS_BOARD,
      null,
      null,
      CommonConstanst.UNI_HONOURS_BOARD),

  //违规通报首页
  VIOLATION_NOTIFY(
      CommonConstanst.ROUTER_TYPE_UNIAPP,
      CommonConstanst.UNI_VIOLAtION,
      null,
      null,
      CommonConstanst.UNI_VIOLAtION),
  COMPLAIN_NO_DETAIL(
      CommonConstanst.ROUTER_TYPE_NATIVE,
      null,
      "cn.axzo.app.ui.module.main.mine.feedback.UnpaidComplaintDetailActivity",
      "AXComplaintInfoController",
      null),

  ;

  MessageRouterEnum(Integer type, String uniAppId, String androidRoute, String iosRoute, String uniRoute) {
    this.type = type;
    this.androidRoute = androidRoute;
    this.iosRoute = iosRoute;
    this.uniRoute = uniRoute;
    this.uniAppId = uniAppId;
  }

  //路由类型：1uniapp，2native
  private final Integer type;
  private final String androidRoute;
  private final String iosRoute;
  private final String uniRoute;
  //类型为uniapp时对应的appId
  private final String uniAppId;

}
