Kaynağa Gözat

联调问题修改(areauserid改为userid)

zou.yingbin 4 yıl önce
ebeveyn
işleme
61eee604dc

+ 0 - 60
controllers/ermcp/qryAreaStock.go

@@ -54,21 +54,6 @@ type QryAreaStockApplyReq struct {
 type QryAreaStockApplyRsp models.ErmcpAreaStockApply
 
 // QueryAreaStockApply
-// @Summary 查询库存申请(出入库记录|库存审核)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param inouttype query string false "出入库类型(可多项,逗号隔开) 1:采购入库 2:销售出库 3:生产入库 4:生产出库"
-// @Param spotcontractid query int false "合同ID"
-// @Param wrstandardid query int false "现货商品ID"
-// @Param spotgoodsbrandid query int false "品牌ID"
-// @Param spotgoodsmodelid query int false "型号ID"
-// @Param warehouseinfoid query int false "仓库ID"
-// @Param applystatus query string false "申请状态(可多项,逗号隔开)1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryAreaStockApplyRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAreaStockApply [get]
-// @Tags 企业风险管理(app)
 func QueryAreaStockApply(c *gin.Context) {
 	a := app.NewGinUtils(c)
 	req := QryAreaStockApplyReq{}
@@ -95,14 +80,6 @@ type QueryAreaStockApplySumReq struct {
 type QueryAreaStockApplySumRsp models.ErmcpAreaStockApplySum
 
 // QueryAreaStockApplySum
-// @Summary 查询已登记出入库信息(入库登记/已入库信息 | 出库登记/已出库信息)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param spotcontractid query int false "合同ID"
-// @Success 200 {array} QueryAreaStockApplySumRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAreaStockApplySum [get]
-// @Tags 企业风险管理(app)
 func QueryAreaStockApplySum(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QueryAreaStockApplySumReq{}
@@ -117,14 +94,6 @@ type QueryAreaStockReq struct {
 }
 
 // QueryAreaStock
-// @Summary 查询机构库存(库存管理/当前库存)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.ErmcpAreaStock
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAreaStock [get]
-// @Tags 企业风险管理(app)
 func QueryAreaStock(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QueryAreaStockReq{}
@@ -145,20 +114,6 @@ type QueryAreaStockReportReq struct {
 }
 
 // QueryAreaStockReport
-// @Summary 查询库存报表
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-日报表 2-月报表"
-// @Param querydate query string true "查询日期(格式 日报表YYYYMMDD, 月报表YYYYMM)"
-// @Param wrstandardid query int false "现货商品ID"
-// @Param spotgoodsbrandid query int false "品牌ID"
-// @Param spotgoodsmodelid query int false "型号ID"
-// @Param warehouseinfoid query int false "仓库ID"
-// @Success 200 {array} models.ErmcpAreaStockReport
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAreaStockReport [get]
-// @Tags 企业风险管理(app)
 func QueryAreaStockReport(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QueryAreaStockReportReq{}
@@ -174,21 +129,6 @@ func QueryAreaStockReport(c *gin.Context) {
 }
 
 // QueryAreaStockReportDetail
-// @Summary 查询库存报表明细
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-日报表明细 2-月报表明细"
-// @Param detailtype query int true "明细类型 1:入库明细(采购入库+生产入库) 2:出库明细(销售出库+生产出库)"
-// @Param querydate query string true "查询日期(格式 日报表YYYYMMDD, 月报表YYYYMM)"
-// @Param wrstandardid query int false "现货商品ID"
-// @Param spotgoodsbrandid query int false "品牌ID"
-// @Param spotgoodsmodelid query int false "型号ID"
-// @Param warehouseinfoid query int false "仓库ID"
-// @Success 200 {array} models.ErmcpAreaStockApply
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAreaStockReportDetail [get]
-// @Tags 企业风险管理(app)
 func QueryAreaStockReportDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QueryAreaStockReportReq{}

+ 0 - 20
controllers/ermcp/qryErmcp.go

@@ -25,15 +25,6 @@ type QrySpotContractReq struct {
 type QrySpotContractRsp models.ErmcpSpotContractModel
 
 // QuerySpotContract  企业风险管理合同查询
-// @Summary 查询现货合同(对应现货合同菜单)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userId query int true "用户ID"
-// @Param QueryType query int true "查询类型 1-未提交 2-待审核 3-履约中 4-已完成"
-// @Success 200 {array} QrySpotContractRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QuerySpotContract [get]
-// @Tags 企业风险管理(app)
 func QuerySpotContract(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QrySpotContractReq
@@ -63,17 +54,6 @@ type QryErmcpReq struct {
 type QryErmcpRsp models.ErmcpModel
 
 // QueryContract  企业风险管理合同查询
-// @Summary 查询合同(采购和销售)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userId query int true "用户ID"
-// @Param contracttype query int true "合同类型 1-采购, -1-销售"
-// @Param querytype query int true "查询类型 1-全部 2-待点价 3-履约结算"
-// @Param contractid query string false "合同ID(SpotContractId)"
-// @Success 200 {array} QryErmcpRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryContract [get]
-// @Tags 企业风险管理(app)
 func QueryContract(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryErmcpReq

+ 12 - 12
controllers/ermcp/qryExposure.go

@@ -20,7 +20,7 @@ import (
 
 //实时敞口查询请求
 type RealtimeExposureReq struct {
-	AreaUserID uint32 `form:"AreaUserID" binding:"required"` //所属机构ID
+	AreaUserID uint32 `form:"userid" binding:"required"` // 用户id
 }
 
 //实时敞口查询应答
@@ -30,7 +30,7 @@ type RealtimeExposureRsp models.ErmcpRealExposureModel
 // @Summary 查询实时敞口
 // @Produce json
 // @Security ApiKeyAuth
-// @Param AreaUserID query int true "所属机构ID"
+// @Param userid query int true "所属机构ID"
 // @Success 200 {array} RealtimeExposureRsp
 // @Failure 500 {object} app.Response
 // @Router /Ermcp/QueryRealtimeExposure [get]
@@ -156,8 +156,8 @@ func QueryExposureSpotDetail(c *gin.Context) {
 
 // 敞口/历史敞口请求
 type HisExposureReq struct {
-	AreaUserID int32 `form:"areaUserId" binding:"required"` //所属机构ID
-	LastNum    int32 `form:"lastNum" binding:"required"`    //查询最近多少条记录
+	AreaUserID int32 `form:"userid" binding:"required"`  //所属机构ID
+	LastNum    int32 `form:"lastNum" binding:"required"` //查询最近多少条记录
 }
 
 // 敞口/历史敞口应答
@@ -167,7 +167,7 @@ type HisExposureRsp models.ErmcpHisExposureS
 // @Summary 查询历史敞口(菜单:敞口/历史敞口)
 // @Produce json
 // @Security ApiKeyAuth
-// @Param areaUserId query int true "所属机构ID"
+// @Param userid query int true "用户id"
 // @Param lastNum query int true "每个品种记录数"
 // @Success 200 {array} HisExposureRsp
 // @Failure 500 {object} app.Response
@@ -190,7 +190,7 @@ func QueryHisExposure(c *gin.Context) {
 
 // 实时敞口/期货明细 请求
 type RealtimeExposurePositionReq struct {
-	AreaUserId    int32 `form:"areaUserId" json:"areaUserId"`       // 所属机构ID
+	AreaUserId    int32 `form:"userid" json:"areaUserId"`           // 所属机构ID
 	MiddleGoodsId int32 `form:"middleGoodsId" json:"middlegoodsid"` // 套保商品
 }
 
@@ -200,7 +200,7 @@ type RealtimeExposurePositionRsp models.ErmcpExposurePostion
 // @Summary 查询实时敞口期货头寸明细(菜单:实时敞口/期货明细)
 // @Produce json
 // @Security ApiKeyAuth
-// @Param areaUserId query int true "所属机构ID"
+// @Param userid query int true "用户id"
 // @Param middleGoodsId query int true "套保商品ID"
 // @Success 200 {array} RealtimeExposurePositionRsp
 // @Failure 500 {object} app.Response
@@ -216,7 +216,7 @@ func QueryRealtimeExposurePosition(c *gin.Context) {
 
 // 敞口/期货头寸 请求
 type ExposureHedgePositionReq struct {
-	AreaUserId int32 `form:"areaUserId" json:"areaUserId"` // 所属机构ID
+	AreaUserId int32 `form:"userid" json:"areaUserId"` // 用户ID
 }
 
 // 敞口/期货头寸 应答
@@ -225,7 +225,7 @@ type ExposureHedgePositionRsp models.ErmcpHedgePosition
 // @Summary 查询敞口期货头寸(菜单:敞口/期货头寸)
 // @Produce json
 // @Security ApiKeyAuth
-// @Param areaUserId query int true "所属机构ID"
+// @Param userid query int true "用户id"
 // @Success 200 {array} ExposureHedgePositionRsp
 // @Failure 500 {object} app.Response
 // @Router /Ermcp/QueryExposureHedgePosition [get]
@@ -247,8 +247,8 @@ func QueryExposureHedgePosition(c *gin.Context) {
 
 // 期货明细请求
 type ExposureHedgePosDetailReq struct {
-	AreaUserId int32 `form:"areaUserId" json:"areaUserId"` // 所属机构ID
-	GoodsId    int32 `form:"goodsId" json:"goodsId"`       // 套保商品
+	AreaUserId int32 `form:"userid" json:"areaUserId"` // 所属机构ID
+	GoodsId    int32 `form:"goodsId" json:"goodsId"`   // 套保商品
 }
 
 // 期货明细应答
@@ -258,7 +258,7 @@ type ExposureHedgePosDetailRsp models.ErmcpHedgePositionDetail
 // @Summary 查询敞口期货头寸期货明细(菜单:敞口/期货头寸/期货明细)
 // @Produce json
 // @Security ApiKeyAuth
-// @Param areaUserId query int true "所属机构ID"
+// @Param userid query int true "所属机构ID"
 // @Param goodsId query int true "商品id"
 // @Success 200 {array} ExposureHedgePosDetailRsp
 // @Failure 500 {object} app.Response

+ 0 - 9
controllers/ermcp/qryHedgePlan.go

@@ -25,15 +25,6 @@ type QryHedgePlanReq struct {
 type QryHedgePlanRsp models.ErmcpHedgePlan
 
 // QueryHedgePlan 查询套保计划
-// @Summary 查询套保计划
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userId query int true "用户ID"
-// @Param HedgePlanStatus query string true "套保计划状态(允许多个,逗号隔开) - 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
-// @Success 200 {array} QryHedgePlanRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryHedgePlan [get]
-// @Tags 企业风险管理(app)
 func QueryHedgePlan(c *gin.Context) {
 	appG := app.Gin{C: c}
 	req := QryHedgePlanReq{}

+ 1 - 51
controllers/ermcp/qryOPApply.go

@@ -78,16 +78,6 @@ type QryBusinessDjRsp struct {
 }
 
 // QueryBusinessDj  企业风险管理合同操作查询
-// @Summary 查询业务管理(点价)(对应菜单:业务管理/点价)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBusinessDjRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessDj [get]
-// @Tags 企业风险管理(app)
 func QueryBusinessDj(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq
@@ -119,17 +109,6 @@ type QryBussinessJsRsp struct {
 }
 
 // QueryBusinessJs  企业风险管理合同操作查询
-// @Summary 查询业务管理(结算)(对应菜单:业务管理/结算)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param operateapplyid query string false "操作申请id"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBussinessJsRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessJs [get]
-// @Tags 企业风险管理(app)
 func QueryBusinessJs(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq
@@ -159,16 +138,7 @@ type QryBussinessJsExRsp struct {
 	ReckonValue float64 `json:"reckonvalue"` // 值
 }
 
-// @Summary 查询业务管理(结算)(对应菜单:业务管理/结算[拆分记录])
-// @Produce json
-// @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBussinessJsExRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessJsEx [get]
-// @Tags 企业风险管理(app)
+// QueryBusinessJsEx 查询业务管理(结算)(对应菜单:业务管理/结算[拆分记录])
 func QueryBusinessJsEx(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq
@@ -229,16 +199,6 @@ type QryBussinessKxRsp struct {
 }
 
 // QueryBusinessKx  企业风险管理合同操作查询
-// @Summary 查询财务管理(款项)(对应菜单:财务管理/款项)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBussinessKxRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessKx [get]
-// @Tags 企业风险管理(app)
 func QueryBusinessKx(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq
@@ -270,16 +230,6 @@ type QryBussinessFpRsp struct {
 }
 
 // QueryBusinessFp  企业风险管理合同操作查询
-// @Summary 查询财务管理(发票)(对应菜单:财务管理/发票)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBussinessFpRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessFp [get]
-// @Tags 企业风险管理(app)
 func QueryBusinessFp(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq

+ 9 - 96
controllers/ermcp/qryReport.go

@@ -22,15 +22,7 @@ type QryReportDayReq struct {
 
 type QryReportFinanceDayRsp models.ErmcpReportDayFR
 
-// @Summary 查询财务日报表(菜单:报表查询/财务报表/日报表)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param tradedate query string true "交易日(格式:yyyyMMdd)"
-// @Success 200 {array} QryReportFinanceDayRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportDayFinance [get]
-// @Tags 企业风险管理(app)
+// QryReportDayFinance 查询财务日报表(菜单:报表查询/财务报表/日报表)
 func QryReportDayFinance(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportDayReq{}
@@ -42,15 +34,7 @@ func QryReportDayFinance(c *gin.Context) {
 // 财务日报表款项明细
 type QryReportFinanceKxRsp models.ErmcpReportOPLog
 
-// @Summary 查询财务日报表款项(菜单:报表查询/财务报表/日报表/款项)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param tradedate query string true "交易日(格式:yyyyMMdd)"
-// @Success 200 {array} QryReportFinanceKxRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportDayFinanceKx [get]
-// @Tags 企业风险管理(app)
+// QryReportDayFinanceKx 查询财务日报表款项(菜单:报表查询/财务报表/日报表/款项)
 func QryReportDayFinanceKx(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportDayReq{}
@@ -62,15 +46,7 @@ func QryReportDayFinanceKx(c *gin.Context) {
 // 财务日报表发票明细
 type QryReportFinanceFpRsp models.ErmcpReportOPLog
 
-// @Summary 查询财务日报表发票(菜单:报表查询/财务报表/日报表/发票)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param tradedate query string true "交易日(格式:yyyyMMdd)"
-// @Success 200 {array} QryReportFinanceKxRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportDayFinanceFp [get]
-// @Tags 企业风险管理(app)
+// QryReportDayFinanceFp 查询财务日报表发票(菜单:报表查询/财务报表/日报表/发票)
 func QryReportDayFinanceFp(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportDayReq{}
@@ -88,15 +64,7 @@ type QryReportMonthReq struct {
 // 财务月报表应答
 type QryReportFinanceMonRsp models.ErmcpReportMonthFR
 
-// @Summary 查询财务月报表(菜单:报表查询/财务报表/月报表)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param cycletime query string true "周期时间:月(格式:yyyyMM)"
-// @Success 200 {array} QryReportFinanceMonRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportMonthFinance [get]
-// @Tags 企业风险管理(app)
+// QryReportMonthFinance 查询财务月报表(菜单:报表查询/财务报表/月报表)
 func QryReportMonthFinance(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportMonthReq{}
@@ -108,15 +76,7 @@ func QryReportMonthFinance(c *gin.Context) {
 // 敞口日报表
 type QryReportExposureDayRsp models.ErmcpReportDayExposure
 
-// @Summary 查询敞口日报表(菜单:报表查询/敞口报表/敞口日报表)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param tradedate query string true "交易日(格式:yyyyMMdd)"
-// @Success 200 {array} QryReportExposureDayRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportDayExposure [get]
-// @Tags 企业风险管理(app)
+// QryReportDayExposure 查询敞口日报表(菜单:报表查询/敞口报表/敞口日报表)
 func QryReportDayExposure(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportDayReq{}
@@ -128,15 +88,7 @@ func QryReportDayExposure(c *gin.Context) {
 // 现货日报表
 type QryReportSpotDayRsp models.ErmcpReportDaySpot
 
-// @Summary 查询现货日报表(菜单:报表查询/现货报表/现货日报表)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param tradedate query string true "交易日(格式:yyyyMMdd)"
-// @Success 200 {array} QryReportSpotDayRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportDaySpot [get]
-// @Tags 企业风险管理(app)
+// QryReportDaySpot 查询现货日报表(菜单:报表查询/现货报表/现货日报表)
 func QryReportDaySpot(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportDayReq{}
@@ -155,16 +107,7 @@ type QryReportDaySpotDetailReq struct {
 // 现货日报表明细应答
 type QryReportDaySpotDetailRsp models.ErmcpReportOPLog
 
-// @Summary 查询现货日报表详情(菜单:报表查询/现货报表/现货日报表详情)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param wrstandardid query int true "现货商品id"
-// @Param tradedate query string true "交易日(格式:yyyyMMdd)"
-// @Success 200 {array} QryReportDaySpotDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportDaySpotDetail [get]
-// @Tags 企业风险管理(app)
+// QryReportDaySpotDetail 查询现货日报表详情(菜单:报表查询/现货报表/现货日报表详情)
 func QryReportDaySpotDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportDaySpotDetailReq{}
@@ -177,15 +120,7 @@ func QryReportDaySpotDetail(c *gin.Context) {
 // 现货月报表应答
 type QryReportSpotMonRsp models.ErmcpReportMonSpot
 
-// @Summary 查询现货月报表(菜单:报表查询/现货报表/现货月报表)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param cycletime query string true "周期时间:月(格式:yyyyMM)"
-// @Success 200 {array} QryReportSpotMonRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportMonthSpot [get]
-// @Tags 企业风险管理(app)
+// QryReportMonthSpot 查询现货月报表(菜单:报表查询/现货报表/现货月报表)
 func QryReportMonthSpot(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportMonthReq{}
@@ -204,16 +139,7 @@ type QryReportSpotMonthDetailReq struct {
 // 现货月报表详情应答
 type QryReportSpotMonthDetailRsp models.ErmcpReportDaySpot
 
-// @Summary 查询现货月报表详情(菜单:报表查询/现货月报表/现货月报表详情)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param wrstandardid query int true "现货商品id"
-// @Param cycletime query string true "周期时间:月(格式:yyyyMM)"
-// @Success 200 {array} QryReportSpotMonthDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportMonthSpotDetail [get]
-// @Tags 企业风险管理(app)
+// QryReportMonthSpotDetail 查询现货月报表详情(菜单:报表查询/现货月报表/现货月报表详情)
 func QryReportMonthSpotDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportSpotMonthDetailReq{}
@@ -241,19 +167,6 @@ type QueryReportAreaSpotPLReq struct {
 }
 
 // QryReportAreaSpotPL
-// @Summary 查询现货损益报表(现货损益报表)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-日报表 2-月报表"
-// @Param querydate query string true "查询日期(格式 日报表YYYYMMDD, 月报表YYYYMM)"
-// @Param wrstandardid query int false "现货商品ID"
-// @Param spotgoodsbrandid query int false "品牌ID"
-// @Param spotgoodsmodelid query int false "型号ID"
-// @Success 200 {array} models.ErmcpReportAreaSpotPL
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QryReportAreaSpotPL [get]
-// @Tags 企业风险管理(app)
 func QryReportAreaSpotPL(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QueryReportAreaSpotPLReq{}

+ 0 - 17
controllers/ermcp/qrySpotGoodsPrice.go

@@ -13,14 +13,6 @@ import (
 )
 
 // QuerySpotGoodsPrice
-// @Summary 查询现货市价(现货市价)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.ErmcpSpotGoodsPrice
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QuerySpotGoodsPrice [get]
-// @Tags 企业风险管理(app)
 func QuerySpotGoodsPrice(c *gin.Context) {
 	req := struct {
 		UserId int64 `form:"userid" binding:"required"` // 用户id
@@ -32,15 +24,6 @@ func QuerySpotGoodsPrice(c *gin.Context) {
 }
 
 // QuerySpotGoodsPriceLog
-// @Summary 查询现货市价详情(现货市价/详情)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param wrstandardid query int true "现货商品ID"
-// @Success 200 {array} models.ErmcpSpotGoodsPriceLog
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QuerySpotGoodsPriceLog [get]
-// @Tags 企业风险管理(app)
 func QuerySpotGoodsPriceLog(c *gin.Context) {
 	req := struct {
 		UserId       int64 `form:"userid" binding:"required"`       // 用户id

+ 1 - 19
controllers/ermcp/qryWrstandard.go

@@ -25,15 +25,6 @@ type QryWrStandardReq struct {
 type QryWrStandardRsp models.ErmcpWrstandard
 
 // QueryWrStandard  企业风险管理查询现货商品
-// @Summary 查询现货商品
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true  "所属机构ID"
-// @Param status query int true  "状态 0-停用 1-正常"
-// @Success 200 {array} QryWrStandardRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryWrStandard [get]
-// @Tags 企业风险管理(app)
 func QueryWrStandard(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryWrStandardReq
@@ -64,16 +55,7 @@ type QryWrStandardDetailReq struct {
 //查询现货商品响应
 type QryWrStandardDetailRsp models.ErmcpWrstandDetail
 
-// @Summary 查询现货商品详情(菜单:现货品种/现货品种详情)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true  "所属机构ID"
-// @Param wrstandardid query int false  "现货商品ID"
-// @Param goods query int false  "可不填, 1-查询关联交易商品"
-// @Success 200 {array} QryWrStandardDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryWrStandardDetail [get]
-// @Tags 企业风险管理(app)
+// QueryWrStandardDetail 查询现货商品详情(菜单:现货品种/现货品种详情)
 func QueryWrStandardDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryWrStandardDetailReq

+ 6 - 6
controllers/ermcp3/qryErmcp3.go

@@ -93,12 +93,12 @@ func QueryMiddleGoodsDetail(c *gin.Context) {
 
 // QryContractReq 查询合同请求
 type QryContractReq struct {
-	AreadUserId  int64  `form:"areauserid" binding:"required"` // 所属机构Id
-	CONTRACTTYPE int32  `form:"contracttype"`                  // 合同类型 1-采购, -1-销售
-	QUERYTYPE    int32  `form:"querytype" binding:"required"`  // 查询类型
-	USERID       int64  `form:"userid"`                        // 用户Id
-	USERTYPE     int32  `form:"usertype"`                      // 用户类型
-	CONTRACTID   string `form:"contractid"`                    // 合同ID(SpotContractId)
+	AreadUserId  int64  `form:"userid" binding:"required"`    // 所属机构Id
+	CONTRACTTYPE int32  `form:"contracttype"`                 // 合同类型 1-采购, -1-销售
+	QUERYTYPE    int32  `form:"querytype" binding:"required"` // 查询类型
+	USERID       int64  `form:"userid"`                       // 用户Id
+	USERTYPE     int32  `form:"usertype"`                     // 用户类型
+	CONTRACTID   string `form:"contractid"`                   // 合同ID(SpotContractId)
 }
 
 // QuerySpotContract

Dosya farkı çok büyük olduğundan ihmal edildi
+ 190 - 305
docs/docs.go


Dosya farkı çok büyük olduğundan ihmal edildi
+ 190 - 305
docs/swagger.json


Dosya farkı çok büyük olduğundan ihmal edildi
+ 676 - 936
docs/swagger.yaml


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor