|
|
@@ -0,0 +1,33 @@
|
|
|
+package zj
|
|
|
+
|
|
|
+import (
|
|
|
+ "mtp2_if/global/app"
|
|
|
+ "mtp2_if/global/e"
|
|
|
+ "mtp2_if/logger"
|
|
|
+ "mtp2_if/models"
|
|
|
+ "net/http"
|
|
|
+
|
|
|
+ "github.com/gin-gonic/gin"
|
|
|
+)
|
|
|
+
|
|
|
+// GetBankTip 获取中江网银端出入金提示信息
|
|
|
+// @Summary 获取中江网银端出入金提示信息
|
|
|
+// @Produce json
|
|
|
+// @Success 200 {object} app.Response
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /ZJ/GetBankTip [get]
|
|
|
+// @Tags 中江
|
|
|
+func GetBankTip(c *gin.Context) {
|
|
|
+ appG := app.Gin{C: c}
|
|
|
+
|
|
|
+ bankTip, err := models.GetBankTip()
|
|
|
+ if err != nil {
|
|
|
+ // 查询失败
|
|
|
+ logger.GetLogger().Errorf("GetBankTip failed: %s", err.Error())
|
|
|
+ appG.Response(http.StatusBadRequest, e.ERROR_QUERY_FAIL, nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ logger.GetLogger().Debugln("GetBankTip successed: %v", bankTip)
|
|
|
+ appG.Response(http.StatusOK, e.SUCCESS, bankTip)
|
|
|
+}
|