Esempio n. 1
0
        protected ResponseView OutPutSuccessResponseView(string message = "操作成功")
        {
            ResponseView response = new ResponseView(message, true);

            return(response);
        }
Esempio n. 2
0
        protected ResponseView OutPutErrorResponseView(string message = "操作失败")
        {
            ResponseView response = new ResponseView(message, false);

            return(response);
        }
Esempio n. 3
0
        protected ResponseView <T> OutPutResponseView <T>(T data, bool isSuccess = true, string message = "")
        {
            ResponseView <T> result = new ResponseView <T>(message, isSuccess, data);

            return(result);
        }