package com.grkj.iscs_mc.model.vo.ticket

data class TicketDetailMonitorRespVO(
    val jobTicket: IsJobTicket?,
    val lockKeyName: String?,
    val lockTime: String?,
    val colockKeyName: String?,
    val colockTime: String?,
    val lockUserList: List<IsJobTicketUser>?,
    val colockUserList: List<IsJobTicketUser>?,
    val ticketPointsList: List<IsJobTicketPointsVO>?
) {
    data class IsJobTicket(
        val ticketId: Long?,
        val ticketCode: String?,
        val ticketName: String?,
        val workshopId: Long?,
        val workareaId: Long?,
        val sopId: Long?,
        val ticketType: String?,
        val ticketContent: String?,
        val ticketStatus: String?,
        val ticketStartTime: String?,
        val ticketEndTime: String?,
        val delFlag: String?,
        val workstationId: Long?,
        val machineryId: Long?
    )

    data class IsJobTicketUser(
        val recordId: Long?,
        val ticketId: Long?,
        val userId: Long?,
        val userName: String?,
        val userType: String?,
        val userRole: String?,
        val jobStatus: Int?,
        val delFlag: String?
    )

    data class IsJobTicketPointsVO(
        val recordId: Long?,
        val ticketId: Long?,
        val workshopId: Long?,
        val workareaId: Long?,
        val pointId: Long?,
        val pointName: String?,
        val pointStatus: String?,
        val delFlag: String?,
        val lockId: Long?,
        val lockName: String?,
        val lockedByKeyId: Long?,
        val unlockedByKeyId: Long?,
        val lockTime: String?,
        val unlockTime: String?,
        val prePointId: Long?,
        val locksetName: String?,
        val remark: String?,
        val switchStatus: String?   // 0：开 1：关
    )
}