quote.go 355 B

123456789101112131415161718192021
  1. package router
  2. import (
  3. "mtp20access/api/v1/quote"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func InitQuotePublicRouter(r *gin.RouterGroup) {
  7. quoteR := r.Group("Quote").Use()
  8. {
  9. quoteR.GET("WS", quote.Quote)
  10. }
  11. }
  12. func InitQuotePrivateRouter(r *gin.RouterGroup) {
  13. quoteR := r.Group("Quote").Use()
  14. {
  15. quoteR.POST("QuoteSubscribe", quote.QuoteSubscribe)
  16. }
  17. }