2023-07-31 10:48:32 +08:00

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)
}