package com.grkj.iscs.model

object UrlConsts {
    const val BASE_URL = "http://192.168.28.82:9190"
//    const val BASE_URL = "http://192.168.28.97:9190"
    const val WEB_SOCKET = "ws://192.168.1.127:9090/websocket/iot/127"

    const val AUTOCODE_TICKET_NUMBER = "JOB_TICKET_CODE"

    /**
     * 登录
     */
    const val SIGN_IN = "/login"

    /**
     * 退出登录
     */
    const val LOGOUT = "/mobile/login/logout"

    /**
     * 查询SOP信息-分页
     */
    const val SOP_PAGE = "/iscs/mars/sop/getIsMarsSopPage"

    /**
     * 查询字典 - 工作票类型
     */
    const val TICKET_TYPE = "/system/dict/data/type/ticket_type"

    /**
     * 获取一个自动生成的编码
     */
    const val AUTO_CODE = "/system/autocode/get"

    /**
     * 获取SOP详细信息
     */
    const val SOP_INFO = "/iscs/sop/selectIsSopById"

    /**
     * 获取用户列表 - 上锁人
     */
    const val USER_LIST = "/system/user/list"

    /**
     * 获取部门列表
     */
    const val DEPT_LIST = "/system/dept/list"

    /**
     * 创建工作票
     */
    const val CREATE_TICKET = "/iscs/ticket/insertIsJobTicket"

    /**
     * 查询作业票-分页
     */
    const val PAGE_TICKET = "/iscs/ticket/getIsJobTicketPage"

    /**
     * 获取作业票详细信息
     */
    const val DETAIL_TICKET = "/iscs/ticket/selectIsJobTicketById"

    /**
     * 刷卡登录
     */
    const val LOGIN_CARD = "/iscs/card/login"

    /**
     * 获取刷卡信息
     */
    const val CARD_INFO_BY_LOGIN_USER = "/iscs/card/selectIsJobCardByLoginUser"

    /**
     * 通过NFC编号获取刷卡信息
     */
    const val CARD_INFO_BY_CARD_NFC = "/iscs/card/selectIsJobCardByCardNfc"

    /**
     * 通过NFC编号获取钥匙详细信息
     */
    const val KEY_INFO_BY_NFC = "/iscs/key/selectIsKeyByNfc"

    /**
     * 通过NFC编号获取钥匙详细信息 - 免验证
     */
    const val KEY_INFO_BY_NFC_WITHOUT_AUTH = "/iscs/key/selectIsKeyByNfcWithoutAuth"

    /**
     * 通过NFC编号获取锁详细信息
     */
    const val LOCK_INFO_BY_NFC = "/iscs/lock/selectIsLockByNfc"

    /**
     * 归还挂锁时更新数据
     */
    const val LOCK_RETURN_UPDATE = "/iscs/hardware-api/updateTicketLockReturn"

    /**
     * 取出挂锁时更新数据
     */
    const val LOCK_TAKE_UPDATE = "/iscs/hardware-api/updateTicketLockTake"

    /**
     * 挂锁上锁时更新数据，更新挂锁和哪个隔离点进行了绑定
     */
    const val LOCK_POINT_UPDATE = "/iscs/hardware-api/updateTicketLockPoint"

    /**
     * 获取作业票和关联数据
     */
    const val TICKET_EQUIP_DETAIL = "/iscs/hardware-api/selectTicketDetailById"

    /**
     * 取出钥匙
     */
    const val KEY_TAKE_UPDATE = "/iscs/hardware-api/updateTakeOutKey"

    /**
     * 归还钥匙
     */
    const val KEY_RETURN_UPDATE = "/iscs/hardware-api/updateReturnKey"

    /**
     * 更新作业票进度
     */
    const val TICKET_UPDATE_PROGRESS = "/iscs/ticket/updateProgress"

    /**
     * 批量更新作业票下隔离点的上锁解锁状况
     */
    const val LOCK_POINT_UPDATE_BATCH = "/iscs/hardware-api/updateLockPointBatch"

    /**
     * 根据角色获取人员列表
     */
    const val ROLE_LIST = "/system/role/authUser/allocatedListByRoleKey"

    /**
     * 正在进行中的作业票列表
     */
    const val WORKSTATION_TICKET_LIST = "/iscs/ticket/getWorkstationTicketList"

    /**
     * 设备工艺分页
     */
    const val MACHINERY_PAGE = "/iscs/machinery/getIsMachineryPage"

    /**
     * 获取八大步骤详细
     */
    const val TICKET_STEP = "/iscs/step/selectStepsByTicketId"

    /**
     * 获取设备工艺详细信息
     */
    const val MACHINERY_DETAIL = "/iscs/machinery/selectIsMachineryById"

    /**
     * 获取电柜map解析数据
     */
    const val LOTO_MAP = "/iscs/station/selectLotoMapById"

    /**
     * 取消作业票
     */
    const val CANCEL_TICKET = "/iscs/ticket/updateJobToCancel"

    /**
     * 结束作业票
     */
    const val FINISH_TICKET = "/iscs/ticket/updateJobToFinish"

    /**
     * 新增人员
     */
    const val UPDATE_TICKET_USER = "/iscs/step/addJobUsers"

    /**
     * 作业票详情监控
     */
    const val TICKET_DETAIL_MONITOR = "/iscs/ticket/selectMonitorJobTicketDetail"

    /**
     * 八大步骤执行
     */
    const val UPDATE_STEP = "/iscs/step/updateJobStep"

    /**
     * 共锁人上锁/解锁
     */
    const val UPDATE_COLOCKER_STATUS = "/iscs/hardware-api/updateColockerStatus"

    /**
     * 获取用户信息
     */
    const val GET_USER_INFO = "/getInfo"
}