mine.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package ferroalloy
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryMyRefer
  8. // @Summary 查询我的推荐列表
  9. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Param userid query int true "用户ID"
  12. // @Param page query int false "页码"
  13. // @Param pagesize query int false "每页条数"
  14. // @Success 200 {array} models.MyRefer
  15. // @Failure 500 {object} app.Response
  16. // @Router /Ferroalloy/QueryMyRefer [get]
  17. // @Tags 铁合金
  18. func QueryMyRefer(c *gin.Context) {
  19. a := app.GinUtils{Gin: app.Gin{C: c}}
  20. m := models.MyRefer{}
  21. a.DoBindReq(&m)
  22. a.DoGetDataByPage(&m)
  23. }
  24. // QueryMyRegisterMoney
  25. // @Summary 查询我的注册红包
  26. // @Produce json
  27. // @Param accountid query int true "资金账户"
  28. // @Success 200 {array} models.RegisterMoney
  29. // @Failure 500 {object} app.Response
  30. // @Router /Ferroalloy/QueryMyRegisterMoney [get]
  31. // @Tags 铁合金
  32. func QueryMyRegisterMoney(c *gin.Context) {
  33. a := app.GinUtils{Gin: app.Gin{C: c}}
  34. m := models.RegisterMoney{}
  35. a.DoBindReq(&m)
  36. a.DoGetDataEx(&m)
  37. }