| 1234567891011121314151617181920212223242526272829303132333435363738 |
- /**
- * @Author: zou.yingbin
- * @Create : 2021/2/25 13:32
- * @Modify : 2021/2/25 13:32
- */
- package ermcp
- import (
- "github.com/gin-gonic/gin"
- "mtp2_if/global/app"
- "mtp2_if/models"
- )
- // 待审核信息请求
- type PendingAuditCntReq struct {
- UserId int64 `form:"UserId" binding:"required"` //用户ID
- }
- // 待审核信息应答
- type PendingAuditCntRsp models.ErmcpPendingAudit
- // QueryPendingAuditInfo 查询待审核数量信息
- // @Summary 查询待审核数量信息(首页/菜单按钮小红点)
- // @Produce json
- // @Security ApiKeyAuth
- // @Param UserId query int true "用户ID"
- // @Success 200 {array} PendingAuditCntRsp
- // @Failure 500 {object} app.Response
- // @Router /Ermcp/QueryPendingAuditInfo [get]
- // @Tags 企业风险管理(app)
- func QueryPendingAuditInfo(c *gin.Context) {
- a := app.NewGinUtils(c)
- var req PendingAuditCntReq
- a.DoBindReq(&req)
- m := models.ErmcpPendingAudit{UserId: req.UserId}
- a.DoGetDataEx(&m)
- }
|