复制项目
This commit is contained in:
16
internal/rpc/chat/register.go
Normal file
16
internal/rpc/chat/register.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package chat
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.imall.cloud/openim/chat/pkg/protocol/chat"
|
||||
)
|
||||
|
||||
func (o *chatSvr) SetAllowRegister(ctx context.Context, req *chat.SetAllowRegisterReq) (*chat.SetAllowRegisterResp, error) {
|
||||
o.AllowRegister = req.AllowRegister
|
||||
return &chat.SetAllowRegisterResp{}, nil
|
||||
}
|
||||
|
||||
func (o *chatSvr) GetAllowRegister(ctx context.Context, req *chat.GetAllowRegisterReq) (*chat.GetAllowRegisterResp, error) {
|
||||
return &chat.GetAllowRegisterResp{AllowRegister: o.AllowRegister}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user