|
|
@@ -17,16 +17,16 @@ import (
|
|
|
)
|
|
|
|
|
|
// QueryDeliveryGoods
|
|
|
-// @Summary 查询现货商品
|
|
|
-// @Produce json
|
|
|
-// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param excludecfg query int false "排除已配置的业务类型商品 1-套保 2-套利"
|
|
|
-// @Success 200 {array} models.ErmcpDeliveryGoods
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryDeliveryGoods [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Summary 查询现货商品
|
|
|
+// @Produce json
|
|
|
+// @Security ApiKeyAuth
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param excludecfg query int false "排除已配置的业务类型商品 1-套保 2-套利"
|
|
|
+// @Success 200 {array} models.ErmcpDeliveryGoods
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryDeliveryGoods [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryDeliveryGoods(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -42,17 +42,17 @@ func QueryDeliveryGoods(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryDeliveryGoodsDetail
|
|
|
-// @Summary 查询现货商品详情
|
|
|
-// @Produce json
|
|
|
-// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param deliverygoodsid query int false "现货商品id"
|
|
|
-// @Param filtersubempty query int false "过滤下级为空, 1-过滤. 比如 品种大豆的下级品类列表为空, 则大豆不显示; 比如品类的下级套保品列表为空, 则该品类不显示"
|
|
|
-// @Success 200 {array} models.XHDeliveryGoods
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryDeliveryGoodsDetail [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Summary 查询现货商品详情
|
|
|
+// @Produce json
|
|
|
+// @Security ApiKeyAuth
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param deliverygoodsid query int false "现货商品id"
|
|
|
+// @Param filtersubempty query int false "过滤下级为空, 1-过滤. 比如 品种大豆的下级品类列表为空, 则大豆不显示; 比如品类的下级套保品列表为空, 则该品类不显示"
|
|
|
+// @Success 200 {array} models.XHDeliveryGoods
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryDeliveryGoodsDetail [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryDeliveryGoodsDetail(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -67,16 +67,16 @@ func QueryDeliveryGoodsDetail(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryMiddleGoodsDetail
|
|
|
-// @Summary 查询套保品种详情(套保品种/商品详情)
|
|
|
-// @Produce json
|
|
|
-// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param middlegoodsid query int false "套保品种id"
|
|
|
-// @Success 200 {array} models.TBMiddleGoods
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryMiddleGoodsDetail [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Summary 查询套保品种详情(套保品种/商品详情)
|
|
|
+// @Produce json
|
|
|
+// @Security ApiKeyAuth
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param middlegoodsid query int false "套保品种id"
|
|
|
+// @Success 200 {array} models.TBMiddleGoods
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryMiddleGoodsDetail [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryMiddleGoodsDetail(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -105,22 +105,22 @@ type QryContractReq struct {
|
|
|
}
|
|
|
|
|
|
// QuerySpotContract
|
|
|
-// @Summary 查询现货合同
|
|
|
-// @Produce json
|
|
|
-// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id(当指定contractid, userid可不填)"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param contracttype query int false "合同类型 1-采购, -1-销售"
|
|
|
-// @Param querytype query string false "查询类型(逗号隔开, 如1,2,3) 1-未提交 2-待审核 3-履约中 4-已完成"
|
|
|
-// @Param contractid query string false "合同ID(SpotContractId)"
|
|
|
-// @Param contractno query string false "合同编号(模糊匹配)"
|
|
|
-// @Param wrstandardname query string false "商品名称(模糊匹配)"
|
|
|
-// @Param status query string false "合同状态(当填写此项时,将忽略querytype条件;可多个,逗号隔开,如0,1,2) 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
|
|
|
-// @Param istoday query int false "是否只查今日的合同 1-查今日合同"
|
|
|
-// @Success 200 {array} models.Ermcp3Contract
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QuerySpotContract [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Summary 查询现货合同
|
|
|
+// @Produce json
|
|
|
+// @Security ApiKeyAuth
|
|
|
+// @Param userid query int true "用户id(当指定contractid, userid可不填)"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param contracttype query int false "合同类型 1-采购, -1-销售"
|
|
|
+// @Param querytype query string false "查询类型(逗号隔开, 如1,2,3) 1-未提交 2-待审核 3-履约中 4-已完成"
|
|
|
+// @Param contractid query string false "合同ID(SpotContractId)"
|
|
|
+// @Param contractno query string false "合同编号(模糊匹配)"
|
|
|
+// @Param wrstandardname query string false "商品名称(模糊匹配)"
|
|
|
+// @Param status query string false "合同状态(当填写此项时,将忽略querytype条件;可多个,逗号隔开,如0,1,2) 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
|
|
|
+// @Param istoday query int false "是否只查今日的合同 1-查今日合同"
|
|
|
+// @Success 200 {array} models.Ermcp3Contract
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QuerySpotContract [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QuerySpotContract(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -144,20 +144,20 @@ func QuerySpotContract(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QuerySpotContractBS
|
|
|
-// @Summary 查询合同(采购/销售)
|
|
|
-// @Produce json
|
|
|
-// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param contracttype query int true "合同类型 1-采购, -1-销售"
|
|
|
-// @Param querytype query int false "查询类型 1-全部 2-待点价 3-履约结算 4-已完成"
|
|
|
-// @Param contractid query string false "合同ID(SpotContractId)"
|
|
|
-// @Param status query string false "合同状态(当填写此项时,将忽略querytype条件;可多个,逗号隔开,如0,1,2) 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
|
|
|
-// @Param istoday query int false "是否只查今日的合同 1-查今日合同"
|
|
|
-// @Success 200 {array} models.Ermcp3SellBuyContract
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QuerySpotContractBS [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Summary 查询合同(采购/销售)
|
|
|
+// @Produce json
|
|
|
+// @Security ApiKeyAuth
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param contracttype query int true "合同类型 1-采购, -1-销售"
|
|
|
+// @Param querytype query int false "查询类型 1-全部 2-待点价 3-履约结算 4-已完成"
|
|
|
+// @Param contractid query string false "合同ID(SpotContractId)"
|
|
|
+// @Param status query string false "合同状态(当填写此项时,将忽略querytype条件;可多个,逗号隔开,如0,1,2) 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
|
|
|
+// @Param istoday query int false "是否只查今日的合同 1-查今日合同"
|
|
|
+// @Success 200 {array} models.Ermcp3SellBuyContract
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QuerySpotContractBS [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QuerySpotContractBS(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := QryContractReq{}
|
|
|
@@ -171,16 +171,16 @@ func QuerySpotContractBS(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryExposureDetail
|
|
|
-// @Summary 查询敞口现货明细
|
|
|
-// @Produce json
|
|
|
-// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param middlegoodsid query int true "套保商品"
|
|
|
-// @Success 200 {array} models.Ermcp3ExposureDetail
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryExposureDetail [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Summary 查询敞口现货明细
|
|
|
+// @Produce json
|
|
|
+// @Security ApiKeyAuth
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param middlegoodsid query int true "套保商品"
|
|
|
+// @Success 200 {array} models.Ermcp3ExposureDetail
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryExposureDetail [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryExposureDetail(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -195,15 +195,15 @@ func QueryExposureDetail(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryExposureSpot
|
|
|
-// @Summary 查询敞口现货头寸(敞口/现货头寸)
|
|
|
-// @Produce json
|
|
|
-// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Success 200 {array} models.Ermcp3AreaSpot
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryExposureSpot [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Summary 查询敞口现货头寸(敞口/现货头寸)
|
|
|
+// @Produce json
|
|
|
+// @Security ApiKeyAuth
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Success 200 {array} models.Ermcp3AreaSpot
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryExposureSpot [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryExposureSpot(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -216,16 +216,16 @@ func QueryExposureSpot(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryExposureSpotDetail
|
|
|
-// @Summary 查询敞口现货头寸明细(敞口/现货头寸/现货明细)
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询敞口现货头寸明细(敞口/现货头寸/现货明细)
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param wrstandardid query int true "现货商品ID"
|
|
|
-// @Success 200 {array} models.Ermcp3AreaSpotDetail
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryExposureSpotDetail [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param wrstandardid query int true "现货商品ID"
|
|
|
+// @Success 200 {array} models.Ermcp3AreaSpotDetail
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryExposureSpotDetail [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryExposureSpotDetail(c *gin.Context) {
|
|
|
appG := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -240,19 +240,19 @@ func QueryExposureSpotDetail(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryDGFactoryItem
|
|
|
-// @Summary 查询品种要素定义项
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询品种要素定义项
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int false "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param dgfactoryitemid query int false "选择项ID(SEQ_DGFACTORYITEM)"
|
|
|
-// @Param deliverygoodsid query int false "现货品种ID"
|
|
|
-// @Param dgfactoryitemtypeid query int false "要素项类型"
|
|
|
-// @Param orderindex query int false "顺序"
|
|
|
-// @Success 200 {array} models.ErmcpDGFactoryItem
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryDGFactoryItem [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int false "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param dgfactoryitemid query int false "选择项ID(SEQ_DGFACTORYITEM)"
|
|
|
+// @Param deliverygoodsid query int false "现货品种ID"
|
|
|
+// @Param dgfactoryitemtypeid query int false "要素项类型"
|
|
|
+// @Param orderindex query int false "顺序"
|
|
|
+// @Success 200 {array} models.ErmcpDGFactoryItem
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryDGFactoryItem [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryDGFactoryItem(c *gin.Context) {
|
|
|
appG := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -275,15 +275,15 @@ func QueryDGFactoryItem(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryGoodsbrand
|
|
|
-// @Summary 查询商品品牌
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询商品品牌
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Success 200 {array} models.Ermcp3Brand
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryGoodsbrand [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Success 200 {array} models.Ermcp3Brand
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryGoodsbrand [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryGoodsbrand(c *gin.Context) {
|
|
|
appG := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -300,16 +300,16 @@ func QueryGoodsbrand(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryGoodsWrstandard
|
|
|
-// @Summary 查询商品品类
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询商品品类
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param deliverygoodsid query int false "现货商品id"
|
|
|
-// @Success 200 {array} models.Ermcp3Wrstandard
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryGoodsWrstandard [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param deliverygoodsid query int false "现货商品id"
|
|
|
+// @Success 200 {array} models.Ermcp3Wrstandard
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryGoodsWrstandard [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryGoodsWrstandard(c *gin.Context) {
|
|
|
appG := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -324,22 +324,22 @@ func QueryGoodsWrstandard(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryAreaStockApply
|
|
|
-// @Summary 查询库存申请(出入库记录|库存审核)
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询库存申请(出入库记录|库存审核)
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param deliverygoodsid query int false "现货商品ID"
|
|
|
-// @Param inouttype query string false "出入库类型(可多项,逗号隔开) 5:采购入库 6:销售出库 7:生产入库 8:生产出库"
|
|
|
-// @Param spotcontractid query int false "合同ID"
|
|
|
-// @Param wrstandardid query int false "品类ID"
|
|
|
-// @Param spotgoodsbrandid query int false "品牌ID"
|
|
|
-// @Param warehouseinfoid query int false "仓库ID"
|
|
|
-// @Param applystatus query string false "申请状态(可多项,逗号隔开)1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
|
|
|
-// @Success 200 {array} models.Ermcp3AreaStockApply
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryAreaStockApply [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param deliverygoodsid query int false "现货商品ID"
|
|
|
+// @Param inouttype query string false "出入库类型(可多项,逗号隔开) 5:采购入库 6:销售出库 7:生产入库 8:生产出库"
|
|
|
+// @Param spotcontractid query int false "合同ID"
|
|
|
+// @Param wrstandardid query int false "品类ID"
|
|
|
+// @Param spotgoodsbrandid query int false "品牌ID"
|
|
|
+// @Param warehouseinfoid query int false "仓库ID"
|
|
|
+// @Param applystatus query string false "申请状态(可多项,逗号隔开)1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
|
|
|
+// @Success 200 {array} models.Ermcp3AreaStockApply
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryAreaStockApply [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryAreaStockApply(c *gin.Context) {
|
|
|
a := app.NewGinUtils(c)
|
|
|
req := struct {
|
|
|
@@ -368,14 +368,14 @@ func QueryAreaStockApply(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryAreaStock
|
|
|
-// @Summary 查询机构库存(库存管理/当前库存)
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询机构库存(库存管理/当前库存)
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID"
|
|
|
-// @Success 200 {array} models.Ermcp3AreaStock
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryAreaStock [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID"
|
|
|
+// @Success 200 {array} models.Ermcp3AreaStock
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryAreaStock [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryAreaStock(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3AreaStock{}
|
|
|
@@ -384,14 +384,14 @@ func QueryAreaStock(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryAreaStockApplySum
|
|
|
-// @Summary 查询已登记出入库信息(入库登记/已入库信息 | 出库登记/已出库信息)
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询已登记出入库信息(入库登记/已入库信息 | 出库登记/已出库信息)
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param spotcontractid query int true "合同ID"
|
|
|
-// @Success 200 {array} models.Ermcp3AreaStockApplySum
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryAreaStockApplySum [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param spotcontractid query int true "合同ID"
|
|
|
+// @Success 200 {array} models.Ermcp3AreaStockApplySum
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryAreaStockApplySum [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryAreaStockApplySum(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -403,14 +403,14 @@ func QueryAreaStockApplySum(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QuerySpotGoodsPrice
|
|
|
-// @Summary 查询现货市价(现货市价)
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询现货市价(现货市价)
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID"
|
|
|
-// @Success 200 {array} models.Ermcp3SpotGoodsPrice
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QuerySpotGoodsPrice [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID"
|
|
|
+// @Success 200 {array} models.Ermcp3SpotGoodsPrice
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QuerySpotGoodsPrice [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QuerySpotGoodsPrice(c *gin.Context) {
|
|
|
req := struct {
|
|
|
UserId int64 `form:"userid" binding:"required"` // 用户id
|
|
|
@@ -422,17 +422,17 @@ func QuerySpotGoodsPrice(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QuerySpotGoodsPriceLog
|
|
|
-// @Summary 查询现货市价详情(现货市价/详情)
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询现货市价详情(现货市价/详情)
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID"
|
|
|
-// @Param deliverygoodsid query int true "现货商品ID"
|
|
|
-// @Param brandid query int false "品牌ID"
|
|
|
-// @Param wrstandardid query int false "品类ID"
|
|
|
-// @Success 200 {array} models.Ermcp3SpotGoodsPriceLog
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QuerySpotGoodsPriceLog [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID"
|
|
|
+// @Param deliverygoodsid query int true "现货商品ID"
|
|
|
+// @Param brandid query int false "品牌ID"
|
|
|
+// @Param wrstandardid query int false "品类ID"
|
|
|
+// @Success 200 {array} models.Ermcp3SpotGoodsPriceLog
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QuerySpotGoodsPriceLog [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QuerySpotGoodsPriceLog(c *gin.Context) {
|
|
|
req := struct {
|
|
|
UserId int64 `form:"userid" binding:"required"` // 用户id
|
|
|
@@ -448,16 +448,16 @@ func QuerySpotGoodsPriceLog(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryHedgePlan 查询套保计划
|
|
|
-// @Summary 查询套保计划
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询套保计划
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param hedgeplanstatus query string true "套保计划状态(允许多个,逗号隔开) - 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
|
|
|
-// @Success 200 {array} models.Ermcp3HedgePlan
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryHedgePlan [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param hedgeplanstatus query string true "套保计划状态(允许多个,逗号隔开) - 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
|
|
|
+// @Success 200 {array} models.Ermcp3HedgePlan
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryHedgePlan [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryHedgePlan(c *gin.Context) {
|
|
|
appG := app.Gin{C: c}
|
|
|
req := struct {
|
|
|
@@ -481,16 +481,16 @@ func QueryHedgePlan(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryGoodsGroup
|
|
|
-// @Summary 查询期货商品组
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询期货商品组
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
-// @Param excludecfg query int false "排除套保品中已关联的商品组 1-排除"
|
|
|
-// @Success 200 {array} models.Ermcp3GoodsGroup
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryGoodsGroup [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param usertype query int false "用户类型 2-机构 7-企业成员"
|
|
|
+// @Param excludecfg query int false "排除套保品中已关联的商品组 1-排除"
|
|
|
+// @Success 200 {array} models.Ermcp3GoodsGroup
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryGoodsGroup [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryGoodsGroup(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -505,14 +505,14 @@ func QueryGoodsGroup(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryRootUserAccount
|
|
|
-// @Summary 查询顶级用户信息
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询顶级用户信息
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID"
|
|
|
-// @Success 200 {array} models.Ermcp3RootUserAccount
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryRootUserAccount [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID"
|
|
|
+// @Success 200 {array} models.Ermcp3RootUserAccount
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryRootUserAccount [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryRootUserAccount(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := struct {
|
|
|
@@ -524,17 +524,17 @@ func QueryRootUserAccount(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryPaAreaSubject
|
|
|
-// @Summary 查询交易主体
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询交易主体
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Param subjectid query int false "主体ID(SEQ_ERMCP_PA_AREASUBJECT)"
|
|
|
-// @Param subjecttype query int false "主体类型 - 1:交易主体 2:业务部门"
|
|
|
-// @Param subjectstatus query int false "主体状态 - 1:正常 2: 停用"
|
|
|
-// @Success 200 {array} models.Ermcp3PaAreaSubject
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryPaAreaSubject [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Param subjectid query int false "主体ID(SEQ_ERMCP_PA_AREASUBJECT)"
|
|
|
+// @Param subjecttype query int false "主体类型 - 1:交易主体 2:业务部门"
|
|
|
+// @Param subjectstatus query int false "主体状态 - 1:正常 2: 停用"
|
|
|
+// @Success 200 {array} models.Ermcp3PaAreaSubject
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryPaAreaSubject [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryPaAreaSubject(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3PaAreaSubject{}
|
|
|
@@ -543,14 +543,14 @@ func QueryPaAreaSubject(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryPaAreaAuditCfg
|
|
|
-// @Summary 查询审核设置
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询审核设置
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户id"
|
|
|
-// @Success 200 {array} models.Ermcp3PaAreaAuditCfg
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryPaAreaAuditCfg [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户id"
|
|
|
+// @Success 200 {array} models.Ermcp3PaAreaAuditCfg
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryPaAreaAuditCfg [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryPaAreaAuditCfg(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3PaAreaAuditCfg{}
|
|
|
@@ -559,15 +559,15 @@ func QueryPaAreaAuditCfg(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryPaTradeLink
|
|
|
-// @Summary 查询期现单据关联
|
|
|
+// @Summary 查询期现单据关联
|
|
|
// @Description 页面 app 现货->期现关联->期现单据关联
|
|
|
-// @Produce json
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID"
|
|
|
-// @Success 200 {array} models.Ermcp3PaTradeLink
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryPaTradeLink [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID"
|
|
|
+// @Success 200 {array} models.Ermcp3PaTradeLink
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryPaTradeLink [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryPaTradeLink(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3PaTradeLink{}
|
|
|
@@ -576,22 +576,22 @@ func QueryPaTradeLink(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QuerySCMiddleGoods
|
|
|
-// @Summary 查询现货订单
|
|
|
+// @Summary 查询现货订单
|
|
|
// @Description 页面 app 现货->期现关联->期现单据关联->点"关联"按钮->弹出界面 : 现货订单
|
|
|
// @Description 现货编号 即 合同编号
|
|
|
-// @Produce json
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID(填登录用户的userid)"
|
|
|
-// @Param buyorsell query int true "买卖方向 0-买 1-卖"
|
|
|
-// @Param goodsgroupid query int true "商品组id"
|
|
|
-// @Param biztype query int false "业务类型 1:套保 2:套利"
|
|
|
-// @Param contractno query string false "现货编号(模糊匹配)"
|
|
|
-// @Param customername query string false "对手方(模糊匹配)"
|
|
|
-// @Param wrstandardname query string false "现货商品名称(模糊匹配)"
|
|
|
-// @Success 200 {array} models.Ermcp3SCMiddleGoods
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QuerySCMiddleGoods [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID(填登录用户的userid)"
|
|
|
+// @Param buyorsell query int true "买卖方向 0-买 1-卖"
|
|
|
+// @Param goodsgroupid query int true "商品组id"
|
|
|
+// @Param biztype query int false "业务类型 1:套保 2:套利"
|
|
|
+// @Param contractno query string false "现货编号(模糊匹配)"
|
|
|
+// @Param customername query string false "对手方(模糊匹配)"
|
|
|
+// @Param wrstandardname query string false "现货商品名称(模糊匹配)"
|
|
|
+// @Success 200 {array} models.Ermcp3SCMiddleGoods
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QuerySCMiddleGoods [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QuerySCMiddleGoods(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3SCMiddleGoods{}
|
|
|
@@ -600,18 +600,18 @@ func QuerySCMiddleGoods(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryHPMiddleGoods
|
|
|
-// @Summary 查询可关联套保计划
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询可关联套保计划
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID(填登录用户的userid)"
|
|
|
-// @Param buyorsell query int true "买卖方向 0-买 1-卖"
|
|
|
-// @Param goodsgroupid query int true "商品组id"
|
|
|
-// @Param hedgeplanno query string false "套保计划编号(模糊匹配)"
|
|
|
-// @Param wrstandardname query string false "现货商品名称(模糊匹配)"
|
|
|
-// @Success 200 {array} models.Ermcp3HPMiddleGoods
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryHPMiddleGoods [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID(填登录用户的userid)"
|
|
|
+// @Param buyorsell query int true "买卖方向 0-买 1-卖"
|
|
|
+// @Param goodsgroupid query int true "商品组id"
|
|
|
+// @Param hedgeplanno query string false "套保计划编号(模糊匹配)"
|
|
|
+// @Param wrstandardname query string false "现货商品名称(模糊匹配)"
|
|
|
+// @Success 200 {array} models.Ermcp3HPMiddleGoods
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryHPMiddleGoods [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryHPMiddleGoods(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3HPMiddleGoods{}
|
|
|
@@ -620,19 +620,19 @@ func QueryHPMiddleGoods(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryPaTradeLinkDetail
|
|
|
-// @Summary 查询期现关联记录
|
|
|
+// @Summary 查询期现关联记录
|
|
|
// @Description 页面 app 现货->期现关联->关联记录
|
|
|
-// @Produce json
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID(填登录用户的userid)"
|
|
|
-// @Param linkstatus query int false "关联状态 1:成功 2:失败 3:解绑"
|
|
|
-// @Param tradeid query string false "期货订单号(模糊匹配)"
|
|
|
-// @Param contractno query string false "现货编号(模糊匹配)"
|
|
|
-// @Param taname query string false "期货账户(模糊匹配)"
|
|
|
-// @Success 200 {array} models.Ermcp3TradeLinkDetail
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryPaTradeLinkDetail [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID(填登录用户的userid)"
|
|
|
+// @Param linkstatus query int false "关联状态 1:成功 2:失败 3:解绑"
|
|
|
+// @Param tradeid query string false "期货订单号(模糊匹配)"
|
|
|
+// @Param contractno query string false "现货编号(模糊匹配)"
|
|
|
+// @Param taname query string false "期货账户(模糊匹配)"
|
|
|
+// @Success 200 {array} models.Ermcp3TradeLinkDetail
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryPaTradeLinkDetail [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryPaTradeLinkDetail(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3TradeLinkDetail{}
|
|
|
@@ -641,18 +641,18 @@ func QueryPaTradeLinkDetail(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryOutTradeLink
|
|
|
-// @Summary 查询外部成交单关联
|
|
|
+// @Summary 查询外部成交单关联
|
|
|
// @Description 页面 app 现货->期现关联->外部成交单关联
|
|
|
-// @Produce json
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID(填登录用户的userid)"
|
|
|
-// @Param outtradeid query string false "外部订单号(模糊匹配)"
|
|
|
-// @Param goodsname query string false "合约名称/代码(模糊匹配)"
|
|
|
-// @Param hasinnerorder query int false "关联状态 0-未关联 1-已关联"
|
|
|
-// @Success 200 {array} models.Ermcp3OutTradeLink
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryOutTradeLink [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID(填登录用户的userid)"
|
|
|
+// @Param outtradeid query string false "外部订单号(模糊匹配)"
|
|
|
+// @Param goodsname query string false "合约名称/代码(模糊匹配)"
|
|
|
+// @Param hasinnerorder query int false "关联状态 0-未关联 1-已关联"
|
|
|
+// @Success 200 {array} models.Ermcp3OutTradeLink
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryOutTradeLink [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryOutTradeLink(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3OutTradeLink{HASINNERORDER: -1}
|
|
|
@@ -661,16 +661,16 @@ func QueryOutTradeLink(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QuerySubTaaccount
|
|
|
-// @Summary 查询期货子账户
|
|
|
+// @Summary 查询期货子账户
|
|
|
// @Description 页面 app 现货->期现关联->外部成交单关联->点"关联"按钮->选择期货子账户
|
|
|
-// @Produce json
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param parentaccountid query int false "母账号id"
|
|
|
-// @Param parentaccountcode query string false "母账号代码"
|
|
|
-// @Success 200 {array} models.Ermcp3SubTaaccount
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QuerySubTaaccount [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param parentaccountid query int false "母账号id"
|
|
|
+// @Param parentaccountcode query string false "母账号代码"
|
|
|
+// @Success 200 {array} models.Ermcp3SubTaaccount
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QuerySubTaaccount [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QuerySubTaaccount(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3SubTaaccount{}
|
|
|
@@ -679,15 +679,15 @@ func QuerySubTaaccount(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryInnerTradeLink
|
|
|
-// @Summary 查询外部成交单关联的内部单信息(在解除外部关联页面使用)
|
|
|
+// @Summary 查询外部成交单关联的内部单信息(在解除外部关联页面使用)
|
|
|
// @Description 页面 app 现货->期现关联->外部成交单关联->点"解除关联"按钮->解除外部关联的页面信息
|
|
|
-// @Produce json
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param outtradeid query int true "外部成交单号"
|
|
|
-// @Success 200 {array} models.Ermcp3InnerTradeLink
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryInnerTradeLink [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param outtradeid query int true "外部成交单号"
|
|
|
+// @Success 200 {array} models.Ermcp3InnerTradeLink
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryInnerTradeLink [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryInnerTradeLink(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3InnerTradeLink{}
|
|
|
@@ -696,23 +696,23 @@ func QueryInnerTradeLink(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryParamChangeApp
|
|
|
-// @Summary 查询现货商品参数变更申请(流水)
|
|
|
+// @Summary 查询现货商品参数变更申请(流水)
|
|
|
// @Description 原型页面:
|
|
|
// @Description 1.商品信息->商品参数修改流水-> 增值税税率 | 折算系数 | 成本权重; 流水页面查申请状态为“审核通过”的记录
|
|
|
// @Description 2.风管审核->套保比例审核 | 折算系数审核 | 增值税税率审核 | 成本权重审核
|
|
|
-// @Produce json
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param userid query int true "用户ID"
|
|
|
-// @Param deliverygoodsid query int false "现货品种id"
|
|
|
-// @Param wrstandardid query int false "现货商品id"
|
|
|
-// @Param middlegoodsid query int false "套保商品id"
|
|
|
-// @Param operatetype query int false "操作类型 1:新增 2:修改"
|
|
|
-// @Param paramchangetype query int false "参数变更类型 - 1:增值税率变更(现货商品) 2:折算系数变更(现货商品) 3:成本权重(现货商品) 4:套保比率变更(套保品种)"
|
|
|
-// @Param ftstatus query string false "申请状态(逗号隔开,如1,2,3) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
|
|
|
-// @Success 200 {array} models.Ermcp3ParamChangeApp
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryParamChangeApp [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param userid query int true "用户ID"
|
|
|
+// @Param deliverygoodsid query int false "现货品种id"
|
|
|
+// @Param wrstandardid query int false "现货商品id"
|
|
|
+// @Param middlegoodsid query int false "套保商品id"
|
|
|
+// @Param operatetype query int false "操作类型 1:新增 2:修改"
|
|
|
+// @Param paramchangetype query int false "参数变更类型 - 1:增值税率变更(现货商品) 2:折算系数变更(现货商品) 3:成本权重(现货商品) 4:套保比率变更(套保品种)"
|
|
|
+// @Param ftstatus query string false "申请状态(逗号隔开,如1,2,3) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
|
|
|
+// @Success 200 {array} models.Ermcp3ParamChangeApp
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryParamChangeApp [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryParamChangeApp(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3ParamChangeApp{}
|
|
|
@@ -721,14 +721,14 @@ func QueryParamChangeApp(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// QueryErmcp3ContractMiddleGoodsCfg
|
|
|
-// @Summary 查询现货合同期现配置信息
|
|
|
-// @Produce json
|
|
|
+// @Summary 查询现货合同期现配置信息
|
|
|
+// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
|
-// @Param spotcontractid query string true "合同id"
|
|
|
-// @Success 200 {array} models.Ermcp3ContractMiddleGoodsCfg
|
|
|
-// @Failure 500 {object} app.Response
|
|
|
-// @Router /Ermcp3/QueryErmcp3ContractMiddleGoodsCfg [get]
|
|
|
-// @Tags 企业风险管理v3(app)
|
|
|
+// @Param spotcontractid query string true "合同id"
|
|
|
+// @Success 200 {array} models.Ermcp3ContractMiddleGoodsCfg
|
|
|
+// @Failure 500 {object} app.Response
|
|
|
+// @Router /Ermcp3/QueryErmcp3ContractMiddleGoodsCfg [get]
|
|
|
+// @Tags 企业风险管理v3(app)
|
|
|
func QueryErmcp3ContractMiddleGoodsCfg(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
m := models.Ermcp3ContractMiddleGoodsCfg{}
|