package guangzuan import ( "mtp2_if/global/app" "mtp2_if/models" "github.com/gin-gonic/gin" ) // QueryMyWRPosition // @Summary 查询我的库存 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param wruserid query int true "登录用户ID" // @Param zsallproperties query string false "商品(查询字段-模糊查询)" // @Param zscategorys query string false "钻石分类, 格式:1,2,3" // @Param warehouseid query int false "仓库ID" // @Param marketflag query int false "是否上架,0-全部 1-是 2-否" // @Success 200 {array} models.MyWRPosition // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryMyWRPosition [get] // @Tags 广钻 func QueryMyWRPosition(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.MyWRPosition{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryMyBuyOrder // @Summary 查询我的求购 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param zsallproperties query string false "商品(查询字段-模糊查询)" // @Param zscategorys query string false "钻石分类, 格式:1,2,3" // @Param wrtradeorderid query int false "委托单号" // @Param ishis query bool false "是否历史查询" // @Param begindate query string false "开始交易日(yyyymmdd)" // @Param enddate query string false "结束交易日(yyyymmdd)" // @Success 200 {array} models.MyBuyOrder // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryMyBuyOrder [get] // @Tags 广钻 func QueryMyBuyOrder(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.MyBuyOrder{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryMySellOrder // @Summary 查询我的出售 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param zsallproperties query string false "商品(查询字段-模糊查询)" // @Param zscategorys query string false "钻石分类, 格式:1,2,3" // @Param wrtradeorderid query int false "委托单号" // @Param ishis query bool false "是否历史查询" // @Param begindate query string false "开始交易日(yyyymmdd)" // @Param enddate query string false "结束交易日(yyyymmdd)" // @Success 200 {array} models.MySellOrder // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryMySellOrder [get] // @Tags 广钻 func QueryMySellOrder(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.MySellOrder{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryMyDeListing // @Summary 查询我的摘牌 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param zsallproperties query string false "商品(查询字段-模糊查询)" // @Param zscategorys query string false "钻石分类, 格式:1,2,3" // @Param wrtradedetailid query int false "成交单号" // @Param buyorsell query int false "方向,0-购买 1-出售" // @Param matchusername query string false "对手方(模糊匹配)" // @Param begindate query string false "开始交易日(yyyymmdd)" // @Param enddate query string false "结束交易日(yyyymmdd)" // @Success 200 {array} models.MyDeListing // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryMyDeListing [get] // @Tags 广钻 func QueryMyDeListing(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.MyDeListing{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryMyBargainApply // @Summary 查询询价-求购 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param applystatus query int false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中" // @Param type query int false "查询类型 - 0:我的询价 1:我订单的询价" // @Param wrtradeorderid query string false "关联委托单ID" // @Success 200 {array} models.MyBargainApply // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryMyBargainApply [get] // @Tags 广钻 func QueryMyBargainApply(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.MyBargainApply{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryMyDelistingApply // @Summary 查询询价-出售 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param applystatus query int false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中" // @Param type query int false "查询类型 - 0:我的询价 1:我订单的询价" // @Param buywrtradeorderid query string false "买委托单ID" // @Success 200 {array} models.MyDelistingApply // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryMyDelistingApply [get] // @Tags 广钻 func QueryMyDelistingApply(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.MyDelistingApply{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryMyPerformanc // @Summary 查询我的履约 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param zsallproperties query string false "商品(查询字段-模糊查询)" // @Param buyorsell query int false "方向,0-买 1-卖" // @Param ishis query bool false "是否历史查询" // @Param begindate query string false "开始交易日(yyyymmdd)" // @Param enddate query string false "结束交易日(yyyymmdd)" // @Success 200 {array} models.MyPerformanc // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryMyPerformanc [get] // @Tags 广钻 func QueryMyPerformanc(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.MyPerformanc{} a.DoBindReq(&m) a.DoGetDataByPage(&m) } // QueryMyFavorite // @Summary 查询我的收藏 // @Produce json // @Security ApiKeyAuth // @Security LoginID // @Security Group // @Param userid query int true "用户ID" // @Param page query int false "页码" // @Param pagesize query int false "每页条数" // @Param zscategorys query string false "钻石分类, 格式:1,2,3" // @Success 200 {array} models.MyFavorite // @Failure 500 {object} app.Response // @Router /Guangzuan/QueryMyFavorite [get] // @Tags 广钻 func QueryMyFavorite(c *gin.Context) { a := app.GinUtils{Gin: app.Gin{C: c}} m := models.MyFavorite{} a.DoBindReq(&m) a.DoGetDataByPage(&m) }