rate.go 788 B

1234567891011121314151617181920212223242526272829
  1. package common
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // QueryRates
  8. // @Summary 查询汇率信息
  9. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Security LoginID
  12. // @Security Group
  13. // @Param page query int false "页码"
  14. // @Param pagesize query int false "每页条数"
  15. // @Param oricurrencyid query int false "源币种ID"
  16. // @Param descurrencyid query int false "目标币种ID"
  17. // @Success 200 {array} models.Exchangerateconfig
  18. // @Failure 500 {object} app.Response
  19. // @Router /Common/QueryRates [get]
  20. // @Tags 通用服务
  21. func QueryRates(c *gin.Context) {
  22. a := app.GinUtils{Gin: app.Gin{C: c}}
  23. m := models.Exchangerateconfig{}
  24. a.DoBindReq(&m)
  25. a.DoGetDataByPage(&m)
  26. }