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

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

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

            node.Code = 0;
            node.Msg  = "操作成功";
            return(node);
        }
Exemple #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);
        }
Exemple #5
0
        public static ReturnNode ReturnSuccess(object data = null)
        {
            ReturnNode node = new ReturnNode();

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