初步搭建
This commit is contained in:
17
srv/internal/user/controller.go
Normal file
17
srv/internal/user/controller.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
)
|
||||
|
||||
type Controller struct{}
|
||||
|
||||
func (Controller) GetLogin(ctx echo.Context) error {
|
||||
return ctx.String(http.StatusOK, "success")
|
||||
}
|
||||
|
||||
func New() *Controller {
|
||||
return &Controller{}
|
||||
}
|
||||
Reference in New Issue
Block a user