ReMessageFactory.cs 572 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XingYe_ACS.BaseStruct
{
    public class ReMessageFactory
    {
        public static ReMessage Sucess(String msg)
        {
            return new ReMessage(true, msg, 0);
        }
        public static ReMessage Error(int code, String msg)
        {
            return new ReMessage(false, msg, 500);
        }
        public static ReMessage Sucess1(String msg)
        {
            return new ReMessage(true, msg, 0);
        }
    }
}