Documentation
¶
Index ¶
- type UserController
- func (c *UserController) Echo(ctx ctxpkg.Context, msg []byte) error
- func (c *UserController) HealthCheck(ctx ctxpkg.Context) error
- func (c *UserController) ModifyUser(ctx ctxpkg.Context, query models.UserQuery, db *services.DemoDB) (int, error)
- func (c *UserController) Stream(ctx ctxpkg.Context, w *ctxpkg.SSEWriter) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserController ¶
type UserController struct {
Service *services.UserService
}
UserController 用户 @Controller @Route /api/v1 @Authorization(Admin)
func (*UserController) Echo ¶
func (c *UserController) Echo(ctx ctxpkg.Context, msg []byte) error
Echo handles WebSocket messages. Each incoming []byte is echoed back with a prefix. @GET /ws @WS @Ignore(Authorization)
func (*UserController) HealthCheck ¶
func (c *UserController) HealthCheck(ctx ctxpkg.Context) error
HealthCheck 健康检查(无需鉴权) @GET /health @Ignore(Authorization,Global)
Click to show internal directories.
Click to hide internal directories.