MCPcopy Create free account
hub / github.com/RaymondCode/simple-demo / RelationAction

Function RelationAction

controller/relation.go:14–22  ·  view source on GitHub ↗

RelationAction no practical effect, just check if token is valid

(c *gin.Context)

Source from the content-addressed store, hash-verified

12
13// RelationAction no practical effect, just check if token is valid
14func 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
25func FollowList(c *gin.Context) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected