address.go 886 B

12345678910111213141516171819202122232425262728
  1. package wallet
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryWalletAddress
  8. // @Summary 查询钱包地址
  9. // @Description /Wallet/QueryWalletAddress 查询钱包地址
  10. // @Produce json
  11. // @Security ApiKeyAuth
  12. // @Param userid query int true "用户ID"
  13. // @Param channel_code query string false "渠道代码"
  14. // @Param addr_type query int false "地址类型:1-充值;2-提现"
  15. // @Param chain_id query string false "链代码"
  16. // @Success 200 {array} models.DigitalWalletAddress
  17. // @Failure 500 {object} app.Response
  18. // @Router /Wallet/QueryWalletAddress [get]
  19. // @Tags 钱包
  20. func QueryWalletAddress(c *gin.Context) {
  21. a := app.GinUtils{Gin: app.Gin{C: c}}
  22. m := models.DigitalWalletAddress{}
  23. a.DoBindReq(&m)
  24. a.DoGetDataI(&m)
  25. }