MCPcopy Index your code
hub / github.com/gourouting/singo / UserRegister

Function UserRegister

api/user.go:12–20  ·  view source on GitHub ↗

UserRegister handles user registration.

(c *gin.Context)

Source from the content-addressed store, hash-verified

10
11// UserRegister handles user registration.
12func UserRegister(c *gin.Context) {
13 var service service.UserRegisterService
14 if err := c.ShouldBind(&service); err == nil {
15 res := service.Register()
16 c.JSON(200, res)
17 } else {
18 c.JSON(200, ErrorResponse(err))
19 }
20}
21
22// UserLogin handles user login.
23func UserLogin(c *gin.Context) {

Callers

nothing calls this directly

Calls 2

RegisterMethod · 0.95
ErrorResponseFunction · 0.85

Tested by

no test coverage detected