| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- 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"
- // @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 "是否历史查询"
- // @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 "是否历史查询"
- // @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-购买 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)
- }
|