/** * @Author: zou.yingbin * @Create : 2021/1/26 13:41 * @Modify : 2021/1/26 13:41 */ package ermcp import ( "github.com/gin-gonic/gin" "mtp2_if/global/app" "mtp2_if/models" ) // 查询套保品种请求 type QryMiddleGoodsReq struct { UserId uint32 `form:"userid" binding:"required"` //用户ID } // 查询套保品种应答 type QryMiddleGoodsRsp models.ErmcpMiddleGoodsModel // @Summary 查询套保品种(菜单:套保品种) // @Produce json // @Security ApiKeyAuth // @Param userid query int true "所属机构ID" // @Success 200 {array} QryMiddleGoodsRsp // @Failure 500 {object} app.Response // @Router /Ermcp/QueryMiddleGoods [get] // @Tags 企业风险管理(app) func QueryMiddleGoods(c *gin.Context) { appG := app.GinUtils{Gin:app.Gin{C: c}} var req QryMiddleGoodsReq appG.DoBindReq(&req) m := models.ErmcpMiddleGoodsModel{AREAUSERID: req.UserId} appG.DoGetData(&m) }