18 lines
427 B
Go
18 lines
427 B
Go
package agent
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"ycc-server/app/main/api/internal/logic/agent"
|
|
"ycc-server/app/main/api/internal/svc"
|
|
"ycc-server/common/result"
|
|
)
|
|
|
|
func GetConversionRateHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
l := agent.NewGetConversionRateLogic(r.Context(), svcCtx)
|
|
resp, err := l.GetConversionRate()
|
|
result.HttpResult(r, w, resp, err)
|
|
}
|
|
}
|