MCPcopy Create free account
hub / github.com/TalkingData/owl / listAllUsers

Function listAllUsers

api/users.go:94–107  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

92}
93
94func listAllUsers(c *gin.Context) {
95 response := gin.H{"code": http.StatusOK}
96 defer c.JSON(http.StatusOK, response)
97 total, users := mydb.getAllUsers(
98 c.GetBool("paging"),
99 c.GetString("query"),
100 c.GetString("order"),
101 c.GetInt("offset"),
102 c.GetInt("limit"),
103 )
104 response["code"] = http.StatusOK
105 response["total"] = total
106 response["users"] = users
107}
108
109/*
1101. 获取用户token

Callers

nothing calls this directly

Calls 1

getAllUsersMethod · 0.80

Tested by

no test coverage detected