|
@@ -730,3 +730,23 @@ func (e *ApiLoging) GetWuYToken(c *gin.Context) {
|
|
|
response.OkWithDetailed(data, "获取成功", c)
|
|
response.OkWithDetailed(data, "获取成功", c)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+// @Tags loging
|
|
|
|
|
+// @Summary 中控上报异常信息
|
|
|
|
|
+// @Security ApiKeyAuth
|
|
|
|
|
+// @accept application/json
|
|
|
|
|
+// @Produce application/json
|
|
|
|
|
+// @Success 200 {object} response.Response{data=interface{}} "中控上报异常信息"
|
|
|
|
|
+// @Router /loging/supConErr [post]
|
|
|
|
|
+func (s *ApiLoging) SupConErr(c *gin.Context) {
|
|
|
|
|
+ var paramsInfo request.SupConErrRequest
|
|
|
|
|
+ _ = c.ShouldBindJSON(¶msInfo)
|
|
|
|
|
+ if paramsInfo.PcCode == "" || paramsInfo.Describe == "" {
|
|
|
|
|
+ global.GVA_LOG.Error("参数错误!")
|
|
|
|
|
+ response.FailWithMessage("参数错误", c)
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ num := ServiceStatisticsLog.SupConErr(paramsInfo.PcCode, paramsInfo.Describe)
|
|
|
|
|
+ global.GVA_LOG.Warn(fmt.Sprintf("中控上报异常pc_code=%s 描述=%s", paramsInfo.PcCode, paramsInfo.Describe))
|
|
|
|
|
+ response.OkWithDetailed(num, "上报成功", c)
|
|
|
|
|
+}
|