add middleware for authentication and captcha, implement initial API routes for user, post, label, and page

This commit is contained in:
2025-07-18 03:26:15 +08:00
parent 70b653a88b
commit 99a3f80e12
40 changed files with 4545 additions and 21 deletions

View File

@ -0,0 +1,42 @@
package v1
import (
"context"
"github.com/cloudwego/hertz/pkg/app"
)
type userType struct{}
var User = new(userType)
func (u *userType) Login(ctx context.Context, c *app.RequestContext) {
// TODO: Impl
}
func (u *userType) Register(ctx context.Context, c *app.RequestContext) {
// TODO: Impl
}
func (u *userType) Logout(ctx context.Context, c *app.RequestContext) {
// TODO: Impl
}
func (u *userType) OidcList(ctx context.Context, c *app.RequestContext) {
// TODO: Impl
}
func (u *userType) OidcLogin(ctx context.Context, c *app.RequestContext) {
// TODO: Impl
}
func (u *userType) Get(ctx context.Context, c *app.RequestContext) {
// TODO: Impl
}
func (u *userType) Update(ctx context.Context, c *app.RequestContext) {
// TODO: Impl
}
func (u *userType) Delete(ctx context.Context, c *app.RequestContext) {
// TODO: Impl
}