address.go 597 B

123456789101112131415161718192021222324
  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. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Param digitalaccountid query int true "数字账户ID"
  12. // @Success 200 {array} models.DigitalWalletAddress
  13. // @Failure 500 {object} app.Response
  14. // @Router /Wallet/QueryWalletAddress [get]
  15. // @Tags 钱包
  16. func QueryWalletAddress(c *gin.Context) {
  17. a := app.GinUtils{Gin: app.Gin{C: c}}
  18. m := models.DigitalWalletAddress{}
  19. a.DoBindReq(&m)
  20. a.DoGetDataI(&m)
  21. }