RelationAction no practical effect, just check if token is valid
(c *gin.Context)
| 12 | |
| 13 | // RelationAction no practical effect, just check if token is valid |
| 14 | func RelationAction(c *gin.Context) { |
| 15 | token := c.Query("token") |
| 16 | |
| 17 | if _, exist := usersLoginInfo[token]; exist { |
| 18 | c.JSON(http.StatusOK, Response{StatusCode: 0}) |
| 19 | } else { |
| 20 | c.JSON(http.StatusOK, Response{StatusCode: 1, StatusMsg: "User doesn't exist"}) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // FollowList all users have same follow list |
| 25 | func FollowList(c *gin.Context) { |
nothing calls this directly
no outgoing calls
no test coverage detected