| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package ermcp8
- import (
- "mtp2_if/global/app"
- "mtp2_if/models"
- "github.com/gin-gonic/gin"
- )
- // QueryErmcp2HedgedItem
- // @Summary 查询被套期项目信息
- // @description 已完成项目查询 -> 项目状态 = 3:正常完结 or 5:异常完结
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query string true "用户ID"
- // @Param hedgedtype query int false "套期类型 1:采购计划项目 2:销售计划项目 3:现货贸易项目 4:库存存货项目 5:定价采购合同项目"
- // @Param hedgeditemstatus query int false "项目状态 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
- // @Success 200 {array} models.Ermcp2hedgeditem
- // @Failure 500 {object} app.Response
- // @Router /Ermcp8/QueryErmcp2HedgedItem [get]
- // @Tags 企业风险管理v8
- func QueryErmcp2HedgedItem(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.Ermcp2hedgeditem{}
- a.DoBindReq(&m)
- a.DoGetDataI(&m)
- }
- // QueryERMCPJRLinkPos
- // @Summary 期货持仓明细查询
- // @Produce json
- // @Security ApiKeyAuth
- // @Param hedgeditemid query int true "套期项目ID"
- // @Success 200 {array} models.Ermcpjrlinkpos
- // @Failure 500 {object} app.Response
- // @Router /Ermcp8/QueryERMCPJRLinkPos [get]
- // @Tags 企业风险管理v8
- func QueryERMCPJRLinkPos(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.Ermcpjrlinkpos{}
- a.DoBindReq(&m)
- a.DoGetDataI(&m)
- }
- // QueryERMCP2HedgedItemspot
- // @Summary 套期计划明细查询
- // @Produce json
- // @Security ApiKeyAuth
- // @Param hedgeditemid query int true "套期项目ID"
- // @Success 200 {array} models.Ermcp2hedgeditemspot
- // @Failure 500 {object} app.Response
- // @Router /Ermcp8/QueryERMCP2HedgedItemspot [get]
- // @Tags 企业风险管理v8
- func QueryERMCP2HedgedItemspot(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.Ermcp2hedgeditemspot{}
- a.DoBindReq(&m)
- a.DoGetDataI(&m)
- }
|