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 zscategory query int false "钻石分类枚举ID" // @Param warehouseid query int false "仓库ID" // @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 zscategory query int false "钻石分类枚举ID" // @Param wrtradeorderid query int false "委托单号" // @Param ishis query bool false "是否历史查询" // @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 zscategory query int false "钻石分类枚举ID" // @Param wrtradeorderid query int false "委托单号" // @Param ishis query bool false "是否历史查询" // @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 zscategory query int false "钻石分类枚举ID" // @Param wrtradedetailid query int false "成交单号" // @Param buyorsell query int false "方向,0-全部(可不传) 1-购买 2-出售" // @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:确认中" // @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:确认中" // @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) }