using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.BLL.DbModels;

namespace WCS.Model
{
    public class ResponseBase
    {
        public int Code { get; set; }

        public string Message { get; set; } 
    }

    public class ResponseBase<T> : ResponseBase
    {
        public T Data { get; set; }
    }

    public class ResponseCommon : ResponseBase
    {
        public object Data { get; set; }
    }

    public class ResponseCommon<T> : ResponseBase
    {
        public T Data { get; set; }
    }

    public class ResponseCommonSingle : ResponseBase
    {
        public List<Detail> Data { get; set; }
    }

    public class Detail
    {
        public string matsn { get; set; }
        public string result { get; set; }
        public string reason { get; set; }
    }

    public class OutResponseCommonSingle : ResponseBase
    {
        public List<OutDetail> Data { get; set; }
    }

    public class OutDetail
    {
        public int OrderId { get; set; }
        public string OrderNumber { get; set; }
        public string MatCode { get; set; }
        public string MatBatch { get; set; }
        public int ReqQty { get; set; }
        public DateTime CreateTime { get; set; }
        public string CreateUser { get; set; }
        public string MatName { get; set; }
        public int OutQty { get; set; }
        public string LightColor { get; set; }
    }
}
