| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- 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)
- }
|