refactor: add GetAdminToken interface. (#2684)

* refactor: add GetAdminToken interface.

* update config.
This commit is contained in:
Monet Lee
2024-09-29 16:20:34 +08:00
committed by GitHub
parent 765fa17e7a
commit 5452741af8
8 changed files with 21 additions and 19 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ func NewAuthApi(client rpcclient.Auth) AuthApi {
return AuthApi(client)
}
func (o *AuthApi) UserToken(c *gin.Context) {
a2r.Call(auth.AuthClient.UserToken, o.Client, c)
func (o *AuthApi) GetAdminToken(c *gin.Context) {
a2r.Call(auth.AuthClient.GetAdminToken, o.Client, c)
}
func (o *AuthApi) GetUserToken(c *gin.Context) {