| 1234567891011121314151617181920212223242526272829 |
- package common
- import (
- "mtp2_if/global/app"
- "mtp2_if/models"
- "github.com/gin-gonic/gin"
- )
- // QueryRates
- // @Summary 查询汇率信息
- // @Produce json
- // @Security ApiKeyAuth
- // @Security LoginID
- // @Security Group
- // @Param page query int false "页码"
- // @Param pagesize query int false "每页条数"
- // @Param oricurrencyid query int false "源币种ID"
- // @Param descurrencyid query int false "目标币种ID"
- // @Success 200 {array} models.Exchangerateconfig
- // @Failure 500 {object} app.Response
- // @Router /Common/QueryRates [get]
- // @Tags 通用服务
- func QueryRates(c *gin.Context) {
- a := app.GinUtils{Gin: app.Gin{C: c}}
- m := models.Exchangerateconfig{}
- a.DoBindReq(&m)
- a.DoGetDataByPage(&m)
- }
|