24 lines
467 B
Go
24 lines
467 B
Go
|
|
package handler
|
||
|
|
|
||
|
|
import (
|
||
|
|
"net/http"
|
||
|
|
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
// SMSHandler handles SMS requests
|
||
|
|
type SMSHandler struct{}
|
||
|
|
|
||
|
|
// NewSMSHandler creates a new SMSHandler
|
||
|
|
func NewSMSHandler() *SMSHandler {
|
||
|
|
return &SMSHandler{}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (h *SMSHandler) SendCode(c *gin.Context) {
|
||
|
|
c.JSON(http.StatusOK, gin.H{"message": "SMS not configured"})
|
||
|
|
}
|
||
|
|
|
||
|
|
func (h *SMSHandler) LoginByCode(c *gin.Context) {
|
||
|
|
c.JSON(http.StatusOK, gin.H{"error": "SMS login not configured"})
|
||
|
|
}
|