qryPendingAuditInfo.go 938 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @Author: zou.yingbin
  3. * @Create : 2021/2/25 13:32
  4. * @Modify : 2021/2/25 13:32
  5. */
  6. package ermcp
  7. import (
  8. "github.com/gin-gonic/gin"
  9. "mtp2_if/global/app"
  10. "mtp2_if/models"
  11. )
  12. // 待审核信息请求
  13. type PendingAuditCntReq struct {
  14. UserId int64 `form:"UserId" binding:"required"` //用户ID
  15. }
  16. // 待审核信息应答
  17. type PendingAuditCntRsp models.ErmcpPendingAudit
  18. // QueryPendingAuditInfo 查询待审核数量信息
  19. // @Summary 查询待审核数量信息(首页/菜单按钮小红点)
  20. // @Produce json
  21. // @Security ApiKeyAuth
  22. // @Param UserId query int true "用户ID"
  23. // @Success 200 {array} PendingAuditCntRsp
  24. // @Failure 500 {object} app.Response
  25. // @Router /Ermcp/QueryPendingAuditInfo [get]
  26. // @Tags 企业风险管理(app)
  27. func QueryPendingAuditInfo(c *gin.Context) {
  28. a := app.NewGinUtils(c)
  29. var req PendingAuditCntReq
  30. a.DoBindReq(&req)
  31. m := models.ErmcpPendingAudit{UserId: req.UserId}
  32. a.DoGetDataEx(&m)
  33. }