| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package ferroalloy
- import (
- "mtp2_if/global/app"
- "mtp2_if/models"
- "github.com/gin-gonic/gin"
- )
- // QueryMyRefer
- // @Summary 查询我的推荐列表
- // @Produce json
- // @Security ApiKeyAuth
- // @Param userid query int true "用户ID"
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Success 200 {array} models.MyRefer
- // @Failure 500 {object} app.Response
- // @Router /Ferroalloy/QueryMyRefer [get]
- // @Tags 铁合金
- func QueryMyRefer(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.MyRefer{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
- // QueryMyRegisterMoney
- // @Summary 查询我的注册红包
- // @Produce json
- // @Param accountid query int true "资金账户"
- // @Success 200 {array} models.RegisterMoney
- // @Failure 500 {object} app.Response
- // @Router /Ferroalloy/QueryMyRegisterMoney [get]
- // @Tags 铁合金
- func QueryMyRegisterMoney(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.RegisterMoney{}
- a.DoBindReq(&m)
- a.DoGetDataEx(&m)
- }
|