twin-api/app/api/controller/user.go

16 lines
233 B
Go

package controller
import (
"net/http"
"twin-api/app/api/service"
"github.com/gin-gonic/gin"
)
type User struct{}
func (u *User) Verify(ctx *gin.Context) {
res := service.NewUser(ctx).Verify()
ctx.JSON(http.StatusOK, res)
}