mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-10 06:06:57 +08:00
19 lines
394 B
Go
19 lines
394 B
Go
package api
|
|
|
|
import (
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/a2r"
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/key"
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/rpcclient"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type KeyApi rpcclient.Key
|
|
|
|
func NewKeyApi(client rpcclient.Key) KeyApi {
|
|
return KeyApi(client)
|
|
}
|
|
|
|
func (o *KeyApi) GetKey(c *gin.Context) {
|
|
a2r.Call(key.KeyClient.GetKey, o.Client, c)
|
|
}
|