public with sharing class lexCustomDeleteController {
    @AuraEnabled
    public static InitData initForCustomDelete(String recordId){
        InitData res=new initData();
        try {
            Repair__c repair=[Select Id,Status__c,FSE_ApplyForRepair_time__c,SAP_Transfer_time__c,CreatedById,Repair_Ordered_Date__c,Acc_OwnerId__c,FSE_ownerid__c FROM Repair__c WHERE Id=:recordId limit 1];
            res.Id=repair.Id;
            res.Status=repair.Status__c;
            res.FSEApplyForRepairtime=repair.FSE_ApplyForRepair_time__c;
            res.SAP=repair.SAP_Transfer_time__c;
            res.cre=repair.CreatedById;
            res.Rep=repair.Repair_Ordered_Date__c;
            res.acc=repair.Acc_OwnerId__c;
            res.FSEownerId=repair.FSE_ownerid__c;
           // User user=[Select Id FROM User WHERE Repair__r.CreatedById=:res.cre limit 1];
            // res.UserId=repair.User__r.Id;
            System.debug(LoggingLevel.INFO,'***res:'+res);
        } catch (Exception e) {
            System.debug(LoggingLevel.INFO,'***e:'+e);
        }
        return res;
    }


    public class InitData{
        @AuraEnabled
        public String Id;
        @AuraEnabled
        public String Status;
        @AuraEnabled
        public Datetime SAP;
        @AuraEnabled
        public Datetime FSEApplyForRepairtime;
        @AuraEnabled
        public String cre;
        @AuraEnabled
        public Date Rep;
        @AuraEnabled
        public String acc;
         @AuraEnabled
         public String FSEownerId;
        @AuraEnabled
        public String UserId;
        @AuraEnabled
        public String ApiSessionId;
        
    }
}