Beispiel #1
0
        public static ReturnNode ReturnError(int code, string msg)
        {
            ReturnNode node = new ReturnNode();

            node.Code = code;
            node.Msg  = msg;
            return(node);
        }
Beispiel #2
0
        public static ReturnNode ReturnError()
        {
            ReturnNode node = new ReturnNode();

            node.Code = 1;
            node.Msg  = "操作失败";
            return(node);
        }
Beispiel #3
0
        public static ReturnNode ReturnSuccess()
        {
            ReturnNode node = new ReturnNode();

            node.Code = 0;
            node.Msg  = "操作成功";
            return(node);
        }
Beispiel #4
0
        public static ReturnNode ReturnSuccess(string msg, object data)
        {
            ReturnNode node = new ReturnNode();

            node.Code = 0;
            node.Msg  = msg;
            node.Data = data;
            return(node);
        }
Beispiel #5
0
        public static ReturnNode ReturnSuccess(object data = null)
        {
            ReturnNode node = new ReturnNode();

            node.Code = 0;
            node.Msg  = "操作成功";
            node.Data = data;
            return(node);
        }