19 lines
298 B
Go
19 lines
298 B
Go
package controller
|
|
|
|
import (
|
|
"net/http"
|
|
"twin-api/app/api/service"
|
|
|
|
"git.u8t.cn/open/go-server/session"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type User struct {
|
|
sess *session.ApiSession
|
|
}
|
|
|
|
func (u *User) Verify(ctx *gin.Context) {
|
|
res := service.NewUser(ctx).Verify()
|
|
ctx.JSON(http.StatusOK, res)
|
|
}
|