mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-20 11:49:57 +08:00
refactoring scheduled tasks
This commit is contained in:
parent
8807597ffb
commit
1949d6c756
@ -1,9 +1,7 @@
|
|||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/openimsdk/protocol/user"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -300,16 +298,3 @@ var Whitelist = []string{
|
|||||||
"/auth/get_admin_token",
|
"/auth/get_admin_token",
|
||||||
"/auth/parse_token",
|
"/auth/parse_token",
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
|
||||||
|
|
||||||
var uc user.UserClient
|
|
||||||
var g *gin.Engine
|
|
||||||
g.POST("/get_admin_token", New(uc, uc.AccountCheck))
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func New[A, B, C any](c C, fn func(c C, ctx context.Context, req *A, opts ...grpc.CallOption) (*B, error)) func(c *gin.Context) {
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user