From e581f6e6b410a6406a86c6743d43b8d450cd3d50 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 05 八月 2023 18:31:57 +0800
Subject: [PATCH] 文件管理

---
 pkg/contextx/contextx.go |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pkg/contextx/contextx.go b/pkg/contextx/contextx.go
index b338e79..adc828f 100644
--- a/pkg/contextx/contextx.go
+++ b/pkg/contextx/contextx.go
@@ -83,6 +83,10 @@
 	slf.Result(errCode, map[string]interface{}{}, ecode.GetMsg(errCode))
 }
 
+func (slf *Context) FailWithMsg(errCode int, msg string) {
+	slf.Result(errCode, map[string]interface{}{}, msg)
+}
+
 func (slf *Context) FailWithDetailed(errCode int, data interface{}) {
 	slf.Result(errCode, data, ecode.GetMsg(errCode))
 }

--
Gitblit v1.8.0