mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-07 12:17:02 +08:00
22 lines
524 B
Go
22 lines
524 B
Go
package api
|
|
|
|
import (
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/aes_key"
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/rpcclient"
|
|
"github.com/OpenIMSDK/tools/a2r"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type AesKeyApi rpcclient.AesKey
|
|
|
|
func NewAesKeyApi(client rpcclient.AesKey) AesKeyApi {
|
|
return AesKeyApi(client)
|
|
}
|
|
|
|
func (a *AesKeyApi) GetKey(c *gin.Context) {
|
|
a2r.Call(aes_key.AesKeyClient.GetAesKey, a.Client, c)
|
|
}
|
|
func (a *AesKeyApi) GetAllKey(c *gin.Context) {
|
|
a2r.Call(aes_key.AesKeyClient.GetAllAesKey, a.Client, c)
|
|
}
|