FavoriteAction no practical effect, just check if token is valid
(c *gin.Context)
| 7 | |
| 8 | // FavoriteAction no practical effect, just check if token is valid |
| 9 | func FavoriteAction(c *gin.Context) { |
| 10 | token := c.Query("token") |
| 11 | |
| 12 | if _, exist := usersLoginInfo[token]; exist { |
| 13 | c.JSON(http.StatusOK, Response{StatusCode: 0}) |
| 14 | } else { |
| 15 | c.JSON(http.StatusOK, Response{StatusCode: 1, StatusMsg: "User doesn't exist"}) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | // FavoriteList all users have same favorite video list |
| 20 | func FavoriteList(c *gin.Context) { |
nothing calls this directly
no outgoing calls
no test coverage detected