(c *gin.Context)
| 100 | } |
| 101 | |
| 102 | func GetUser(c *gin.Context) { |
| 103 | idStr := c.Query("id") |
| 104 | id, err := strconv.Atoi(idStr) |
| 105 | if err != nil { |
| 106 | common.ErrorResp(c, err, 400) |
| 107 | return |
| 108 | } |
| 109 | user, err := op.GetUserById(uint(id)) |
| 110 | if err != nil { |
| 111 | common.ErrorResp(c, err, 500, true) |
| 112 | return |
| 113 | } |
| 114 | common.SuccessResp(c, user) |
| 115 | } |
| 116 | |
| 117 | func Cancel2FAById(c *gin.Context) { |
| 118 | idStr := c.Query("id") |
nothing calls this directly
no test coverage detected